-
Notifications
You must be signed in to change notification settings - Fork 12.2k
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
marker in panels to make user aware of data issues #6448
Comments
would be really useful when having multiple queries with different data sources and some complete and some fail |
another case is when certain shards are down and the response may be partial |
cc @ryantxu |
basically what we should do is metrictank response json should have a section "warnings" or something, that is a list of string. each string is 1 warning message, in freefrom text (but can be expected to typically be short, maybe a sentence or two) and grafana can then plot the response and display a warning icon if there are warnings |
You can put errors in the result and still return data -- cloudwatch currently does this. The end use sees graphs as usual, but it has the red explanation mark in the corner that you click for more info. Is there a strong reason to have yellow vs red? In the case you list above error vs warning really depends on what you are trying to use it for. I can see warning for "it was slow" but not for "it may be incomplete!" |
Short answer... if metrictank returns a "warning" or "error" message, we can display that today |
Yeah, the severity of specific messages is subject to context, interpretation and use case. this could easily become a bikeshed discussion.
I can see your line of thinking in that in my examples of warnings above, they could also be considered errors, and perhaps we should err on the cautious side. ultimately though I mainly care that responses can be plotted and additionally the messages shown via an indicator (rather then the situation right now: you either communicate an error via non-2xx response code and return no data, or return 2xx with data, but don't get to communicate an error. as far as i know that's currently the only option for graphite/metrictank ) Do you have a preference for exactly how/where in the response body this included?
|
The other question is, what statuscode to use. |
dieter 8:38 PM |
I would say a 200, but with errors in the body. This is what we do for cloudwatch |
This issue has been automatically marked as stale because it has not had activity in the last year. It will be closed in 30 days if no further activity occurs. Please feel free to leave a comment if you believe the issue is still relevant. Thank you for your contributions! |
This issue has been automatically closed because it has not had any further activity in the last 30 days. Thank you for your contributions! |
in metrictank it's possible to run into partial cassandra errors, which results in incomplete data returned for a request (the idea being it's better to return partial data then no data at all).
It would be nice if Grafana could show a warning icon on panels that have partial data. Metrictank (or graphite-api) could inform grafana by setting a http header or something.
Thinking out loud, there could be various classes of problems with a response that a datasource may want to return, and grafana could display:
these could be displayed as a warning icon or something
The text was updated successfully, but these errors were encountered: