apiVersion: v1
kind: ConfigMap
metadata:
  name: mysql-collector
  namespace: 1-3-3-wavefront-collector
  annotations:
    wavefront.com/discovery-config: 'true'
data:
  collector.yaml: |
    plugins:
    - name: mysql
      type: telegraf/mysql
      selectors:
        images:
        - "docker.io/bitnami/mysql*"
        namespaces:
        - default
      port: 3306
      collection:
        interval: "20s"
      conf: |
        servers = ["root:password123@tcp(mysql-release.default.svc.cluster.local:3306)/?tls=false"]
        perf_events_statements_digest_text_limit  = 120
        perf_events_statements_limit              = 250
        perf_events_statements_time_limit         = 86400
        table_schema_databases                    = []
        gather_process_list                       = true
        gather_table_io_waits                     = true
        gather_table_lock_waits                   = true
        gather_index_io_waits                     = true
        gather_event_waits                        = true
        gather_file_events_stats                  = true
        interval_slow                             = "30m"
