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/a2f38df9-b3cb-4e00-8d0b-8d463e6fb4bbo%40googlegroups.com.