These visualizations often default to showing the average over the
dashboard's time period. This looks a bit different depending on the panel,
but under the panel options, look for an option to show the "Current" or
"Last" value.

/MR

On Tue, Oct 13, 2020 at 8:40 AM Tamar <[email protected]> wrote:

> Hi,
>
> I am new to PRmetheus.
> I wrote a bash script that retuns either "1" or "0", and using pushgateway
> created a metric in prometheus for it.
>
> In Prmehteus UI I can see the meteic's value as expected:
>
>
> In Grafana however if I pick "stats" or "gauge" visualization I get a
> number with a decimal point (e.g: 0.245)
>
> What is the correct way to show the value as either 1 or 0 in Grafana ?
>
> Thanks
>
> --
> 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/71b6439f-c698-4e86-a258-1af92704512cn%40googlegroups.com
> <https://groups.google.com/d/msgid/prometheus-users/71b6439f-c698-4e86-a258-1af92704512cn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CAMV%3D_gYqpcuhYRYpP7ujZG_bnJibZfxgXCaKbtT-UBNyLfr8jg%40mail.gmail.com.

Reply via email to