All SkillsGet Started Free
Prometheus
Query and interact with Prometheus HTTP API for monitoring data. Use when Claude needs to query Prometheus metrics, execute PromQL queries, retrieve targets/alerts/rules status, access metadata about series/labels, manage TSDB operations, or troubleshoot monitoring infrastructure. Supports instant queries, range queries, metadata endpoints, admin APIs, and alerting information.
MCP get_skill({ skillId: "prometheus-b89ec583" })Use this skill with your agent
Create a free account and connect via MCP
# Prometheus API Skill
Query Prometheus monitoring systems via HTTP API at `/api/v1`.
## Quick Reference
### Instant Query
```bash
curl 'http://<prometheus>:9090/api/v1/query?query=<promql>&time=<timestamp>'
```
### Range Query
```bash
curl 'http://<prometheus>:9090/api/v1/query_range?query=<promql>&start=<ts>&end=<ts>&step=<duration>'
```
## Response Format
All responses return JSON:
```json
{
"status": "success" | "error",
"data": <result>,
"errorType": "<string>",
"error": "<string>",
"warnings": ["<string>"]
}
```
HTTP codes: `400` (bad params), `422` (expression error), `503` (timeout).
## Query Endpoints
| Endpoint | Purpose | Key Parameters |
|----------|---------|----------------|
| `/api/v1/query` | Instant query | `query`, `time`, `timeout`, `limit` |
| `/api/v1/query_range` | Range query | `query`, `start`, `end`, `step`, `timeout`, `limit` |
| `/api/v1/format_query` | Format PromQL | `query` |
| `/api/v1/series` | Find series by labels | `match[]`, `start`, `end`, `limit` |
| `/api/v1/labels` | List label names | `start`, `end`, `match[]`, `limit` |
| `/api/v1/label/<name>/values` | Label values | `start`, `end`, `match[]`, `limit` |
| `/api/v1/query_exemplars` | Query exemplars | `query`, `start`, `end` |
## Metadata & Status Endpoints
| Endpoint | Purpose |
|----------|---------|#broad-capability#devops#azure#kubernetes#productivity#monitoring#observabilitypythoncurlprometheus