Ok, Thanks. I will try them out Sent from my iPhone
> On 2. Apr 2020, at 19.28, Brian Candler <[email protected]> wrote: > > > What if you configure a single panel with multiple queries, each with their > own legend? > > <grafana-multi-query.png> > > > > Otherwise, if you have 10 different status values I think you should be able > to use recording rules to make 10 different timeseries with different labels, > which is what you originally asked for. > > Conventionally, when representing data this way in prometheus, you'd make > each series have value 0 or 1 at each instant (so every timeseries is > contiguous, and you don't have issues around staleness). I haven't tested > it, but try something like: > > > groups: > - name: foo > rules: > - record: foo:annotated > expr: foo == bool 0 > labels: > status: xxx > > - record: foo:annotated > expr: foo == bool 1 > labels: > status: yyy > > - record: foo:annotated > expr: foo == bool 2 > labels: > status: zzz > ... etc > > If you're going to do this, it may be better to modify the exporter if you > can, since it will know better all the possible status values and labels. > -- > 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/af9aaeb5-baa9-45df-8af4-1f39e4e1d40f%40googlegroups.com. > <grafana-multi-query.png> -- 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/4F717679-EC13-4ED8-91BF-F1F92073FDAF%40gmail.com.

