grafana / cog

Code Generation with a human touch
Apache License 2.0
48 stars 2 forks source link

Specific values for Threshold colors in dashboard #558

Open spinillos opened 1 month ago

spinillos commented 1 month ago

Some customers asked to have specific values for threshold color. They need to find in the frontend what are the values to set.

The field is a string, but show it as enum could be nice.

K-Phoen commented 1 month ago

Threshold color can be any color value. I know that you can use named colors, hexadecimal codes and probably even rgb() notation. An enum wouldn't make sense here I think.

As often, it would be useful if the schemas described that for us 🤷

spinillos commented 4 weeks ago

We cannot do anything here since color could be any hexadecimal value.

The only thing that we can do is to add the existing Grafana fixed values.