2023-11-09 11:48:27 +01:00
2023-11-08 16:48:18 +01:00
2023-11-09 11:46:47 +01:00
2023-11-09 11:46:47 +01:00
2023-10-25 15:31:18 +02:00
2023-11-09 11:46:47 +01:00
2023-10-25 15:31:18 +02:00
2023-11-09 11:48:27 +01:00

Prometheus Latency Exporter

Features

Available checks:

  • TCP
  • ICMP
  • Redis
  • MySQL

Build

Requirements:

  • git
  • go
  • make
git clone https://git.rznet.fr/tchivert/prometheus-latency-exporter.git
cd prometheus-latency-exporter
make

Usage:

latency-exporter --help
Usage of latency-exporter:
  -a string
        address to use (default "0.0.0.0")
  -c string
        configuration file to use (default "config.yml")
  -i int
        time interval in seconds between two checks (default 30)
  -p string
        port to run on (default "9062")
  -d
        enable debug logs

Configuration Example

services:
  # TCP Check
  - name: pytest
    host: 127.0.0.1
    port: 8000

  # Host Ping Check
  - name: server-test
    host: 10.9.0.2
    type: host

  # Redis Check
  - name: redis-test
    host: 127.0.0.1
    port: 6379
    type: redis

  # MySQL Check
  - name: mysql-test
    host: 127.0.0.1
    port: 3306
    type: mysql
    username: prometheus
    password: changeme

To perform host ping checks with an unprivileged user on Linux, you will need to execute the following command first:

sudo sysctl -w net.ipv4.ping_group_range="0 2147483647"

Or just run it as root.

For more info: ip-sysctl documentation

Acknowledgments

Description
No description provided
Readme MIT 41 KiB
v0.3 Latest
2023-11-09 10:51:43 +00:00
Languages
Go 85.8%
Makefile 8.2%
Dockerfile 6%