knightss27 / grafana-network-weathermap

A fully featured and customizable network weathermap plugin for Grafana (9.0+).
https://grafana.com/grafana/plugins/knightss27-weathermap-panel/
Apache License 2.0
132 stars 6 forks source link

Base color not working #81

Open whizkidTRW opened 2 months ago

whizkidTRW commented 2 months ago

Describe the problem I want to differentiate between missing data (Unknown or exactly 0) on the links vs. low utilization (0.01%, 0.5%, etc.)

To Reproduce

  1. Set the Base Color to the "default" color desired, in my case gray: rgb(93, 93, 93)
  2. Set the color scale to the following: (Notice nothing < 0.0001) 0.0001 --> Blue 0.05 --> Green 75 --> Yellow 90 --> Red
  3. Links are rendered with NO background color instead of the Base Color (second screenshot).
  4. Note that if you add into the Color Scale a 0 --> Gray value (first screenshot), the legend gets all messy because the 0 and 0.0001 are on top of each other.

Expected behavior I expected the lack of values in the Color Scale < 0.0001 would use the default color (gray) and then legend would look right.

Screenshots Screenshots attached. ENST to HRTS is the link I tested with. Removed the query, thus yielding missing data and the link color goes away. Base Color is not being used for some reason.

Screenshot 2024-05-14 at 9 47 50 AM

Screenshot 2024-05-14 at 9 49 38 AM

VERSIONS! (please complete the following information):

Additional context We have a number of links in our network that are low utilized because they are in the middle of rings and the traffic is taking the shorter path. We want to differentiate these areas differently than those links that have ZERO data, ie. a problem with the underlying query, as a result from a network migration and the query needs to be updated. An option to render no data or 0 as a particular color would be a fine solution as well, but that's what I figured the Base Color option was intended for.