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

The Targets API from Thanos — 1 operation(s) for targets.

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

This API exposes 1 operation across 1 path, and defines 3 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.

1 operations 1 paths 3 schemas 1 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 1

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

Targets 1
GET
/api/v1/targets
Get Current Target Discovery
getTargets 2 params → 200

Schemas 3

The contract defines 3 schemas that model the data the API accepts and returns. The most detailed are ActiveTarget (9 properties), TargetsResponse (2 properties), DroppedTarget (1 property). Each schema is shown below with its type and property counts.

TargetsResponse
object
2 properties 2 required
DroppedTarget
object
1 property
ActiveTarget
object
9 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

thanos-targets-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 Rules API
Thanos Stores API