*I wish to On Thursday, September 17, 2020 at 9:16:21 AM UTC+5:30 Jeivardan wrote:
> Hi all, > > I have another doubt. In my system I to record every state change of a > variable can prometheus support this or promethus only save sample data? > > Regards, > Jeivardan > > On Friday, September 4, 2020 at 5:18:13 PM UTC+5:30 Jeivardan wrote: > >> Thank you for your responses. >> >> Regards, >> Jeivardan V >> >> On Friday, September 4, 2020 at 4:36:38 PM UTC+5:30 [email protected] >> wrote: >> >>> You can monitor anything that can be represented as a float64 numeric >>> value. The meaning and units of those metrics is up to you - whether it be >>> Volts or N/m^2 or whatever. >>> >>> For enums it's conventional to have a separate timeseries for each >>> choice: >>> >>> mymetric{state="foo"} 0 >>> mymetric{state="bar"} 1 >>> mymetric{state="baz"} 0 >>> mymetric{state="qux"} 0 >>> >>> You could instead have a single timeseries with different numeric values >>> for each enum choice - and some tools like Grafana support mapping of those >>> values to text labels - but it's generally less convenient. >>> >>> Prometheus can generate alerts from alerting rules, which are basically >>> PromQL expressions which are evaluated at repeated intervals and raise an >>> alert if a non-empty set of timeseries is returned. These are delivered to >>> a separate AlertManager component which groups and delivers alerts. >>> >> -- 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/a9ad63cf-987b-4e39-b01c-8f8c773dbcafn%40googlegroups.com.

