influxdata / influxdata/helm-charts
Telegraf: Consider setting HOSTNAME using kubernetes downward api
- Dominant language
- Mustache
- Stars
- 257
- Forks
- 347
- Avg merge
- 4d 20h
- Merged PRs (30d)
- 9
Description
### Expected behaviour
Telegraf uses the pod name as hostname by using the [Kubernetes Downward API](https://kubernetes.io/docs/concepts/workloads/pods/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.
Contributor guide
Research direction
Start by tracing the Helm chart's pod environment configuration and rendered Kubernetes manifests, focusing on how the HOSTNAME value is currently set. Verify that the rendered deployment uses the Kubernetes Downward API to expose each pod name and that replicas receive distinct, human-readable hostnames.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- helm, kubernetes
- Domain
- devops, infrastructure
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100