Getting data from a Ubiquiti Edge Router #1034
Unanswered
jslegers73
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi guys,
After trying LibreNMS I wanted to try Prometheus / snmp_exporter to monitor my Ubiquiti Router and Access Point. I want to use docker for this.
Here is a part of my docker-compose.yml file :
node-exporter:
image: 'prom/node-exporter:latest'
container_name: node-exporter
network_mode: host
pid: host
volumes:
- '/:/host:ro,rslave'
restart: always
prometheus:
image: prom/prometheus:latest
container_name: prometheus
ports:
- '9090:9090'
user: "0"
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
- ./prometheus:/prometheus
restart: always
snmp-exporter:
container_name: snmp-exporter
image: prom/snmp-exporter
restart: always
This is how my prometheus.yml file looks like :
global:
scrape_interval: 5s
external_labels:
monitor: 'node'
scrape_configs:
static_configs:
static_configs:
static_configs:
metrics_path: /snmp
params:
auth: [jsl-home-com]
module: [if_mib]
relabel_configs:
target_label: __param_target
target_label: instance
replacement: snmp-exporter:9116 # The SNMP exporter's real hostname:port.
My community string is jsl-home-com. When I go to the Prometheus site and open targets I get a server returned HTTP status 400 Bad Request on both IP's.
What am I doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions