Skip to content

Commit

Permalink
Add suspended label to metrics
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
  • Loading branch information
stefanprodan committed Aug 18, 2023
1 parent be97c92 commit 0c0352a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions monitoring/controllers/kube-prometheus-stack/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ spec:
labelsFromPath:
exported_namespace: [ metadata, namespace ]
ready: [ status, conditions, "[type=Ready]", status ]
suspended: [ spec, suspend ]
revision: [ status, lastAppliedRevision ]
source_name: [ spec, sourceRef, name ]
- groupVersionKind:
Expand All @@ -100,6 +101,7 @@ spec:
labelsFromPath:
exported_namespace: [ metadata, namespace ]
ready: [ status, conditions, "[type=Ready]", status ]
suspended: [ spec, suspend ]
revision: [ status, lastAppliedRevision ]
chart_name: [ spec, chart, spec, chart ]
- &sourcemetric
Expand All @@ -119,6 +121,7 @@ spec:
labelsFromPath:
exported_namespace: [ metadata, namespace ]
ready: [ status, conditions, "[type=Ready]", status ]
suspended: [ spec, suspend ]
revision: [ status, artifact, revision ]
url: [ spec, url ]
- <<: *sourcemetric
Expand Down Expand Up @@ -146,6 +149,18 @@ spec:
group: image.toolkit.fluxcd.io
version: "v1beta2"
kind: ImageRepository
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 ]
suspended: [ spec, suspend ]
- <<: *metric
groupVersionKind:
group: image.toolkit.fluxcd.io
Expand Down

0 comments on commit 0c0352a

Please sign in to comment.