Static Documentation

Matcher Suggestions API

Version latest · Updated 2026-06-25
Interactive docs View on GitHub

Matcher Suggestions API#

The matcher suggestions endpoint supports the shared matcher editor and can also be used by external administration tools.

GET /api/matchers/suggestions

Authentication is required. The caller must have read access to the selected team.

Query parameters#

ParameterRequiredDefaultDescription
team_idyes—Team used for RBAC and alert sampling
route_idno—Limit the sample to one route
service_idno—Limit the sample to one service
limitno200Recent alerts to inspect, maximum 500
values_limitno20Values returned per matcher name, maximum 50

Example:

GET /api/matchers/suggestions?team_id=4&service_id=12&limit=100

Example response:

{
  "team_id": 4,
  "route_id": null,
  "service_id": 12,
  "sample_size": 37,
  "sample_limit": 100,
  "values_limit": 20,
  "labels": {
    "alertname": ["DiskFull", "HighLatency"],
    "environment": ["production", "staging"],
    "severity": ["critical", "warning"]
  },
  "fields": {
    "source": ["alertmanager"],
    "status": ["firing", "resolved"],
    "priority": ["p1", "p3"]
  }
}

The endpoint returns observed values only. It does not evaluate a matcher or report which alerts would match it.