fetzerch / grafana-sunandmoon-datasource

SunAndMoon is a datasource plugin for Grafana that calculates the position of Sun and Moon as well as the Moon illumination. ☀️🌙🧛‍♂️
MIT License
41 stars 8 forks source link

Sunrise and sunset per panel option #57

Closed ahpohl closed 12 months ago

ahpohl commented 12 months ago

I use the plugin to display sunrise and sunset on the power day plot generated by a solar plant. Unfortunately the annotations are displayed on all panels of the dashboards messing up monthly and yearly data plots. Is there a way to control the annotations on a per panel basis?

image

Currently this looks ugly and I cannot leave it like this (have to disable the sun and moon plugin if I cannot find a solution)

fetzerch commented 12 months ago

You can restrict the panels here:

grafik

ahpohl commented 12 months ago

That is crazy. I don't have the "Show in" option. I have version 0.3.0 of the plugin installed with grafana 9.5.1 on Arch Linux Arm.

image

fetzerch commented 12 months ago

Indeed, it's a feature introduced in Grafana 10 (https://grafana.com/docs/grafana/latest/whatsnew/whats-new-in-v10-0/#annotation-filtering, https://github.com/grafana/grafana/pull/66325)

ahpohl commented 12 months ago

brilliant. I upgraded to grafana 10.0.3 and now I can choose on which panels the annotations should be shown. Issue solved.