apiVersion: v1
kind: ConfigMap
metadata:
  name: telegraf-configORDINAL
data:
  telegraf.conf: |+
    [[outputs.influxdb]]
      urls = ["$INFLUXDB_URL"]
      database = "$INFLUXDB_DB"
      username = "$INFLUXDB_USER"
      password = "$INFLUXDB_USER_PASSWORD"

    [global_tags]
      env = "${ENV}"
    [agent]
      hostname = "BROKER_NAME"
      interval = "5s"
      round_interval = true
      metric_batch_size = 1000
      metric_buffer_limit = 10000
      collection_jitter = "0s"
      flush_interval = "10s"
      flush_jitter = "2s"
      precision = ""
      debug = false
      quiet = false
      logfile = ""

    [[inputs.prometheus]]
      ## An array of urls to scrape metrics from.
      urls = [RABBITMQ_SCRAPE_URLS]
      interval = "30s"
      response_timeout = "25s"
    