-
Notifications
You must be signed in to change notification settings - Fork 11.8k
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
InfluxDB: Inconsistent query handling for InfluxQL in alerting #58864
Comments
I am not sure on the exact change to fix this yet, need to get a handle around Technically Why this isn't working:
The frame returned from Influx to SSE looks like (query:
So once we fix Aside, Hi there @sysadmin1139 !! Feels like a lifetime since we last connected around ServerFault and (usenix/lisa or one of those...?) :-) |
I was happily surprised when I saw who got this ticket, and those LISAs were great. Glad we have a theory for what's going on! |
It is. So what the influxdb datasource is doing on the backend (in the case of influx ql) is taking multiple queries if there are multiple queries (e.g. "A", "B"), concatenating the raw queries with |
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! |
Should be fixed by #68619. |
What happened:
We're building alerts for cardinality issues, which InfluxDB is prone to. The queries are pretty simple:
This returns a table:
Looking at InfluxDB query logging there is a slight difference in the submitted query. Here is the received query from an Explore or Panel (these return the same logging)
And the recorded query from Alerting:
The extra
;
is interesting, but does not seem to affect results. Adding the;
to the Explore and Panel queries does not cause them to go to NoData state. Only Alerting does this. It's clear that the query-path is substantially identical. Where the problem resides is in handling the returned data.What you expected to happen:
We expected the Alert queries to behave the same as the Explore/Panel queries (also to have an Inspect function on the Alert Rule page, but that's beside the point).
How to reproduce it (as minimally and precisely as possible):
Requirement: An InfluxDB server using InfluxQL, with at least one database containing at least one measurement with data in it.
Format As
to Tableshow tag values cardinality from [measurement] with key = [key_name from measurement]
using the existing measurement with data in it, and a key name from that measurement.Count
value with a number.Run Queries
. Query A should show No Data for each of Stat, Table, and Time series.Anything else we need to know?:
Environment:
The text was updated successfully, but these errors were encountered: