memcache_exporter

command module
v0.0.0-...-a92141d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2016 License: Apache-2.0 Imports: 8 Imported by: 0

README

Note

This project has been subsumed under the prometheus umbrella at prometheus/memcached_exporter. I strongly suggest switching to that repository unless:

Memcached Exporter for Prometheus

A memcached exporter for prometheus.

Building and Running

The memcache exporter exports metrics from memcached servers for consumption by prometheus. The servers are specified as arguments to the program.

By default the memcache_exporter serves on port 9106 at /metrics

make
./memcache_exporter server1:11211 server2: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 ["yourserver1:yourport1", "yourserver2:yourport2", "etc:etc"]

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.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Godeps
_workspace/src/bitbucket.org/ww/goautoneg
HTTP Content-Type Autonegotiation.
HTTP Content-Type Autonegotiation.
_workspace/src/github.com/Snapbug/gomemcache/memcache
Package memcache provides a client for the memcached cache server.
Package memcache provides a client for the memcached cache server.
_workspace/src/github.com/beorn7/perks/quantile
Package quantile computes approximate quantiles over an unbounded data stream within low memory and CPU bounds.
Package quantile computes approximate quantiles over an unbounded data stream within low memory and CPU bounds.
_workspace/src/github.com/golang/glog
Package glog implements logging analogous to the Google-internal C++ INFO/ERROR/V setup.
Package glog implements logging analogous to the Google-internal C++ INFO/ERROR/V setup.
_workspace/src/github.com/golang/protobuf/proto
Package proto converts data structures to and from the wire format of protocol buffers.
Package proto converts data structures to and from the wire format of protocol buffers.
_workspace/src/github.com/matttproud/golang_protobuf_extensions/ext
Package ext enables record length-delimited Protocol Buffer streaming.
Package ext enables record length-delimited Protocol Buffer streaming.
_workspace/src/github.com/prometheus/client_golang/model
Package model contains core representation of Prometheus client primitives.
Package model contains core representation of Prometheus client primitives.
_workspace/src/github.com/prometheus/client_golang/prometheus
Package prometheus provides embeddable metric primitives for servers and standardized exposition of telemetry through a web services interface.
Package prometheus provides embeddable metric primitives for servers and standardized exposition of telemetry through a web services interface.
_workspace/src/github.com/prometheus/client_golang/text
Package text contains helper functions to parse and create text-based exchange formats.
Package text contains helper functions to parse and create text-based exchange formats.
_workspace/src/github.com/prometheus/client_model/go
Package io_prometheus_client is a generated protocol buffer package.
Package io_prometheus_client is a generated protocol buffer package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL