Prometheus scraping at metric-endpoint

20 views
Skip to first unread message

Prince

unread,
Sep 9, 2021, 6:06:41 AM9/9/21
to Prometheus Developers
Hi everyone,
Can anyone please let me know, Is it possible to collect multiple gauge values for a single time series at the metric end-point?
For eg: the text-format exposition 

my_metric{lname:"abc"} 1.5 2.5 
** here metric name is: my_metric
     label name is: lname
     label value is:  abc
First gauge value: 1.5
Second gauge value: 2.5
  
 

Stuart Clark

unread,
Sep 9, 2021, 6:27:48 AM9/9/21
to Prince, Prometheus Developers
Each metric has exactly one value, so if you are wanting to store
multiple values that would be multiple metrics, each with a unique name.

So for example my_metric_temperature_degrees & my_metric_height_meters

--
Stuart Clark

Prince

unread,
Sep 13, 2021, 12:23:25 AM9/13/21
to Prometheus Developers
Thank you. 
So for a for each unique label value there will be a unique time-series

Reply all
Reply to author
Forward
0 new messages