influxdata / helm-charts

Official Helm Chart Repository for InfluxData Applications
MIT License
233 stars 330 forks source link

Telegraf stopped working after opentelemtry changes in service.yaml helm-chart #651

Closed MatanHazan7 closed 5 months ago

MatanHazan7 commented 5 months ago

Hi,

We're using a deployment of telegraf with helm-chart version 1.8.37

After changes to the service.yaml template, telegraf has stopped working completely in the exact same time frame.

Input is from rabbitmq and output is to opentelemtry (coralogix), this is what my values look like:

telegraf:
  enabled: true
  version: 1.8.37
  repo: https://helm.influxdata.com/
  chart:
    name: "telegraf"
    values:
      service:
        enabled: true
      config:
        agent:
          interval: "5s"
          debug: true
        outputs:
          - opentelemetry:
              service_address: "${output_rabbitmq_service_address}"
              compression: "${output_rabbitmq_compression}"
              coralogix:
                private_key: "${outputs_rabbitmq_private_key}"
                application: "${outputs_rabbitmq_application}"
                subsystem: "${outputs_rabbitmq_subsystem}"
        inputs:
          - rabbitmq:
              url: "${input_rabbitmq_url}"
              name: "${input_rabbitmq_name}"
              username: "${input_rabbitmq_username}"
              password: "${input_rabbitmq_password}"

Here's the error I'm getting in ArgoCD when it attempts to create the service after the change (The service worked before the changes):

one or more objects failed to apply, reason: Service "telegraf" is invalid: spec.ports: Required value (retried 5 times).

Thank you