prometheus/memcached_exporter

Name: memcached_exporter

Owner: Prometheus

Description: Exports metrics from memcached servers for consumption by Prometheus.

Created: 2016-04-27 04:10:47.0

Updated: 2018-05-23 07:32:47.0

Pushed: 2018-05-23 10:15:27.0

Homepage: null

Size: 1612

Language: Go

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Memcached Exporter for Prometheus Build Status

Docker Repository on Quay Docker Pulls

A memcached exporter for prometheus.

Building

The memcached exporter exports metrics from a memcached server for consumption by prometheus. The server is specified as --memcached.address flag to the program (default is localhost:11211).

By default the memcache_exporter serves on port 0.0.0.0:9150 at /metrics


mcached_exporter

Alternatively a Dockerfile is supplied

er run -p 9150:9150 quay.io/prometheus/memcached-exporter:v0.4.1
Collectors

The exporter collects a number of statistics from the server:

LP memcached_commands_total Total number of all requests broken down by command (get, set, etc.) and status.
PE memcached_commands_total counter
LP memcached_connections_total Total number of connections opened since the server started running.
PE memcached_connections_total counter
LP memcached_current_bytes Current number of bytes used to store items.
PE memcached_current_bytes gauge
LP memcached_current_connections Current number of open connections.
PE memcached_current_connections gauge
LP memcached_current_items Current number of items stored by this instance.
PE memcached_current_items gauge
LP memcached_items_evicted_total Total number of valid items removed from cache to free memory for new items.
PE memcached_items_evicted_total counter
LP memcached_items_reclaimed_total Total number of times an entry was stored using memory from an expired entry.
PE memcached_items_reclaimed_total counter
LP memcached_items_total Total number of items stored during the life of this instance.
PE memcached_items_total counter
LP memcached_limit_bytes Number of bytes this server is allowed to use for storage.
PE memcached_limit_bytes gauge
LP memcached_malloced_bytes Number of bytes of memory allocated to slab pages.
PE memcached_malloced_bytes gauge
LP memcached_max_connections Maximum number of clients allowed.
PE memcached_max_connections gauge
LP memcached_read_bytes_total Total number of bytes read by this server from network.
PE memcached_read_bytes_total counter
LP memcached_slab_chunk_size_bytes Number of bytes allocated to each chunk within this slab class.
PE memcached_slab_chunk_size_bytes gauge
LP memcached_slab_chunks_free Number of chunks not yet allocated items.
PE memcached_slab_chunks_free gauge
LP memcached_slab_chunks_free_end Number of free chunks at the end of the last allocated page.
PE memcached_slab_chunks_free_end gauge
LP memcached_slab_chunks_per_page Number of chunks within a single page for this slab class.
PE memcached_slab_chunks_per_page gauge
LP memcached_slab_chunks_used Number of chunks allocated to an item.
PE memcached_slab_chunks_used gauge
LP memcached_slab_commands_total Total number of all requests broken down by command (get, set, etc.) and status per slab.
PE memcached_slab_commands_total counter
LP memcached_slab_current_chunks Number of chunks allocated to this slab class.
PE memcached_slab_current_chunks gauge
LP memcached_slab_current_items Number of items currently stored in this slab class.
PE memcached_slab_current_items gauge
LP memcached_slab_current_pages Number of pages allocated to this slab class.
PE memcached_slab_current_pages gauge
LP memcached_slab_items_age_seconds Number of seconds the oldest item has been in the slab class.
PE memcached_slab_items_age_seconds gauge
LP memcached_slab_items_crawler_reclaimed_total Total number of items freed by the LRU Crawler.
PE memcached_slab_items_crawler_reclaimed_total counter
LP memcached_slab_items_evicted_nonzero_total Total number of times an item which had an explicit expire time set had to be evicted from the LRU before it expired.
PE memcached_slab_items_evicted_nonzero_total counter
LP memcached_slab_items_evicted_time_seconds Seconds since the last access for the most recent item evicted from this class.
PE memcached_slab_items_evicted_time_seconds counter
LP memcached_slab_items_evicted_total Total number of times an item had to be evicted from the LRU before it expired.
PE memcached_slab_items_evicted_total counter
LP memcached_slab_items_evicted_unfetched_total Total nmber of items evicted and never fetched.
PE memcached_slab_items_evicted_unfetched_total counter
LP memcached_slab_items_expired_unfetched_total Total number of valid items evicted from the LRU which were never touched after being set.
PE memcached_slab_items_expired_unfetched_total counter
LP memcached_slab_items_outofmemory_total Total number of items for this slab class that have triggered an out of memory error.
PE memcached_slab_items_outofmemory_total counter
LP memcached_slab_items_reclaimed_total Total number of items reclaimed.
PE memcached_slab_items_reclaimed_total counter
LP memcached_slab_items_tailrepairs_total Total number of times the entries for a particular ID need repairing.
PE memcached_slab_items_tailrepairs_total counter
LP memcached_slab_mem_requested_bytes Number of bytes of memory actual items take up within a slab.
PE memcached_slab_mem_requested_bytes gauge
LP memcached_up Could the memcached server be reached.
PE memcached_up gauge
LP memcached_uptime_seconds Number of seconds since the server started.
PE memcached_uptime_seconds counter
LP memcached_version The version of this memcached server.
PE memcached_version gauge
LP memcached_written_bytes_total Total number of bytes sent by this server to network.
PE memcached_written_bytes_total counter

There is also optional support to export metrics about the memcached process itself by setting the --memcached.pid-file <path> flag. If the memcached_exporter process has the rights to read /proc information of the memcached process, then the following metrics will be exported additionally.

LP memcached_process_cpu_seconds_total Total user and system CPU time spent in seconds.
PE memcached_process_cpu_seconds_total counter
LP memcached_process_max_fds Maximum number of open file descriptors.
PE memcached_process_max_fds gauge
LP memcached_process_open_fds Number of open file descriptors.
PE memcached_process_open_fds gauge
LP memcached_process_resident_memory_bytes Resident memory size in bytes.
PE memcached_process_resident_memory_bytes gauge
LP memcached_process_start_time_seconds Start time of the process since unix epoch in seconds.
PE memcached_process_start_time_seconds gauge
LP memcached_process_virtual_memory_bytes Virtual memory size in bytes.
PE memcached_process_virtual_memory_bytes gauge

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.