Skip to content

Add metric to track added latency to write requests#5781

Merged
mapno merged 1 commit intografana:mainfrom
mapno:metric-added-delay
Oct 22, 2025
Merged

Add metric to track added latency to write requests#5781
mapno merged 1 commit intografana:mainfrom
mapno:metric-added-delay

Conversation

@mapno
Copy link
Copy Markdown
Contributor

@mapno mapno commented Oct 22, 2025

What this PR does:

Add metric to track added latency to write requests

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

Namespace: "tempo",
Subsystem: "distributor",
Name: "added_latency_seconds",
NativeHistogramBucketFactor: 1.1,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not 1.1 to fine grained?

Copy link
Copy Markdown
Contributor Author

@mapno mapno Oct 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TBH I don't know, I used what's recommended in the docs

	// [...] A generally good trade-off
	// between cost and accuracy is a value of 1.1 (each bucket is at most
	// 10% wider than the previous one), which will result in each power of
	// two divided into 8 buckets (e.g. there will be 8 buckets between 1
	// and 2, same as between 2 and 4, and 4 and 8, etc.).

@mapno mapno merged commit 058140d into grafana:main Oct 22, 2025
22 checks passed
@mapno mapno deleted the metric-added-delay branch October 22, 2025 11:31
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