
Prometheus
CertifiedTasks that query Prometheus and push custom metrics.
Provide the Prometheus server URL and PromQL queries to fetch time-series data or use the pushgateway settings to publish metrics; triggers can poll PromQL results and start flows when conditions match.
Prometheus
Tasks that query Prometheus and push custom metrics.
Provide the Prometheus server URL and PromQL queries to fetch time-series data or use the pushgateway settings to publish metrics; triggers can poll PromQL results and start flows when conditions match.
tasks
How to use the Prometheus plugin
Query metrics from Prometheus and push metrics to Pushgateway from Kestra flows.
Authentication
Set url on each task to your Prometheus or Pushgateway endpoint. For basic auth, set username and password. Pass additional HTTP headers via headers. Store secrets in secrets and apply connection properties globally with plugin defaults.
Tasks
Query runs an instant PromQL query set in query against the Prometheus server at url (default http://localhost: 9090). Optionally set time for a specific evaluation timestamp (RFC3339 or Unix). Control result handling with fetchType: NONE (default), FETCH, FETCH_ONE, or STORE.
Push sends metrics to Pushgateway at url (default http://localhost: 9091) — set job as the Prometheus job label and metrics as a list of metric objects, each with name, value, and optional labels. Optionally set instance to add an instance label.
Trigger polls Prometheus on a schedule (default 60 seconds) with a PromQL query and starts one execution when results are non-empty.