Update README
This commit is contained in:
parent
d7fb9c391d
commit
0497d33f44
17
README.md
17
README.md
@ -5,10 +5,19 @@ This is Prometheus exporter for Mikrotik routers and switches.
|
|||||||
|
|
||||||
# Usage
|
# Usage
|
||||||
|
|
||||||
Supply `MIKROTIK_USER`, `MIKROTIK_PASSWORD` and comma separated `TARGETS`
|
Supply `MIKROTIK_USER`, `MIKROTIK_PASSWORD` using `.env` file.
|
||||||
as environment variables via `.env` file.
|
Spin up the containers:
|
||||||
Optionally configure `PROMETHEUS_BEARER_TOKEN` for securing the
|
|
||||||
metrics endpoint.
|
```bash
|
||||||
|
docker-compose up --build
|
||||||
|
```
|
||||||
|
|
||||||
|
Wait for targets to be scraped, open up Prometheus to run queries:
|
||||||
|
|
||||||
|
* [rate(mikrotik_interface_rx_bytes[1m])](http://localhost:9090/graph?g0.expr=rate(mikrotik_interface_rx_bytes%5B1m%5D)&g0.tab=0)
|
||||||
|
* [rate(mikrotik_interface_tx_bytes[1m])](http://localhost:9090/graph?g0.expr=rate(mikrotik_interface_tx_bytes%5B1m%5D)&g0.tab=0)
|
||||||
|
* [rate(mikrotik_interface_rx_packets[1m])](http://localhost:9090/graph?g0.expr=rate(mikrotik_interface_rx_packets%5B1m%5D)&g0.tab=0)
|
||||||
|
* [rate(mikrotik_interface_tx_packets[1m])](http://localhost:9090/graph?g0.expr=rate(mikrotik_interface_tx_packets%5B1m%5D)&g0.tab=0)
|
||||||
|
|
||||||
|
|
||||||
# Why not SNMP
|
# Why not SNMP
|
||||||
|
Reference in New Issue
Block a user