Configuring Metrics
Enable metric sources on a node or across the cluster, and configure JMX, LogPush, and OpenTelemetry exporters to collect GridGain 9 metrics.
Metric management is performed through the GridGain CLI tool.
Listing Metric Sources
You can list all available metric sources for a node or for the entire cluster.
node metric source list
cluster metric source listListing Metrics
You can list all metrics for a node.
node metric listThe above command returns the list of all currently available metrics organized with their exporters.
Enabling Metric Sources
Metric collection might affect the performance of an application. Therefore, by default, all metric sources are disabled.
Metric sources can be enabled:
On per-node basis - you can specify the node to interact with by using the
-uparameter to specify node URL or-nparameter to specify node name.For the entire cluster.
For example:
Disabling Metric Sources
Metric sources can be disabled:
On per-node basis - you can specify the node to interact with by using the
-uparameter to specify node URL or-nparameter to specify node name.For the entire cluster.
For example:
Configuring Metrics Exporters
To access the collected metrics with external tools, you need to configure metrics exporters.
JMX
The JMX exporter provides information about GridGain nodes in JMX(Java Management Extensions) format. When the exporter is enabled, the node exposes the metrics to monitoring tools.
You can enable the JMX exporter in the following way:
After you do, JMX monitoring tools will be able to collect enabled metrics from the specified nodes:

You can also open internal JDK modules required for JMX, enable the remote JMX agent, configure the connection port, authentication, and SSL. Add the following options to the GRIDGAIN9_EXTRA_JVM_ARGS variable in vars.env file if you are using Linux or macOS, or to vars.bat for Windows:
LogPush Exporter
LogPush exporter writes metrics data to the dedicated log file, so they can be consumed by log collectors or inspected manually. To configure it, use the following parameters:
periodMillis
Export interval for the metrics, in milliseconds.
30000
oneLinePerMetricSource
Define whether to print all metrics from one metric source on a single log line.
true
enabledMetrics
List of enabled metric sources. If this list is non-empty, only the listed sources are printed; all others are skipped. Each entry has one of the following forms:
• sourceName — log all metrics from this source (for example, jvm).
• prefix* — log all metrics from every source whose name starts with the given prefix (for example, raft*). The trailing * is the only wildcard supported and must come at the end of the source name.
• sourceName:metric1,metric2,… — log only the listed metrics from this source (for example, thread.pools*:ActiveCount,QueueSize). The trailing * wildcard is allowed on the source-name part. An empty metric list (sourceName:) is equivalent to sourceName and logs every metric.
Pass an empty list to disable every default. Use "*" to log every metric from every source.
"client.handler", "clock.service", "index.builder", "jvm", "metastorage", "os", "placement-driver", "raft", "raft.snapshots", "resource.vacuum", "sql.plan.cache", "storage.aipersist", "storage.aipersist.checkpoint", "thread.pools*:ActiveCount,IdleCount,QueueSize", "topology*", "transactions"
You can also configure additional configuration properties in the etc/gridgain.java.util.logging.properties file.
Enable Metrics
To add logPush exporter to cluster exporters list, run the following command and define all the metrics to print in enabledMetrics list:
Updated exporters configuration should look like this:
OpenTelemetry
The OpenTelemetry exporter connects to an OpenTelemetry service that is provided in configuration and sends cluster information to it. Each node sends metrics independently, and requires access to the specified endpoint.
The example below shows the basic OpenTelemetry configuration. As OpenTelemetry services require different URL formats and may require headers, this example may not work for your environment.
OpenTelemetry exporter created by this command will look like this:
Below are the descriptions of configuration parameters:
compression
How the payload is compressed. Possible values: none, gzip.
gzip
endpoint
The OpenTelemetry endpoint. Each node resolves the endpoint individually.
exporterName
Exporter name. Must be otlp to use OpenTelemetry.
headers
Request headers, if any.
name
User-defined exporter name, used to refer to it in GridGain.
periodMillis
Export interval for the metrics, in milliseconds.
30000
protocol
The protocol that is used to send OpenTelemetry data. Possible values: grpc, http/protobuf.
grpc
ssl.ciphers
List of ciphers to enable, comma-separated. Empty for automatic cipher selection.
ssl.clientAuth
Whether the SSL client authentication is enabled and whether it is mandatory.
ssl.enabled
Defines if SSL is enabled.
false
ssl.keyStore.password
SSL keystore password.
ssl.keyStore.path
Path to the SSL keystore.
ssl.keyStore.type
Keystore type.
PKCS12
ssl.trustStore.password
Truststore password.
ssl.trustStore.path
Path to the truststore.
ssl.trustStore.type
Truststore type.
PKCS12
Connection to Grafana
When connecting to Grafana Cloud, you need to use the protobuf protocol and pass the authorization header in the configuration:
Connection to Prometheus
When connecting to Prometheus, you need to use the protobuf protocol and send metrics to the /api/v1/otlp/v1/metrics after the otlp metrics receiver is enabled as described in Prometheus documentation:
For more detailed explanation follow our guide on collecting metrics with Prometheus and Grafana.
Metric Source Names and Prometheus Labels
When GridGain 9 pushes metrics directly to Prometheus through OTLP, the metric source name is not available as a Prometheus label. GridGain 9 sends the source name as the OpenTelemetry instrumentation scope, and Prometheus builds labels from data point attributes rather than from scope information. Prometheus receives the metric values with node-level labels such as job and instance, but without the GridGain metric source name as a label.
As a result, metrics that share a short name across several sources cannot be told apart in Prometheus and Grafana. This affects every metric source that GridGain 9 registers per object, for example:
tables.{table_name}, which exposesRoReads,RwReads, andWrites.caches.{cache_name}, which exposesGets,Hits,Misses,Puts, andRemovals.storage.aipersist.tables.{table_name}, which exposes the per-table storage metrics.
Enabling these sources works as expected, and metric values are exported. However, the source identity is not available as a Prometheus label, so Prometheus cannot separate the series by table or cache.
To preserve the source identity, place an OpenTelemetry Collector between GridGain 9 and Prometheus, and copy the scope name into a data point attribute before the metrics are forwarded. Set the GridGain 9 exporter endpoint to the collector address instead of the Prometheus address. With this mapping in place, the table or cache name is available as a Prometheus label, and you can filter and group by it in Prometheus and Grafana. A validated collector configuration example will be added separately.
Monitoring GridGain 9 with Zabbix
Zabbix can collect GridGain 9 metrics directly over JMX without external scripts. Use the preconfigured template.
Follow these steps:
Make sure JMX is enabled on each GridGain 9 node (host, port, authentication if required).
Import the
yamlfile in Configuration → Templates → Import.Link the template to the target host.
See Also
This page is: Copyright © 2026 MariaDB. All rights reserved.
Last updated
Was this helpful?

