Skip to content

Commit

Permalink
Merge pull request #148 from scoof/improvement-metricrelabelings
Browse files Browse the repository at this point in the history
improvement: support relabelings in ServiceMonitor
  • Loading branch information
skamboj authored Nov 11, 2024
2 parents d1c6047 + 98bee8c commit 02065cf
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name ?= goldpinger
version ?= v3.10.1
version ?= v3.10.2
bin ?= goldpinger
pkg ?= "github.com/bloomberg/goldpinger"
tag = $(name):$(version)
Expand Down
4 changes: 2 additions & 2 deletions charts/goldpinger/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
name: goldpinger
appVersion: "3.10.1"
version: 1.0.0
appVersion: "3.10.2"
version: 1.0.1
description: Goldpinger is a tool to help debug, troubleshoot and visualize network connectivity and slowness issues.
home: https://github.com/bloomberg/goldpinger
sources:
Expand Down
4 changes: 4 additions & 0 deletions charts/goldpinger/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ spec:
{{- if .Values.serviceMonitor.honorLabels }}
honorLabels: true
{{- end }}
{{- with .Values.serviceMonitor.metricRelabelings }}
metricRelabelings:
{{- toYaml . | nindent 8 }}
{{- end }}
jobLabel: name
namespaceSelector:
matchNames:
Expand Down
4 changes: 4 additions & 0 deletions charts/goldpinger/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,10 @@ serviceMonitor:
# namespace: monitoring
interval: 30s
# honorLabels: true
metricRelabelings: []
# - action: drop
# source_labels: [__name__]
# regex: goldpinger_peers_response_time_s_bucket

## Custom PrometheusRule to be defined
## ref: https://github.com/coreos/prometheus-operator#customresourcedefinitions
Expand Down

0 comments on commit 02065cf

Please sign in to comment.