-
Notifications
You must be signed in to change notification settings - Fork 74
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
Metrics #73
Metrics #73
Conversation
5331bd6
to
f9eea5f
Compare
Objectives: SummaryObjectives, | ||
}, []string{"group", "peer"}) | ||
metricUpdatePeerLatency = prometheus.NewSummaryVec(prometheus.SummaryOpts{ | ||
Name: "groupcache_update_peer_latency", |
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.
Probably should be called groupcache_set_peer_latency
😃
49af3e3
to
ca02586
Compare
ca02586
to
72a8db8
Compare
I am using this exporter to collect metrics from groupcache in prometheus format while keeping prometheus metrics decoupled from groupcache: |
Closing in favor of existing metrics solution: https://github.com/udhos/groupcache_exporter Thanks, @udhos |
Increase visibility of cache state and performance with Prometheus metrics.
Upstream deps must register metrics returned by
GetMetrics()
.Metrics
Peer to peer
groupcache_get_from_peer_latency{group}
: The latency in seconds getting value from remote peergroupcache_set_peer_latency{group}
: The latency in seconds during peer update after a SetCache stats
type
denotes cache typemain
orhot
.groupcache_stats_bytes{group, type}
: The number of bytes stored in cachegroupcache_stats_items{group, type}
: The number of items stored in cachegroupcache_stats_gets{group, type}
: The count of get requestsgroupcache_stats_hits{group, type}
: The count of cache hitsgroupcache_stats_evictions{group, type}
: The count of cache evictions