Prometheus is an open-source systems monitoring and alerting toolkit with a dimensional data model, flexible query language, efficient time series database and modern alerting approach.
Grafana is a multi-platform open-source analytics and interactive visualization web application that provides charts, graphs, and alerts for the web when connected to supported data sources.
Zerops recipe for Prometheus + Grafana includes a monitoring stack with PostgreSQL DB and automated backups.
You can either click the deploy button to deploy directly on Zerops, or manually copy the import yaml to the import dialog in the Zerops app.
- Prometheus running on a Zerops Alpine service with automatic snapshots
- Grafana running on a Zerops Alpine service with dashboard support
- Zerops PostgreSQL 17 service as Grafana database
- Zerops Object Storage service for automated data backups
- Utilization of a Zerops built-in environment variables system
Base of the recipe is ready for production, the difference comes down to:
- Use a highly available version of the PostgreSQL database (change
mode
fromNON_HA
toHA
in recipe YAML,db
service section)
If you want to modify your existing Prometheus + Grafana setup to efficiently run on Zerops, these are the general steps we took:
- Add zerops.yml to your repository. Our example includes installation of specified versions, automated backups and health checks.
- Configure Grafana to use PostgreSQL as a database backend instead of SQLite for better performance and reliability.
- Set up automated Prometheus data snapshots and restores with object storage backups every hour.
Grafana admin login for this recipe is admin
with automatically generated password,
which can be found under GF_SECURITY_ADMIN_PASSWORD
name in the Zerops Environment variables section of grafana
service.
Need help setting your project up? Join Zerops Discord community.