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 On Tue, Jan 12, 2021 at 9:40 AM Julius Volz <[email protected]> wrote: > Do you want to count across scraped instances at *one* point in time, or > do you want to count scrapes of a / each single instance *over* time? > > On Tue, Jan 12, 2021 at 1:10 AM Jennifer K <[email protected]> > wrote: > >> to anyone that can help... >> I've been trying to a total number of "scrapes" by adding successful, >> unsuccessful and absent points together >> this algorithm isn't working- any anyone explain why- >> >> (probe_success==bool 0) + (probe_success == bool 1) + ignoring (target) >> sum without (target) (absent (probe_success)) >> >> should be simple, but I just can't get it to work- any help would greatly >> be appreciated. >> Thanks! >> Jennifer >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Prometheus Users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/prometheus-users/a8b8a4a0-59e7-4087-bba6-a54252ebafdcn%40googlegroups.com >> <https://groups.google.com/d/msgid/prometheus-users/a8b8a4a0-59e7-4087-bba6-a54252ebafdcn%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > > > -- > Julius Volz > PromLabs - promlabs.com > -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/CAJ2Bn3q9xEADOb0r_nxOx4fXbGBYRo3tU%2B0nE8AtWD%2BqoiPCzw%40mail.gmail.com.

