grafana / sentry-datasource

Grafana data source plugin for Sentry.
https://grafana.com/grafana/plugins/grafana-sentry-datasource/
Apache License 2.0
23 stars 14 forks source link

Add aggregate functions to query builder #73

Open asimpson opened 1 year ago

asimpson commented 1 year ago

In order to support additional alerting functionality (e.g. fire an alert when the number of issues crosses an interval) we should support aggregate functionality in the query builder.

vanchaxy commented 1 year ago

Isn't this already covered by reduce expression?

E.g: this alert will fire when you have more than 300 issues in 3 hours

image
asimpson commented 1 year ago

@vanchaxy You are correct that reduce is the right expression but if you try a Issue query it won't work.

louiswebdev commented 11 months ago

We were also not able to create an alert for an issue query - but thanks for showing a possible alternative here https://github.com/grafana/sentry-datasource/issues/73#issuecomment-1763258770

kesik87 commented 10 months ago

Having same issue with creating grafana alert. Creating one for "stats" query type doesn't work for me as there is no filtering by environment.