Skip to content

Commit

Permalink
Merge pull request #122 from stoader/metric_relabeling
Browse files Browse the repository at this point in the history
Support metric relabeling
  • Loading branch information
weeco authored Oct 19, 2021
2 parents f5c6af4 + a09adb0 commit e0d6dc5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charts/kminion/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ spec:
honorLabels: {{ .Values.serviceMonitor.honorLabels }}
scrapeTimeout: {{ .Values.serviceMonitor.scrapeTimeout }}
interval: {{ .Values.serviceMonitor.interval }}
{{- if .Values.serviceMonitor.relabelings }}
relabelings:
{{ toYaml .Values.serviceMonitor.relabelings | nindent 6 }}
{{- end }}
{{- if .Values.serviceMonitor.targetLabels}}
targetLabels:
{{- toYaml .Values.serviceMonitor.targetLabels | nindent 4}}
Expand Down
7 changes: 7 additions & 0 deletions charts/kminion/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,13 @@ serviceMonitor:
honorLabels: false
scrapeTimeout: 10s
interval: 15s
relabelings: []
# - sourceLabels: [__meta_kubernetes_pod_label_my_label]
# separator: ;
# regex: (.*)
# targetLabel: my_label
# replacement: $1
# action: replace

# For DaemonSet mode you may set daemonset to "true" and replicaCount to 0.
daemonset:
Expand Down

0 comments on commit e0d6dc5

Please sign in to comment.