telegraf/plugins/inputs/cl_kafka_subscriber/sample.conf

49 lines
1.6 KiB
Plaintext

# Generic HTTP write listener
[[inputs.cl_kafka_subscriber]]
## Address to host HTTP listener on
## can be prefixed by protocol tcp, or unix if not provided defaults to tcp
## if unix network type provided it should be followed by absolute path for unix socket
address = "tcp://:8877"
## address = "tcp://:8443"
## Paths to listen to.
path="/api/subscribe"
## Kafka brokers.
brokers = ["localhost:9092"]
## maximum duration before timing out read of the request
# read_timeout = "10s"
## maximum duration before timing out write of the response
# write_timeout = "10s"
## Optional username and password to accept for HTTP basic authentication.
## You probably want to make sure you have TLS configured above for this.
# basic_username = "foobar"
# basic_password = "barfoo"
## Maximum allowed http request body size in bytes.
# max_body_size = "100MB"
## url to call.
call_url="/api/subscribe/feedback"
## maximum duration before timing out call http
# call_timeout = "10s"
## Minimal TLS version accepted by the server
# tls_min_version = "TLS12"
## Set one or more allowed client CA certificate file names to
## enable mutually authenticated TLS connections
# tls_allowed_cacerts = ["/etc/telegraf/clientca.pem"]
## Add service certificate and key
# tls_cert = "/etc/telegraf/cert.pem"
# tls_key = "/etc/telegraf/key.pem"
## Data format to consume.
## Each data format has its own unique set of configuration options, read
## more about them here:
## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
data_format = "sample_binary"