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 sidecar container won't start due to influxdb issues #47

Open
shaunlandau1973 opened this issue Mar 18, 2022 · 2 comments
Open

Comments

@shaunlandau1973
Copy link

The telegraf sidecar is generating errors causing it to fail continuously ... something about influxdb:

2022-03-08T16:59:30Z E! [outputs.influxdb] when writing to [http://localhost:8086/]: Post http://localhost:8086//write?db=telegraf: dial tcp 127.0.0.1:8086: connect: connection refused
2022-03-08T16:59:30Z E! [agent] Error writing to outputs.influxdb: could not write any address
2022-03-08T16:59:40Z E! [outputs.influxdb] when writing to [http://localhost:8086/]: Post http://localhost:8086//write?db=telegraf: dial tcp 127.0.0.1:8086: connect: connection refused
2022-03-08T16:59:40Z E! [agent] Error writing to outputs.influxdb: could not write any address
2022-03-08T16:59:50Z E! [outputs.influxdb] when writing to [http://localhost:8086/]: Post http://localhost:8086/write?db=telegraf: dial tcp 127.0.0.1:8086: connect: connection refused
2022-03-08T16:59:50Z E! [agent] Error writing to outputs.influxdb: could not write any address
2022-03-08T17:00:00Z E! [outputs.influxdb] when writing to [http://localhost:8086]: Post http://localhost:8086/write?db=telegraf: dial tcp 127.0.0.1:8086: connect: connection refused
2022-03-08T17:00:00Z E! [agent] Error writing to outputs.influxdb: could not write any address
2022-03-08T17:00:10Z E! [outputs.influxdb] when writing to [http://localhost:8086]: Post http://localhost:8086/write?db=telegraf: dial tcp 127.0.0.1:8086: connect: connection refused

I'm very surprised that I cannot find any other observers of this issue. My EKS cluster is nothing out of the ordinary. What is this missing influxdb service?

@rwrz
Copy link

rwrz commented Oct 25, 2022

As far I understood, you need to configure your TELEGRAF to export its data to an influxdb deployment. By default, it points to localhost:8086, but is up to you to configure it. Feel free to disable if not required in your setup.
You can see it here (values.yaml):

  config:
    mountPath: /etc/telegraf
    agent:
      interval: "10s"
    outputs:
      - influxdb:
          urls: []
          #            - "http://influxdb.monitoring.svc:8086"
          database: "telegraf"

@smerrill
Copy link

smerrill commented Feb 7, 2024

In our case, I changed telegraf to use a file output to /dev/null by editing the ConfigMap to change its output stanza to the following:

[[outputs.file]]
  files = ["/dev/null"]

If you just try to kill the sidecar it won't start because of the wait-for command on the main rudder-server container waiting for Telegraf to come up.

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

3 participants