Skip to content

sciffer/memcache_exporter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Memcached Exporter for Prometheus

A memcached exporter for prometheus.

Building and Running

The memcache exporter exports metrics from a single memcached server for consumption by prometheus. The server is specified as an argument to the program.

By default the memcache_exporter serves on port 9106 at /metrics

make
./memcache_exporter memcached:11211

Alternatively a Dockerfile is supplied

docker build -t memcache_exporter .
docker run memcache_exporter

To change the server scraped using the Dockerfile method, simply create your own Dockerfile, and overwrite the CMD setting. This is also the way to enable logging etc.

FROM snapbug/memcache-exporter
CMD ["yourserver:yourport"]

Collectors

The exporter collects a number of collections from the server:

  • up: whether the server is up.

  • uptime: how long the server has been up.

  • cache: exposes the number of cache hits and misses for each server and command. For instance {command='get',status='hits'} will say how many get commands resulted in a hit in the cache.

  • bytes: exposes the number of bytes read and written by each server, under the label direction.

  • removal: exposes how many keys have been expired and evicted. In the case of evicted keys it's also separated by whether they were ever fetched or not.

  • usage: exposes the current and total number of connections to the cache and items in the cache.

About

memcache exporter for prometheus

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 90.2%
  • Makefile 9.8%