Skip to content

Kuadrant Operator Metrics #875

@silvi-t

Description

@silvi-t

Automated end-to-end tests validating the Kuadrant operator Prometheus metrics documented in the Kuadrant Operator Metrics Reference.
These tests verify that the operator health metrics and policy metrics are correctly emitted with expected values and labels, and respond dynamically to policy lifecycle events.

Operator Health Metrics

  • Validate kuadrant_exists == 1
  • Validate kuadrant_ready == 1 with correct namespace and name labels
  • Validate kuadrant_component_ready == 1 for authorino and limitador
  • Validate kuadrant_dependency_detected exists with value 0 or 1 for all dependencies (authorino-operator, limitador-operator, cert-manager, dns-operator, istio, envoygateway)
  • Validate kuadrant_controller_registered exists with value 0 or 1 for all controllers (auth_policies, rate_limit_policies, dns_policies, tls_policies, istio_integration, envoygateway_integration)

Policy Count Metrics

  • Validate kuadrant_policies_total{kind=<kind>} >= 1 after creating AuthPolicy and RateLimitPolicy
  • Validate kuadrant_policies_enforced{kind=<kind>, status="true"} >= 1 after policies are committed and ready

Policy Metrics Lifecycle (disruptive)

  • Validate kuadrant_policies_total increments when a new policy is created
  • Validate kuadrant_policies_total decrements when a policy is deleted

Metadata

Metadata

Assignees

Labels

Type

Projects

Status

In Review

Status

In Review

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions