Generating copy-able PromQL queries instead of Prometheus URLs? #54
Replies: 0 comments 4 replies
-
One very hacky idea that would probably be feasible at least in the TypeScript plugin (and the VSCode) is to hook into the "Code Actions" of the language service. Wherein on action user could choose the link (request, error rates or latency) and what to do with it (open in Prometheus, Grafana, copy to clipboard etc.) 🙂 |
Beta Was this translation helpful? Give feedback.
-
Could we just simply leverage the VSCode extenstion and add several buttons/actions to the tooltip (copy query, go to link). This would make the extension a bit of a requirement but also supercharge the Autometrics experience. I also like the idea of showing graphs from within the extenion, we could tuck away any auth details in the settings for the extension. |
Beta Was this translation helpful? Give feedback.
-
An attendee at the Rust&Tell Meetup in Berlin made the good observation that the Prometheus URLs won't work for many people, because their Prometheus instances won't be directly accessible.
Should we:
We could make all of these options, though we want to be mindful of how many options we add, just because it makes the configuration more complicated.
Beta Was this translation helpful? Give feedback.
All reactions