Skip to content

Commit 39e39e6

Browse files
coolguyzoneAlex Krawiec
andauthored
Add explicit aggregation methods for metrics (#15480)
<!-- Use this checklist to make sure your PR is ready for merge. You may delete any sections you don't need. --> ## DESCRIBE YOUR PR *Tell us what you're changing and why. If your PR **resolves an issue**, please link it so it closes automatically.* ## IS YOUR CHANGE URGENT? Help us prioritize incoming PRs by letting us know when the change needs to go live. - [ ] Urgent deadline (GA date, etc.): <!-- ENTER DATE HERE --> - [ ] Other deadline: <!-- ENTER DATE HERE --> - [ ] None: Not urgent, can wait up to 1 week+ ## SLA - Teamwork makes the dream work, so please add a reviewer to your PRs. - Please give the docs team up to 1 week to review your PR unless you've added an urgent due date to it. Thanks in advance for your help! ## PRE-MERGE CHECKLIST *Make sure you've checked the following before merging your changes:* - [ ] Checked Vercel preview for correctness, including links - [ ] PR was reviewed and approved by any necessary SMEs (subject matter experts) - [ ] PR was reviewed and approved by a member of the [Sentry docs team](https://github.com/orgs/getsentry/teams/docs) ## LEGAL BOILERPLATE <!-- Sentry employees and contractors can delete or ignore this section. --> Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms. ## EXTRA RESOURCES - [Sentry Docs contributor guide](https://docs.sentry.io/contributing/) --------- Co-authored-by: Alex Krawiec <[email protected]>
1 parent 2366a0e commit 39e39e6

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docs/product/explore/metrics/index.mdx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ Sentry supports three types of metrics:
3535

3636
Counters track how many times something happened. Each increment adds to a cumulative total.
3737

38+
**Aggregation methods**: `sum`, `per_second`, and `per_minute`.
39+
3840
**Use cases**: events that occur over time
3941
- `email.sent` - Track total emails sent
4042
- `checkout.failed` - Track failed checkout attempts
@@ -44,14 +46,18 @@ Counters track how many times something happened. Each increment adds to a cumul
4446

4547
Gauges set a specific value at a point in time, like a snapshot. The latest value replaces the previous one.
4648

49+
**Aggregation methods**: `min`, `max`, `avg`, `per_second`, and `per_minute`.
50+
4751
**Use cases**: current state or level
4852
- `queue.depth` - Current number of items in queue
4953
- `pool.in_use` - Active connections in a pool
5054
- `memory.usage` - Current memory consumption
5155

5256
### Distributions
5357

54-
Distributions record numeric values to compute statistical aggregates like p50, p95, average, and sum.
58+
Distributions record numeric values to compute statistical aggregates.
59+
60+
**Aggregation methods**: `p50`, `p75`, `p95`, `p99`, `avg`, `sum`, `min`, `max`, `count`, `per_second`, and `per_minute`.
5561

5662
**Use cases**: values that vary and need statistical analysis
5763
- `cart.amount_usd` - Purchase amounts for revenue tracking

0 commit comments

Comments
 (0)