Skip to content

Commit f4c581d

Browse files
committed
fix(flux): update metric name prefix and add label
1 parent cd25fc0 commit f4c581d

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

kubernetes/apps/prometheus/helmrelease.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,15 +98,18 @@ spec:
9898
config:
9999
spec:
100100
resources:
101-
# Flux Controller Deployments - for version information
101+
# Flux Controller Deployments - for dynamic version information
102102
- groupVersionKind:
103103
group: apps
104104
version: v1
105105
kind: Deployment
106-
metricNamePrefix: gotk
106+
metricNamePrefix: flux
107107
labelSelector:
108108
matchLabels:
109109
app.kubernetes.io/part-of: flux
110+
labelsFromPath:
111+
component: [metadata, labels, "app.kubernetes.io/component"]
112+
version: [metadata, labels, "app.kubernetes.io/version"]
110113
metrics:
111114
- name: "controller_info"
112115
help: "Information about Flux controllers including version."
@@ -117,10 +120,7 @@ spec:
117120
name: [metadata, name]
118121
labelsFromPath:
119122
exported_namespace: [metadata, namespace]
120-
controller_name: [metadata, labels, "app.kubernetes.io/component"]
121-
version: [metadata, labels, "app.kubernetes.io/version"]
122123
replicas: [spec, replicas]
123-
available_replicas: [status, availableReplicas]
124124
ready_replicas: [status, readyReplicas]
125125
# Flux Kustomization Resources
126126
- groupVersionKind:

0 commit comments

Comments
 (0)