Skip to content
This repository has been archived by the owner on Jun 18, 2024. It is now read-only.

Unable to define colors in discrete mode using OpenTSDB datasource #243

Open
klei22 opened this issue Dec 27, 2021 · 2 comments
Open

Unable to define colors in discrete mode using OpenTSDB datasource #243

klei22 opened this issue Dec 27, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@klei22
Copy link

klei22 commented Dec 27, 2021

What happened: When using discrete mode for creating color buckets, error appears with message "Data has value with undefined color"

What you expected to happen: Expected to be able to create colors for defined value buckets in discrete mode. Spectrum mode works seamlessly and has no issues.

How to reproduce it (as minimally and precisely as possible): I connected my OpenTSDB 2.4 datasource and was able to see spectrum colors in spectrum mode. When switching to discrete mode, error appears with message "Data has value with undefined color".

Environment:

  • Grafana version: 7.4.5
  • flant-statusmap-panel version: 0.4.2
  • Data source type & version: OpenTSDB 2.4
  • OS Grafana is installed on: Debian 11
  • User OS & Browser: macOS 11 & Chrome v96.0
  • Grafana plugins: Status map panel by flant
  • Others:

Anything else we should know?:

Panel
Panel_spectrum

@klei22 klei22 added the bug Something isn't working label Dec 27, 2021
@diafour
Copy link
Collaborator

diafour commented Dec 28, 2021

"Discrete mode" will not quantize input values, it just maps a discrete value to a color. Think "color it green if the value is equal to 16", not "color it green if the value is between 16 and 17".

There are suggestions to improve "Discrete mode" to use it with continuous values (#75, #198). Also, I hope you can quantize values using the "Transformation" tab in the upcoming 0.5.0 release with data frames support.

@klei22
Copy link
Author

klei22 commented Jan 10, 2022

@diafour Thank you for the explanation of the discrete mode functionality. I do very much look forward to be able to create ranges someday! Hoping to try out the data frames support as suggested from your upcoming release.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants