Polystat to monitor ping to devices

Morning,

I’m using telegraf + influxdb + grafana
I created a new Polystat panel to monitor the reachability of different devices.

The aimed bihvior is :
if device recheable and below responde within 1ms or less : Green
if device recheable and below responde within 3ms or less : orange
if device recheable and below responde within 5ms or less : red
If device is not reachable : red

unfortunately I have problem with this last condition, because when a device is down polystat continue to show the device green because it is showing the last value.

ex : in the picture below AP-A-02-01 is down, but it continue to show the same value 1.29 (the last known) so never it go to down.

image

Could you please help me with that ?

Sincerely yours.

Hi @chyoucef88 ,

Thanks for providing the details.

2 quick questions;

  • which grafana version your are using ?
  • does the same query show correct result when using any other graph style than ploygon ?

Morning @usmanahmad,

I’m using grafana v8.5.4 (78ee95814).

Yes tested the same query with 'stat" and “time series” graphs and it worked perfectly.

For example for “Time series”,I can do “Value mappings”, and I specify “Special” condition

if null/NaN then show the word DOWN and set the color to Red, and it worked perfectly.

can we do the same thing with Polygon ?

yours.

Hi @chyoucef88,

We had tried to reproduce it on a test machine with dummy data but could not reproduce it.

Therefore, can you please follow these steps to share your raw unformatted data? That way, the community can try and mock up your problem :+1:

Morning,

thank you very much for your reply.

Unfortunately I upgraded grafana to the latest version vailable 9.0.4, and until now I still don’t have the button to disable formatted data as you can see below :

How could I provide the raw Unformatted data ? or should I provide you the CSV ?

Thank you very much for your help @usmanahmad

yours.

hard to scrape data from a image :wink:

use three (3) of the following tick mark → ` ← before and after your data

2022-07-21 11:53:46.270,	137
2022-07-21 11:54:46.270,	138
2022-07-21 11:55:46.270,	139
2022-07-21 11:56:46.270,	140
2022-07-21 11:57:46.270,	141
2022-07-21 11:58:46.270,	142

@chyoucef88

Just follow the instructions as shown in my previous post. Once you selected the “raw unformatted data” click on the “Download CSV”.

Then send us this file so that we can try to reproduce it.