Skip to content

Latest commit

 

History

History
49 lines (30 loc) · 1.74 KB

readme.md

File metadata and controls

49 lines (30 loc) · 1.74 KB

HAProxy for InfluxDB v2

Provided by: Ignacio Van Droogenbroeck

This dashboard help you get metrics of your HAProxy instance.

Dashboard Screenshot

Quick Install

InfluxDB UI

In the InfluxDB UI, go to Settings->Templates and enter this URL: https://raw.githubusercontent.com/influxdata/community-templates/master/haproxy/haproxy.yml

Influx CLI

If you have your InfluxDB credentials configured in the CLI, you can install this template with:

influx apply -u https://raw.githubusercontent.com/influxdata/community-templates/master/haproxy/haproxy.yml

Included Resources

- 1 Telegraf: `haproxy-config`
- 1 Dashboards: `haproxy`
- 1 Bucket: `haproxy`
- 1 Label: `haproxy`

Setup Instructions

General instructions on using InfluxDB Templates can be found in the use a template document.

Telegraf Configuration requires the following environment variables
- `INFLUX_TOKEN` - The token with the permissions to read Telegraf configs and write data to the `telegraf` bucket. You can just use your operator token to get started.
- `INFLUX_ORG` - The name of your Organization.
- `INFLUX_HOST` - The host where run InfluxDB

In order to use this template, you need to specify the HAProxy instance, if you have one to monitor, you can pass as variable the name and port of the host. Ex $ export haproxy_stats=http://localhost:10000/stats If you have more instances of HAProxy I recommend you to edit the haproxy.yml to add others hosts.

Contact

Author: Ignacio Van Droogenbroeck

Email: ignacio[at]vandroogenbroeck[dot]net

Github and Gitlab user: @xe-nvdk

Influx Slack: Ignacio Van Droogenbroeck