mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-05 15:37:19 +00:00
change metrics default to stable defaults (#10459)
* change metrics default to stable defaults Signed-off-by: anushkamittal20 <anumittal4641@gmail.com> * make codegen-helm-all Signed-off-by: anushkamittal20 <anumittal4641@gmail.com> * make codegen-manifest-all Signed-off-by: anushkamittal20 <anumittal4641@gmail.com> * fix: chart testing lint error Signed-off-by: anushkamittal20 <anumittal4641@gmail.com> --------- Signed-off-by: anushkamittal20 <anumittal4641@gmail.com> Co-authored-by: anushkamittal20 <anumittal4641@gmail.com> Co-authored-by: Vishal Choudhary <vishal.choudhary@nirmata.com>
This commit is contained in:
parent
02ffe4131c
commit
eb72b04d2c
3 changed files with 17 additions and 8 deletions
|
@ -317,7 +317,7 @@ The chart values are organised per component.
|
|||
| metricsConfig.namespaces.exclude | list | `[]` | list of namespaces to NOT capture metrics for. |
|
||||
| metricsConfig.metricsRefreshInterval | string | `nil` | Rate at which metrics should reset so as to clean up the memory footprint of kyverno metrics, if you might be expecting high memory footprint of Kyverno's metrics. Default: 0, no refresh of metrics. WARNING: This flag is not working since Kyverno 1.8.0 |
|
||||
| metricsConfig.bucketBoundaries | list | `[0.005,0.01,0.025,0.05,0.1,0.25,0.5,1,2.5,5,10,15,20,25,30]` | Configures the bucket boundaries for all Histogram metrics, changing this configuration requires restart of the kyverno admission controller |
|
||||
| metricsConfig.metricsExposure | map | `nil` | Configures the exposure of individual metrics, by default all metrics and all labels are exported, changing this configuration requires restart of the kyverno admission controller |
|
||||
| metricsConfig.metricsExposure | map | `{"kyverno_admission_requests_total":{"disabledLabelDimensions":["resource_namespace"]},"kyverno_admission_review_duration_seconds":{"disabledLabelDimensions":["resource_namespace"]},"kyverno_cleanup_controller_deletedobjects_total":{"disabledLabelDimensions":["resource_namespace","policy_namespace"]},"kyverno_policy_execution_duration_seconds":{"disabledLabelDimensions":["resource_namespace","resource_request_operation"]},"kyverno_policy_results_total":{"disabledLabelDimensions":["resource_namespace","policy_namespace"]},"kyverno_policy_rule_info_total":{"disabledLabelDimensions":["resource_namespace","policy_namespace"]}}` | Configures the exposure of individual metrics, by default all metrics and all labels are exported, changing this configuration requires restart of the kyverno admission controller |
|
||||
|
||||
### Features
|
||||
|
||||
|
|
|
@ -391,13 +391,21 @@ metricsConfig:
|
|||
bucketBoundaries: [0.005, 0.01, 0.025, 0.05, 0.1, 0.25, 0.5, 1, 2.5, 5, 10, 15, 20, 25, 30]
|
||||
|
||||
# -- (map) Configures the exposure of individual metrics, by default all metrics and all labels are exported, changing this configuration requires restart of the kyverno admission controller
|
||||
metricsExposure: ~
|
||||
# metricsExposure:
|
||||
# kyverno_policy_execution_duration_seconds:
|
||||
# disabledLabelDimensions: ["resource_kind", "resource_namespace", "resource_request_operation"]
|
||||
metricsExposure:
|
||||
kyverno_policy_execution_duration_seconds:
|
||||
# bucketBoundaries: [0.005, 0.01, 0.025, 0.05, 0.1, 0.25, 0.5, 1, 2.5]
|
||||
# kyverno_admission_review_duration_seconds:
|
||||
disabledLabelDimensions: ["resource_namespace", "resource_request_operation"]
|
||||
kyverno_admission_review_duration_seconds:
|
||||
# enabled: false
|
||||
disabledLabelDimensions: ["resource_namespace"]
|
||||
kyverno_policy_rule_info_total:
|
||||
disabledLabelDimensions: ["resource_namespace", "policy_namespace"]
|
||||
kyverno_policy_results_total:
|
||||
disabledLabelDimensions: ["resource_namespace", "policy_namespace"]
|
||||
kyverno_admission_requests_total:
|
||||
disabledLabelDimensions: ["resource_namespace"]
|
||||
kyverno_cleanup_controller_deletedobjects_total:
|
||||
disabledLabelDimensions: ["resource_namespace", "policy_namespace"]
|
||||
|
||||
# -- Image pull secrets for image verification policies, this will define the `--imagePullSecrets` argument
|
||||
imagePullSecrets: {}
|
||||
|
|
|
@ -188,6 +188,7 @@ metadata:
|
|||
app.kubernetes.io/version: latest
|
||||
data:
|
||||
namespaces: "{\"exclude\":[],\"include\":[]}"
|
||||
metricsExposure: "{\"kyverno_admission_requests_total\":{\"disabledLabelDimensions\":[\"resource_namespace\"]},\"kyverno_admission_review_duration_seconds\":{\"disabledLabelDimensions\":[\"resource_namespace\"]},\"kyverno_cleanup_controller_deletedobjects_total\":{\"disabledLabelDimensions\":[\"resource_namespace\",\"policy_namespace\"]},\"kyverno_policy_execution_duration_seconds\":{\"disabledLabelDimensions\":[\"resource_namespace\",\"resource_request_operation\"]},\"kyverno_policy_results_total\":{\"disabledLabelDimensions\":[\"resource_namespace\",\"policy_namespace\"]},\"kyverno_policy_rule_info_total\":{\"disabledLabelDimensions\":[\"resource_namespace\",\"policy_namespace\"]}}"
|
||||
bucketBoundaries: "0.005, 0.01, 0.025, 0.05, 0.1, 0.25, 0.5, 1, 2.5, 5, 10, 15, 20, 25, 30"
|
||||
---
|
||||
apiVersion: apiextensions.k8s.io/v1
|
||||
|
|
Loading…
Add table
Reference in a new issue