jai kunwar
jai kunwar

Reputation: 49

PromeTheus Query Error while using label expression

I used the following query which works fine:

curl "https://ulvtzkt007.saifg.abc.com:9090/api/v1/query?query=kafka_consumergroup_group_lag" 

But when I used the same query with label filter like below:

curl "https://ulvtzkt007.saifg.rbc.com:9090/api/v1/query?query=kafka_consumergroup_group_lag{job='prometheus'}" 

I get an error.

Please see this screenshot for more details:

enter image description here

Upvotes: 0

Views: 502

Answers (1)

tanmay_bhat
tanmay_bhat

Reputation: 151

You need to use -g option with curl :

curl -g "https://ulvtzkt007.saifg.rbc.com:9090/api/v1/query?query=kafka_consumergroup_group_lag{job='prometheus'}" 

Upvotes: 1

Related Questions