-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathnetbird-exporter.service
More file actions
41 lines (35 loc) · 1003 Bytes
/
Copy pathnetbird-exporter.service
File metadata and controls
41 lines (35 loc) · 1003 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
[Unit]
Description=NetBird API Exporter
Documentation=https://github.com/matanbaruch/netbird-api-exporter
Wants=network-online.target
After=network-online.target
[Service]
Type=simple
User=netbird-api-exporter
Group=netbird-api-exporter
ExecStart=/usr/local/bin/netbird-api-exporter
Restart=always
RestartSec=5
StandardOutput=journal
StandardError=journal
SyslogIdentifier=netbird-api-exporter
# Security settings
NoNewPrivileges=yes
ProtectSystem=strict
ProtectHome=yes
ProtectKernelTunables=yes
ProtectKernelModules=yes
ProtectControlGroups=yes
RestrictRealtime=yes
RestrictNamespaces=yes
# Environment
Environment=NETBIRD_API_URL=https://api.netbird.io
Environment=LISTEN_ADDRESS=:8080
Environment=METRICS_PATH=/metrics
Environment=LOG_LEVEL=info
# Set your NetBird API token here or use a separate environment file
# Environment=NETBIRD_API_TOKEN=your_token_here
# Alternative: Load environment from file
# EnvironmentFile=/etc/netbird-api-exporter/config
[Install]
WantedBy=multi-user.target