2 minute read
The CAP Operator includes built-in Prometheus metrics that enable users to effectively monitor and analyze the operator’s performance. These metrics can provide insights into resource usage, potential issues, and overall operator health. The metrics are accessible at the /metrics
endpoint on port 9090
of both the Controller and the Subscription Server.
The Controller emits several types of metrics, including:
cap_op_reconcile_errors
, e.g.:cap_op_reconcile_errors{kind="CAPApplication",name="my-app",namespace="app"} 11
CAPApplication
.cap_op_tenant_operations
, e.g.cap_op_tenant_operations{app="<hash>",operation="provisioning"} 83
To gain deeper insights, you can enable more granular metrics by setting the environment variable DETAILED_OPERATIONAL_METRICS
to "true"
.
cap_op_tenant_operation_failures
, e.g.:cap_op_tenant_operation_failures{app="<hash>",operation="upgrade",tenant_id="<guid>",namespace="app",name="my-app-tenant-op-xxyyz"} 2
cap_op_last_tenant_operation_duration_seconds
, e.g.:cap_op_last_tenant_operation_duration_seconds{app="<hash>",tenant_id="<guid>"} 17
The Subscription Server emits the following metrics:
cap_op_subscription_requests_total
, e.g.:cap_op_subscription_requests_total{code="202",method="POST"} 2024
cap_op_subscription_requests_inflight
, e.g.:cap_op_subscription_requests_inflight{} 4
The CAP Operator provides a rich set of metrics to facilitate monitoring and operational insights. By effectively leveraging these metrics, you can monitor and ensure the reliability and performance of your applications. For further details, consider exploring the Prometheus documentation and integrating these metrics into your monitoring systems.