From bebac0ba371a26d6c6ac857dc428ba19eed113c2 Mon Sep 17 00:00:00 2001 From: ShutingZhao Date: Thu, 26 Sep 2024 19:09:55 +0800 Subject: [PATCH] feat: update on metrics exposure config Signed-off-by: ShutingZhao --- content/en/docs/monitoring/_index.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/content/en/docs/monitoring/_index.md b/content/en/docs/monitoring/_index.md index b37819711..ac341ab5e 100644 --- a/content/en/docs/monitoring/_index.md +++ b/content/en/docs/monitoring/_index.md @@ -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 ... ```