neuralfraud / grafana-prtg

A PRTG Datasource plugin for Grafana
180 stars 75 forks source link

Panels displaying the same results from differing queries #108

Open SamuelmAsh opened 6 years ago

SamuelmAsh commented 6 years ago

I have a number of single stat panels displaying the results of different channels of a sensor, however the panels are all displaying the results of channel 2. When i check the query sent away i can see that it does return the entire device listings and should be able to parse it per channel but it is not.

Any advice?

Kindest Samuel

Yakelixir commented 6 years ago

Can you provide some more details on the query? What does the api request return? Have you tried templating this and replicating per channel? That seems to have better results in regard to filtering out data and reduces the need for queries while promoting flexibility of changes.

olsonnn commented 6 years ago

i have the same issue image

value that represents the value of channel =2

selecting the channel manually gives the same result for all channels using templates gives same result

edit: it only seems to work if time range is with 15-30 minutes edit2: its getting more weird: select time range manually from now to now-420m also works image

420 seems max

Edit3: this all seems to happen if data is not complete for a certain time. Running 1day now with all data for all channels: no issues anymore

theiltho commented 6 years ago

Whoa, thanks @olsonnn This issue kept me busy for a few hours until I changed the time range. All my channels showed the same values and I looked into the PRTG metrics, channel definitions, etc. but never thought about this.

mizike2 commented 5 years ago

I am having this same issue, but the time range does not seem to fix it. It started with an upgrade to Grafana 6.0

olsonnn commented 5 years ago

@mizike2 is your dataset complete? no big gaps in data? running v6 here without issues

mizike2 commented 5 years ago

I went into the history of PRTG for the sensor and channel, and there is a gap in history. For the past 2 days, there was no data (because the device was offline). Am I safe to assume that it will return to normal operation after the channel has sufficient data?

image

olsonnn commented 5 years ago

yep. will be fine again once data comes back in....