Skip to content

Commit

Permalink
feat: update on metrics exposure config
Browse files Browse the repository at this point in the history
Signed-off-by: ShutingZhao <[email protected]>
  • Loading branch information
realshuting committed Sep 26, 2024
1 parent 56e82c6 commit bebac0b
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions content/en/docs/monitoring/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,19 @@ metricsConfig:

# Per Metric configuration, allows disabling metrics, dropping labels and change the bucket boundaries.
metricsExposure:
# Counter disabled
kyverno_policy_rule_info_total:
enabled: false
# Histogram disabled
kyverno_admission_review_duration_seconds:
enabled: false
# Counter with customized dimensions
kyverno_admission_requests:
disabledLabelDimensions: ["resource_namespace", "resource_kind", "resource_request_operation"]
# Histogram with custom boundaries and dimensions
kyverno_policy_execution_duration_seconds:
disabledLabelDimensions: ["resource_kind", "resource_namespace", "resource_request_operation"]
bucketBoundaries: [0.005, 0.01, 0.025]
kyverno_admission_review_duration_seconds:
enabled: false
...
```

Expand Down

0 comments on commit bebac0b

Please sign in to comment.