Skip to content

Commit

Permalink
Add helmrelease_revision_info metric
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 d406ae2 commit af7a93a
Showing 1 changed file with 23 additions and 6 deletions.
29 changes: 23 additions & 6 deletions monitoring/controllers/kube-prometheus-stack/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ spec:
requests:
cpu: 200m
memory: 200Mi
podMonitorNamespaceSelector: {}
podMonitorNamespaceSelector: { }
podMonitorSelector:
matchLabels:
app.kubernetes.io/component: monitoring
grafana:
defaultDashboardsEnabled: false
adminPassword: flux
kube-state-metrics:
collectors: []
collectors: [ ]
extraArgs:
- --custom-resource-state-only=true
rbac:
Expand All @@ -60,12 +60,29 @@ spec:
- alerts
- providers
- receivers
verbs: ["list", "watch"]
verbs: [ "list", "watch" ]
customResourceState:
enabled: true
config:
spec:
resources:
- groupVersionKind:
group: helm.toolkit.fluxcd.io
version: "v2beta1"
kind: HelmRelease
metricNamePrefix: gotk
metrics:
- name: "helmrelease_revision_info"
help: "The revision information of a HelmRelease resource."
each:
type: Info
info:
labelsFromPath:
revision: [ status, lastAppliedRevision ]
labelsFromPath:
name: [ metadata, name ]
exported_namespace: [ metadata, namespace ]
chart_name: [spec, chart, spec, chart]
- &metric
groupVersionKind:
group: source.toolkit.fluxcd.io
Expand All @@ -79,10 +96,10 @@ spec:
type: Info
info:
labelsFromPath:
name: [metadata, name]
name: [ metadata, name ]
labelsFromPath:
exported_namespace: [metadata, namespace]
ready: [status, conditions, "[type=Ready]", status]
exported_namespace: [ metadata, namespace ]
ready: [ status, conditions, "[type=Ready]", status ]
- <<: *metric
groupVersionKind:
group: source.toolkit.fluxcd.io
Expand Down

0 comments on commit af7a93a

Please sign in to comment.