RaymondMouthaan / haproxy-exporter-docker

This is a simple server that scrapes HAProxy stats and exports them via HTTP for Prometheus consumption.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

haproxy-exporter-docker

Build Status This image on DockerHub

This project builds a docker image and adds qemu-arm-static and uses manifest-tool to push manifest list to docker hub.

Architectures

Currently supported architectures:

  • linux-arm32v6
  • linux-arm64v8
  • linux-amd64

Usage

Docker Service

docker \
  service create \
  -p 9101:9101 \
  --name haproxy-exporter \
  raymondmm/haproxy-exporter:latest \
  --haproxy.scrape-uri="http://<username>:<password>@haproxy.example.com/haproxy?stats;csv"

Docker Stack

  haproxy-exporter:
    image: raymondmm/haproxy-exporter
    command:
      - '--haproxy.scrape-uri=http://haproxy.indonesia/admin?stats;csv'
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - /etc/timezone:/etc/TZ:ro
    ports:
      - 9101:9101
    networks:
      - indonesia-net
    deploy:
      restart_policy:
        condition: on-failure

For more details check the official documentation at Prometheus HAProxy-Exporter.

About

This is a simple server that scrapes HAProxy stats and exports them via HTTP for Prometheus consumption.


Languages

Language:Shell 100.0%