hi team I want telegraf to write logs to influxdb...
# support
m
hi team I want telegraf to write logs to influxdb running in another pod in kubernetes
Copy code
[agent] Error writing to outputs.influxdb: could not write any address
2023-08-18T17:47:50Z W! [outputs.influxdb] Metric buffer overflow; 84 metrics have been dropped
2023-08-18T17:47: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
This is the error, inspite of passing the url, can someone point at what i am doing wrong here?
Copy code
telegraf_sidecar:
  enabled: true
  name: telegraf
  version: 1.5.0
  nameOverride: "rudderstack"
  image:
    repo: "telegraf"
    tag: "1.12-alpine"
    pullPolicy: IfNotPresent
  resources:
    requests:
      memory: 128Mi
      cpu: 100m
    limits:
      memory: 128Mi
      cpu: 100m
  config:
    mountPath: /etc/telegraf
    agent:
      interval: "10s"
    outputs:
      - influxdb:
          urls:
            - "http://influxdb-de.de-testing.svc.cluster.local:8086"
          database: "telegraf"
          username: "admin"
          password: "password"
    statsd_percentiles:
      - 50
      - 90
      - 95
      - 99
m
Hey There! 👋 Your message has been received by the RudderStack team. We will forward this request to your Technical Account Manager, and they will get back to you shortly. Please use the thread for any additional comments.
m
@average-tailor-86667 can you please help here?
m
I have pinged the team for assistance on this.
h
m
Hi @hallowed-rainbow-25913 i made the change in the telegraf config, getting these in the logs of telegraf pod
Copy code
2023-08-22T00:43:48Z I! Starting Telegraf 1.12.6
2023-08-22T00:43:48Z I! Loaded inputs: statsd
2023-08-22T00:43:48Z I! Loaded aggregators: 
2023-08-22T00:43:48Z I! Loaded processors: enum
2023-08-22T00:43:48Z I! Loaded outputs: influxdb
2023-08-22T00:43:48Z I! Tags enabled: host=rudderstack-de-0 namespace=de-testing
2023-08-22T00:43:48Z I! [agent] Config: Interval:10s, Quiet:false, Hostname:"rudderstack-de-0", Flush Interval:10s
2023-08-22T00:43:48Z I! [inputs.statsd] Statsd UDP listener listening on:  [::]:8125
2023-08-22T00:43:48Z I! [inputs.statsd] Started the statsd service on :8125
2023-08-22T00:43:55Z E! [inputs.statsd] Error: splitting ':', Unable to parse metric: 
2023-08-22T00:43:55Z E! [inputs.statsd] Error: splitting ':', Unable to parse metric: 
2023-08-22T00:43:58Z E! [inputs.statsd] Error: splitting ':', Unable to parse metric: 
2023-08-22T00:43:58Z E! [inputs.statsd] Error: splitting ':', Unable to parse metric:
Is it related to data_format = 'influx' , but I am not sure about where to set this