Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Telegraf: Consider setting HOSTNAME using kubernetes downward api #620

Open
Altair-Bueno opened this issue Dec 20, 2023 · 0 comments
Open

Comments

@Altair-Bueno
Copy link

Altair-Bueno commented Dec 20, 2023

Expected behaviour

Telegraf uses the pod name as hostname by using the Kubernetes Downward API. This can be latter used as an unique and human understandable indentifier on multiple plugins, like client id's in Kafka producers and consumers.

Current behaviour

Hostname is manually set by using the env key on Telegraf values. By default, the env variable is set to "telegraf-polling-service", which is shared among all replicas.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant