Basically, I'm trying to fix an error that I am having when calculating the percent. What i'm seeing:
sometimes the number of "good" scrapes is higher/smaller than the number of scrapes in [$__range]. I think this is just because sometimes I get one extra scrape compared to the number [$__range] scrapes and sometimes it's spot on. I can't have a dashboard that sometimes shows the right value.
Therefore, trying to make this work and not show values over/under 100 when the value should be 100%. I am trying to "fix" the denominator to be a value from a rule instead of the [$__range].
to do this I know I have "successful/unsuccessful probes" and "absent data". I can quantify the probes using "probe_success" but when adding the absent function to "probe_success" it doesn't work- I think it has something to do with the vectors being different which is why I was trying to use the ignore function.
so... to answer your question-
I would want to count scrapes over the specified interval to include absent data as well- basically if my scrape is set to 30s, an interval of 1 hour should return 120 (to include successful/unsuccessful and absent data)
what is the best algorithm to use for that?
Thanks so much!
Jennifer