Skip to content
This repository was archived by the owner on Oct 25, 2022. It is now read-only.

eana/memcached-exporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 

Repository files navigation

Memcached Exporter

A memcached exporter for prometheus.

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).

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.

Building and running it

HOSTIP=$(ip -4 a s dev docker0 | grep inet | awk '{print $2}' | cut -d / -f 1)
TAG=$(curl -s https://api.github.com/repos/prometheus/memcached_exporter/tags | jq --raw-output '.[].name')

docker build -t memcached-exporter:${TAG} github.com/eana/memcached-exporter

Assuming you already have a docker container running a memcached instance:

docker run --name memcached-exporter -d -p ${HOSTIP}:9150:9150 \
    --restart=always \
    -e INSTANCE=${HOSTIP}:11211 \
    memcached-exporter:${TAG}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •