Este conteúdo não está disponível no idioma selecionado.
Chapter 10. Setting Up Monitoring
Collect JMX metrics with the Prometheus Operator to monitor events and get statistics for Data Grid clusters.
From a high-level, you set up monitoring capabilities as follows:
-
Configure Data Grid with the
AB_PROMETHEUS_ENABLEenvironment variable set totrue. - Install the Prometheus Operator and expose the Prometheus web UI.
- Export Data Grid metrics to Prometheus.
- Enable Prometheus to monitor Data Grid for metrics.
10.1. Deploying the Prometheus Operator Copiar o linkLink copiado para a área de transferência!
To install the Prometheus Operator, you should refer to the following documentation:
10.2. Exposing Data Grid Metrics to Prometheus Copiar o linkLink copiado para a área de transferência!
Add a service that exposes JMX metrics from Data Grid to Prometheus.
Create a
service-metrics.yamlfile that defines a metrics service.Copy to Clipboard Copied! Toggle word wrap Toggle overflow Apply
service-metrics.yaml.oc apply -f service-metrics.yaml
$ oc apply -f service-metrics.yamlCopy to Clipboard Copied! Toggle word wrap Toggle overflow
10.3. Enabling Prometheus to Monitor Data Grid Copiar o linkLink copiado para a área de transferência!
A service monitor lets Prometheus connect to the Data Grid metrics service.
Create a
service-monitor.yamlfile that holds the definition for aServiceMonitorobject.Copy to Clipboard Copied! Toggle word wrap Toggle overflow Apply
service-monitor.yaml.oc apply -f service-monitor.yaml
$ oc apply -f service-monitor.yamlCopy to Clipboard Copied! Toggle word wrap Toggle overflow