Hi Rob,
I wonder if PromQL related things fit in promtool given the use for
PromQL is wider than just Prometheus. I can imagine something like a
"promqltool", which might actually be backed by the promql language
server (so people can get similar things in editors too).
However that's clearly a larger discussion, I don't see an issue with
adding some promql subcommands to promtool for now, particularly as
the formatting one exercises the code in Prometheus and is useful for
developers anyway.
I do think it's important to get the interface right, while we don't
guarantee complete stability in promtool, it is difficult to change
without breaking people. To that end I'm thinking of adding a top
level "--experimental" flag in promtool, which can then enable the
promql subcommands. (We do have feature flags in promtool, but that
feels wrong here, as feature flags are currently shared with
prometheus.)
David
> --
> You received this message because you are subscribed to the Google Groups "Prometheus Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
prometheus-devel...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/prometheus-developers/CABakzZa5NKzVY5yaY-NKbuqeULx8zhOHkuTKo_QiWCpFG%2BDnxQ%40mail.gmail.com.