Admin panel #49
Replies: 0 comments 17 replies
-
What if instead of opening a full UI panel, we would just open an API endpoint that can be queried by the extension for function discovery, instead of relying on Prometheus for that. It wouldn't work outside the extension (or Fiberplane) obviously, but otherwise it might achieve the same thing. And we might fix autometrics-dev/vscode-autometrics#11 sideways. |
Beta Was this translation helpful? Give feedback.
-
I struggle to understand how we would make the UI without running Prometheus as it's the query engine that provides data. Do we want the Admin/Overview page to directly show graphs even if there's no data (no Prometheus)? If so, what's the data generation strategy, and how do we make it different enough from real data? We want to run the UI in "development" mode so that there's little friction to try and see what autometrics has to say. That means we want to be able to run fully locally right? In that case, we need to ship somehow the UI so that local visualization is available too. I guess the lowest friction method to ship a screen/UI is to pack it in a VSCode extension — it's a one click install (even as an additional "Autometrics Dashboard" extension) and then 1 click to go to the relevant screen. No server to run in a background, no need to open a browser tab/separate GUI app. For non-local "Admin panels", once autometrics is actually deployed with an app somewhere, I suppose we could write a small React app specifically to run as the server, which wouldn't be a costly setup since users are likely to already manage a Grafana deployment to look at the metrics. And we could have a public library for anyone to write their UIs if they want to? |
Beta Was this translation helpful? Give feedback.
-
It would be kind of neat if you could look at all the charts, etc that autometrics would generate for you, without having to run Prometheus separately. I'm thinking along the lines of an admin panel or UI that would somehow be bundled with the autometrics libraries and then exposed on another endpoint or port from your application itself. Obviously, this would only be in development mode and we'd probably want most of the actual UI to be served from some remote thing so we don't need to bundle tons of JS and whatnot into the actual libraries.
Some annoying things about this is we'd need to figure out how to "run the queries" without actually having the Prometheus query engine, or we'd need to figure out how to display the same graphs without using the actual queries.
Beta Was this translation helpful? Give feedback.
All reactions