Prometheus & Grafana
The combination of Prometheus and Grafana is a common stack used by Nym team for internal monitoring as well as by core community operators like ExploreNym or No Trust Verify.
Prometheus
Prometheus is a free and open source monitoring systems. It allows operators to have their metrics, events, and alerts under full control. This ecosystem offers multiple advantages:
- collects and records metrics from servers, containers, and applications
- provides a flexible query language (PromQL)
- multiple modes visualization tools
- an alerting mechanism that sends notifications
Prometheus collects and stores its metrics as time series data, i.e. metrics information is stored with the timestamp at which it was recorded, alongside optional key-value pairs called labels.
Grafana
Grafana is an open-source analytics and interactive front end. It is widely used for its easy to manage dashboards with visualizations like graphs, charts and alerts, all connected to live data sources.
Setup Guides
There are various ways how to setup this stack. You can chose based on your preferences to do your own flow or follow some of the documented ones:
- ExploreNYM scripts for self-hosted monitoring
- Setup monitoring in a Docker container (detailed guide will be published soon)
References and further reading
- Prometheus release page
- Prometheus documentation
- Installation guide to install Prometheus on Ubuntu by cherryservers
- Grafana installation guide
- Nym’s script
prom_targets.py
- a python program to request data from API and can be plugged to this stack