About Performance Metrics Monitoring
Cloudentity exposes metrics in Prometheus format under a dedicated endpoint. Those metrics can be used to measure overall performance of your deployment (i.e requests per seconds or number of 5XX responses). One of the ways to collect those metrics is ServiceMonitor. It describes how metrics should be collected and from which endpoint.
Learn more
To learn more, visit prometheus operator documentation
Prerequisites
- Kubernetes cluster v1.16+
- Prometheus Operator v0.12+
- Helm v3.0+
Configure Monitoring
By default, ServiceMonitor integration is disabled, you can enable if for base Cloudentity pods as well as worker pods.
Example
Enable ServiceMonitor with custom scrape interval and worker pods.
serviceMonitor: enabled: true endpointConfig: interval: 15s workers: serviceMonitor: enabled: true
Grafana Dashboard
Grafana dashboard can be used to visualise above metrics. You can download sample dashboard here and import it into your Grafana deployment.
Learn more
To learn more, visit export and import Grafana documentation.