Visualizing Litmus Edge Manager Prometheus Metrics with Grafana
This section will provide instructions on how to prepare a Litmus Edge Manager to act as Prometheus Endpoint.
A Litmus Edge Manager is setup.
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.
This section will provide instructions on how to connect Grafana to the Litmus Edge Manager Prometheus Endpoint.
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.
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.
Step 2: Go to Configuration->Datasources.
Step 3: Press the Add data source button to add a new data source.
Step 4: Select Prometheus as the data source type.
Step 5: Copy the URL from your Litmus Edge Manager Web UI found under Integration-> Prometheus .
Step 6: Paste the in Step 5 copied URL into the URL field for the Grafana Prometheus Data Source.
Step 7: Scroll to the end of the form and press the Save & test button
to validate the connection and save it.
The data source is now available to be used in any 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.
A Prometheus data source has been added to Grafana.
Step 1: Add a new dashboard.
Step 2: Add a new panel.
Step 3: Select the Prometheus data source from the drop down.
Step 4: Expand the Metrics browser.
Step 5: Select the metric you would like to visualize.
Example: node_cpu_system (cpu load used by system processes)
Step 6: Press the Use query button.
The data are visualized.
Step 7: Save the dashboard using the Save button.
The dashboard includes the new panel.