---
title: "List all monitoring alert rules for an external service."
method: GET
path: "/external-services/{id}/metrics/alert-rules"
tags: ["Metrics"]
---

# List all monitoring alert rules for an external service.

`GET /external-services/{id}/metrics/alert-rules`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/external-services/{id}/metrics/alert-rules`
- Auth: HTTP bearer

## Path parameters

- `id` integer, required

## Response `200`

List of alert rules

- ServiceAlertRuleResponse[]
  - `comparator` string, required
  - `deployment_id` integer, nullable
  - `enabled` boolean, required
  - `for_duration_secs` integer, required
  - `id` integer, required
  - `metric_name` string, required
  - `name` string, required
  - `node_id` integer, nullable: Node the rule is scoped to. `0` is the synthetic control-plane node (see `CONTROL_PLANE_NODE_ID`), which owns the `proxy.*` and `node.*` rules. Exactly one of `service_id`/`deployment_id`/`node_id` is set.
  - `service_id` integer, nullable
  - `severity` string, required
  - `silenced_until` string, nullable
  - `threshold` number, double, required

## Other responses

- `401`: Unauthorized
- `500`: Internal server error

## Changes

- **2026-09-07** `cdc1afae1752`: 1 info
  - added the optional property `items/node_id` to the response with the `200` status
- **2026-09-07** `f7404eb7ac98`: 1 warning
  - removed the optional property `items/node_id` from the response with the `200` status
- **2026-08-18** `bcffda059c0d`: 1 info
  - added the optional property `items/node_id` to the response with the `200` status
- **2026-06-05** `61b7612b2d33`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/external-services/:id/metrics/alert-rules/get.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
