naftiko: 1.0.0-alpha2 info: label: Fluent Bit Monitoring HTTP API — Metrics description: 'Fluent Bit Monitoring HTTP API — Metrics. 4 operations. Lead operation: Internal metrics (v1, JSON). Self-contained Naftiko capability covering one Fluent Bit business surface.' tags: - Fluent Bit - Metrics created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: FLUENT_BIT_API_KEY: FLUENT_BIT_API_KEY capability: consumes: - type: http namespace: monitoring-metrics baseUri: http://127.0.0.1:2020 description: Fluent Bit Monitoring HTTP API — Metrics business capability. Self-contained, no shared references. resources: - name: api-v1-metrics path: /api/v1/metrics operations: - name: get method: GET description: Internal metrics (v1, JSON) outputRawFormat: json outputParameters: - name: result type: object value: $. - name: api-v1-metrics-prometheus path: /api/v1/metrics/prometheus operations: - name: get method: GET description: Internal metrics (v1, Prometheus) outputRawFormat: json outputParameters: - name: result type: object value: $. - name: api-v2-metrics path: /api/v2/metrics operations: - name: get method: GET description: Internal metrics (v2, cmetrics) outputRawFormat: json outputParameters: - name: result type: object value: $. - name: api-v2-metrics-prometheus path: /api/v2/metrics/prometheus operations: - name: get method: GET description: Internal metrics (v2, Prometheus) outputRawFormat: json outputParameters: - name: result type: object value: $. exposes: - type: rest namespace: monitoring-metrics-rest port: 8080 description: REST adapter for Fluent Bit Monitoring HTTP API — Metrics. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/api/v1/metrics name: api-v1-metrics description: REST surface for api-v1-metrics. operations: - method: GET name: get description: Internal metrics (v1, JSON) call: monitoring-metrics.get outputParameters: - type: object mapping: $. - path: /v1/api/v1/metrics/prometheus name: api-v1-metrics-prometheus description: REST surface for api-v1-metrics-prometheus. operations: - method: GET name: get description: Internal metrics (v1, Prometheus) call: monitoring-metrics.get outputParameters: - type: object mapping: $. - path: /v1/api/v2/metrics name: api-v2-metrics description: REST surface for api-v2-metrics. operations: - method: GET name: get description: Internal metrics (v2, cmetrics) call: monitoring-metrics.get outputParameters: - type: object mapping: $. - path: /v1/api/v2/metrics/prometheus name: api-v2-metrics-prometheus description: REST surface for api-v2-metrics-prometheus. operations: - method: GET name: get description: Internal metrics (v2, Prometheus) call: monitoring-metrics.get outputParameters: - type: object mapping: $. - type: mcp namespace: monitoring-metrics-mcp port: 9090 transport: http description: MCP adapter for Fluent Bit Monitoring HTTP API — Metrics. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: internal-metrics-v1-json description: Internal metrics (v1, JSON) hints: readOnly: true destructive: false idempotent: true call: monitoring-metrics.get outputParameters: - type: object mapping: $. - name: internal-metrics-v1-prometheus description: Internal metrics (v1, Prometheus) hints: readOnly: true destructive: false idempotent: true call: monitoring-metrics.get outputParameters: - type: object mapping: $. - name: internal-metrics-v2-cmetrics description: Internal metrics (v2, cmetrics) hints: readOnly: true destructive: false idempotent: true call: monitoring-metrics.get outputParameters: - type: object mapping: $. - name: internal-metrics-v2-prometheus description: Internal metrics (v2, Prometheus) hints: readOnly: true destructive: false idempotent: true call: monitoring-metrics.get outputParameters: - type: object mapping: $.