Skip to content

dyemi6075/mtr-exporter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mtr_exporter

simple exporter for mtr stats for prometheus.

Version v0.1.0

  • v0.1.0 runs the mtr command asynchron in the background and provide the data in a more prometheus like way

Getting Started

To run it:

./mtr_exporter [flags]

Help on flags:

./mtr_exporter --help

Usage

In order to work you need to install the mtr package for your dirstribution eg Ubuntu:

sudo apt-get install mtr-tiny

In the config file you can define mtr arguments you want to use and the hosts you want to trace against.

Then simply run the exporter with the config file. This file can be in the same directory(standard location with name mtr.yaml) or somewhere else in the filesystem.

./mtr_exporter -config.file mtr.yaml

if you want to run it as non root under linux you must add the cap_net_raw capability for the mtr binary

sudo setcap cap_net_raw+ep /usr/bin/mtr

Building

make build

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 96.8%
  • Dockerfile 3.2%