modulepackage
0.0.0-20230404141929-447a163a13a7
Repository: https://github.com/lwlcom/mikrotik_exporter.git
Documentation: pkg.go.dev
# README
mikrotik_exporter
Exporter for metrics from mikrotik devices (via SSH) https://prometheus.io/
example config
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.
flags
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 |
Install
go get -u github.com/lwlcom/mikrotik_exporter
Usage
./mikrotik_exporter -config-file config.yml
Third Party Components
This software uses components of the following projects
- Prometheus Go client library (https://github.com/prometheus/client_golang)
License
(c) Martin Poppen, 2018. Licensed under MIT license.
Prometheus
# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author