This is not filtering the labels by values here I only want to select 
couple of labels in the results instead of getting all the labels over the 
wire.
Also, I'm not using this for visualization, I'm trying to write a backend 
API which fetches the data from prometheus and runs some business logic on 
the data.

Thanks for your time.

On Monday, 10 May 2021 at 12:38:50 UTC+5:30 Hello World wrote:

> Hi All,
>
> Let us assume that we have some metrics like this,
> up {instance="instance1", job="job1", namespace="namespace1", 
> svc_name="first_service"}
> up {instance="instance1", job="job2", namespace="namespace2", 
> svc_name="second_service"}
>
> is there a way to select specific labels from the server instead of 
> getting all the labels in the result? like the svc_name, namespace.etc
> something like this,
>
> up{namespace="namespace1", svc_name="first_service"}
> up{namespace="namespace2", svc_name="second_service"}
>
> This is like selecting a couple of columns from a table containing 20 
> columns.
>
> Thanks.
>

-- 
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/5494d002-4f35-4799-971a-cb1e12a281c5n%40googlegroups.com.

Reply via email to