---
title: "Ubiquiti EdgeRouter integration | Grafana Cloud documentation"
description: "Learn about Ubiquiti EdgeRouter Grafana Cloud integration."
---

> For a curated documentation index, see [llms.txt](/llms.txt). For the complete documentation index, see [llms-full.txt](/llms-full.txt).

# Ubiquiti EdgeRouter integration for Grafana Cloud

Ubiquiti EdgeRouter dashboard lets you see vital metrics on throughput, errors, and traffic distribution.

This integration includes 1 pre-built dashboard to help monitor and visualize Ubiquiti EdgeRouter metrics.

## Before you begin

You must enable the SNMP service on your router before Grafana Alloy can scrape metrics from it.

You can find details on how to enable SNMP on your router in the official [Ubiquiti support docs](https://help.ui.com/hc/en-us/articles/205223500-EdgeRouter-SNMP).

## Install Ubiquiti EdgeRouter integration for Grafana Cloud

1. In your Grafana Cloud stack, click **Connections** in the left-hand menu.
2. Find **Ubiquiti EdgeRouter** and click its tile to open the integration.
3. Review the prerequisites in the **Configuration Details** tab and set up Grafana Alloy to send Ubiquiti EdgeRouter metrics to your Grafana Cloud instance.
4. Click **Install** to add this integration’s pre-built dashboard to your Grafana Cloud instance, and you can start monitoring your Ubiquiti EdgeRouter setup.

## Configuration snippets for Grafana Alloy

### Advanced mode

The following snippets provide examples to guide you through the configuration process.

To instruct Grafana Alloy to scrape your Ubiquiti EdgeRouter instances, **manually** copy and append the snippets to your alloy configuration file, then follow subsequent instructions.

### Advanced integrations snippets

Alloy ![Copy code to clipboard](/media/images/icons/icon-copy-small-2.svg) Copy

```alloy
prometheus.exporter.snmp "integrations_snmp" {
	config_file = "</path/to/snmp.yml>"

	target "router_1" {
		address     = "<router_1_address>"
		module      = "ubnt_router"
		walk_params = "ubnt_router"
	}

	walk_param "ubnt_router" { }
}

discovery.relabel "integrations_snmp" {
	targets = prometheus.exporter.snmp.integrations_snmp.targets

	rule {
		target_label = "job"
		replacement  = "integrations/ubiquiti-edgerouter"
	}
}

prometheus.scrape "integrations_snmp" {
	targets    = discovery.relabel.integrations_snmp.output
	forward_to = [prometheus.remote_write.metrics_service.receiver]
	job_name   = "integrations/snmp"
}
```

This integrations uses the [prometheus.exporter.snmp](/docs/alloy/latest/reference/components/prometheus.exporter.snmp/) component to generate metrics from a Ubiquiti EdgeRouter instance.

This integration requires a specific module that defines only the SNMP OIDs used by this dashboard.

If you are familiar with the SNMP exporter, and are generating your own configuration for it, you can find the definition for the required `ubnt_router` module [here](https://github.com/grafana/jsonnet-libs/blob/master/ubnt-edgerouter-mixin/snmp_generator/generator.yml).

Otherwise, you can use the pre-generated config which includes only this module [here](https://github.com/grafana/jsonnet-libs/blob/master/ubnt-edgerouter-mixin/snmp_generator/snmp.yml).

In either case, you need to add the path to your fully rendered `snmp.yml` with the `ubnt_router` module or the pre-generated config to the `prometheus.exporter.snmp` component. Note the `config_file` parameter in the provided example snippet.

For the full array of configuration options, refer to the [prometheus.exporter.snmp](/docs/alloy/latest/reference/components/prometheus.exporter.snmp/) component reference documentation.

This exporter must be linked with a [discovery.relabel](/docs/alloy/latest/reference/components/discovery.relabel/) component to apply the necessary relabelings.

For each Ubiquiti EdgeRouter instance to be monitored you must create add a `target` to the `prometheus.exporter.snmp` component, making sure to change `<router_1_address>` to the hostname or IP address of the target router.

## Dashboards

The Ubiquiti EdgeRouter integration installs the following dashboards in your Grafana Cloud instance to help monitor your system.

- Ubiquiti EdgeRouter Overview

**System Identification, Uptime &amp; System, CPU**

**Memory, Interface**

**IP**

## Metrics

The most important metrics provided by the Ubiquiti EdgeRouter integration, which are used on the pre-built dashboard, are as follows:

- hrProcessorLoad
- hrStorageSize
- hrStorageUsed
- hrSystemNumUsers
- hrSystemProcesses
- hrSystemUptime
- icmpMsgStatsInPkts
- icmpMsgStatsOutPkts
- icmpStatsInErrors
- icmpStatsInMsgs
- icmpStatsOutErrors
- icmpStatsOutMsgs
- ifHCInBroadcastPkts
- ifHCInMulticastPkts
- ifHCInOctets
- ifHCInUcastPkts
- ifHCOutBroadcastPkts
- ifHCOutMulticastPkts
- ifHCOutOctets
- ifHCOutUcastPkts
- ifInDiscards
- ifInErrors
- ifInUnknownProtos
- ifNiceName
- ifOutDiscards
- ifOutErrors
- inetCidrRouteNumber
- ipForwardNumber
- ipRoutingDiscards
- ipSystemStatsHCInBcastPkts
- ipSystemStatsHCInDelivers
- ipSystemStatsHCInForwDatagrams
- ipSystemStatsHCInMcastPkts
- ipSystemStatsHCInReceives
- ipSystemStatsHCOutBcastPkts
- ipSystemStatsHCOutForwDatagrams
- ipSystemStatsHCOutMcastPkts
- ipSystemStatsHCOutRequests
- ipSystemStatsHCOutTransmits
- ipSystemStatsInAddrErrors
- ipSystemStatsInDiscards
- ipSystemStatsInHdrErrors
- ipSystemStatsInNoRoutes
- ipSystemStatsInTruncatedPkts
- ipSystemStatsInUnknownProtos
- ipSystemStatsOutDiscards
- ipSystemStatsOutFragCreates
- ipSystemStatsOutFragFails
- ipSystemStatsOutFragOKs
- ipSystemStatsOutFragReqds
- ipSystemStatsOutNoRoutes
- ipSystemStatsReasmFails
- ipSystemStatsReasmOKs
- ipSystemStatsReasmReqds
- laLoadInt
- memAvailReal
- memBuffer
- memCached
- memShared
- memTotalFree
- snmpInGetNexts
- snmpInGetRequests
- snmpInGetResponses
- snmpInPkts
- snmpInTotalReqVars
- snmpOutGetNexts
- snmpOutGetRequests
- snmpOutGetResponses
- snmpOutPkts
- ssCpuRawIdle
- ssCpuRawInterrupt
- ssCpuRawKernel
- ssCpuRawNice
- ssCpuRawSoftIRQ
- ssCpuRawSystem
- ssCpuRawUser
- ssCpuRawWait
- ssIORawReceived
- ssIORawSent
- ssRawContexts
- ssRawInterrupts
- sysContact
- sysDescr
- sysLocation
- sysName
- tcpActiveOpens
- tcpAttemptFails
- tcpCurrEstab
- tcpEstabResets
- tcpInErrs
- tcpInSegs
- tcpOutRsts
- tcpOutSegs
- tcpPassiveOpens
- tcpRetransSegs
- udpInDatagrams
- udpInErrors
- udpNoPorts
- udpOutDatagrams
- up

## Changelog

md ![Copy code to clipboard](/media/images/icons/icon-copy-small-2.svg) Copy

```md
# 1.0.0 - December 2025

* Chore: Fix incorrect semver to 1.0.0. No further changes

# 0.0.3 - September 2023

* New Filter Metrics option for configuring the Grafana Agent, which saves on metrics cost by dropping any metric not used by this integration. Beware that anything custom built using metrics that are not on the snippet will stop working.

# 0.0.2 - May 2023

* Updated prometheus job name to differ from SNMP Integration. No need to update if you are using the old job name.

# 0.0.1 - October 2022

* Initial Release
```

## Cost

By connecting your Ubiquiti EdgeRouter instance to Grafana Cloud, you might incur charges. To view information on the number of active series that your Grafana Cloud account uses for metrics included in each Cloud tier, see [Active series and dpm usage](/docs/grafana-cloud/fundamentals/active-series-and-dpm/) and [Cloud tier pricing](/products/cloud/pricing/).
