Skip to content

Commit

Permalink
fix names being different from before
Browse files Browse the repository at this point in the history
Signed-off-by: clux <[email protected]>
  • Loading branch information
clux committed Jun 21, 2024
1 parent 600e14e commit b37c2b7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,15 @@ pub struct Metrics {
#[metric(new())]
pub struct ReconcilerMetrics {
/// reconciliations
#[metric(rename = "doc_controller_reconciliations_total")]
#[metric(label_set = EmptyLabelSet::default())]
pub reconciliations: CounterVec<EmptyLabelSet>,
/// reconciliation errors
#[metric(rename = "doc_controller_reconciliation_errors_total")]
#[metric(label_set = ErrorLabelSet::new())]
pub failures: CounterVec<ErrorLabelSet>,
/// duration of reconcile to complete in seconds
#[metric(rename = "doc_controller_reconcile_duration_seconds")]
#[metric(metadata = Thresholds::with_buckets([0.01, 0.1, 0.25, 0.5, 1., 5., 15., 60.]))]
pub reconcile_duration: HistogramVec<EmptyLabelSet, 8>,
}
Expand Down

0 comments on commit b37c2b7

Please sign in to comment.