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

Retrieve Targets is too long and reacts weirdly #11

Open
oijkn opened this issue May 4, 2020 · 1 comment
Open

Retrieve Targets is too long and reacts weirdly #11

oijkn opened this issue May 4, 2020 · 1 comment

Comments

@oijkn
Copy link

oijkn commented May 4, 2020

Between the moment I run fping-export and the moment it runs the ping it takes a long time just to find 5 targets. As shown below it took 5 minutes just for 5 targets...

And oddly in the process of retrieving the targets, I see that it starts by pinging the first host and then it keeps on scanning for targets.

mai 04 12:40:44 TIG fping-exporter[33069]: 2020/05/04 12:40:44 New worker (period: 5m0s )
mai 04 12:40:44 TIG fping-exporter[33069]: 2020/05/04 12:40:44 new target: host01
mai 04 12:40:45 TIG fping-exporter[33069]: start fping:  [-q -p 30000 -C 5 -i 1000 host1]
mai 04 12:41:30 TIG fping-exporter[33069]: 2020/05/04 12:41:30 new target: host2
mai 04 12:42:34 TIG fping-exporter[33069]: 2020/05/04 12:42:34 new target: host3
mai 04 12:43:10 TIG fping-exporter[33069]: 2020/05/04 12:43:10 new target: host4
mai 04 12:43:24 TIG fping-exporter[33069]: 2020/05/04 12:43:24 new target: host5
mai 04 12:45:45 TIG fping-exporter[33069]: start fping:  [-q -p 30000 -C 5 -i 1000 host1 host2 host3 host4 host5]
@schweikert
Copy link
Owner

prometheus initiates the probing. What are you using as scrape_interval?

It is by design that the probing is done asynchronously, so when prometheus first wants to probe a host, that host is added to the list of hosts to be pinged, and the first probe sent by prometheus will not contain results. When it comes for the second probe, the results will be there, and also fping-exporter will stop pinging after a while when a host is not probed by prometheus anymore.

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

2 participants