During each scrap, makes available apcu related stats as gauge metrics.
Following is how scrap result looks like:
# HELP apcu_avail_mem
# TYPE apcu_avail_mem gauge
apcu_avail_mem 33521320
# HELP apcu_expunges
# TYPE apcu_expunges gauge
apcu_expunges 0
# HELP apcu_mem_size
# TYPE apcu_mem_size gauge
apcu_mem_size 0
# HELP apcu_memory_type
# TYPE apcu_memory_type gauge
apcu_memory_type mmap
# HELP apcu_num_entries
# TYPE apcu_num_entries gauge
apcu_num_entries 0
# HELP apcu_num_hits
# TYPE apcu_num_hits gauge
apcu_num_hits 0
# HELP apcu_num_inserts
# TYPE apcu_num_inserts gauge
apcu_num_inserts 0
# HELP apcu_num_misses
# TYPE apcu_num_misses gauge
apcu_num_misses 0
# HELP apcu_num_seg
# TYPE apcu_num_seg gauge
apcu_num_seg 1
# HELP apcu_num_slots
# TYPE apcu_num_slots gauge
apcu_num_slots 4099
# HELP apcu_seg_size
# TYPE apcu_seg_size gauge
apcu_seg_size 33554296
# HELP apcu_start_time
# TYPE apcu_start_time gauge
apcu_start_time 1522911981
# HELP apcu_ttl
# TYPE apcu_ttl gauge
apcu_ttl 0
During each scrap, makes available apcu related stats as gauge metrics.
Following is how scrap result looks like:
Inspiration: https://github.com/tweedegolf/prometheus-client/blob/master/src/Util/ApcuStatsCreator.php
Expectation: It would be helpful in keeping track of apcu stats. We would come to know if memory is running out etcetera.