startDelaySeconds: 0
ssl: false
lowercaseOutputName: false
lowercaseOutputLabelNames: false
rules:
- pattern: "kafka.producer<type=producer-metrics, client-id=([^>]+)><>([^:]+)"
  name: "kafka_producer_metrics_$2"
  type: GAUGE
  labels:
    client: "$1"
- pattern: "kafka.producer<type=producer-node-metrics, client-id=([^>]+), node-id=([^>]+)><>([^:]+)"
  name: "kafka_producer_node_metrics_$3"
  type: GAUGE
  labels:
    client: "$1"
    node: "$2"
- pattern: "kafka.producer<type=producer-topic-metrics, client-id=([^>]+), topic=([^>]+)><>([^:]+)"
  name: "kafka_producer_topic_metrics_$3"
  type: GAUGE
  labels:
    client: "$1"
    topic: "$2"
- pattern: "kafka.connect<type=connect-worker-metrics>([^:]+):"
  name: "kafka_connect_worker_metrics_$1"
  type: GAUGE
- pattern: "kafka.connect<type=connect-metrics, client-id=([^:]+)><>([^:]+)"
  name: "kafka_connect_metrics_$2"
  type: GAUGE
  labels:
    client: "$1"
- pattern: "debezium.([^:]+)<type=connector-metrics, context=([^,]+), server=([^,]+), key=([^>]+)><>RowsScanned"
  name: "debezium_metrics_RowsScanned"
  type: GAUGE
  labels:
    plugin: "$1"
    name: "$3"
    context: "$2"
    table: "$4"
- pattern: "debezium.([^:]+)<type=connector-metrics, server=([^,]+), task=([^,]+), context=([^,]+), database=([^>]+)>([^:]+)"
  name: "debezium_metrics_$6"
  type: GAUGE
  labels:
    plugin: "$1"
    name: "$2"
    task: "$3"
    context: "$4"
    database: "$5"
- pattern: "debezium.([^:]+)<type=connector-metrics, server=([^,]+), task=([^,]+), context=([^>]+)>([^:]+)"
  name: "debezium_metrics_$5"
  type: GAUGE
  labels:
    plugin: "$1"
    name: "$2"
    task: "$3"
    context: "$4"
- pattern: "debezium.([^:]+)<type=connector-metrics, context=([^,]+), server=([^>]+)>([^:]+)"
  name: "debezium_metrics_$4"
  type: GAUGE
  labels:
    plugin: "$1"
    name: "$3"
    context: "$2"
