Skip to main content

Logo Prometheus

About​

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

CLI args​

Various operations aspects can be set in the command line. To adjust Prometheus command line options, edit /app/data/env.sh using the File manager and adjust cli_options variable as needed. For example:

env.sh
export cli_options="--storage.tsdb.retention.time=25d --storage.tsdb.path=/app/data/storage"

Restart the app after making any changes.

Custom config​

Add custom config in /app/data/config/prometheus.yml using the File manager.

Restart the app after making any changes.

Accessing the HTTP API endpoint​

From the official prometheus.io/docs most examples use the URL http://localhost:9090/api/v1/. For the Cloudron app https is used and the port :9090 needs to be left out.

As an example our Prometheus is running at pm.demo.cloudron.io and we want to use Prometheus in Grafana. Then we need to use the full https://pm.demo.cloudron.io URL and basic auth.