How are you storing the timestamp? Is that in a label or a metric value as the last call to the API?
In general these are sounding like you are trying to store events within Prometheus rather than metrics. Normally you'd not have a timestamp but a counter of the number of calls to the API. On 31 March 2020 12:27:38 BST, REMI DRUILHE <[email protected]> wrote: > > >Le lundi 30 mars 2020 16:37:11 UTC+2, Brian Candler a écrit : >> >> On Monday, 30 March 2020 09:34:01 UTC+1, REMI DRUILHE wrote: >>> >>> In our context, Prometheus is storing system metrics and business >>> metrics, especially the number of accesses to the methods of our >API. >>> >>>> >>>>> >> That presumably is an aggegate of all calls to a particular method. >> >> If you recorded counts as separate metrics labelled by source IP >address >> or username, then that would be identifiable. But prometheus does >not work >> well with such high cardinality metrics anyway. >> > >Yeah, it is just the timestamp of the call that is stored, not the IP >or >the user name. Thus, it is not identifiable with Prometheus only. But, >the >system aims at being used by 1 or 2 persons at the same time in a >closed >network. In this context, I think it could be easy for someone to >associate >the timestamp with the person that was using the application at a >specific >time. > >Anyway, I will figure out another way to achieve what we would like to >do. > >Thanks for the help. > >-- >You received this message because you are subscribed to the Google >Groups "Prometheus Users" group. >To unsubscribe from this group and stop receiving emails from it, send >an email to [email protected]. >To view this discussion on the web visit >https://groups.google.com/d/msgid/prometheus-users/40f42a0c-64ef-4ec4-93f8-2ef0cf65a6c8%40googlegroups.com. -- Sent from my Android device with K-9 Mail. Please excuse my brevity. -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/D580F35A-7514-4CF0-9382-3022AEE1772C%40Jahingo.com.

