This Docker Container scans the Target Network on every request. Nmap has a host timeout with 10 sec. and is configured with two retries.
docker pull docker.pkg.github.com/towipf/nmap_exporter/nmap_exporter:0.2.2arm
docker build -t nmap_exporter .
docker run -p 9042:80 nmap_exporter
docker run -d --name nmap_exporter -p 9042:80 nmap_exporter
docker buildx build --load --platform linux/arm -t nmap_exporter:arm -f arm/Dockerfile .
Todo
Current: hardcoded for 192.168.2.*
nmap_scan{ip="192.168.2.1",hostname="fritz.box"} 1
nmap_scan{ip="192.168.2.42",hostname="device0815"} 1
https://github.com/ToWipf/nmap_exporter/blob/main/panel.json