Thank you for your answer and cautions
суббота, 2 мая 2020 г., 16:19:36 UTC+3 пользователь Brian Candler написал:
>
> Show individually the results of querying (in the prometheus console,
> non-graphical view)
>
> health_check{job="platform-events-db", cluster="loco-prod"}
>
> up{job="platform-events-db", cluster="loco-prod"}
>
> Do they have exactly the same label sets? If not, you'll have to add
> on(...) or ignoring(...), or use group_left.
>
> Also note: the query you have shown will only "fill in the gaps" for
> health_check if the scrape failed entirely, i.e. when up == 0. If "up" was
> 1, but health_check was missing, it won't fill in the gap. If that's the
> case, you could try:
>
> health_check{...} or up{...} * 0
>
> Final note: I would be *very wary* about doing this sort of data
> manipulation. There is a critical difference between a health check
> failing, and a health check not running at all (or its result being lost).
> If you confuse these two things, people may draw the wrong conclusions from
> the data.
>
--
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/14926a64-ea54-4374-bc71-ebdf19dde358%40googlegroups.com.