Native method gives wrong results comparing to exec mode.
Relevant telegraf.conf:
[[inputs.ping]]
urls = [
"host1",
"host2",
"host3",
"host4",
"host5",
]
System info:
Telegraf 1.19.3 (git: HEAD a799489)
Debian Linux x86_64
Steps to reproduce:
- Collect ping data using preferred native method
- Collect ping data using the exec method
- Compare the results
Expected behavior:
The ping reply time should be at least comparable
Actual behavior:
Now it look like this

You probably can see on this graph at which time I changed from native to exec :)
Additional info:
No idea why the ping is collecting the data wrongly in native mode - just guessing:
- spawning new ping thread overhead?
- thread's priority?
Native method gives wrong results comparing to exec mode.
Relevant telegraf.conf:
System info:
Telegraf 1.19.3 (git: HEAD a799489)
Debian Linux x86_64
Steps to reproduce:
Expected behavior:
The ping reply time should be at least comparable
Actual behavior:
Now it look like this

You probably can see on this graph at which time I changed from native to exec :)
Additional info:
No idea why the ping is collecting the data wrongly in native mode - just guessing: