Detailed dashboard for monitoring of Ubiquiti EdgeRouters via SNMP.
The Telegraf collector configuration is MIB-based so all of the required MIBs will need to be available for the collector to perform the needed translations. Most SNMP distributions available on most platforms already provide these. This configuration uses the "new" SNMP plugin for Telegraf, so SNMP monitoring must be enabled in the EdgeOS configurations. The 'agents' list in the configuration is of the actual EdgeRouters themselves.
The included Telegraf:SNMP plugin configuration depends upon a feature (flag 'index_as_tag') that is not part of the released Telegraf 1.2. Several collected object tables leverage a non-accessible index, such as to identify the IP Version for the statistics in each row. The actual index is the sub-id for each table element, of which the Telegraf:SNMP plugin does not currently make available as a field or tag. However this capability (PR #2366 ) has been added/merged to the latest Telegraf source targeted for the next formal release.
There are three options for the interim until the next formal release:
- Wait for a formal release of Telegraf with the needed support. The noted PR is tagged for the Telegraf v1.3 milestone.
- Use a current nightly build, if available.
- Build custom version of Telegraf using the github influxdata/telegraf master branch. This is actually a straightforward and relatively easy process.
- Enable SNMP monitoring on your EdgeRouters via EdgeOS BUI or CLI.
- Merge the included
telegraf-inputs.conf
with your local Telegraf instance configuration (or create a new instance)- Edit the SNMP 'community' string as appropriate
- Edit the 'agents' list to include all of your monitored EdgeRouters
- If you do not already have an InfluxDB output configured in your Telegraf instance:
- Merge the included
telegraf-outputs.conf
with your local Telegraf instance configuration: - Edit the URL to your new InfluxDB instance
- Edit the username and password for this InfluxDB instance as appropriate
- Merge the included
- Restart Telegraf
- Import the included
ubnt-edgerouter-dashboard.json
as a new dashboard into your local Grafana instance
As with any SNMP-based monitoring solution with EdgeRouters, IP forwarding statistics will not reflect packets that have been hardware-offloaded.
ubnt-edgerouter-dashboard.json
:
Actual Grafana dashboard (no edits required)telegraf-inputs.conf
:
Telegraf input configuration for use with this dashboard (edits required)telegraf-outputs.conf
:
Optional Telegraf output configuration for use with this dashboard (edits required)
This dashboard is also available at https://grafana.net/dashboards/1756, including screenshots.