Thanos · Capability

Thanos Receive API — Remote Write

Thanos Receive API — Remote Write. 1 operations. Lead operation: Thanos Ingest Metrics via Prometheus Remote Write. Self-contained Naftiko capability covering one Thanos business surface.

Run with Naftiko ThanosRemote Write

What You Can Do

POST
Remotewrite — Thanos Ingest Metrics via Prometheus Remote Write
/v1/api/v1/receive

MCP Tools

thanos-ingest-metrics-prometheus-remote

Thanos Ingest Metrics via Prometheus Remote Write

Capability Spec

receive-remote-write.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Thanos Receive API — Remote Write
  description: 'Thanos Receive API — Remote Write. 1 operations. Lead operation: Thanos Ingest Metrics via Prometheus Remote
    Write. Self-contained Naftiko capability covering one Thanos business surface.'
  tags:
  - Thanos
  - Remote Write
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    THANOS_API_KEY: THANOS_API_KEY
capability:
  consumes:
  - type: http
    namespace: receive-remote-write
    baseUri: http://localhost:10902
    description: Thanos Receive API — Remote Write business capability. Self-contained, no shared references.
    resources:
    - name: api-v1-receive
      path: /api/v1/receive
      operations:
      - name: remotewrite
        method: POST
        description: Thanos Ingest Metrics via Prometheus Remote Write
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: THANOS-TENANT
          in: header
          type: string
          description: Optional tenant identifier for multi-tenant deployments. Determines which tenant's TSDB the data is
            written to.
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
  exposes:
  - type: rest
    namespace: receive-remote-write-rest
    port: 8080
    description: REST adapter for Thanos Receive API — Remote Write. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/api/v1/receive
      name: api-v1-receive
      description: REST surface for api-v1-receive.
      operations:
      - method: POST
        name: remotewrite
        description: Thanos Ingest Metrics via Prometheus Remote Write
        call: receive-remote-write.remotewrite
        with:
          THANOS-TENANT: rest.THANOS-TENANT
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: receive-remote-write-mcp
    port: 9090
    transport: http
    description: MCP adapter for Thanos Receive API — Remote Write. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: thanos-ingest-metrics-prometheus-remote
      description: Thanos Ingest Metrics via Prometheus Remote Write
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: receive-remote-write.remotewrite
      with:
        THANOS-TENANT: tools.THANOS-TENANT
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.