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))
}