Skip to content

zethis/AdGuardHome-Exporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AdGuardHome-Exporter

Minimal AdGuardHome-Exporter

How to use it:

  1. Please set env vars Please encode it in B64:
Environment Variable Default Value
ADGUARDHOME_IP localhost
ADGUARDHOME_PORT 5432
ADGUARDHOME_USERNAME none
ADGUARDHOME_PASSWORD none
ADGUARDHOME_PORT 80
ADGUARDHOME_EXPORTER_PORT 9100
  1. Create systemd service:
sudo vim /etc/systemd/system/adguardhome_exporter.service

with this content:

[Unit]
Description=AdGuardHome Exporter Service
After=network.target

[Service]
Type=simple
Restart=always
ExecStart=/usr/bin/python3 /usr/local/bin/aguardhome_exporter.py

[Install]
WantedBy=multi-user.target
  1. Place aguardhome_exporter.py in /usr/local/bin/
sudo mv aguardhome_exporter.py /usr/local/bin/ && chmod +x /usr/local/bin/aguardhome_exporter.py
  1. Start the service
sudo systemctl daemon-reload
sudo systemctl enable adguardhome_exporter.service
sudo systemctl start adguardhome_exporter.service
  1. Check the Status: You can check the status of the service to ensure it's running without errors:
sudo systemctl status adguardhome_exporter.service

About

Minimal AdGuardHome-Exporter

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages