Skip to content
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

Issue with alerting basic rules on Issue category #266

Closed
chaitanya-toddleapp opened this issue Jun 4, 2024 · 3 comments
Closed

Issue with alerting basic rules on Issue category #266

chaitanya-toddleapp opened this issue Jun 4, 2024 · 3 comments
Labels
datasource/Sentry type/bug Something isn't working

Comments

@chaitanya-toddleapp
Copy link

I'm experiencing an issue while alerting basic rules on the Issue category of our project. The issue occurs when I attempt to set up basic alerting rules. Following error message is displayed
[sse.read Data Error] got error: input data must be a wide series but got type long (input refid)

Steps to Reproduce:

  • Create a new rule
  • Select Sentry as the Data Source
  • Select Issues as Query Type
  • Select Project and Environment
  • Press Shift + Enter to execute the query

Expected Behavior:
The query should get successfully executed and get a date in the result

Actual Behavior:
The following error is encountered during the configuration process, preventing the setup of alerting rules:
[sse.read Data Error] got error: input data must be a wide series but got type long (input refid)
Screenshots:
Screenshot 2024-06-04 at 11 21 43 AM

Sentry Plugin Version - 1.8.0
Grafana - v10.2.0

@adamyeats
Copy link
Contributor

@chaitanya-toddleapp It looks like you're encountering this error because an Issues query alone isn't enough to create an alert in Grafana. Grafana can't figure out how to use the data from this query to determine when to trigger an alert. It doesn't know which properties from the Sentry response should be used as metrics.

To solve this, you'll need to use an expression or aggregation (via the "Query" box) to transform the data into a format Grafana can work with. I think this could be better documented, so I'll work with my team to improve the documentation here.

In the meantime, could you let me know exactly what you're trying to achieve with your alert? For instance, if you want to be alerted when the number of events increases, a Stats query might be more appropriate.

@bossinc
Copy link
Contributor

bossinc commented Jun 25, 2024

Closing. Feel free to reopen if this isn't resolved

@bossinc bossinc closed this as completed Jun 25, 2024
@omri-shilton
Copy link

@chaitanya-toddleapp did you end up solving this issue?
we are also experiencing this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
datasource/Sentry type/bug Something isn't working
Projects
Archived in project
Development

No branches or pull requests

4 participants