Expand description
Prometheus metrics for the Bindy DNS operator.
This module provides comprehensive metrics collection with the namespace prefix
bindy_firestoned_io_ (prometheus-safe version of “bindy.firestoned.io”).
§Metrics Categories
- Reconciliation Metrics - Track reconciliation operations and their outcomes
- Resource Lifecycle Metrics - Track resource creation, updates, and deletions
- Error Metrics - Track error conditions and types
- Leader Election Metrics - Track leadership state changes
- Performance Metrics - Track duration and latency
§Example
use bindy::metrics::{METRICS_REGISTRY, record_reconciliation_success};
// Record a successful reconciliation
record_reconciliation_success("DNSZone", std::time::Duration::from_secs(1));Statics§
- ERRORS_
TOTAL - Total number of errors by resource type and error category
- GENERATION_
OBSERVATION_ LAG_ SECONDS - Lag between resource generation change and observation
- LEADER_
ELECTIONS_ TOTAL - Total number of leader election events
- LEADER_
STATUS - Current leader election status
- METRICS_
REGISTRY - Global Prometheus metrics registry
- RECONCILIATION_
DURATION_ SECONDS - Duration of reconciliations in seconds
- RECONCILIATION_
TOTAL - Total number of reconciliations by resource type and status
- REQUEUE_
TOTAL - Total number of requeue operations
- RESOURCES_
ACTIVE - Number of currently active resources being tracked
- RESOURCES_
CREATED_ TOTAL - Total number of resources created
- RESOURCES_
DELETED_ TOTAL - Total number of resources deleted
- RESOURCES_
UPDATED_ TOTAL - Total number of resources updated
Functions§
- gather_
metrics - Gather and encode all metrics in Prometheus text format
- record_
error - Record an error
- record_
generation_ lag - Record generation observation lag
- record_
leader_ elected - Record leader election acquired
- record_
leader_ lost - Record leader election lost
- record_
leader_ renewed - Record leader election renewed
- record_
reconciliation_ error - Record a failed reconciliation
- record_
reconciliation_ requeue - Record a reconciliation requeue
- record_
reconciliation_ success - Record a successful reconciliation
- record_
resource_ created - Record resource creation
- record_
resource_ deleted - Record resource deletion
- record_
resource_ updated - Record resource update