grafana-toolbox / grafana-wtf

Grep through all Grafana entities in the spirit of git-wtf.
GNU Affero General Public License v3.0
144 stars 13 forks source link

Direct panel/variable editor URLs in the output of "find" #43

Closed oplehto closed 1 year ago

oplehto commented 1 year ago

This is an excellent tool! Thank you!

It would be really handy to have the direct URL to the panel or variable editor in the find output.

This would make the panel fixing workflow a lot smoother:

  1. Review all the queries for a given data source type in bulk
  2. Spot a bad query
  3. Hop on to the editor to fix it just by clicking the link
amotl commented 1 year ago

Hi Olli-Pekka,

thanks, appreciate you are finding this tool useful.

It would be really handy to have the direct URL to the panel or variable editor in the find output.

If it's missing there, it should certainly be added. Ah, let me emphasize: You are referring to the direct URL to

Otherwise, can you provide corresponding examples of direct URLs you would like to see?

With kind regards, Andreas.

oplehto commented 1 year ago

Yes, exactly: editPanel and editview URLs.

I just realized that the template editor do not have a direct URL to the specific variable but just the editview=templating is good enough at least for me.

amotl commented 1 year ago

Thank you for clarifying. It will probably take some time for me to get back to another iteration on grafana-wtf [^1]. When doing so, it will probably be an easy update.

[^1]: In the meanwhile, everyone from the community is encouraged to submit patches.

amotl commented 1 year ago

Hi again,

GH-56 brings in a corresponding patch, which implements this feature.

With kind regards, Andreas.

amotl commented 1 year ago

I've just released grafana-wtf 0.14.0, which includes the corresponding improvement. Let me know if that works for you.

amotl commented 1 year ago

Hi again,

I think it will be safe to close this issue. Please do not hesitate to re-open if you think the new feature could be improved further. Thank you very much for suggesting this feature.

With kind regards, Andreas.