run_check
Execute a predefined Prometheus monitoring check to analyze system metrics and resource usage over a specified time range with customizable filters.
Instructions
Run one allowlisted check via Prometheus query_range and return summarized results.
Inputs:
check_id: required check id from
domain.checks.CHECKS.hours/minutes/days: relative lookback window.
start_time_utc_iso/end_time_utc_iso: absolute UTC range (if provided, this is used).
end_offset_minutes/end_offset_hours/end_offset_days: shift end time to the past.
step: range-query step (example:
1m,5m,15m).include_samples: include raw samples in each series summary.
server_name: label filter for
server_name.instance: label filter for
instance(example:host-or-ip:9100). Use this when targeting one exact exporter endpoint.environment/env_hint: environment selector (
environmenthas higher priority).
Filter behavior:
If both
server_nameandinstanceare provided, both filters are applied.If only one is provided, only that label is applied.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| check_id | Yes | ||
| hours | No | ||
| minutes | No | ||
| days | No | ||
| step | No | 5m | |
| include_samples | No | ||
| start_time_utc_iso | No | ||
| end_time_utc_iso | No | ||
| end_offset_minutes | No | ||
| end_offset_hours | No | ||
| end_offset_days | No | ||
| server_name | No | ||
| instance | No | ||
| environment | No | ||
| env_hint | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |