On Sunday, 7 June 2020 14:54:31 UTC+1, Srihari Jonnalagadda wrote:
>
> Ya It creates a new time series. I don’t want to split up the data. So 
> thats the reason I have chosen the ID(dept-1) instead of name(Some Nice 
> People) as a label value. But then stuck with this question “how to provide 
> user friendly name(Some Nice People) in the query responses?”


By joining against another timeseries which adds the user-visible label - 
but this does make your queries longer and more complex.

https://www.robustperception.io/how-to-have-labels-for-machine-roles
https://www.robustperception.io/exposing-the-software-version-to-prometheus
https://prometheus.io/docs/prometheus/latest/querying/operators/#many-to-one-and-one-to-many-vector-matches
  
<https://prometheus.io/docs/prometheus/latest/querying/operators/#many-to-one-and-one-to-many-vector-matches>

-- 
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/1ba29053-8566-4a3c-8b3b-8562faad9e13o%40googlegroups.com.

Reply via email to