This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
prometheus_grafana [2019/01/12 14:44] – admin | prometheus_grafana [2019/01/12 15:45] – [Run exporters on boot using supervisord] admin | ||
---|---|---|---|
Line 12: | Line 12: | ||
* PostgreSQL: https:// | * PostgreSQL: https:// | ||
* Redis: https:// | * Redis: https:// | ||
+ | * Runner: https:// | ||
Line 20: | Line 21: | ||
</ | </ | ||
- | ===== Run exporters on boot (could be improved) | + | ===== Run exporters on boot using supervisord |
- | In ''/ | + | Apache Exporter |
- | <code bash> | + | <code bash /etc/supervisor/conf.d/apache_exporter.conf> |
- | /root/go/bin/ | + | [program:apache_exporter] |
- | / | + | command=/ |
- | / | + | autostart=yes |
- | / | + | autorestart=yes |
- | /usr/bin/python3 | + | 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 | ||
+ | |||
+ | <code bash / | ||
+ | [program: | ||
+ | command=/ | ||
+ | autostart=yes | ||
+ | autorestart=yes | ||
+ | startretries=3 | ||
+ | stderr_logfile=/ | ||
+ | stdout_logfile=/ | ||
+ | user=root # don't run this process as root | ||
+ | </ | ||
+ | |||
+ | Grafana-rrd-server - https:// | ||
+ | |||
+ | <code bash / | ||
+ | [program: | ||
+ | command=/ | ||
+ | autostart=yes | ||
+ | autorestart=yes | ||
+ | startretries=3 | ||
+ | stderr_logfile=/ | ||
+ | stdout_logfile=/ | ||
+ | user=root # don't run this process as root | ||
+ | </ | ||
+ | |||
+ | Fail2ban Exporter - https:// | ||
+ | |||
+ | <code bash / | ||
+ | [program: | ||
+ | command=/ | ||
+ | autostart=yes | ||
+ | autorestart=yes | ||
+ | startretries=3 | ||
+ | stderr_logfile=/ | ||
+ | stdout_logfile=/ | ||
+ | user=root # don't run this process as root | ||
+ | </ | ||
+ | |||
+ | |||
+ | Nextcloud Exporter - https:// | ||
+ | |||
+ | <code bash / | ||
+ | [program: | ||
+ | command=/ | ||
+ | autostart=yes | ||
+ | autorestart=yes | ||
+ | startretries=3 | ||
+ | stderr_logfile=/ | ||
+ | stdout_logfile=/ | ||
+ | user=root | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | ===== Grafana Dashboards ===== | ||
+ | |||
+ | See Grafana website for available dashboards: https:// | ||