-
Notifications
You must be signed in to change notification settings - Fork 344
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add basic metrics for sharky #2759
Conversation
9200807
to
0583efe
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice! I have some suggestions
pkg/sharky/store.go
Outdated
} | ||
return sh, nil | ||
store.metrics.ShardSize.Set(float64(len(store.shards))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just to mention, this is not shard size
but number of shard
. shard size would be the number of the items in the shard, which would be the filesize/datasize
and should be updated when the shard grows
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
also missing - you need to register the metrics in the |
0583efe
to
b7cdf69
Compare
Yes, but that would be done in the #2682 PR, since the sharky is instantiated there. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 2 of 2 files at r2, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @acud and @aloknerurkar)
pkg/sharky/store.go, line 68 at r1 (raw file):
Previously, mrekucci wrote…
Done.
this is simply shardCnt
variable
060da23
to
26f14b7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @acud and @aloknerurkar)
pkg/sharky/store.go, line 68 at r1 (raw file):
Previously, zelig (Viktor Trón) wrote…
this is simply
shardCnt
variable
Done.
b7cdf69
to
d773c41
Compare
d773c41
to
df5db56
Compare
Introduces basic metrics for sharky as read, write counters and their error counters, shard size counter.
This change is