apiVersion: v1
data:
  config.yaml: |2

    extensions:
      health_check:

    receivers:
      metadb/datadog:
        collection_interval: 30s
        integration:
          provider_type: ["DATADOG"]
      metadb/newrelic:
        collection_interval: 15s
        integration:
          provider_type: ["NEWRELIC"]

    processors:
      thanosquery:
        timeout: 15s
      cumulativetodelta:
        include:
          metrics:
            - tidb_cloud.node_cpu_seconds_total
          match_type: strict

    exporters:
      multidatadog:
        timeout: 15s
      multinewrelic:
        timeout: 15s

    service:
      pipelines:
        metrics/datadog:
          receivers: [metadb/datadog]
          processors: [thanosquery]
          exporters: [multidatadog]
        metrics/newrelic:
          receivers: [metadb/newrelic]
          processors: [thanosquery, cumulativetodelta]
          exporters: [multinewrelic]

      extensions: [health_check]

      telemetry:
        logs:
          level: info
kind: ConfigMap
metadata:
  name: metrics-pipeline-conf
  namespace: prod-ms
