Files
unpoller_unpoller/examples/up.json.example
T
Cody Lee 65ad210f20 feat: add UniFi Protect device metrics (closes #1015)
Collects Protect device data (sensors, cameras, lights, bridges, link
stations, NVR) via the official Integration API and exports it through
Prometheus, InfluxDB, and DataDog. Opt-in via save_protect_devices,
gated by protect_api_key.

Bumps github.com/unpoller/unifi to v6, which added the Protect API
client (breaking change: FlexInt/FlexBool/FlexFloat replace nullable
pointers).
2026-08-19 15:14:43 -05:00

117 lines
2.7 KiB
JSON

{
"poller": {
"debug": false,
"quiet": false,
"plugins": [],
"log_unknown_types": false
},
"prometheus": {
"disable": false,
"http_listen": "0.0.0.0:9130",
"ssl_cert_path": "",
"ssl_key_path": "",
"report_errors": false,
"interval": "60s"
},
"influxdb": {
"disable": false,
"url": "http://127.0.0.1:8086",
"user": "unifipoller",
"pass": "unifipoller",
"db": "unifi",
"verify_ssl": false,
"interval": "30s",
"tags": {
"customer": "abc_corp",
"env": "prod"
}
},
"webserver": {
"enable": false,
"port": 37288,
"html_path": "/usr/local/lib/unpoller/web",
"ssl_cert_path": "",
"ssl_key_path": "",
"max_events": 200,
"accounts": {
"captain": "$2a$04$mxw6i0LKH6u46oaLK2cq5eCTAAFkfNiRpzNbz.EyvJZZWNa2FzIlS"
}
},
"datadog": {
"enable": false,
"address": "localhost:8125",
"namespace": "",
"tags": [
"customer:abcde"
]
},
"unifi": {
"dynamic": false,
"defaults": {
"user": "unifipoller",
"pass": "unifipoller",
"url": "https://127.0.0.1:8443",
"sites": ["all"],
"timeout": "60s",
"save_ids": false,
"save_events": false,
"save_alarms": false,
"save_anomalies": false,
"save_protect_logs": false,
"protect_thumbnails": false,
"save_protect_devices": false,
"protect_api_key": "unifiprotectapikey",
"save_dpi": false,
"save_sites": true,
"hash_pii": false,
"verify_ssl": false,
"default_site_name_override": "My Custom Default Site"
},
"controllers": [
{
"user": "unifipoller",
"pass": "unifipoller",
"url": "https://127.0.0.1:8443",
"sites": ["all"],
"save_ids": false,
"save_events": false,
"save_alarms": false,
"save_anomalies": false,
"save_protect_logs": false,
"protect_thumbnails": false,
"save_protect_devices": false,
"protect_api_key": "unifiprotectapikey",
"save_dpi": false,
"save_sites": true,
"hash_pii": false,
"verify_ssl": false
}
]
},
"unas": {
"//": "UNAS Pro consoles. JSON cannot carry comments, so this section ships off: it shows the shape, and setting enable to true with a real url turns it on.",
"enable": false,
"defaults": {
"user": "unpoller",
"pass": "",
"verify_ssl": false,
"timeout": "60s"
},
"devices": [
{
"url": "https://192.168.1.10",
"user": "unpoller",
"pass": "unpoller",
"verify_ssl": false,
"timeout": "60s"
}
]
}
}