memcached_exporter icon indicating copy to clipboard operation
memcached_exporter copied to clipboard

extstore statistics

Open arodland opened this issue 4 years ago • 0 comments

When extstore is enabled, stats outputs some additional stats relating to it. They're in line with existing stats (storage used/limit, read/write/eviction counts, etc.) and adding them to the exporter is pretty simple, but they don't exist when extstore isn't enabled, so it requires some special handling to only export them when they actually exist, which I'm not quite sure on how to do.

Example of stats
STAT extstore_compact_lost 0
STAT extstore_compact_rescues 0
STAT extstore_compact_skipped 0
STAT extstore_page_allocs 0
STAT extstore_page_evictions 0
STAT extstore_page_reclaims 0
STAT extstore_pages_free 5119
STAT extstore_pages_used 1
STAT extstore_objects_evicted 0
STAT extstore_objects_read 0
STAT extstore_objects_written 0
STAT extstore_objects_used 0
STAT extstore_bytes_evicted 0
STAT extstore_bytes_written 0
STAT extstore_bytes_read 0
STAT extstore_bytes_used 0
STAT extstore_bytes_fragmented 67108864
STAT extstore_limit_maxbytes 343597383680

arodland avatar Jul 08 '21 19:07 arodland