Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Interpreting Sentry frequency graph

Tags:

python

sentry

Sentry provides nice graphs to show message frequency, but little information about what do they actually show.

enter image description here

Are these messages per minute? 5 minutes? 15 minute? hour?

like image 432
vartec Avatar asked Feb 21 '14 14:02

vartec


1 Answers

This chart are by minute. This is the model reponsible to store the data for that graph.

https://github.com/getsentry/sentry/blob/15c0291074087408c6f66ac1619365b148b9084c/src/sentry/models/groupcountbyminute.py

To give you a more detailed explanation:

The main chart has a DOM attribute data-api-url that points to sentry-api-chart view that returns the data from Project model from a ProjectManager mixed with this class:

https://github.com/getsentry/sentry/blob/15c0291074087408c6f66ac1619365b148b9084c/src/sentry/manager.py#L117

That class fetch the related time span from the previous model and returns the data.

like image 59
Enrique Paredes Avatar answered Nov 08 '22 15:11

Enrique Paredes