Skip to content

Commit

Permalink
add relabelings for external hostname
Browse files Browse the repository at this point in the history
  • Loading branch information
djajcevic committed Jun 3, 2024
1 parent eb80557 commit 19e6528
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
apiVersion: v2
name: external-service-monitor
version: 1.0.0
version: 1.1.0
4 changes: 4 additions & 0 deletions templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ spec:
{{- range $scrape := .Values.scrape }}
- port: {{ $.Values.targetService.scheme }}
scheme: {{ $.Values.targetService.scheme }}
relabelings:
- action: replace
replacement: "{{ $.Values.targetService.hostname }}:{{ $.Values.targetService.port }}"
targetLabel: __address__
tlsConfig:
insecureSkipVerify: {{ $.Values.targetService.insecureSkipVerify }}
{{ toYaml $scrape | indent 6 }}
Expand Down

0 comments on commit 19e6528

Please sign in to comment.