influxdata / influxdata/helm-charts

Cannot change interval of inputs.internal outside of default

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

Description

My telegraf configuration has:

```
config:
agent:
interval: "2s"
```

I wanted to lower the frequency of the internal metrics sent to Influx (described (here)[https://github.com/influxdata/telegraf/tree/master/plugins/inputs/internal]) because the cost on Influx cloud is not completely insignificant at the 50 or so instances we have running (each telegraf sends about 2Gb of health metrics data per month).

This line of code: https://github.com/influxdata/helm-charts/blob/master/charts/telegraf/templates/configmap.yaml#L27
overwrites any custom configuration of the input plugin.

This works around the issue but seems odd:

```
metrics:
health:
enabled: true
internal:
enabled: false

inputs:
- internal:
interval: "60s"
collect_memstats: false
```

Interestingly, I tried changing the default to 60s, but started getting Rabbitmq errors on startup:

```
2023-08-15T23:54:57Z E! [telegraf] Error running agent: starting input inputs.amqp_consumer: error declaring queue: Exception (404) Reason: "NOT_FOUND - home node 'rabbit@xxxx of durable queue 'influx_metric_telegraf' in vhost '/' is down or inaccessible"
```

Contributor guide

Open the contributing guide

Research direction

Start at charts/telegraf/templates/configmap.yaml around line 27 and compare how the internal input is generated with the supplied inputs configuration. Render the chart using a custom internal interval and verify that the setting is preserved while the default configuration still works.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.