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

internet_speed input plugin not collecting/reporting latency #9931

Closed
donmahallem opened this issue Oct 14, 2021 · 5 comments
Closed

internet_speed input plugin not collecting/reporting latency #9931

donmahallem opened this issue Oct 14, 2021 · 5 comments
Labels
bug unexpected problem or unintended behavior platform/windows

Comments

@donmahallem
Copy link

donmahallem commented Oct 14, 2021

Relevant telegraf.conf:

[global_tags]

[agent]
  interval = "60s"
  round_interval = true

  metric_batch_size = 1000

  metric_buffer_limit = 10000
  collection_jitter = "0s"
  flush_interval = "60s"
  flush_jitter = "30s"
  precision = ""
  debug = true
  omit_hostname = false
[[inputs.internet_speed]]
  interval = "60s"
  ## servers to query
[[outputs.file]]
  files = ["stdout"]

System info:

Telegraf 1.20

Tested on Windows 10 and current Raspbian

Docker

version: '3.1'
services:
  telegraf:
    container_name: telegraf
    image: telegraf:1.20
    volumes:
      - ./telegraf_pi_speedtest.conf:/etc/telegraf/telegraf.conf:ro
      - telegraf_test:/telegraf
volumes:
  telegraf_test:

Steps to reproduce:

  1. Run telegraf with the provided config above

Expected behavior:

Should report latency as described in the plugins readme

Actual behavior:

Only reports upload and download speed. No latency

Additional info:

A sample from my logs. No errors reported

telegraf  | 2021-10-14T16:03:00Z D! [inputs.internet_speed] Starting Speed Test
telegraf  | 2021-10-14T16:03:00Z D! [inputs.internet_speed] Running Ping...
telegraf  | 2021-10-14T16:03:01Z D! [inputs.internet_speed] Running Download...
telegraf  | 2021-10-14T16:03:07Z D! [inputs.internet_speed] Running Upload...
telegraf  | 2021-10-14T16:03:33Z D! [inputs.internet_speed] Test finished.
telegraf  | internet_speed,host=any upload=1.7020006070397913,download=54.815106717946776 1634227340000000000
telegraf  | 2021-10-14T16:03:19Z D! [outputs.file] Wrote batch of 1 metrics in 47.1µs
telegraf  | 2021-10-14T16:03:19Z D! [outputs.file] Buffer fullness: 0 / 10000 metrics
@donmahallem donmahallem added the bug unexpected problem or unintended behavior label Oct 14, 2021
@powersj
Copy link
Contributor

powersj commented Oct 14, 2021

@ersanyamarya thoughts on this one?

@srebhan
Copy link
Member

srebhan commented Oct 19, 2021

Is it possible that telegraf cannot ping the servers (probably ICMP) from your docker container? Can you try to run your config on a normal host?

@ersanyamarya
Copy link
Contributor

I am looking into it

@powersj
Copy link
Contributor

powersj commented Oct 19, 2021

Fixed with #9957

@powersj powersj closed this as completed Oct 19, 2021
@powersj
Copy link
Contributor

powersj commented Oct 19, 2021

Thanks @ersanyamarya!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug unexpected problem or unintended behavior platform/windows
Projects
None yet
Development

No branches or pull requests

4 participants