Download OpenAPI specification:Download
This project enhances the native Prometheus HTTP API by providing additional features and addressing its limitations. Running as a sidecar alongside the Prometheus server enables users to extend the capabilities of the API.
Creates a new rule with a randomly generated filename
file | string (File) Default: "" |
data | object (Data) Default: {} |
Creates Prometheus recording rule with the name ExampleRecordingRule
{- "data": {
- "groups": [
- {
- "name": "ExampleRecordingRule",
- "rules": [
- {
- "record": "code:prometheus_http_requests_total:sum",
- "expr": "sum by (code) (prometheus_http_requests_total)"
}
]
}
]
}
}
[- {
- "status": "success",
- "file": "example-rule.yml",
- "message": "The rule was created successfully"
}
]
Creates a new rule file with the provided filename
file required | string (File) |
recreate | string (Recreate) Default: "false" |
file | string (File) Default: "" |
data | object (Data) Default: {} |
Creates Prometheus recording rule with the name ExampleRecordingRule
{- "data": {
- "groups": [
- {
- "name": "ExampleRecordingRule",
- "rules": [
- {
- "record": "code:prometheus_http_requests_total:sum",
- "expr": "sum by (code) (prometheus_http_requests_total)"
}
]
}
]
}
}
[- {
- "status": "success",
- "message": "The rule was created successfully"
}
]