Skip to content

lwlcom/mikrotik_exporter

Repository files navigation

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

License

(c) Martin Poppen, 2018. Licensed under MIT license.

Prometheus

see https://prometheus.io/

About

Exporter for metrics from mikrotik devices (via SSH) to use with https://prometheus.io/

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages