How to Monitor GridGain 8 With Prometheus and Grafana
Export GridGain 8 metrics to Prometheus with the OpenCensus exporter, then connect Prometheus to Grafana and import a prebuilt dashboard.
Prerequisites
A GridGain 8 project you can launch from Java code, built with JDK 17 or later and Maven
A GridGain Enterprise or Ultimate license file for the nodes
A Prometheus server
Overview
GridGain supports a wide range of integrations and tools that can be used to monitor its status. Among them, a popular tool is Grafana, a popular open source software for monitoring metrics and building dashboards. This guide shows how you can export GridGain metrics to Prometheus, which can then be connected to Grafana.
This guide uses the following program versions:
GridGain 8.10
Grafana OSS 10.3.1
Prometheus server 2.49.1
When using different versions, required dependencies may be different.
GridGain Configuration
First, you need to configure GridGain to use a Prometheus exporter and create an HTTP server for Prometheus to collect data from. In this example, you launch GridGain from Java code, so you update Maven dependencies to include Prometheus:
Add the following dependencies to your project:
You use the following versions:
The latest version of Prometheus from the maven repository. It is recommended to update it to the latest version if it is available.
The OpenCensus version included in GridGain 8.10. The included OpenCensus library is updated regularly and can be different for different GridGain versions. You can check the version of the library for your version in the
{IGNITE_HOME}/libs/optional/ignite-opencensusfolder. Theopencensus-impl-X.XX.Xfile denotes the version you should use in the configuration.
Enable exporting of data. You can do it by configuring
OpenCensusMetricExporterSpiin your configuration or from Java code:
The Exporter class starts the HTTP server that Prometheus scrapes, so register it as a lifecycle bean in the node configuration, together with OpenCensusMetricExporterSpi. (The XML tab does the same job with the httpServer and opencensusWrapper beans, so it does not use this class.)
Start GridGain nodes. Give each node on the same host its own exporter port, for example
1234,1235, and1236.If you use native persistence, as in the XML example, activate the cluster with
control.sh --set-state ACTIVE.
You should be able to access the metrics on the HTTP server URL: http://localhost:1234.
Prometheus Server Configuration
To produce metrics ready for Grafana, you need to collect them on the Prometheus server. You can find instructions on using Prometheus in the Prometheus documentation. In this example you modify the default prometheus.yml file to also collect data from GridGain:
Add the
ignite-metricsjob to make Prometheus collect GridGain metrics:List the addresses of all OpenCensus exporters for each node in the
targetsblock:Start your Prometheus server:
By default, the Prometheus server will start on port 9090. Open the http://localhost:9090 URL in your browser and use Prometheus to make sure the metrics are available:

Grafana Configuration
To proceed with the guide, you will need Grafana. Download a standalone executable from the website.
When you start Grafana, it will be available on the http://localhost:3000/login URL by default. Default credentials will be admin/admin. You must change them after the first login.
Go to Connections/Data sources section and select Add data source.

Add data source Add the Prometheus data source to Grafana. The image below shows the example parameters for this document:

Prometheus data source parameters Make sure the connection is configured correctly:

Prometheus data source connection
Grafana can now receive metrics from GridGain.
Importing a Sample Dashboard
For this guide, a sample dashboard has been prepared that displays a number of metrics for the cluster.
Open your data source in Grafana by going to the Connections/Data sources section and selecting a newly created data source.
Copy the data source ID from the URL:

Data source ID in URL Download the sample dashboard. Grafana imports dashboards in a JSON format.
Open the downloaded dashboard JSON and replace every
datasource.uidvalue (e105d3fd-a91b-462e-b2e9-891dc66b8d78in the file) with your data source ID and replace:In Grafana, go to Dashboards/Create dashboard and click Import dashboard. Load the prepared dashboard file.
Grafana will import the dashboard and display the metrics on it:

Related
How to Monitor GridGain Clusters with New Relic - Export GridGain metrics and logs to New Relic with the OpenTelemetry Java agent.
Prometheus documentation - Getting started with the Prometheus server.
This page is: Copyright © 2026 MariaDB. All rights reserved.
Last updated
Was this helpful?

