Files
2023-11-08 17:50:51 +01:00

797 B

Prometheus Latency Exporter

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")

Configuration Example

services:
  - name: pytest
    host: 127.0.0.1
    port: 8000

  - name: redis-test
    host: 127.0.0.1
    port: 6379
    type: redis

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