Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Promtool query should print error messages from upstream server #8018

Closed
roidelapluie opened this issue Oct 7, 2020 · 7 comments
Closed

Comments

@roidelapluie
Copy link
Member

roidelapluie commented Oct 7, 2020

Proposal

Use case. Why is this important?

I was running promtool query instant https://admin:$pw@cortex.inuits.eu/prometheus up and got an error:

query error: client_error: client error: 401

It would have helped me if I would have got the error:

no org id (which in this case is sent by cortex)

$ curl https://admin:$pw@cortex.inuits.be/prometheus/api/v1/query
no org id

printed in the console too.

@roidelapluie roidelapluie changed the title Promtool should print the error message Promtool query should print error messages from upstream server Oct 7, 2020
@Harkishen-Singh
Copy link
Contributor

Will take this up.

@Harkishen-Singh
Copy link
Contributor

@roidelapluie do you have any endpoint which I can use? My test environment is not giving errors according to whats required here.

@roidelapluie
Copy link
Member Author

Just do the query against https://prometheus.io

@Harkishen-Singh
Copy link
Contributor

@roidelapluie could you give an example? That would be helpful.

@Harkishen-Singh
Copy link
Contributor

Just do the query against https://prometheus.io

Unable to reproduce this. BTW, the process is unclear as well.

@Harkishen-Singh
Copy link
Contributor

Should this issue be closed?

@beorn7
Copy link
Member

beorn7 commented May 21, 2024

Hello from the bug scrub.

Should this issue be closed?

We guess the answer is yes. :)

@beorn7 beorn7 closed this as completed May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants