User Tools

Site Tools


prometheus_grafana

This is an old revision of the document!


Grafana Prometheus

A list of available exporters:

https://prometheus.io/docs/instrumenting/exporters/

Gitlab included Exporter

Install using go:

go get github.com/prometheus/mysqld_exporter

Run exporters on boot using supervisord

Apache Exporter

/etc/supervisor/conf.d/apache_exporter.conf
[program:apache_exporter]
command=/root/go/bin/apache_exporter -insecure -scrape_uri "http://localhost/server-status/?auto"
autostart=yes
autorestart=yes
startretries=3
stderr_logfile=/var/log/prometheus_exporter/apache_exporter.err.log
stdout_logfile=/var/log/prometheus_exporter/apache_exporter.log
user=www-data

MySQL Exporter

/etc/supervisor/conf.d/mysql_exporter.conf
[program:mysql_exporter]
command=/root/go/bin/mysqld_exporter --config.my-cnf /etc/mysql/debian.cnf
autostart=yes
autorestart=yes
startretries=3
stderr_logfile=/var/log/prometheus_exporter/mysql_exporter.err.log
stdout_logfile=/var/log/prometheus_exporter/mysql_exporter.log
user=root # don't run this process as root

Grafana-rrd-server - https://github.com/doublemarket/grafana-rrd-server

/etc/supervisor/conf.d/grafana-rrd-server.conf
[program:grafana-rrd-server]
command=/root/go/bin/grafana-rrd-server -r /var/lib/munin/KnallimallOrg/
autostart=yes
autorestart=yes
startretries=3
stderr_logfile=/var/log/prometheus_exporter/grafana-rrd-server.err.log
stdout_logfile=/var/log/prometheus_exporter/grafana-rrd-server.log
user=root # don't run this process as root

Grafana Dashboards

See Grafana website for available dashboards: https://grafana.com/dashboards

prometheus_grafana.1547304077.txt.gz · Last modified: 2019/01/12 15:41 by admin