list_targets
List Prometheus scrape targets with health status, last error, and scrape duration. Filter to only unhealthy targets to quickly diagnose scrape failures.
Instructions
Show scrape targets with health, last error and scrape duration.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_targets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| only_unhealthy | No | Show only targets that are not up. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |