grafana / clock-panel

Clock Panel Plugin for Grafana
MIT License
95 stars 61 forks source link

Warning received under v2.1.7 #200

Closed Rushmed closed 1 week ago

Rushmed commented 3 months ago

Hi.

After updating the plugin to 2.1.7 I got red triangles in Grafan mith message "InfluxDB returned error: &{0x6042b00 0x4002c90c00 0x60b8c80}". The shown values are correct but how to get rid of the warning? image

image

Deleting the measurement does not help.

briangann commented 3 months ago

The quickest fix would be to delete the query from the panel.

The modifications made to migrations can't tell if the query is intentional or not.

Rushmed commented 3 months ago

Thanks. As I wrote. Deleting the panel does not work. After deleting the query and saving the panel the warning is still present and when reopening the edit mode of the panel the query is still there.

Edit: Successfully tried hiding instead of deleting the query. Now the warning is gone.

briangann commented 3 months ago

let us investigate this as it should not be happening for new panels, and saving after deleting the query should have fix it.

Rushmed commented 3 months ago

Ok how can I support?

briangann commented 3 months ago

Which version of Grafana are you using? I'll test it using that version to replicate the problem. It looks like you have influx as your default datasource also.

Rushmed commented 3 months ago

Grafana v11.1.0 (5b85c4c2fc)

briangann commented 3 weeks ago

Taking a closer look at this, it appears that the migration detection isn't working as intended. I have reproduced this when the default datasource is not "test data"

academo commented 1 week ago

I've done some further testing of the error and had come to the conclusion that this is a problem with influx db and we can't fix it on the clock panel side.

it seems that influxdb will throw an error by default just because you have selected influxdb as a data source, for example here's an image of a new panel with influxdb as the default data source with the time series panel.

Image

This happens when you have influxdb selected as the default data source.

We have fixed a previous issue where clock panels were showing this error because of a missing migration https://github.com/grafana/clock-panel/pull/192 and it'll remediate most of the common cases.

But if the default datasource is like influxdb that will throw an error by default we can't do anything about it.

My advice is to edit the panel and select "Grafana" or "test datasource" or any other data source which default behaviour is not to throw an error and that should fix it.