telegraf icon indicating copy to clipboard operation
telegraf copied to clipboard

http input plugin EOF

Open zzcpower opened this issue 3 years ago • 2 comments

Relevant telegraf.conf

[agent]
  interval = "5m"
  round_interval = true
  metric_batch_size = 10000
  metric_buffer_limit = 500000
  collection_jitter = "10s"
  flush_interval = "100s"
  flush_jitter = "10s"
  debug = false
  quiet = false
  hostname = ""
  omit_hostname = false
  logfile = "xxxxxx"


[[inputs.http]]
  urls = ["http://xxxx:9090/api/v1/query?query=ping_rtt"]
  interval = "5m"
  timeout = "30s"
  data_format = "json"
  json_query = "data.result"
  name_override = "net_device"
  tag_keys = ["metric_regionCode","metric_sn","metric_logicalName","metric___name__","metric_ifName","metric_ifOperStatus","metric_brand","metric_instance","metric_model","metric_monitorIP","metric_regionName","metric_stacking","metric_category"]
  json_string_fields = ["value_1"]

Followed by 30 similar http input plugins

[outputs]

[[outputs.kafka]]
topic = "hypervisor"
brokers = [ "xxxx:9092","xxxx:9092","xxxx:9092"]
data_format = "json"
routing_tag = "metric_sn"

[outputs.kafka.topic_suffix]
 separator = "_"
 method = "measurement"


### Logs from Telegraf

```text
2022-12-16T09:12:16Z I! [agent] Hang on, flushing any cached metrics before shutdown
2022-12-16T09:12:16Z I! Loaded inputs: http http http http http http http http http http http http http http http http http http http http http http http http http http http http http http http
2022-12-16T09:12:16Z I! Loaded aggregators: 
2022-12-16T09:12:16Z I! Loaded processors: 
2022-12-16T09:12:16Z I! Loaded outputs: kafka
2022-12-16T09:12:16Z I! Tags enabled: host=bigdata07
2022-12-16T09:12:16Z I! [agent] Config: Interval:5m0s, Quiet:false, Hostname:"bigdata07", Flush Interval:1m40s
2022-12-16T09:45:20Z W! [agent] ["outputs.kafka"] did not complete within its flush interval
2022-12-17T20:40:09Z E! [inputs.http] Error in plugin: [url=http://xxxx:9090/api/v1/query?query=ifOperStatus]: Get "http://xxxx:9090/api/v1/query?query=ifOperStatus": EOF

2022-12-17T21:00:03Z E! [inputs.http] Error in plugin: [url=http://xxxx:9090/api/v1/query?query=devSessionCount]: Get "http://xxxx:9090/api/v1/query?query=devSessionCount": EOF

2022-12-18T16:30:08Z W! [agent] ["outputs.kafka"] did not complete within its flush interval

System info

Telegraf 1.14.5, CentOS Linux release 7.4.1708 (Core)

Docker

No response

Steps to reproduce

1. 2. 3. ...

Expected behavior

telegraf running without EOF error log, and agent flush interval warnning.

Actual behavior

EOF error occurs occasionally, and sometimes output doesn’t complete within flush interval

Additional info

The number of input plugins is 31. All of input plugins are http. The EOF errors and flush interval warnings always reported after telegraf successfully running several hours. Can someone please tell me what does this EOF error indicate? And what parameters should I adjust to avoid the warning of flush interval? Please let me know if need further information. Thanks in advance!

zzcpower avatar Dec 19 '22 03:12 zzcpower

I noticed you use a very old version of telegraf. Does this problem also occur on latest versions of telegraf?

Hipska avatar Dec 19 '22 12:12 Hipska

Hello! I am closing this issue due to inactivity. I hope you were able to resolve your problem, if not please try posting this question in our Community Slack or Community Page. Thank you!

telegraf-tiger[bot] avatar Jan 05 '23 18:01 telegraf-tiger[bot]