Skip to content

robinelfrink/unifi-ap-exporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prometheus metrics exporter for the Unifi AC Lite series access points

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.

Usage

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.

Running with Docker

$ 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

Compatibility

  • 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.

About

Unifi Access Point Prometheus Exporter

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages