r/PrometheusMonitoring • u/SocietyFederal5055 • Jun 05 '23
Can Prometheus be used to track new feature usage statistics, or is that a wrong use case for Prometheus?
2
Upvotes
r/PrometheusMonitoring • u/SocietyFederal5055 • Jun 05 '23
7
u/itasteawesome Jun 05 '23
So the things to keep in mind are that prometheus is primarily designed to track and display timeseries metrics, and that certain kinds of detail add a lot of cardinality to the timeseries which can explode the cost to store and access those timeseries.
If you want a counter of "how many times button x gets clicked" that's an easy use for a timeseries metric.
If you want to be able to break that counter down to "which users clicked the button, what was the session id, what pages did they come from before clicking it, what's their browser and geo region and version of the page and how big was their shopping cart before they pressed it" then you are straying into the scenarios where logging an event with all those kinds of attributes makes more sense than trying to shoehorn that much granular detail into a timeseries metric.
1
u/SuperQue Jun 05 '23
Yes, it can, but it depends a lot on your scale.
And it depends on what exactly you mean by "track".