Merge pull request #148 from scoof/improvement-metricrelabelings

improvement: support relabelings in ServiceMonitor
This commit is contained in:
skamboj
2024-11-11 09:30:59 -05:00
committed by GitHub
4 changed files with 11 additions and 3 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name ?= goldpinger
version ?= v3.10.1
version ?= v3.10.2
bin ?= goldpinger
pkg ?= "github.com/bloomberg/goldpinger"
tag = $(name):$(version)
+2 -2
View File
@@ -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:
@@ -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:
+4
View File
@@ -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