-
Notifications
You must be signed in to change notification settings - Fork 31
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
Grafana Smart Query Prometheus missing key #85
Comments
Dear Pankaj, thank you for writing in. Up until now, the smartquery subsystem has been primarily conceived to check datasources for health, see references below. That's probably the reason why many of the implementations are only stubs, and lack corresponding parameter propagations. On the specific issue of improving the support for Prometheus on this matter, I think @peekjef72 already submitted corresponding improvements - at least this code fragment looks like that. With kind regards, References |
Thanks @amotl, will be looking forward to use this library once this code gets merges. If any bugs found, will surely contribute to the repo |
Dear Pankaj, the improvements to the library by @peekjef72 have been merged. Maybe you are more successful now to run your query? We will be happy to hear back from you about it. With kind regards, |
Dear @PankajKhanwani, first of all, we would like to wish you a happy new year. Also, we want to take the chance to ask you whether you had the chance to check if querying Prometheus through With kind regards, |
Not yet. I will check it soon and will close this if everything works |
Gentle ping ;]. We just released grafana-client 4.0.0 with a few more enhancements. Please let us know if the current version improves the situation for you. We would otherwise like to look into it, in order to improve functionality for you and others needing it. |
Describe the bug
I have called smartquery for the
type=prometheus
.This function doesn't take from and to keys which is required to call grafana for the prometheus query, otherwise it is giving 200 ok but the output doesn't contain any data. But if provided with timestamp in from and to it gives the data.
This is the result:
The text was updated successfully, but these errors were encountered: