Add local storage metrics #420
No reviewers
Labels
No labels
P0
P1
P2
P3
badger
frostfs-adm
frostfs-cli
frostfs-ir
frostfs-lens
frostfs-node
good first issue
triage
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
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-node#420
Loading…
Reference in a new issue
No description provided.
Delete branch "dstepanov-yadro/frostfs-node:feat/local_storage_metrics"
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?
Closes #373
1edb7d530c
to252485732e
252485732e
to1e6d587cd1
1e6d587cd1
to8e01185bef
8e01185bef
to07eeff247a
07eeff247a
to8803b9ca1a
d608597b0f
to0c38c55ecd
0c38c55ecd
to392bff6c16
392bff6c16
to0410c3093e
f8e2a2f095
tob9b46b909c
b9b46b909c
toc88455d515
c88455d515
to8c072bc306
c05a213923
toae3441c6a3
ae3441c6a3
to2411f37ff9
4e44ca56b4
to34c9416b84
34c9416b84
to81a57cbe3a
81a57cbe3a
to7c58bca226
WIP: Add local storage metricsto Add local storage metricsLGTM. Brilliant work 👍
@ -179,2 +181,4 @@
if err == nil {
db.metrics.Close()
}
return nil
Looks like needs to return err here.
fixed
@ -19,0 +30,4 @@
_, span := tracing.StartSpanFromContext(ctx, "metabase.FilterExpired",
trace.WithAttributes(
attribute.String("epoch", fmt.Sprintf("%v", epoch)),
Is it possible to use
strconv.FormatBool
here and below?fixed
@ -281,1 +300,4 @@
func (db *DB) IsLocked(ctx context.Context, prm IsLockedPrm) (res IsLockedRes, err error) {
var (
startedAt = time.Now()
success = false
Is it necessary to define
success
if it is unused?fixed
7c58bca226
to2ea612af71
2ea612af71
to4cad86c21c
Also moved label keys and other consts to
consts.go
file.@ -7,3 +13,3 @@
// Exists check if object with the specified address is stored in b.
func (b *Blobovnicza) Exists(addr oid.Address) (bool, error) {
func (b *Blobovnicza) Exists(ctx context.Context, addr oid.Address) (bool, error) {
Seems unrelated to the metrics addition, can we move it to a separate commit?
Fixed
@ -127,2 +131,3 @@
blobovnicza.WithReadOnly(b.readOnly),
blobovnicza.WithPath(filepath.Join(b.rootPath, p)),
blobovnicza.WithPath(path),
blobovnicza.WithMetrics(b.metrics.BlobovnicaMetrics(path)),
We currently can have a thousand of blobovniczas, I am not sure having a separate metric (not one!) for each is a good idea.
We have
blobovniczatree
as a part of blobstor,blobovnicza
looks like an implementation detail.Fixed. Now blobovnizca metrics exports only open blobovnizca counter and total open blobovnizca size for blobovnizcas tree.
4cad86c21c
to3b364959ba
3b364959ba
to037bfbb99e
037bfbb99e
tof34878a574
f34878a574
to03aa210145