Netlens exports its numbers in the Prometheus format at /metrics, so you can graph them in Grafana, alert on them elsewhere or keep them for years in your own system.
What is exported
- Devices: how many are online, offline, new or flapping, by type and by group, and one up/down value per device.
- Availability: the share of successful checks over 24 hours, 7 days and 30 days.
- Network interfaces (for devices with a health monitor): traffic received and sent, how full the link is, errors and discards per second, and whether the link is up, per interface.
- Monitored devices: processor, memory, disks, temperatures, uptime, UPS battery and printer supplies.
- Services and sites: service check state and response time, reverse proxy sites, certificate days left.
- Backups, scans and plugins: backup age and state, last scan times, plugin sync state.
- Wi-Fi, internet speed and remote sites: client signal, speed test results, and whether each remote site is reporting.
A read-only token for your monitoring tools
- Open Settings → Users & tokens.
- Choose New API token on a user and give it a name, for example
Prometheus. - Answer OK to Make it read-only. A read-only token can only read, whoever owns it, so it is safe to put in a monitoring system.
- Copy the token. It is shown once.
Prometheus
scrape_configs:
- job_name: netlens
metrics_path: /metrics
scrape_interval: 60s
authorization:
type: Bearer
credentials: nl_your_token_here
static_configs:
- targets: ["netlens.example.com:8080"]
Grafana
Netlens includes a ready-made Grafana dashboard and a one-command set-up in the contrib/grafana folder of the project. The stack folder there starts Prometheus and Grafana with the data source and the dashboard already installed; its README gives the few steps (a read-only API token for Prometheus, then docker compose up -d). To use your own Grafana instead, choose Dashboards → New → Import, upload netlens-dashboard.json and pick your Prometheus data source.

The dashboard has a health gauge and key numbers at the top, then devices and services (with presence timelines), Wi-Fi (airtime, neighbouring networks, signal, channel advice), internet connections, containers, virtual machines and sites, Netlens itself, and the monitored devices (traffic, processor, memory, temperature, disks).




The interface and sensor graphs need a health monitor (SNMP or SSH) on the device: see the health monitoring section of Using Netlens.
Netlens’ own history
Netlens also keeps its own history for two years (raw samples for 7 days, 5-minute averages for 90 days, hourly values after that), so you only need Prometheus if you want the numbers elsewhere.