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

Add pre-aggregation tables with 5m and 30m resolution for samples v4 #361

Merged
merged 2 commits into from
Aug 13, 2024

Conversation

srikanthccv
Copy link
Member

@srikanthccv srikanthccv commented Aug 12, 2024

The supported temporal aggregation in metrics are

  • latest
  • min
  • max
  • avg
  • sum
  • count
  • count distinct

This change adds a pre-aggregated table with

  • last (to support the latest)
  • min
  • max
  • sum
  • count

The avg will be calculated using sum/count. We don't support count distinct because it is rarely used and doesn't need pre-aggregation wherever it is used.

Please see https://www.notion.so/signoz/Metrics-samples-aggregation-tables-71db1d3ac3724f5ba693e0e99eb352ce for additional detail and how the queries would be written on these tables.

@srikanthccv srikanthccv merged commit 26a2061 into main Aug 13, 2024
7 checks passed
@srikanthccv srikanthccv deleted the metrics-agg-tables branch August 13, 2024 07:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants