Familiarize with Prometheus (and elasticsearch)
stefanbschneider opened this issue · comments
- Basic idea and structure of Prometheus DB
- How to query data from Prometheus DB
- With elasticsearch?
- Integration with Python, eg, via this package?
- How to visualize query results? Any existing tools/dashboards that can be reused?
Prometheus seems to integrate well with Grafana (linked from the Prometheus page), which provides nice dashboard for any data coming from Prometheus + alerting with notifications:
- Prometheus visualization with Grafana: https://prometheus.io/docs/visualization/grafana/
- Grafana Docker deployment: http://docs.grafana.org/installation/docker/
- Dockerhub: https://hub.docker.com/r/grafana/grafana/
- Configuration with simple
.ini
file: http://docs.grafana.org/installation/configuration/ - Provisioning files specify which dashboard to use and to which DB to connect: http://docs.grafana.org/administration/provisioning/
- Dashboards are based on JSON configs: http://docs.grafana.org/reference/dashboard/
- Grafana also provides alerting with notifications according to custom rules: http://docs.grafana.org/alerting/rules/
Given the nice integration with Grafana, it seems to be the better choice compared to elasticsearch. In fact, it seems like there is only an inofficial exporter to export elasticsearch results to Prometheus - so wrong direction.