Filtering happens after event LIMIT ?
johannagnarsson opened this issue · 4 comments
If this behavior is working as intended then feel free to close this, but I would imagine the LIMIT would apply after any filtering occurs.
In my current sensu-go setup (5.14.1) I have around ~14k events at any given moment according to the web UI.
I have the following filters in place:
In the Sensu web UI, if I select 'Status:Incident' as the filter, I get 3 events.
In Grafana If I lower the LIMIT value to below the total number of events, I will get 0 events returned.
Bring the LIMIT to above the number of events and I get the 3 incidents listed.
This possibly has to do with the fact that the checks start with Z and would probably be at the end of that list.
Using sensugo-datasource version 1.0.2 and grafana 6.4.3
# grafana-cli plugins ls
installed plugins:
sensu-sensugo-datasource @ 1.0.2
# grafana-cli -v
Grafana cli version 6.4.3
I can verify the same behavior with the exact versions
Hi,
yes, this behavior is correct.
It is like this because the limit defines the number of elements which are fetched by the data source from the Sensu Go backend. The filtering is then applied by the data source itself (in the browser). This has been done because at the time of implementing this feature, it was the only way of achieve such functionallity. This means, the data source have to fetch all data to be able to correctly filter and aggregating data.
Hi, i have the same issue.
any way to get around it? to fetch all data