Metrics

Enable or disable OTLP metric ingestion for a deployment.

When enabled=true, seeds the default container alert rules for the deployment via [temps_monitoring::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)
  • URL: /api/deployments/{id}/metrics/enable
  • 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

No recorded changes to this operation across all 53 revisions of this API.