diff --git a/templates/wg.conf b/templates/wg.conf index 745a92f..a728726 100644 --- a/templates/wg.conf +++ b/templates/wg.conf @@ -1,6 +1,10 @@ # This file was generated using wireguard-ui (https://github.com/ngoduykhanh/wireguard-ui) # Please don't modify it manually, otherwise your change might get replaced. +# friendly_name is used by prometehus_wireguard_exporter to identify a peer. +# More information can be found here: +# https://github.com/MindFlavor/prometheus_wireguard_exporter#friendly-tags + # Address updated at: {{ .serverConfig.Interface.UpdatedAt }} # Private Key updated at: {{ .serverConfig.KeyPair.UpdatedAt }} [Interface] @@ -18,6 +22,7 @@ PostDown = {{ .serverConfig.Interface.PostDown }} # Created at: {{ .Client.CreatedAt }} # Update at: {{ .Client.UpdatedAt }} [Peer] +# friendly_name = {{ .Client.Name }} PublicKey = {{ .Client.PublicKey }} {{if .Client.PresharedKey }}PresharedKey = {{ .Client.PresharedKey }} {{end}}AllowedIPs = {{$first :=true}}{{range .Client.AllocatedIPs }}{{if $first}}{{$first = false}}{{else}},{{end}}{{.}}{{end}}{{range .Client.ExtraAllowedIPs }},{{.}}{{end}}