7 Monitor Besu Metrics with Prometheus
You can use Prometheus and kube-prometheus-stack to retrieve metrics from the Besu nodes running in Kubernetes clusters.
monitoring.yml) that is maintained in the
Consensys/quorum-kubernetes repository. In this scenario, Prometheus
operates inside an Istio service mesh and securely scrapes metrics via mutual TLS. The
kube-prometheus-stack package installs the following software.
- Prometheus
- Prometheus Operator
- Grafana
- Alertmanager
- Standard Kubernetes exporters
In the kube-prometheus-stack architecture, Prometheus discovers scrape targets by
using a Kubernetes custom resource called a ServiceMonitor. This resource
defines the services to scrape, the ports and paths that expose metrics, and configuration
for TLS and mutual TLS. ServiceMonitor resources for components such as
kube-state-metrics and node-exporter are automatically created when you use Helm to install
kube-prometheus-stack. However, to scrape Oracle Blockchain Platform Enterprise Edition for
Hyperledger Besu metrics, you must create and manage your own
ServiceMonitor resources.
- Helm v3.x. You can verify your Helm version by running the following
command.
helm version - kubectl