Lodol Docs

Prometheus

API actions for the Prometheus integration.

Prometheus

Monitor metrics, look up values over time, and check the health of monitored systems.


List alerts

Retrieve active Prometheus alerts and their states.

Response

{
  "alerts": [
    {}
  ],
  "status": "abc123xyz"
}

List monitored targets

List the systems Prometheus monitors (scrape targets) and whether each is healthy.

Parameters

ParameterTypeRequiredDescription
statestringNoFilter targets by state: active or dropped. Leave blank to include all.

Response

{
  "status": "abc123xyz",
  "targets": [
    {}
  ]
}

Query metrics

Run a Prometheus query (PromQL) and get the latest metric values.

Parameters

ParameterTypeRequiredDescription
querystringYesThe Prometheus query (PromQL) to run.
timestringNoThe point in time to check, for example 2026-07-15T09:00:00Z. Leave blank to use the current time.

Response

{
  "result": [
    {}
  ],
  "resultType": "abc123xyz",
  "status": "abc123xyz"
}

Query metrics over time

Run a Prometheus query (PromQL) and get metric values across a time window.

Parameters

ParameterTypeRequiredDescription
querystringYesThe Prometheus query (PromQL) to run.
startstringYesWhen the time window starts, for example 2026-07-15T09:00:00Z.
endstringYesWhen the time window ends, for example 2026-07-15T17:00:00Z.
stepstringYesHow far apart each data point should be, for example 5m for every 5 minutes or 1h for every hour.

Response

{
  "result": [
    {}
  ],
  "resultType": "abc123xyz",
  "status": "abc123xyz"
}

On this page