Skip to content

Commit

Permalink
Merge pull request #40 from techops-services/graph-metrics
Browse files Browse the repository at this point in the history
Add metricRelabelings to graph serviceMonitor
  • Loading branch information
eskp authored Oct 7, 2024
2 parents 9e71b60 + a493754 commit aaef8c2
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/graphprotocol-node/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: graphprotocol-node
description: A Helm chart for Graph Protocol Nodes
type: application
version: 0.1.24
version: 0.1.25
keywords:
- graphprotocol
- ethereum
Expand Down
8 changes: 8 additions & 0 deletions charts/graphprotocol-node/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,12 @@ spec:
{{- include "graphprotocol-node.selectorLabels" . | nindent 6 }}
endpoints:
- port: metrics
{{- if .Values.monitoring.serviceMonitor.metricRelabelings }}
metricRelabelings:
{{- range .Values.monitoring.serviceMonitor.metricRelabelings }}
- action: {{ .action }}
regex: {{ .regex }}
sourceLabels: {{ .sourceLabels | toJson }}
{{- end }}
{{- end }}
{{- end -}}
5 changes: 5 additions & 0 deletions charts/graphprotocol-node/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@ role: "query-node"
monitoring:
enabled: false
labels: "prometheus"
serviceMonitor: {}
# metricRelabelings:
# - action: drop
# regex: foo_bar
# sourceLabels: [__name__]

ingress:
enabled: false
Expand Down

0 comments on commit aaef8c2

Please sign in to comment.