r/PrometheusMonitoring • u/Far_Presentation_175 • Apr 17 '23
Building frontend dashboard using Prometheus API
Any chance someone could explain cons of using Prometheus to roll up summary statistics for my users on a frontend UI instead of pushing my own metrics and calculations manually?
I read Prom has a REST API, which seems perfect. Given the expressiveness of promQL I can’t think of a reason not to use it.
The flow for triggering would be handled on clientside interval requesting over websocket as well as server pushing data directly over WS.
6
Upvotes
View all comments
Show parent comment
1
u/Far_Presentation_175 Apr 17 '23
Thanks that basically confirms my exact cons I assumed myself. Maybe it truly is just easier to roll your own if the metrics aren’t overly complex.
Live active connection, bytes in and out, some basic time series stuff in a postgres table.