Metrics

Enable or disable OTLP metric ingestion for a deployment.

Changed on

When enabled=true, seeds the default container alert rules for the deployment via [temps_alarms::seed_default_container_rules] (idempotent).

patch/deployments/{id}/metrics/enable

Request

  • Base URL
    /api (relative, and the document was published on a file host, not at the API’s origin)
  • Auth
    HTTP bearer

Path parameters

idinteger required

Deployment ID

Request body

enabledboolean required

Whether to enable (true) or disable (false) metric ingestion.

pathstring nullable

Prometheus scrape path (optional, defaults to /metrics).

portinteger nullable

Prometheus scrape port (optional).

Response

Metrics toggle applied

Changes