influxdata / tick-charts

A repository for Helm Charts for the full TICK Stack
Apache License 2.0
90 stars 74 forks source link

Telegraf with multiple replicas #79

Open amartorelli opened 5 years ago

amartorelli commented 5 years ago

Hi, I was wondering if it'd be possible to run multiple replicas of Telegraf to ensure high availability within the Kubernetes cluster. The change for the chart should be very straightforward, but I'm not sure if there's a reason why it may not be supported.

Thanks

gianarb commented 5 years ago

I think this really depends on how you use telegraf and wich plugin, for example, if you use the http one that exposes a compatible influxdb API it is safe to run more of them because you will pick one. But if you configure 2 telegraf with the Prometheus input plugin they will scrape both the same metrics and you will end up with data duplication.

What's your use case?

amartorelli commented 5 years ago

In my case I'm using it as a statsd endpoint which then pushes to influxdb. I think it'd be nice to have the option to run multiple replicas in the chart. Then who doesn't need it can just stick to the default of 1 replica.