influxdata / influxdata/helm-charts

Multiple Prometheus Client Outputs on Telegraf

Open
#693 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Mustache
Stars
257
Forks
347
Avg merge
4d 20h
Merged PRs (30d)
9

Description

Hello,

I have a requirement to have multiple prometheus_client outputs on telegraf.
The configuration is read properly, it works well and I can curl it from within the pod or from another pod.
The error is the following:
```
Failed sync attempt to : one or more objects failed to apply, reason: Service "telegraf" is invalid: [spec.ports[3].name: Duplicate value: "prometheus-client", spec.ports[4].name: Duplicate value: "prometheus-client"] (retried 5 times).
```
The issue is at the service level: https://github.com/influxdata/helm-charts/blob/master/charts/telegraf/templates/service.yaml#L96-L103

The only issue is with the service manifest, everything else works fine.
How can I proceed with this?

Contributor guide

Open the contributing guide

Research direction

Read charts/telegraf/templates/service.yaml around lines 96-103 and inspect the rendered Service for multiple prometheus_client outputs. Reproduce the configuration described in the issue and verify that the generated Service has unique port names and applies successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
helm, kubernetes
Domain
devops
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.