Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Thanos Rules API

The Rules API from Thanos — 2 operation(s) for rules.

Thanos Rules API is one of 10 APIs that Thanos publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

This API exposes 2 JSON Schema definitions.

Tagged areas include Rules. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, a JSON-LD context, and 2 JSON Schemas.

This API exposes 2 operations across 2 paths, and defines 6 schemas. It is described by OpenAPI 3.1.0, at version 0.35.0.

Requests are made against a single base URL, http://localhost:10902.

2 operations 2 paths 6 schemas 2 GET

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
0.35.0
Base URL
http://localhost:9090
License
Resource Areas
1

Paths & Operations 2

Across 2 paths, the API surfaces 2 operations — 2 GET. Each is listed below with its method, path, parameters, and response codes.

Rules 2
GET
/api/v1/rules
Get Alerting and Recording Rules
getRules 3 params → 200
GET
/api/v1/alerts
Get Active Alerts
getAlerts 1 param → 200

Schemas 6

The contract defines 6 schemas that model the data the API accepts and returns. The most detailed are AlertingRule (12 properties), RecordingRule (8 properties), Alert (5 properties), RuleGroup (5 properties). Each schema is shown below with its type and property counts.

RuleGroup
object
5 properties
RecordingRule
object
8 properties
AlertingRule
object
12 properties
Alert
object
5 properties
RulesResponse
object
2 properties 2 required
AlertsResponse
object
2 properties 2 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

thanos-rules-api-openapi.yml Raw ↑

Other APIs Thanos publishes across the network.

Thanos Alerts API
Thanos Blocks API
Thanos Health API
Thanos Metadata API
Thanos Metrics API
Thanos Query API
Thanos Remote Write API
Thanos Stores API
Thanos Targets API