naftiko: 1.0.0-alpha2 info: label: CockroachDB Cloud API — MetricExport description: 'CockroachDB Cloud API — MetricExport. 9 operations. Lead operation: Get CloudWatch metric export configuration. Self-contained Naftiko capability covering one Cockroach Labs business surface.' tags: - Cockroach Labs - MetricExport created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: COCKROACH_LABS_API_KEY: COCKROACH_LABS_API_KEY capability: consumes: - type: http namespace: cloud-metricexport baseUri: https://cockroachlabs.cloud description: CockroachDB Cloud API — MetricExport business capability. Self-contained, no shared references. resources: - name: api-v1-clusters-cluster_id-metricexport-cloudwatch path: /api/v1/clusters/{cluster_id}/metricexport/cloudwatch operations: - name: getcloudwatchmetricexportinfo method: GET description: Get CloudWatch metric export configuration outputRawFormat: json outputParameters: - name: result type: object value: $. - name: enablecloudwatchmetricexport method: POST description: Enable CloudWatch metric export outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: deletecloudwatchmetricexport method: DELETE description: Disable CloudWatch metric export outputRawFormat: json outputParameters: - name: result type: object value: $. - name: api-v1-clusters-cluster_id-metricexport-datadog path: /api/v1/clusters/{cluster_id}/metricexport/datadog operations: - name: getdatadogmetricexportinfo method: GET description: Get Datadog metric export configuration outputRawFormat: json outputParameters: - name: result type: object value: $. - name: enabledatadogmetricexport method: POST description: Enable Datadog metric export outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: deletedatadogmetricexport method: DELETE description: Disable Datadog metric export outputRawFormat: json outputParameters: - name: result type: object value: $. - name: api-v1-clusters-cluster_id-metricexport-prometheus path: /api/v1/clusters/{cluster_id}/metricexport/prometheus operations: - name: getprometheusmetricexportinfo method: GET description: Get Prometheus metric export configuration outputRawFormat: json outputParameters: - name: result type: object value: $. - name: enableprometheusmetricexport method: POST description: Enable Prometheus metric export outputRawFormat: json outputParameters: - name: result type: object value: $. - name: deleteprometheusmetricexport method: DELETE description: Disable Prometheus metric export outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.COCKROACH_LABS_API_KEY}}' exposes: - type: rest namespace: cloud-metricexport-rest port: 8080 description: REST adapter for CockroachDB Cloud API — MetricExport. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/api/v1/clusters/{cluster-id}/metricexport/cloudwatch name: api-v1-clusters-cluster-id-metricexport-cloudwatch description: REST surface for api-v1-clusters-cluster_id-metricexport-cloudwatch. operations: - method: GET name: getcloudwatchmetricexportinfo description: Get CloudWatch metric export configuration call: cloud-metricexport.getcloudwatchmetricexportinfo outputParameters: - type: object mapping: $. - method: POST name: enablecloudwatchmetricexport description: Enable CloudWatch metric export call: cloud-metricexport.enablecloudwatchmetricexport with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletecloudwatchmetricexport description: Disable CloudWatch metric export call: cloud-metricexport.deletecloudwatchmetricexport outputParameters: - type: object mapping: $. - path: /v1/api/v1/clusters/{cluster-id}/metricexport/datadog name: api-v1-clusters-cluster-id-metricexport-datadog description: REST surface for api-v1-clusters-cluster_id-metricexport-datadog. operations: - method: GET name: getdatadogmetricexportinfo description: Get Datadog metric export configuration call: cloud-metricexport.getdatadogmetricexportinfo outputParameters: - type: object mapping: $. - method: POST name: enabledatadogmetricexport description: Enable Datadog metric export call: cloud-metricexport.enabledatadogmetricexport with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletedatadogmetricexport description: Disable Datadog metric export call: cloud-metricexport.deletedatadogmetricexport outputParameters: - type: object mapping: $. - path: /v1/api/v1/clusters/{cluster-id}/metricexport/prometheus name: api-v1-clusters-cluster-id-metricexport-prometheus description: REST surface for api-v1-clusters-cluster_id-metricexport-prometheus. operations: - method: GET name: getprometheusmetricexportinfo description: Get Prometheus metric export configuration call: cloud-metricexport.getprometheusmetricexportinfo outputParameters: - type: object mapping: $. - method: POST name: enableprometheusmetricexport description: Enable Prometheus metric export call: cloud-metricexport.enableprometheusmetricexport outputParameters: - type: object mapping: $. - method: DELETE name: deleteprometheusmetricexport description: Disable Prometheus metric export call: cloud-metricexport.deleteprometheusmetricexport outputParameters: - type: object mapping: $. - type: mcp namespace: cloud-metricexport-mcp port: 9090 transport: http description: MCP adapter for CockroachDB Cloud API — MetricExport. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-cloudwatch-metric-export-configuration description: Get CloudWatch metric export configuration hints: readOnly: true destructive: false idempotent: true call: cloud-metricexport.getcloudwatchmetricexportinfo outputParameters: - type: object mapping: $. - name: enable-cloudwatch-metric-export description: Enable CloudWatch metric export hints: readOnly: false destructive: false idempotent: false call: cloud-metricexport.enablecloudwatchmetricexport with: body: tools.body outputParameters: - type: object mapping: $. - name: disable-cloudwatch-metric-export description: Disable CloudWatch metric export hints: readOnly: false destructive: true idempotent: true call: cloud-metricexport.deletecloudwatchmetricexport outputParameters: - type: object mapping: $. - name: get-datadog-metric-export-configuration description: Get Datadog metric export configuration hints: readOnly: true destructive: false idempotent: true call: cloud-metricexport.getdatadogmetricexportinfo outputParameters: - type: object mapping: $. - name: enable-datadog-metric-export description: Enable Datadog metric export hints: readOnly: false destructive: false idempotent: false call: cloud-metricexport.enabledatadogmetricexport with: body: tools.body outputParameters: - type: object mapping: $. - name: disable-datadog-metric-export description: Disable Datadog metric export hints: readOnly: false destructive: true idempotent: true call: cloud-metricexport.deletedatadogmetricexport outputParameters: - type: object mapping: $. - name: get-prometheus-metric-export-configuration description: Get Prometheus metric export configuration hints: readOnly: true destructive: false idempotent: true call: cloud-metricexport.getprometheusmetricexportinfo outputParameters: - type: object mapping: $. - name: enable-prometheus-metric-export description: Enable Prometheus metric export hints: readOnly: false destructive: false idempotent: false call: cloud-metricexport.enableprometheusmetricexport outputParameters: - type: object mapping: $. - name: disable-prometheus-metric-export description: Disable Prometheus metric export hints: readOnly: false destructive: true idempotent: true call: cloud-metricexport.deleteprometheusmetricexport outputParameters: - type: object mapping: $.