-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Transactions, replays, attachments and profiles are not visible in the stats section #55786
Comments
we are facing same issue currently. Anyways the organisation stats api endpoint is this https://github.com/getsentry/sentry/blob/master/src/sentry/api/endpoints/organization_stats_v2.py#L134 this is talking about "outcomes".
going to clickhouse and checking the stats:
which clearly shows that stats are not flowing in for some reason. |
checking the outcomes topic from kafka start some container which has kafka:
first get max offset (and partitions) for topic: in my case the result is
so the max offset is 7409576 if I check the content using So what is wrong here, lets check the logs from snuba-outcomes-consumer:
like we can clearly see, snuba-outcomes-consumer is using offset 7247519 which is about 200000 messages behind the current. So for some reason snuba-outcomes-consumer is stuck. When starting the outcomes-consumer component with --log-level DEBUG I can see following
so for some reason kafka is rejecting data (disk usage currently 88% might be one reason). |
now we have more disk in kafka. Looks like outcomes started to execute backlog and clickhouse is receiving new rows |
I've checked this services in my setup, and I don't see any lag, offset seems also fine but there are still no stats. So our problems are probably different in nature. Thanks for starting point, I'll look into that and if I found anything that can be useful I'll add another comment. |
I'm not too familiar with outcomes myself, but can redirect to the team in particular that may have more information here. |
Assigning to @getsentry/support for routing ⏲️ |
Routing to @getsentry/product-owners-stats for triage ⏲️ |
@hubertdeng123 This is something likely to do with how self-hosted sentry is deployed - we can add it to the backlog for an investigation later |
Thanks @Dhrumil-Sentry! I agree, as they're using an unsupported version so something is going wrong with how it is deployed. They'd like to know more of the technical details around what may be going wrong. Looks like the stats page pulls directly from snuba, so if there is no information there that's the main issue |
Just to confirm, @zetaab are you using self-hosted on docker compose? And Stats is working fine for you now? |
We are using kubernetes https://github.com/sentry-kubernetes/charts/tree/develop/sentry And stats are working |
My setup is based on the official, As for the logs:
|
Okey, to iterate further, I've got data in the
Data is also available in
So... I'm puzzled, problem must be on the reading side, but where could it be? |
Self-Hosted Version
23.7.2
CPU Architecture
x86_64
Docker Version
non-important (k8s cluster)
Docker Compose Version
non-important (k8s cluster)
Steps to Reproduce
Yes, I know that I've got non supported setup - I'm not asking for solving my particular case, rather for more information where to begin troubleshooting which should be useful if anyone has similar problem.
I do not know how to reproduce this, probably this is very specific issue - I'm looking for guidance where to look. I'd gladly attach any logs needed - I need to know at which container I should be looking :)
Expected Result
Everything with my setup works fine, except for the stats - only errors are collected and counted correctly. Other metrics, such as transactions or profiles are not counted and are always displayed as 0. Where should I begin to look for the issue? Transactions are visible in the "Performance", could be seen in dashboards and "Discovery", only place that says that I've got no transactions is stats.
AFAIR it stopped working after I've updated to 23.7.0, before that it was ok.
So the question is - how stats are counted, so I could pinpoint the issue? I'll describe solution for anyone to use where found.
Actual Result
Stats should be counted for all event types.
Event ID
No response
The text was updated successfully, but these errors were encountered: