Skip to content

Conversation

@neilcook
Copy link
Contributor

Two new metrics are added:

  • storage_s3_call_error_by_type_total - Which adds an error type label; this is intended to replace the existing storage_s3_call_error_total metric over time, which only counts errors but not what type of error. A new metric was considered preferable to adding a label to an existing metric.
  • storage_s3_call_duration_seconds - Tracks the duration of each s3 method in a histogram

Some basic tests for the metrics are also added.

- New histogram metric measuring the duration of S3 calls by method
- New counter recording errors by method and error type (this is intended to
  replace the existing metric that just records errors by method)
@neilcook neilcook requested a review from wojas October 29, 2025 10:48
Copy link
Member

@wojas wojas left a comment

Choose a reason for hiding this comment

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

LGTM!

I was not aware of the existence of the prometheus testutil.

@neilcook neilcook merged commit faa3aa8 into main Oct 30, 2025
2 checks passed
@neilcook neilcook deleted the metrics branch October 30, 2025 17:16
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.

3 participants