Solutions

Visualizing Litmus Edge Manager Prometheus Metrics with Grafana

11min

Overview

Document image


How to prepare Litmus Edge Manager to act as Prometheus Endpoint

This section will provide instructions on how to prepare a Litmus Edge Manager to act as Prometheus Endpoint.

Requirements

A Litmus Edge Manager is setup.

Guide to prepare Litmus Edge Manager as Prometheus Endpoint

The guide on how to prepare Litmus Edge Manager to act as Prometheus Endpoint can be viewed in the Litmus Edge Manager Prometheus documentation.

Note: For this guide only Step 1 and Step 2 are required followed by saving the change.

Document image


How to connect Grafana to the Litmus Edge Manager Prometheus Endpoint

This section will provide instructions on how to connect Grafana to the Litmus Edge Manager Prometheus Endpoint.

Requirements

A deployment of Grafana is available.

Note: This does include also Grafana Cloud and Grafana Enterprise.

How to deploy Grafana is covered by the Grafana documentation.

Note: Litmus Edge Manager also offers a Litmus provided Grafana deployment which can be accessed from within a project.

Step by Step guide to connect Grafana to Litmus Edge Manager Prometheus Endpoint

This guide will provide instructions on how to connect Grafana with your Litmus Edge Manager Prometheus Endpoint.

This guide will not provide instructions on all the statistic values available through the Prometheus Endpoint. This guide will also not provide instructions on how to create dashboards apart from a generalized guide on how to add a value to a dashboard.

Step 1: Log-on to your Grafana Instance.

Document image


Step 2: Go to Configuration->Datasources.

Document image


Step 3: Press the Add data source button to add a new data source.

Document image


Step 4: Select Prometheus as the data source type.

Document image


Step 5: Copy the URL from your Litmus Edge Manager Web UI found under Integration-> Prometheus .

Document image


Step 6: Paste the in Step 5 copied URL into the URL field for the Grafana Prometheus Data Source.

Document image


Step 7: Scroll to the end of the form and press the Save & test button

Document image


to validate the connection and save it.

Document image


The data source is now available to be used in any dashboard.

Short guide on how to add a Prometheus metric to a Grafana dashboard.

This guide will show trough one example how to add a Prometheus metric to a dashboard.

Note: This guide is not a deep dive on how to create compelling Prometheus dashboards.

Requirements

A Prometheus data source has been added to Grafana.

Step 1: Add a new dashboard.

Document image


Step 2: Add a new panel.

Document image


Step 3: Select the Prometheus data source from the drop down.

Document image


Step 4: Expand the Metrics browser.

Document image


Step 5: Select the metric you would like to visualize.

Example: node_cpu_system (cpu load used by system processes)

Document image


Step 6: Press the Use query button.

Document image


The data are visualized.

Document image


Step 7: Save the dashboard using the Save button.

Document image


The dashboard includes the new panel.

Document image