Skip to content

Commit ae94ad5

Browse files
committed
MON-4115: expose label metrics for jobs and cronjobs
Adds jobs and cronjobs to the exposed set of label metrics: * '--metric-labels-allowlist=pods=[*],nodes=[*],namespaces=[*],persistentvolumes=[*],persistentvolumeclaims=[*],poddisruptionbudgets=[*],jobs=[*],cronjobs=[*]' Signed-off-by: Pranshu Srivastava <[email protected]>
1 parent 0264620 commit ae94ad5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

assets/kube-state-metrics/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ spec:
4242
^kube_.+_annotations$
4343
^kube_customresource_.+_annotations_info$,
4444
^kube_customresource_.+_labels_info$,
45-
- --metric-labels-allowlist=pods=[*],nodes=[*],namespaces=[*],persistentvolumes=[*],persistentvolumeclaims=[*],poddisruptionbudgets=[*]
45+
- --metric-labels-allowlist=pods=[*],nodes=[*],namespaces=[*],persistentvolumes=[*],persistentvolumeclaims=[*],poddisruptionbudgets=[*],jobs=[*],cronjobs=[*]
4646
- |
4747
--metric-denylist=
4848
^kube_.+_created$,

jsonnet/components/kube-state-metrics.libsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ function(params)
244244
^kube_customresource_.+_annotations_info$,
245245
^kube_customresource_.+_labels_info$,
246246
|||,
247-
'--metric-labels-allowlist=pods=[*],nodes=[*],namespaces=[*],persistentvolumes=[*],persistentvolumeclaims=[*],poddisruptionbudgets=[*]',
247+
'--metric-labels-allowlist=pods=[*],nodes=[*],namespaces=[*],persistentvolumes=[*],persistentvolumeclaims=[*],poddisruptionbudgets=[*],jobs=[*],cronjobs=[*]',
248248
],
249249
securityContext: {},
250250
resources: {

0 commit comments

Comments
 (0)