Exporter for metrics from mikrotik devices (via SSH) https://prometheus.io/
targets:
- name: router1510
address: 192.168.0.1
user: prom
password: topsecret # if you want password auth
identity: /home/username/.ssh/id_rsa # if you want pubkey auth
features:
optics: false
opticsWithNoLink: false
system: false
dhcp: false
ospf: false
The global setting identity
points to a SSH private key used for
public key authentication.
You have to use an absolute or relative path; you can not use a path
relative to $HOME starting with tilde (~/...
).
If both identity
is set globally and password
is set for a given
target, both authentication methods are tried, starting with pubkey
auth.
Name | Description | Default |
---|---|---|
version | Print version information. | |
web.listen-address | Address on which to expose metrics and web interface. | :9436 |
web.telemetry-path | Path under which to expose metrics. | /metrics |
config-file | Path to config file | |
debug | Show verbose debug output | false |
go get -u github.com/lwlcom/mikrotik_exporter
./mikrotik_exporter -config-file config.yml
This software uses components of the following projects
- Prometheus Go client library (https://github.com/prometheus/client_golang)
(c) Martin Poppen, 2018. Licensed under MIT license.