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 Query API

The Query API from Thanos — 2 operation(s) for query.

Thanos Query 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 Query. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, a JSON-LD context, and 2 JSON Schemas.

This API exposes 4 operations across 2 paths, and defines 5 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.

4 operations 2 paths 5 schemas 2 GET2 POST

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 4

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

Query 4
GET
/api/v1/query
Evaluate an Instant Query
instantQuery 7 params → 200400422503
POST
/api/v1/query
Evaluate an Instant Query (POST)
instantQueryPost body → 200400
GET
/api/v1/query_range
Evaluate a Range Query
rangeQuery 9 params → 200400422
POST
/api/v1/query_range
Evaluate a Range Query (POST)
rangeQueryPost body → 200400

Schemas 5

The contract defines 5 schemas that model the data the API accepts and returns. The most detailed are ErrorResponse (4 properties), QueryResponse (3 properties), VectorResult (2 properties), MatrixResult (2 properties). Each schema is shown below with its type and property counts.

MatrixResult
object
2 properties
ErrorResponse
object
4 properties 3 required
VectorResult
object
2 properties
QueryResponse
object
3 properties 2 required
ScalarResult
array
[timestamp, value] pair for scalar results

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

thanos-query-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 Remote Write API
Thanos Rules API
Thanos Stores API
Thanos Targets API