Replies: 0 comments 2 replies
-
Thanks @b-n for this feature request! I agree that we should have great support for autometrics in Vim. The idea of using commands to generate the PromQL is interesting. Out of curiosity, where would you paste them to view them (Grafana, the Prometheus UI, etc)? Related to this, @keturiosakys and @stephlow also suggested using Code Actions for the autometrics links (instead of rendering them using markdown in the tooltips). Those could either link out to Prometheus like we're doing now or have options to copy the PromQL to the clipboard. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Adding/having the metrics created automatically is great, however I see a huge amount of the power coming from the generation of the PromQL.
From a vim users perspective, it would be nice to be able to generate and/or open the PromQL queries directly inside vim. The way I'm used to other plugins doing this is by providing functions. E.g. rust-vim (provides functions)[https://github.com/rust-lang/rust.vim#formatting-with-rustfmt] to help formatting rust directly inline. Something that might be a little more relevant to autometrics is the
:RustPlay
function which will not only call rustplay.In respect ot Language Servers (e.g. I know there is some thinking about that), normal ol Vim does not support LSP's out of the box. I believe NeoVim does, however some of us supplement this functionality with other plugins such as Ale.
This request comes from the Rust Amsterdam meetup on Tuesday 2nd May 2023!
Beta Was this translation helpful? Give feedback.
All reactions