Skip to content

Commit

Permalink
fix: Correct YAML targets rendering in Prometheus configuration template
Browse files Browse the repository at this point in the history
  • Loading branch information
pcfreak30 committed Dec 28, 2024
1 parent e45aabc commit c8941a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/promster/prometheus.yml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ scrape_configs:
tls_config:
insecure_skip_verify: {{if eq $.TlsInsecure "true"}}true{{else}}false{{end}}
static_configs:
- targets: {{ printf "%#v" .Targets }}
- targets: {{ .Targets }}
labels:
{{- range $key, $value := .Labels }}
{{ $key }}: "{{ $value }}"
Expand Down

0 comments on commit c8941a1

Please sign in to comment.