Skip to content

Commit

Permalink
[fix] Empty label is not allowed in Prometheus (#2349)
Browse files Browse the repository at this point in the history
  • Loading branch information
borissavelev authored Jan 11, 2024
1 parent 77e0b53 commit a614582
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions embed/templates/config/prometheus.yml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -376,8 +376,10 @@ scrape_configs:
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
{{- if .BlackboxAddr}}
- target_label: __address__
replacement: '{{.BlackboxAddr}}'
{{- end}}
{{- range $addr := .BlackboxExporterAddrs}}
- job_name: "blackbox_exporter_{{$addr}}_icmp"
scrape_interval: 6s
Expand Down

0 comments on commit a614582

Please sign in to comment.