kubernetes/manifests/telegraf/telegraf-configmap.yaml
---
apiVersion: v1
kind: ConfigMap
metadata:
name: telegraf-configmap
namespace: hm-telegraf
labels:
app.kubernetes.io/name: telegraf
data:
telegraf.conf: |
# https://github.com/influxdata/telegraf/tree/master/plugins/inputs/kafka_consumer
[[inputs.kafka_consumer]]
brokers = ["hm-kafka-kafka-bootstrap.hm-kafka.svc:9092"]
topics = ["hm.motor.avro"]
max_message_len = 1000000
# https://github.com/influxdata/telegraf/tree/master/plugins/parsers/avro
data_format = "avro"
avro_schema_registry = "http://confluent-schema-registry.hm-confluent-schema-registry.svc:8081"
avro_timestamp = "timestamp"
avro_timestamp_format = "unix_ms"
# https://github.com/influxdata/telegraf/tree/master/plugins/outputs/influxdb_v2
[[outputs.influxdb_v2]]
urls = ["http://influxdb.hm-influxdb.svc:8086"]
token = "${INFLUXDB_API_TOKEN}"
organization = "primary"
bucket = "primary"