https://github.com/batmac/nextdns_exporter
prometheus exporter for NextDNS profiles
https://github.com/batmac/nextdns_exporter
metrics nextdns prometheus-exporter
Last synced: about 1 year ago
JSON representation
prometheus exporter for NextDNS profiles
- Host: GitHub
- URL: https://github.com/batmac/nextdns_exporter
- Owner: batmac
- License: mit
- Created: 2022-11-29T12:14:14.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-04-09T13:29:58.000Z (about 1 year ago)
- Last Synced: 2025-04-15T15:12:58.790Z (about 1 year ago)
- Topics: metrics, nextdns, prometheus-exporter
- Language: Go
- Homepage:
- Size: 32.2 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# configuration
```
export NEXTDNS_API_KEY=...
```
# help
```
Usage of ./nextdns_exporter:
-port string
Port to listen on (default "8080")
-profiles string
Comma-separated list of profile IDs to monitor, empty = all
```
# docker
```
docker run -d --rm -p8080:8080 -e NEXTDNS_API_KEY=... batmac/nextdns_exporter
curl localhost:8080/metrics
```
# metrics example
```
# HELP nextdns_protocols_count Number of queries, per protocols
# TYPE nextdns_protocols_count counter
nextdns_protocols_count{profile="374fe1",protocol="DNS-over-HTTPS"} 818182
nextdns_protocols_count{profile="374fe1",protocol="TCP"} 4
nextdns_protocols_count{profile="374fe1",protocol="UDP"} 250161
nextdns_protocols_count{profile="aaf63d",protocol="DNS-over-HTTPS"} 63589
# HELP nextdns_status_count Number of queries, per type
# TYPE nextdns_status_count counter
nextdns_status_count{profile="374fe1",type="allowed"} 1416
nextdns_status_count{profile="374fe1",type="blocked"} 124259
nextdns_status_count{profile="374fe1",type="default"} 940866
nextdns_status_count{profile="374fe1",type="relayed"} 1806
nextdns_status_count{profile="aaf63d",type="blocked"} 18
nextdns_status_count{profile="aaf63d",type="default"} 63571
# HELP nextdns_dnssec_count Number of queries, per validated
# TYPE nextdns_dnssec_count counter
nextdns_dnssec_count{profile="374fe1",validated="false"} 854862
nextdns_dnssec_count{profile="374fe1",validated="true"} 87420
nextdns_dnssec_count{profile="aaf63d",validated="false"} 62384
nextdns_dnssec_count{profile="aaf63d",validated="true"} 1187
```