Thanos · Schema

BlockMeta

Metadata for a single TSDB block managed by the Compactor.

MetricsMonitoringObservabilityPrometheusTime Series Database

Properties

Name Type Description
ulid string Unique identifier for the block.
minTime integer Minimum timestamp in milliseconds for data in this block.
maxTime integer Maximum timestamp in milliseconds for data in this block.
compaction object Compaction metadata tracking the block's compaction history.
thanos object Thanos-specific extensions to block metadata.
View JSON Schema on GitHub

JSON Schema

thanos-blockmeta-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/BlockMeta",
  "title": "BlockMeta",
  "type": "object",
  "description": "Metadata for a single TSDB block managed by the Compactor.",
  "required": [
    "ulid",
    "minTime",
    "maxTime"
  ],
  "properties": {
    "ulid": {
      "type": "string",
      "description": "Unique identifier for the block.",
      "example": "01FHND2RNJHSZ7E7XFPVKH2JG"
    },
    "minTime": {
      "type": "integer",
      "format": "int64",
      "description": "Minimum timestamp in milliseconds for data in this block."
    },
    "maxTime": {
      "type": "integer",
      "format": "int64",
      "description": "Maximum timestamp in milliseconds for data in this block."
    },
    "compaction": {
      "type": "object",
      "description": "Compaction metadata tracking the block's compaction history.",
      "properties": {
        "level": {
          "type": "integer",
          "description": "Compaction level. Raw blocks start at level 1; each compaction pass increments the level."
        },
        "sources": {
          "type": "array",
          "description": "ULIDs of source blocks merged to create this block.",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "thanos": {
      "type": "object",
      "description": "Thanos-specific extensions to block metadata.",
      "properties": {
        "labels": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "External labels identifying the origin of this block."
        },
        "downsample": {
          "type": "object",
          "description": "Downsampling resolution information.",
          "properties": {
            "resolution": {
              "type": "integer",
              "format": "int64",
              "description": "Resolution in milliseconds. 0 for raw, 300000 for 5-minute, 3600000 for 1-hour downsampled data."
            }
          }
        },
        "source": {
          "type": "string",
          "description": "Thanos component that produced this block.",
          "enum": [
            "sidecar",
            "receive",
            "ruler",
            "compactor",
            "unknown"
          ]
        }
      }
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/thanos-blockmeta"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.