jdbranham / grafana-diagram

A Grafana plugin to visualize metrics in a diagram using flow charts, gantt charts, sequence diagrams, or class diagrams
https://jdbranham.github.io/grafana-diagram/
Apache License 2.0
452 stars 86 forks source link

graphviz support #251

Closed LrWm3 closed 6 months ago

LrWm3 commented 9 months ago

The org I worked for has added basic graphviz support to this plugin. The reason being thats what gstreamer produces when generating a diagram of the pipeline structure.

Most of the features of this plugin don't work at the moment but we can render a graphviz diagram, and we added zoom and pan as it can be hard to see otherwise.

Would it make more sense to try and publish it as a separate plugin or do you think it would be worth attempting to roll into this plugin and let users decide if they want to render using mermaid or graphviz.

Thanks.

jdbranham commented 9 months ago

That sounds interesting @LrWm3 ! graphviz support could be useful in other cases 🤔

If it's developed in a way that lets the user pick which diagram syntax is used, then it might work. And/or there's overlap in how things are styled....

LrWm3 commented 9 months ago

We will see how it goes on our end and see if we can get everything working for it.

If it looks good, we will open a PR where people can select either mermaid or graphviz.

madansu commented 6 months ago

@LrWm3 any update on this ?

LrWm3 commented 6 months ago

We got it working for our purposes but I don't think it would be sufficiently compatible with the existing plugin without more work.