Skip to content

Conversation

pulpdrew
Copy link
Contributor

@pulpdrew pulpdrew commented Sep 9, 2025

This (draft) PR represents an alternative delta implementation for gauge metrics in which deltas are calculated between buckets instead of within buckets, and by custom grouping instead of by time-series. This contrasts with the reference implementation in #1147, which does not work for HDX-2323.

This (draft) PR does not include updates to alerts which would likely be required so that consecutive time buckets are queried so that a delta can be calculated.

Testing

Container restarts result in a new ResourceAttributes.container.id value, effectively creating a new timeseries. This results in the reference delta values (in #1147) for each timeseries being 0.
Screenshot 2025-09-09 at 2 08 47 PM

At the pod-level grouping, there are deltas
Screenshot 2025-09-09 at 2 14 54 PM

With this implementation, we can expose those deltas as something that could be alerted on.
Screenshot 2025-09-09 at 2 15 05 PM

Copy link

changeset-bot bot commented Sep 9, 2025

🦋 Changeset detected

Latest commit: 1889ae0

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@hyperdx/common-utils Minor
@hyperdx/app Minor
@hyperdx/api Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Sep 9, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
hyperdx-v2-oss-app Ready Ready Preview Comment Sep 9, 2025 5:47pm

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.

1 participant