This program collects metrics from Unifi AC Lite WiFi access points, and presents them in Prometheus format. There is no need to run the UniFi Network Application as the metrics are collected directly from the access points.
The program expects a configuration file in YAML format:
global:
port: 9130 # optional
accesspoints:
- name: my-access-point
username: admin
password: secret # optional
keyfile: ssh-private-key-file # optional
- name: my-other-access-point
...Either a password or an SSH private keyfile is needed. The password is the
one that can be configured using the smartphone app. Configuring the access
point to use an SSH key is left to your Google skills.
The name of the accesspoint is used as a label on all metrics, for
identification and correlation purposes.
$ docker run \
--detach \
--rm \
--name unif-ap-exporter \
--publish 9130:9130 \
--workdir /work \
--volume $(pwd)/unifi-ap-exporter.yaml:/work/unifi-ap-exporter.yaml \
--volume $(pwd)/sshkey:/work/sshkey \
ghcr.io/robinelfrink/unifi-ap-exporter:latest- This program has been tested with UAP-AC-Lite devices running firmware version 6.6.77.
- Output metrics are compatible with those of Unpoller as much as possible.