Categorygithub.com/lwlcom/mikrotik_exporter
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

NameDescriptionDefault
versionPrint version information.
web.listen-addressAddress on which to expose metrics and web interface.:9436
web.telemetry-pathPath under which to expose metrics./metrics
config-filePath to config file
debugShow verbose debug outputfalse

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/

# 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