Git Product home page Git Product logo

hade's Introduction

Haproxy Autodiscovery Exporter (hade)

auto discovery all haproxy docker containers by url, and run official prometheus/haproxy-exporter process for all haproxy nodes with alias by ip or dns name fo rancher

version: '2'
services:
  haproxy-exporter:
    image: quay.io/prometheus/haproxy-exporter
    entrypoint:
      - /bin/sh
    command:
      - -c
      - cp /bin/haproxy_exporter /exec/haproxy_exporter
    volumes:
      - /exec
  hade:
    image: negash/hade
    volumes_from:
      - haproxy-exporter
    environment:
      - DOMAIN=http://haproxy.service.dc1.consul:9000/?stats;csv
    ports:
      - 9101:9101

if you use rancher add environment RESOLVE_TYPE=rancher for hade and example domain DOMAIN=http://https.lb.rancher.internal:9000/?stats;csv

Work with this grafana dashboard

  - job_name: 'all_loadbalancers'
    static_configs:
      - targets: ['hade_dns_name:9101']

hade's People

Contributors

negashev avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

hade's Issues

Usage in Rancher

Hi @Negashev ,

thanks for this project. Comes in really handy for me, but I recognized some mistakes in the Readme, if one wants to use this with Rancher.

  • underscores are not allowed in Rancher -> instead of haproxy_exporter use haproxy-exporter
  • volumes_from in Rancher makes only sense, when haproxy-exporter is used as a sidekick
  • the haproxy url should not contain a ? but instead the url should be http://https.lb.rancher.internal:9000/stats;csv (it looks strange, but this is the way haproxy provides stats information as csv :D)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.