snuids / trafficlights-panel

A Grafana version of the Kibana Traffic Lights Panel
MIT License
22 stars 13 forks source link

Ordering of lights #5

Closed pkropf closed 5 years ago

pkropf commented 5 years ago

I have a dashboard with two rows and a series of traffic lights that show status of services. Each row shows the same services just from a different server's point of view. I'd like to be able to order the traffic lights in each row to align with the other row. Would it be possible to do that?

screenshot_2018-07-31_09-10-15

snuids commented 5 years ago

@pkropf

Which type of database are you using, you should be able to order the traffic lights from the datasource.

pkropf commented 5 years ago

Data is coming from an InfluxDB database.

How does the order of the data in the database related to presenting it in Grafana?

snuids commented 5 years ago

Depending on the database you are using, there are more or less options in the grafana datasource editor. Unfortunately, it looks like there is no ordering for Influx. I am mainly using Elastic and never had this problem.

I will think of it and try to add the option when I have a few hours to spare.

Cheers,

Arnaud

pkropf commented 5 years ago

Appreciated! It is a low priority but would be nice to have.

snuids commented 5 years ago

@pkropf Added a sort option in v1.4.4. Can you give it a try ?

Cheers,

Arnaud

pkropf commented 5 years ago

Works great, thanks!