grafana-diagram icon indicating copy to clipboard operation
grafana-diagram copied to clipboard

Grafana 8 support

Open jangaraj opened this issue 3 years ago • 5 comments

Current Grafana 8.0.0-beta1 has a problem to install latest plugin version. It looks like problem with dependency definition: https://github.com/jangaraj/grafana-diagram/commit/fc9d91ad3be0349af480283723fb7aec15010f26

jangaraj avatar May 17 '21 19:05 jangaraj

ref #201

jdbranham avatar Jun 04 '21 14:06 jdbranham

Can this be pushed soon ? We use it and it is broken now in 8.0 - please

shalstea avatar Jul 30 '21 18:07 shalstea

After upgrade Grafana from v7.5.3 to v8.0.6, panel using Diagram plugin now just has an empty A->B box, but checking the panel JSON, the diagram definition are still there, but UI just show below for the definition:

graph LR A --> B

fyang13 avatar Jul 30 '21 18:07 fyang13

BTW: you can install/test fork (before fix will be merged), e.g. I keep build with the fix in the custom forked branch:

GF_INSTALL_PLUGINS=https://github.com/jangaraj/grafana-diagram/archive/v8-build.zip;jdbranham-diagram-panel

jangaraj avatar Jul 30 '21 19:07 jangaraj

I tested the v8-build.zip version. It is outdated (1.7.1) and doesn't fix our main issues:

  • Thresholds colors don't apply. everything is gray (dark theme)
  • Thresholds in percentage mode don't work as expected (fail to apply colors)

I found a workaround that works on version 1.7.3 and grafana 8.0.6 to fix the colors issues on Thresholds in percentage

  • Change the Thresholds to Absolute and the values of the Thresholds to the absolute values of the query
  • you can leave the Unit on Standard option and it will dispay correctly

Is this expected, or is it part of the incoming fixes?

JDA88 avatar Aug 03 '21 11:08 JDA88