diff --git a/monitoring/controllers/kube-prometheus-stack/release.yaml b/monitoring/controllers/kube-prometheus-stack/release.yaml index db09171..471fea2 100644 --- a/monitoring/controllers/kube-prometheus-stack/release.yaml +++ b/monitoring/controllers/kube-prometheus-stack/release.yaml @@ -66,6 +66,33 @@ spec: config: spec: resources: + - groupVersionKind: + group: kustomize.toolkit.fluxcd.io + version: "v1" + kind: Kustomization + metricNamePrefix: gotk + metrics: + - name: "resource_info" + help: "The current state of a GitOps Toolkit resource." + each: + type: Info + info: + labelsFromPath: + name: [ metadata, name ] + labelsFromPath: + exported_namespace: [ metadata, namespace ] + ready: [ status, conditions, "[type=Ready]", status ] + - name: "kustomization_revision_info" + help: "The revision information of a Kustomization resource." + each: + type: Info + info: + labelsFromPath: + revision: [ status, lastAppliedRevision ] + labelsFromPath: + name: [ metadata, name ] + exported_namespace: [ metadata, namespace ] + source_name: [ spec, sourceRef, name ] - groupVersionKind: group: helm.toolkit.fluxcd.io version: "v2beta1" @@ -130,11 +157,6 @@ spec: group: source.toolkit.fluxcd.io version: "v1beta2" kind: OCIRepository - - <<: *metric - groupVersionKind: - group: kustomize.toolkit.fluxcd.io - version: "v1" - kind: Kustomization - <<: *metric groupVersionKind: group: image.toolkit.fluxcd.io