You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The wireguard version that I use (from open media vault) creates for each client its own config.file
Is there a way too define multiple config files for PROMETHEUS_WIREGUARD_EXPORTER_CONFIG_FILE_NAMES?
With the docker-compose I get this error
[2024-10-11T09:38:54Z WARN prometheus_exporter_base] internal server error == failed to read peer config file
Caused by:
No such file or directory (os error 2)
This is how my docker-compose looks like
version: '3.9'
services:
prometheus-wireguard-exporter:
image: mindflavor/prometheus-wireguard-exporter
container_name: wgexporter
command: -a true
cap_add:
- NET_ADMIN
network_mode: host
ports:
- '9586:9586'
volumes:
- type: bind
source: /etc/wireguard/wgnet_client1.conf
target: /etc/wireguard/wgnet_client1.conf
- type: bind
source: /etc/wireguard/wgnet_client2.conf
target: /etc/wireguard/wgnet_client2.conf
environment:
- PROMETHEUS_WIREGUARD_EXPORTER_EXPORT_REMOTE_IP_AND_PORT_ENABLED=true
- PROMETHEUS_WIREGUARD_EXPORTER_CONFIG_FILE_NAMES=/etc/wireguard/wgnet_client1.conf;/etc/wireguard/wgnet_client2.conf
- EXPORT_LATEST_HANDSHAKE_DELAY=true
logging:
driver: "json-file"
options:
tag: "{{.ImageName}}|{{.Name}}|{{.ImageFullID}}|{{.FullID}}"
Thank you!
The text was updated successfully, but these errors were encountered:
The wireguard version that I use (from open media vault) creates for each client its own config.file
Is there a way too define multiple config files for PROMETHEUS_WIREGUARD_EXPORTER_CONFIG_FILE_NAMES?
With the docker-compose I get this error
[2024-10-11T09:38:54Z WARN prometheus_exporter_base] internal server error == failed to read peer config file
Caused by:
No such file or directory (os error 2)
This is how my docker-compose looks like
version: '3.9'
services:
prometheus-wireguard-exporter:
image: mindflavor/prometheus-wireguard-exporter
container_name: wgexporter
command: -a true
cap_add:
- NET_ADMIN
network_mode: host
ports:
- '9586:9586'
volumes:
- type: bind
source: /etc/wireguard/wgnet_client1.conf
target: /etc/wireguard/wgnet_client1.conf
- type: bind
source: /etc/wireguard/wgnet_client2.conf
target: /etc/wireguard/wgnet_client2.conf
environment:
- PROMETHEUS_WIREGUARD_EXPORTER_EXPORT_REMOTE_IP_AND_PORT_ENABLED=true
- PROMETHEUS_WIREGUARD_EXPORTER_CONFIG_FILE_NAMES=/etc/wireguard/wgnet_client1.conf;/etc/wireguard/wgnet_client2.conf
- EXPORT_LATEST_HANDSHAKE_DELAY=true
logging:
driver: "json-file"
options:
tag: "{{.ImageName}}|{{.Name}}|{{.ImageFullID}}|{{.FullID}}"
Thank you!
The text was updated successfully, but these errors were encountered: