jackw / heywesty-trafficlight-panel

A Grafana Traffic Light panel
Apache License 2.0
6 stars 1 forks source link

Cannot add Data Links #27

Open curvaton opened 2 months ago

curvaton commented 2 months ago

Hello,

Thanks for your plugin !

I am currently replacing the Angular Traffic Lights plugin in our dashboards by yours. I am able to display the data I want, the way I want, from an OpenSearch Data Source:

Capture d’écran 2024-08-28 à 18 11 15

I would like to add data links to redirect to another dashboard.

When I click on the "Add link" button I get this formular

Capture d’écran 2024-08-28 à 18 12 56

But when I click on "Save" I get this error:

Capture d’écran 2024-08-28 à 18 14 15

I am running the dockerised Grafana 11.1.4 version.

I gave an example data link I would like to create but what I am looking for is to have a link for each traffic light that a viewer could click on to be redirected to a specific dashboard depending on the value of the data which is displayed.

Thanks for your help !

jackw commented 2 months ago

@curvaton thanks for raising this.

I tried to reproduce your issue locally and I cannot. The feature isn't custom to my panel, it's part of the Grafana codebase. You can find the docs here.

As for the error - could you pass me the panel JSON and panel data please? They can be accessed by clicking inspect in the panel menu. If I have those I might have a better chance of reproducing the issue.

image

curvaton commented 2 months ago

Hello,

Thanks for the investigation. Since this happens in a production environment, to give the panel json and panel data I have to prepare some mock data and reproduce in a local environment and then send it to you. I'll try to do this as fast as I can.

Thanks again.

curvaton commented 1 month ago

Hello,

I could finally spend some time to produce mock data for reproducing the issue. I could reproduce it running in a local docker-compose environment with an opensearch datasource and grafana services (version 11.1.4).

Here are the data and panels in json format as requested.

data.json panel.json

Hope this helps.

jackw commented 1 month ago

Here are the data and panels in json format as requested.

Thanks for taking the time @curvaton. I'll try and repro it and get back to you soon.