Thanos · Capability

Thanos Store Gateway API — Metrics

Thanos Store Gateway API — Metrics. 1 operations. Lead operation: Thanos Prometheus Metrics. Self-contained Naftiko capability covering one Thanos business surface.

Run with Naftiko ThanosMetrics

What You Can Do

GET
Getstoremetrics — Thanos Prometheus Metrics
/v1/metrics

MCP Tools

thanos-prometheus-metrics

Thanos Prometheus Metrics

read-only idempotent

Capability Spec

store-gateway-metrics.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Thanos Store Gateway API — Metrics
  description: 'Thanos Store Gateway API — Metrics. 1 operations. Lead operation: Thanos Prometheus Metrics. Self-contained
    Naftiko capability covering one Thanos business surface.'
  tags:
  - Thanos
  - Metrics
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    THANOS_API_KEY: THANOS_API_KEY
capability:
  consumes:
  - type: http
    namespace: store-gateway-metrics
    baseUri: http://localhost:10902
    description: Thanos Store Gateway API — Metrics business capability. Self-contained, no shared references.
    resources:
    - name: metrics
      path: /metrics
      operations:
      - name: getstoremetrics
        method: GET
        description: Thanos Prometheus Metrics
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
  exposes:
  - type: rest
    namespace: store-gateway-metrics-rest
    port: 8080
    description: REST adapter for Thanos Store Gateway API — Metrics. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/metrics
      name: metrics
      description: REST surface for metrics.
      operations:
      - method: GET
        name: getstoremetrics
        description: Thanos Prometheus Metrics
        call: store-gateway-metrics.getstoremetrics
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: store-gateway-metrics-mcp
    port: 9090
    transport: http
    description: MCP adapter for Thanos Store Gateway API — Metrics. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: thanos-prometheus-metrics
      description: Thanos Prometheus Metrics
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: store-gateway-metrics.getstoremetrics
      outputParameters:
      - type: object
        mapping: $.