See: https://groups.google.com/g/prometheus-users/c/yMad-AKSKz8
On Wednesday, 15 September 2021 at 10:15:08 UTC+1 [email protected] wrote: > Hey everyone, Can anyone help me with this: > > I want to combine two metrics in such a way that both should be displayed > on one graph in Prometheus. For eg: > metric_one{label1:value1} 123 > metrci_two{label2:value2} 345 > > I want these metrics should be displayed on one graph in Prometheus. > The collect() function for this is as: > > Collect() > { > > > ch<-prometheus.MustNewConstMetric(c.metric1,prometheus.CounterValue,float64(123)) > > ch<-prometheus.MustNewConstMetric(c.metric2,prometheus.CounterValue,float64(345)) > } > -- 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/37b75f5e-c442-46d6-a690-9fd2d5ef6fc7n%40googlegroups.com.

