apiVersion: v1
kind: ConfigMap
metadata:
  name: telegraf-config
data:
  telegraf.conf: |-
    [[inputs.mysql]]
    servers = ["root:root@tcp(mysql:3306)/?tls=false"]
    metric_version = 2
    name_suffix = "_mysql"

    [[outputs.prometheus_client]]
    listen = ":9126"