Support prometheus histogram observation in pool metrics #245
Labels
No labels
P0
P1
P2
P3
good first issue
pool
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-sdk-go#245
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Is your feature request related to a problem? Please describe.
Prometheus supports histogram metrics that allow to look at distribution of observing value.
This is heavily adopted in frostfs-node to monitor duration of storage engine operations:
It would be nice to provide a way to produce duration histrogram metric with object and tree pools.
Describe the solution you'd like
Current statistic collecting approach is based on storing two atomic values for request counter and total duration. Client can provide a callback function, which is triggered when atomic values are upgraded.
Describe alternatives you've considered
Pool manages buckets by itself and works as prometheus metric provider.