Added comment to peer config for prometheus exporter

This commit is contained in:
Dmytro Bondar 2024-09-20 11:55:41 +02:00
parent 0e88dc07b2
commit 1a63705f86
No known key found for this signature in database
GPG Key ID: C123CD37BBED8BB7

View File

@ -60,6 +60,8 @@ PostDown = {{ .Interface.PostDown }}
{{range .Peers}}
{{- if not .IsDisabled}}
[Peer]
{{/* `friendly_name` used by https://github.com/MindFlavor/prometheus_wireguard_exporter */ -}}
# friendly_name = {{ .DisplayName }}
# -WGP- Peer: {{.Identifier}}
# -WGP- Created: {{.CreatedAt}}
# -WGP- Updated: {{.UpdatedAt}}
@ -86,4 +88,4 @@ Endpoint = {{ .Endpoint.GetValue }}
PersistentKeepalive = {{ .PersistentKeepalive.GetValue }}
{{- end}}
{{- end}}
{{end}}
{{end}}