Prometheus

Prometheus is an open-source systems monitoring and alerting toolkit.

Installation

Guides for Installing Prometheus

Installation

Prometheus on Windows

Installation

Prometheus on Ubuntu

Installation

Prometheus in Docker

Quick Deployment:

prometheus.yml direct bind:

docker run -p 9090:9090 -v /tmp/prometheus.yml:/etc/prometheus/prometheus.yml prom/prometheus

Volume to host config file:

docker run -p 9090:9090 -v /prometheus-data prom/prometheus --config.file=/prometheus-data/prometheus.yml

You will want to change /tmp/prometheus.yml to match your setup!


Docker Hub page: https://hub.docker.com/r/prom/prometheus

Install Docs: https://prometheus.io/docs/prometheus/latest/installation/

Config Docs: https://prometheus.io/docs/prometheus/latest/configuration/configuration/

Configuration

Prometheus specific configurations. Not to be confused with exporter configurations.

Prometheus Exporters

A series of guides for how to use Prometheus Exporters to obtain data.

Prometheus Exporters

Pi-hole Exporter

Exporter Github: https://github.com/eko/pihole-exporter


This guide isn't going to re-do the steps located on the Github page as they are pretty self explanatory. Basically deploy the docker container version with the correct pi-hole config and then update your prometheus.yml config file for Prometheus with a new scrape job against the pi-hole exporter.

This exporter can also be combined with the InfluxDB script found here.