Redis Metrics Exporter

GIT: https://github.com/oliver006/redis_exporter

Prometheus exporter for Redis metrics.
Supports Redis 2.x, 3.x and 4.x

Building, configuring, and running

Locally build and run it:

    $ go get github.com/oliver006/redis_exporter
    $ cd $GOPATH/src/github.com/oliver006/redis_exporter
    $ go build
    $ ./redis_exporter <flags>

You can also run it via docker:

    $ docker pull oliver006/redis_exporter
    $ docker run -d --name redis_exporter -p 9121:9121 oliver006/redis_exporter

Add a block to the scrape_configs of your prometheus.yml config file:

scrape_configs:

...

- job_name: redis_exporter
  static_configs:
  - targets: ['localhost:9121']

...

and adjust the host name accordingly.

To run on Cloud Foundry, use:

cf push -f contrib/manifest.yml

Run on Kubernetes

Here is an example Kubernetes deployment configuration for how to deploy the redis_exporter as a sidecar with a Redis instance.

Run on Openshift

In order to deploy the exporter on Openshift environment.

oc project <myproject>

oc process -f https://raw.githubusercontent.com/ivanovaleksandar/redis_exporter/master/contrib/openshift-template.yaml \
    -p REDIS_ADDR=<redis-service>:<redis-port> \
    -p REDIS_PASSWORD=<redis-pass> \
    -p REDIS_ALIAS=<redis-alias> \
    -p REDIS_FILE=<redis-file> \
    | oc create -f -

NOTE: Some of the parameters can be ommited if no authentication is used or the default redis config is applied.

oc process -f https://raw.githubusercontent.com/ivanovaleksandar/redis_exporter/contrib/openshift-template.yaml \
    -p REDIS_ADDR=<redis-service>:<redis-port> \
    | oc create -f -

If you are running Prometheus on Openshift on the same cluster, target in prometheus.yml should point to the correct service name of the exporter

scrape_configs:

...

- job_name: redis_exporter
  static_configs:
  - targets: ['<redis-exporter.myproject.svc>:9121']

...

Flags

Name Description
debug Verbose debug output
log-format Log format, valid options are txt (default) and json.
check-keys Comma separated list of key patterns to export value and length/size, eg: db3=user_count will export key user_count from db 3. db defaults to 0 if omitted. The key patterns specified with this flag will be found using SCAN. Use this option if you need glob pattern matching; check-single-keys is faster for non-pattern keys.
check-single-keys Comma separated list of keys to export value and length/size, eg: db3=user_count will export key user_count from db 3. db defaults to 0 if omitted. The keys specified with this flag will be looked up directly without any glob pattern matching. Use this option if you don’t need glob pattern matching; it is faster than check-keys.
script Path to Redis Lua script for gathering extra metrics.
redis.addr Address of one or more redis nodes, comma separated, defaults to redis://localhost:6379.
redis.password Password to use when authenticating to Redis
redis.alias Alias for redis node addr, comma separated.
redis.file Path to file containing one or more redis nodes, separated by newline. This option is mutually exclusive with redis.addr. Each line can optionally be comma-separated with the fields ,,.
namespace Namespace for the metrics, defaults to redis.
web.listen-address Address to listen on for web interface and telemetry, defaults to 0.0.0.0:9121.
web.telemetry-path Path under which to expose metrics, defaults to metrics.
use-cf-bindings Enable usage of Cloud Foundry service bindings. Defaults to false
separator Separator used to split redis.addr, redis.password and redis.alias into several elements. Defaults to ,
Use config like ./redis_exporter -redis.addr=localhost:7000,localhost7001

Redis node addresses can be tcp addresses like redis://localhost:6379redis.example.com:6379 or unix socket addresses like unix:///tmp/redis.sock.
SSL is supported by using the rediss:// schema, for example: rediss://azure-ssl-enabled-host.redis.cache.windows.net:6380 (note that the port is required when connecting to a non-standard 6379 port, e.g. with Azure Redis instances).

These settings take precedence over any configurations provided by environment variables.

Environment Variables

Name Description
REDIS_ADDR Address of Redis node(s)
REDIS_PASSWORD Password to use when authenticating to Redis
REDIS_ALIAS Alias name of Redis node(s)
REDIS_FILE Path to file containing Redis node(s)

What’s exported?

Most items from the INFO command are exported, see http://redis.io/commands/info for details.
In addition, for every database there are metrics for total keys, expiring keys and the average TTL for keys in the database.
You can also export values of keys if they’re in numeric format by using the -check-keys flag. The exporter will also export the size (or, depending on the data type, the length) of the key. This can be used to export the number of elements in (sorted) sets, hashes, lists, etc.

If you require custom metric collection, you can provide a Redis Lua script using the -script flag. An example can be found in the contrib folder.

Example:

# HELP go_gc_duration_seconds A summary of the GC invocation durations.
# TYPE go_gc_duration_seconds summary
go_gc_duration_seconds{quantile="0"} 3.809e-06
go_gc_duration_seconds{quantile="0.25"} 5.175e-06
go_gc_duration_seconds{quantile="0.5"} 6.049e-06
go_gc_duration_seconds{quantile="0.75"} 7.664e-06
go_gc_duration_seconds{quantile="1"} 6.1191e-05
go_gc_duration_seconds_sum 0.110548526
go_gc_duration_seconds_count 16428
# HELP go_goroutines Number of goroutines that currently exist.
# TYPE go_goroutines gauge
go_goroutines 10
# HELP go_memstats_alloc_bytes Number of bytes allocated and still in use.
# TYPE go_memstats_alloc_bytes gauge
go_memstats_alloc_bytes 2.39516e+06
# HELP go_memstats_alloc_bytes_total Total number of bytes allocated, even if freed.
# TYPE go_memstats_alloc_bytes_total counter
go_memstats_alloc_bytes_total 5.5266822456e+10
# HELP go_memstats_buck_hash_sys_bytes Number of bytes used by the profiling bucket hash table.
# TYPE go_memstats_buck_hash_sys_bytes gauge
go_memstats_buck_hash_sys_bytes 1.538658e+06
# HELP go_memstats_frees_total Total number of frees.
# TYPE go_memstats_frees_total counter
go_memstats_frees_total 8.2176557e+07
# HELP go_memstats_gc_sys_bytes Number of bytes used for garbage collection system metadata.
# TYPE go_memstats_gc_sys_bytes gauge
go_memstats_gc_sys_bytes 405504
# HELP go_memstats_heap_alloc_bytes Number of heap bytes allocated and still in use.
# TYPE go_memstats_heap_alloc_bytes gauge
go_memstats_heap_alloc_bytes 2.39516e+06
# HELP go_memstats_heap_idle_bytes Number of heap bytes waiting to be used.
# TYPE go_memstats_heap_idle_bytes gauge
go_memstats_heap_idle_bytes 2.8672e+06
# HELP go_memstats_heap_inuse_bytes Number of heap bytes that are in use.
# TYPE go_memstats_heap_inuse_bytes gauge
go_memstats_heap_inuse_bytes 3.096576e+06
# HELP go_memstats_heap_objects Number of allocated objects.
# TYPE go_memstats_heap_objects gauge
go_memstats_heap_objects 20222
# HELP go_memstats_heap_released_bytes_total Total number of heap bytes released to OS.
# TYPE go_memstats_heap_released_bytes_total counter
go_memstats_heap_released_bytes_total 0
# HELP go_memstats_heap_sys_bytes Number of heap bytes obtained from system.
# TYPE go_memstats_heap_sys_bytes gauge
go_memstats_heap_sys_bytes 5.963776e+06
# HELP go_memstats_last_gc_time_seconds Number of seconds since 1970 of last garbage collection.
# TYPE go_memstats_last_gc_time_seconds gauge
go_memstats_last_gc_time_seconds 1.5390352105976899e+09
# HELP go_memstats_lookups_total Total number of pointer lookups.
# TYPE go_memstats_lookups_total counter
go_memstats_lookups_total 32237
# HELP go_memstats_mallocs_total Total number of mallocs.
# TYPE go_memstats_mallocs_total counter
go_memstats_mallocs_total 8.2196779e+07
# HELP go_memstats_mcache_inuse_bytes Number of bytes in use by mcache structures.
# TYPE go_memstats_mcache_inuse_bytes gauge
go_memstats_mcache_inuse_bytes 1736
# HELP go_memstats_mcache_sys_bytes Number of bytes used for mcache structures obtained from system.
# TYPE go_memstats_mcache_sys_bytes gauge
go_memstats_mcache_sys_bytes 16384
# HELP go_memstats_mspan_inuse_bytes Number of bytes in use by mspan structures.
# TYPE go_memstats_mspan_inuse_bytes gauge
go_memstats_mspan_inuse_bytes 35112
# HELP go_memstats_mspan_sys_bytes Number of bytes used for mspan structures obtained from system.
# TYPE go_memstats_mspan_sys_bytes gauge
go_memstats_mspan_sys_bytes 49152
# HELP go_memstats_next_gc_bytes Number of heap bytes when next garbage collection will take place.
# TYPE go_memstats_next_gc_bytes gauge
go_memstats_next_gc_bytes 4.194304e+06
# HELP go_memstats_other_sys_bytes Number of bytes used for other system allocations.
# TYPE go_memstats_other_sys_bytes gauge
go_memstats_other_sys_bytes 421526
# HELP go_memstats_stack_inuse_bytes Number of bytes in use by the stack allocator.
# TYPE go_memstats_stack_inuse_bytes gauge
go_memstats_stack_inuse_bytes 327680
# HELP go_memstats_stack_sys_bytes Number of bytes obtained from system for stack allocator.
# TYPE go_memstats_stack_sys_bytes gauge
go_memstats_stack_sys_bytes 327680
# HELP go_memstats_sys_bytes Number of bytes obtained by system. Sum of all system allocations.
# TYPE go_memstats_sys_bytes gauge
go_memstats_sys_bytes 8.72268e+06
# HELP process_cpu_seconds_total Total user and system CPU time spent in seconds.
# TYPE process_cpu_seconds_total counter
process_cpu_seconds_total 34.45
# HELP process_max_fds Maximum number of open file descriptors.
# TYPE process_max_fds gauge
process_max_fds 1024
# HELP process_open_fds Number of open file descriptors.
# TYPE process_open_fds gauge
process_open_fds 11
# HELP process_resident_memory_bytes Resident memory size in bytes.
# TYPE process_resident_memory_bytes gauge
process_resident_memory_bytes 1.1452416e+07
# HELP process_start_time_seconds Start time of the process since unix epoch in seconds.
# TYPE process_start_time_seconds gauge
process_start_time_seconds 1.53902713328e+09
# HELP process_virtual_memory_bytes Virtual memory size in bytes.
# TYPE process_virtual_memory_bytes gauge
process_virtual_memory_bytes 2.58125824e+08
# HELP redis_aof_current_rewrite_duration_sec aof_current_rewrite_duration_secmetric
# TYPE redis_aof_current_rewrite_duration_sec gauge
redis_aof_current_rewrite_duration_sec{addr="localhost:7000",alias=""} -1
redis_aof_current_rewrite_duration_sec{addr="localhost:7001",alias=""} -1
redis_aof_current_rewrite_duration_sec{addr="localhost:7002",alias=""} -1
redis_aof_current_rewrite_duration_sec{addr="localhost:7003",alias=""} -1
redis_aof_current_rewrite_duration_sec{addr="localhost:7004",alias=""} -1
redis_aof_current_rewrite_duration_sec{addr="localhost:7005",alias=""} -1
# HELP redis_aof_enabled aof_enabledmetric
# TYPE redis_aof_enabled gauge
redis_aof_enabled{addr="localhost:7000",alias=""} 1
redis_aof_enabled{addr="localhost:7001",alias=""} 1
redis_aof_enabled{addr="localhost:7002",alias=""} 1
redis_aof_enabled{addr="localhost:7003",alias=""} 1
redis_aof_enabled{addr="localhost:7004",alias=""} 1
redis_aof_enabled{addr="localhost:7005",alias=""} 1
# HELP redis_aof_last_bgrewrite_status aof_last_bgrewrite_statusmetric
# TYPE redis_aof_last_bgrewrite_status gauge
redis_aof_last_bgrewrite_status{addr="localhost:7000",alias=""} 1
redis_aof_last_bgrewrite_status{addr="localhost:7001",alias=""} 1
redis_aof_last_bgrewrite_status{addr="localhost:7002",alias=""} 1
redis_aof_last_bgrewrite_status{addr="localhost:7003",alias=""} 1
redis_aof_last_bgrewrite_status{addr="localhost:7004",alias=""} 1
redis_aof_last_bgrewrite_status{addr="localhost:7005",alias=""} 1
# HELP redis_aof_last_cow_size_bytes aof_last_cow_size_bytesmetric
# TYPE redis_aof_last_cow_size_bytes gauge
redis_aof_last_cow_size_bytes{addr="localhost:7000",alias=""} 172032
redis_aof_last_cow_size_bytes{addr="localhost:7001",alias=""} 0
redis_aof_last_cow_size_bytes{addr="localhost:7002",alias=""} 0
redis_aof_last_cow_size_bytes{addr="localhost:7003",alias=""} 176128
redis_aof_last_cow_size_bytes{addr="localhost:7004",alias=""} 167936
redis_aof_last_cow_size_bytes{addr="localhost:7005",alias=""} 167936
# HELP redis_aof_last_rewrite_duration_sec aof_last_rewrite_duration_secmetric
# TYPE redis_aof_last_rewrite_duration_sec gauge
redis_aof_last_rewrite_duration_sec{addr="localhost:7000",alias=""} 0
redis_aof_last_rewrite_duration_sec{addr="localhost:7001",alias=""} -1
redis_aof_last_rewrite_duration_sec{addr="localhost:7002",alias=""} -1
redis_aof_last_rewrite_duration_sec{addr="localhost:7003",alias=""} 0
redis_aof_last_rewrite_duration_sec{addr="localhost:7004",alias=""} 0
redis_aof_last_rewrite_duration_sec{addr="localhost:7005",alias=""} 1
# HELP redis_aof_last_write_status aof_last_write_statusmetric
# TYPE redis_aof_last_write_status gauge
redis_aof_last_write_status{addr="localhost:7000",alias=""} 1
redis_aof_last_write_status{addr="localhost:7001",alias=""} 1
redis_aof_last_write_status{addr="localhost:7002",alias=""} 1
redis_aof_last_write_status{addr="localhost:7003",alias=""} 1
redis_aof_last_write_status{addr="localhost:7004",alias=""} 1
redis_aof_last_write_status{addr="localhost:7005",alias=""} 1
# HELP redis_aof_rewrite_in_progress aof_rewrite_in_progressmetric
# TYPE redis_aof_rewrite_in_progress gauge
redis_aof_rewrite_in_progress{addr="localhost:7000",alias=""} 0
redis_aof_rewrite_in_progress{addr="localhost:7001",alias=""} 0
redis_aof_rewrite_in_progress{addr="localhost:7002",alias=""} 0
redis_aof_rewrite_in_progress{addr="localhost:7003",alias=""} 0
redis_aof_rewrite_in_progress{addr="localhost:7004",alias=""} 0
redis_aof_rewrite_in_progress{addr="localhost:7005",alias=""} 0
# HELP redis_aof_rewrite_scheduled aof_rewrite_scheduledmetric
# TYPE redis_aof_rewrite_scheduled gauge
redis_aof_rewrite_scheduled{addr="localhost:7000",alias=""} 0
redis_aof_rewrite_scheduled{addr="localhost:7001",alias=""} 0
redis_aof_rewrite_scheduled{addr="localhost:7002",alias=""} 0
redis_aof_rewrite_scheduled{addr="localhost:7003",alias=""} 0
redis_aof_rewrite_scheduled{addr="localhost:7004",alias=""} 0
redis_aof_rewrite_scheduled{addr="localhost:7005",alias=""} 0
# HELP redis_blocked_clients blocked_clientsmetric
# TYPE redis_blocked_clients gauge
redis_blocked_clients{addr="localhost:7000",alias=""} 0
redis_blocked_clients{addr="localhost:7001",alias=""} 0
redis_blocked_clients{addr="localhost:7002",alias=""} 0
redis_blocked_clients{addr="localhost:7003",alias=""} 0
redis_blocked_clients{addr="localhost:7004",alias=""} 0
redis_blocked_clients{addr="localhost:7005",alias=""} 0
# HELP redis_client_biggest_input_buf client_biggest_input_bufmetric
# TYPE redis_client_biggest_input_buf gauge
redis_client_biggest_input_buf{addr="localhost:7000",alias=""} 0
redis_client_biggest_input_buf{addr="localhost:7001",alias=""} 0
redis_client_biggest_input_buf{addr="localhost:7002",alias=""} 0
redis_client_biggest_input_buf{addr="localhost:7003",alias=""} 0
redis_client_biggest_input_buf{addr="localhost:7004",alias=""} 0
redis_client_biggest_input_buf{addr="localhost:7005",alias=""} 0
# HELP redis_client_longest_output_list client_longest_output_listmetric
# TYPE redis_client_longest_output_list gauge
redis_client_longest_output_list{addr="localhost:7000",alias=""} 0
redis_client_longest_output_list{addr="localhost:7001",alias=""} 0
redis_client_longest_output_list{addr="localhost:7002",alias=""} 0
redis_client_longest_output_list{addr="localhost:7003",alias=""} 0
redis_client_longest_output_list{addr="localhost:7004",alias=""} 0
redis_client_longest_output_list{addr="localhost:7005",alias=""} 0
# HELP redis_cluster_current_epoch cluster_current_epochmetric
# TYPE redis_cluster_current_epoch gauge
redis_cluster_current_epoch{addr="localhost:7000",alias=""} 15
redis_cluster_current_epoch{addr="localhost:7001",alias=""} 15
redis_cluster_current_epoch{addr="localhost:7002",alias=""} 15
redis_cluster_current_epoch{addr="localhost:7003",alias=""} 15
redis_cluster_current_epoch{addr="localhost:7004",alias=""} 15
redis_cluster_current_epoch{addr="localhost:7005",alias=""} 15
# HELP redis_cluster_enabled cluster_enabledmetric
# TYPE redis_cluster_enabled gauge
redis_cluster_enabled{addr="localhost:7000",alias=""} 1
redis_cluster_enabled{addr="localhost:7001",alias=""} 1
redis_cluster_enabled{addr="localhost:7002",alias=""} 1
redis_cluster_enabled{addr="localhost:7003",alias=""} 1
redis_cluster_enabled{addr="localhost:7004",alias=""} 1
redis_cluster_enabled{addr="localhost:7005",alias=""} 1
# HELP redis_cluster_known_nodes cluster_known_nodesmetric
# TYPE redis_cluster_known_nodes gauge
redis_cluster_known_nodes{addr="localhost:7000",alias=""} 6
redis_cluster_known_nodes{addr="localhost:7001",alias=""} 6
redis_cluster_known_nodes{addr="localhost:7002",alias=""} 6
redis_cluster_known_nodes{addr="localhost:7003",alias=""} 6
redis_cluster_known_nodes{addr="localhost:7004",alias=""} 6
redis_cluster_known_nodes{addr="localhost:7005",alias=""} 6
# HELP redis_cluster_messages_received_total cluster_messages_received_totalmetric
# TYPE redis_cluster_messages_received_total gauge
redis_cluster_messages_received_total{addr="localhost:7000",alias=""} 277834
redis_cluster_messages_received_total{addr="localhost:7001",alias=""} 488763
redis_cluster_messages_received_total{addr="localhost:7002",alias=""} 485368
redis_cluster_messages_received_total{addr="localhost:7003",alias=""} 6772
redis_cluster_messages_received_total{addr="localhost:7004",alias=""} 486515
redis_cluster_messages_received_total{addr="localhost:7005",alias=""} 488239
# HELP redis_cluster_messages_sent_total cluster_messages_sent_totalmetric
# TYPE redis_cluster_messages_sent_total gauge
redis_cluster_messages_sent_total{addr="localhost:7000",alias=""} 299560
redis_cluster_messages_sent_total{addr="localhost:7001",alias=""} 522421
redis_cluster_messages_sent_total{addr="localhost:7002",alias=""} 519023
redis_cluster_messages_sent_total{addr="localhost:7003",alias=""} 6772
redis_cluster_messages_sent_total{addr="localhost:7004",alias=""} 520111
redis_cluster_messages_sent_total{addr="localhost:7005",alias=""} 521835
# HELP redis_cluster_my_epoch cluster_my_epochmetric
# TYPE redis_cluster_my_epoch gauge
redis_cluster_my_epoch{addr="localhost:7000",alias=""} 15
redis_cluster_my_epoch{addr="localhost:7001",alias=""} 2
redis_cluster_my_epoch{addr="localhost:7002",alias=""} 3
redis_cluster_my_epoch{addr="localhost:7003",alias=""} 15
redis_cluster_my_epoch{addr="localhost:7004",alias=""} 2
redis_cluster_my_epoch{addr="localhost:7005",alias=""} 3
# HELP redis_cluster_size cluster_sizemetric
# TYPE redis_cluster_size gauge
redis_cluster_size{addr="localhost:7000",alias=""} 3
redis_cluster_size{addr="localhost:7001",alias=""} 3
redis_cluster_size{addr="localhost:7002",alias=""} 3
redis_cluster_size{addr="localhost:7003",alias=""} 3
redis_cluster_size{addr="localhost:7004",alias=""} 3
redis_cluster_size{addr="localhost:7005",alias=""} 3
# HELP redis_cluster_slots_assigned cluster_slots_assignedmetric
# TYPE redis_cluster_slots_assigned gauge
redis_cluster_slots_assigned{addr="localhost:7000",alias=""} 16384
redis_cluster_slots_assigned{addr="localhost:7001",alias=""} 16384
redis_cluster_slots_assigned{addr="localhost:7002",alias=""} 16384
redis_cluster_slots_assigned{addr="localhost:7003",alias=""} 16384
redis_cluster_slots_assigned{addr="localhost:7004",alias=""} 16384
redis_cluster_slots_assigned{addr="localhost:7005",alias=""} 16384
# HELP redis_cluster_slots_fail cluster_slots_failmetric
# TYPE redis_cluster_slots_fail gauge
redis_cluster_slots_fail{addr="localhost:7000",alias=""} 0
redis_cluster_slots_fail{addr="localhost:7001",alias=""} 0
redis_cluster_slots_fail{addr="localhost:7002",alias=""} 0
redis_cluster_slots_fail{addr="localhost:7003",alias=""} 0
redis_cluster_slots_fail{addr="localhost:7004",alias=""} 0
redis_cluster_slots_fail{addr="localhost:7005",alias=""} 0
# HELP redis_cluster_slots_ok cluster_slots_okmetric
# TYPE redis_cluster_slots_ok gauge
redis_cluster_slots_ok{addr="localhost:7000",alias=""} 16384
redis_cluster_slots_ok{addr="localhost:7001",alias=""} 16384
redis_cluster_slots_ok{addr="localhost:7002",alias=""} 16384
redis_cluster_slots_ok{addr="localhost:7003",alias=""} 16384
redis_cluster_slots_ok{addr="localhost:7004",alias=""} 16384
redis_cluster_slots_ok{addr="localhost:7005",alias=""} 16384
# HELP redis_cluster_slots_pfail cluster_slots_pfailmetric
# TYPE redis_cluster_slots_pfail gauge
redis_cluster_slots_pfail{addr="localhost:7000",alias=""} 0
redis_cluster_slots_pfail{addr="localhost:7001",alias=""} 0
redis_cluster_slots_pfail{addr="localhost:7002",alias=""} 0
redis_cluster_slots_pfail{addr="localhost:7003",alias=""} 0
redis_cluster_slots_pfail{addr="localhost:7004",alias=""} 0
redis_cluster_slots_pfail{addr="localhost:7005",alias=""} 0
# HELP redis_cluster_state cluster_statemetric
# TYPE redis_cluster_state gauge
redis_cluster_state{addr="localhost:7000",alias=""} 1
redis_cluster_state{addr="localhost:7001",alias=""} 1
redis_cluster_state{addr="localhost:7002",alias=""} 1
redis_cluster_state{addr="localhost:7003",alias=""} 1
redis_cluster_state{addr="localhost:7004",alias=""} 1
redis_cluster_state{addr="localhost:7005",alias=""} 1
# HELP redis_cluster_stats_messages_auth_ack_received cluster_stats_messages_auth_ack_receivedmetric
# TYPE redis_cluster_stats_messages_auth_ack_received gauge
redis_cluster_stats_messages_auth_ack_received{addr="localhost:7000",alias=""} 2
# HELP redis_cluster_stats_messages_auth_ack_sent cluster_stats_messages_auth_ack_sentmetric
# TYPE redis_cluster_stats_messages_auth_ack_sent gauge
redis_cluster_stats_messages_auth_ack_sent{addr="localhost:7001",alias=""} 8
redis_cluster_stats_messages_auth_ack_sent{addr="localhost:7002",alias=""} 8
# HELP redis_cluster_stats_messages_auth_req_received cluster_stats_messages_auth_req_receivedmetric
# TYPE redis_cluster_stats_messages_auth_req_received gauge
redis_cluster_stats_messages_auth_req_received{addr="localhost:7001",alias=""} 9
redis_cluster_stats_messages_auth_req_received{addr="localhost:7002",alias=""} 9
redis_cluster_stats_messages_auth_req_received{addr="localhost:7004",alias=""} 9
redis_cluster_stats_messages_auth_req_received{addr="localhost:7005",alias=""} 9
# HELP redis_cluster_stats_messages_auth_req_sent cluster_stats_messages_auth_req_sentmetric
# TYPE redis_cluster_stats_messages_auth_req_sent gauge
redis_cluster_stats_messages_auth_req_sent{addr="localhost:7000",alias=""} 5
# HELP redis_cluster_stats_messages_fail_received cluster_stats_messages_fail_receivedmetric
# TYPE redis_cluster_stats_messages_fail_received gauge
redis_cluster_stats_messages_fail_received{addr="localhost:7000",alias=""} 3
redis_cluster_stats_messages_fail_received{addr="localhost:7001",alias=""} 10
redis_cluster_stats_messages_fail_received{addr="localhost:7002",alias=""} 9
redis_cluster_stats_messages_fail_received{addr="localhost:7004",alias=""} 19
redis_cluster_stats_messages_fail_received{addr="localhost:7005",alias=""} 19
# HELP redis_cluster_stats_messages_fail_sent cluster_stats_messages_fail_sentmetric
# TYPE redis_cluster_stats_messages_fail_sent gauge
redis_cluster_stats_messages_fail_sent{addr="localhost:7001",alias=""} 36
redis_cluster_stats_messages_fail_sent{addr="localhost:7002",alias=""} 41
# HELP redis_cluster_stats_messages_meet_received cluster_stats_messages_meet_receivedmetric
# TYPE redis_cluster_stats_messages_meet_received gauge
redis_cluster_stats_messages_meet_received{addr="localhost:7001",alias=""} 2
redis_cluster_stats_messages_meet_received{addr="localhost:7002",alias=""} 2
redis_cluster_stats_messages_meet_received{addr="localhost:7004",alias=""} 3
redis_cluster_stats_messages_meet_received{addr="localhost:7005",alias=""} 2
# HELP redis_cluster_stats_messages_meet_sent cluster_stats_messages_meet_sentmetric
# TYPE redis_cluster_stats_messages_meet_sent gauge
redis_cluster_stats_messages_meet_sent{addr="localhost:7001",alias=""} 5
redis_cluster_stats_messages_meet_sent{addr="localhost:7002",alias=""} 4
redis_cluster_stats_messages_meet_sent{addr="localhost:7004",alias=""} 3
redis_cluster_stats_messages_meet_sent{addr="localhost:7005",alias=""} 3
# HELP redis_cluster_stats_messages_ping_received cluster_stats_messages_ping_receivedmetric
# TYPE redis_cluster_stats_messages_ping_received gauge
redis_cluster_stats_messages_ping_received{addr="localhost:7000",alias=""} 138210
redis_cluster_stats_messages_ping_received{addr="localhost:7001",alias=""} 243997
redis_cluster_stats_messages_ping_received{addr="localhost:7002",alias=""} 243569
redis_cluster_stats_messages_ping_received{addr="localhost:7003",alias=""} 3424
redis_cluster_stats_messages_ping_received{addr="localhost:7004",alias=""} 242570
redis_cluster_stats_messages_ping_received{addr="localhost:7005",alias=""} 244041
# HELP redis_cluster_stats_messages_ping_sent cluster_stats_messages_ping_sentmetric
# TYPE redis_cluster_stats_messages_ping_sent gauge
redis_cluster_stats_messages_ping_sent{addr="localhost:7000",alias=""} 161341
redis_cluster_stats_messages_ping_sent{addr="localhost:7001",alias=""} 278373
redis_cluster_stats_messages_ping_sent{addr="localhost:7002",alias=""} 275399
redis_cluster_stats_messages_ping_sent{addr="localhost:7003",alias=""} 3348
redis_cluster_stats_messages_ping_sent{addr="localhost:7004",alias=""} 277535
redis_cluster_stats_messages_ping_sent{addr="localhost:7005",alias=""} 277789
# HELP redis_cluster_stats_messages_pong_received cluster_stats_messages_pong_receivedmetric
# TYPE redis_cluster_stats_messages_pong_received gauge
redis_cluster_stats_messages_pong_received{addr="localhost:7000",alias=""} 139619
redis_cluster_stats_messages_pong_received{addr="localhost:7001",alias=""} 244745
redis_cluster_stats_messages_pong_received{addr="localhost:7002",alias=""} 241779
redis_cluster_stats_messages_pong_received{addr="localhost:7003",alias=""} 3348
redis_cluster_stats_messages_pong_received{addr="localhost:7004",alias=""} 243914
redis_cluster_stats_messages_pong_received{addr="localhost:7005",alias=""} 244168
# HELP redis_cluster_stats_messages_pong_sent cluster_stats_messages_pong_sentmetric
# TYPE redis_cluster_stats_messages_pong_sent gauge
redis_cluster_stats_messages_pong_sent{addr="localhost:7000",alias=""} 138214
redis_cluster_stats_messages_pong_sent{addr="localhost:7001",alias=""} 243999
redis_cluster_stats_messages_pong_sent{addr="localhost:7002",alias=""} 243571
redis_cluster_stats_messages_pong_sent{addr="localhost:7003",alias=""} 3424
redis_cluster_stats_messages_pong_sent{addr="localhost:7004",alias=""} 242573
redis_cluster_stats_messages_pong_sent{addr="localhost:7005",alias=""} 244043
# HELP redis_command_call_duration_seconds_count Total number of calls per command
# TYPE redis_command_call_duration_seconds_count gauge
redis_command_call_duration_seconds_count{addr="localhost:7000",alias="",cmd="cluster"} 9405
redis_command_call_duration_seconds_count{addr="localhost:7000",alias="",cmd="config"} 9403
redis_command_call_duration_seconds_count{addr="localhost:7000",alias="",cmd="info"} 9402
redis_command_call_duration_seconds_count{addr="localhost:7000",alias="",cmd="latency"} 9402
redis_command_call_duration_seconds_count{addr="localhost:7000",alias="",cmd="ping"} 1259
redis_command_call_duration_seconds_count{addr="localhost:7000",alias="",cmd="psync"} 6
redis_command_call_duration_seconds_count{addr="localhost:7000",alias="",cmd="replconf"} 60211
redis_command_call_duration_seconds_count{addr="localhost:7000",alias="",cmd="slowlog"} 9402
redis_command_call_duration_seconds_count{addr="localhost:7001",alias="",cmd="cluster"} 17722
redis_command_call_duration_seconds_count{addr="localhost:7001",alias="",cmd="config"} 17708
redis_command_call_duration_seconds_count{addr="localhost:7001",alias="",cmd="hgetall"} 1
redis_command_call_duration_seconds_count{addr="localhost:7001",alias="",cmd="hset"} 2
redis_command_call_duration_seconds_count{addr="localhost:7001",alias="",cmd="info"} 17709
redis_command_call_duration_seconds_count{addr="localhost:7001",alias="",cmd="latency"} 17707
redis_command_call_duration_seconds_count{addr="localhost:7001",alias="",cmd="mset"} 1
redis_command_call_duration_seconds_count{addr="localhost:7001",alias="",cmd="ping"} 12
redis_command_call_duration_seconds_count{addr="localhost:7001",alias="",cmd="psync"} 10
redis_command_call_duration_seconds_count{addr="localhost:7001",alias="",cmd="replconf"} 133155
redis_command_call_duration_seconds_count{addr="localhost:7001",alias="",cmd="slowlog"} 17707
redis_command_call_duration_seconds_count{addr="localhost:7002",alias="",cmd="cluster"} 17721
redis_command_call_duration_seconds_count{addr="localhost:7002",alias="",cmd="config"} 17708
redis_command_call_duration_seconds_count{addr="localhost:7002",alias="",cmd="info"} 17709
redis_command_call_duration_seconds_count{addr="localhost:7002",alias="",cmd="latency"} 17707
redis_command_call_duration_seconds_count{addr="localhost:7002",alias="",cmd="ping"} 12
redis_command_call_duration_seconds_count{addr="localhost:7002",alias="",cmd="psync"} 10
redis_command_call_duration_seconds_count{addr="localhost:7002",alias="",cmd="replconf"} 133157
redis_command_call_duration_seconds_count{addr="localhost:7002",alias="",cmd="slowlog"} 17707
redis_command_call_duration_seconds_count{addr="localhost:7003",alias="",cmd="cluster"} 373
redis_command_call_duration_seconds_count{addr="localhost:7003",alias="",cmd="config"} 374
redis_command_call_duration_seconds_count{addr="localhost:7003",alias="",cmd="info"} 373
redis_command_call_duration_seconds_count{addr="localhost:7003",alias="",cmd="latency"} 373
redis_command_call_duration_seconds_count{addr="localhost:7003",alias="",cmd="ping"} 182
redis_command_call_duration_seconds_count{addr="localhost:7003",alias="",cmd="slowlog"} 373
redis_command_call_duration_seconds_count{addr="localhost:7004",alias="",cmd="cluster"} 17722
redis_command_call_duration_seconds_count{addr="localhost:7004",alias="",cmd="config"} 17708
redis_command_call_duration_seconds_count{addr="localhost:7004",alias="",cmd="info"} 17709
redis_command_call_duration_seconds_count{addr="localhost:7004",alias="",cmd="latency"} 17707
redis_command_call_duration_seconds_count{addr="localhost:7004",alias="",cmd="mset"} 1
redis_command_call_duration_seconds_count{addr="localhost:7004",alias="",cmd="ping"} 13316
redis_command_call_duration_seconds_count{addr="localhost:7004",alias="",cmd="select"} 1
redis_command_call_duration_seconds_count{addr="localhost:7004",alias="",cmd="slowlog"} 17707
redis_command_call_duration_seconds_count{addr="localhost:7005",alias="",cmd="cluster"} 17722
redis_command_call_duration_seconds_count{addr="localhost:7005",alias="",cmd="config"} 17708
redis_command_call_duration_seconds_count{addr="localhost:7005",alias="",cmd="info"} 17709
redis_command_call_duration_seconds_count{addr="localhost:7005",alias="",cmd="latency"} 17707
redis_command_call_duration_seconds_count{addr="localhost:7005",alias="",cmd="ping"} 13316
redis_command_call_duration_seconds_count{addr="localhost:7005",alias="",cmd="slowlog"} 17707
# HELP redis_command_call_duration_seconds_sum Total amount of time in seconds spent per command
# TYPE redis_command_call_duration_seconds_sum gauge
redis_command_call_duration_seconds_sum{addr="localhost:7000",alias="",cmd="cluster"} 0.398187
redis_command_call_duration_seconds_sum{addr="localhost:7000",alias="",cmd="config"} 0.66183
redis_command_call_duration_seconds_sum{addr="localhost:7000",alias="",cmd="info"} 0.635717
redis_command_call_duration_seconds_sum{addr="localhost:7000",alias="",cmd="latency"} 0.018607
redis_command_call_duration_seconds_sum{addr="localhost:7000",alias="",cmd="ping"} 0.000377
redis_command_call_duration_seconds_sum{addr="localhost:7000",alias="",cmd="psync"} 0.000833
redis_command_call_duration_seconds_sum{addr="localhost:7000",alias="",cmd="replconf"} 0.092758
redis_command_call_duration_seconds_sum{addr="localhost:7000",alias="",cmd="slowlog"} 0.006691
redis_command_call_duration_seconds_sum{addr="localhost:7001",alias="",cmd="cluster"} 0.724583
redis_command_call_duration_seconds_sum{addr="localhost:7001",alias="",cmd="config"} 1.016601
redis_command_call_duration_seconds_sum{addr="localhost:7001",alias="",cmd="hgetall"} 3e-06
redis_command_call_duration_seconds_sum{addr="localhost:7001",alias="",cmd="hset"} 1.2e-05
redis_command_call_duration_seconds_sum{addr="localhost:7001",alias="",cmd="info"} 1.1534
redis_command_call_duration_seconds_sum{addr="localhost:7001",alias="",cmd="latency"} 0.033184
redis_command_call_duration_seconds_sum{addr="localhost:7001",alias="",cmd="mset"} 0.000115
redis_command_call_duration_seconds_sum{addr="localhost:7001",alias="",cmd="ping"} 8e-06
redis_command_call_duration_seconds_sum{addr="localhost:7001",alias="",cmd="psync"} 0.000646
redis_command_call_duration_seconds_sum{addr="localhost:7001",alias="",cmd="replconf"} 0.212925
redis_command_call_duration_seconds_sum{addr="localhost:7001",alias="",cmd="slowlog"} 0.011359
redis_command_call_duration_seconds_sum{addr="localhost:7002",alias="",cmd="cluster"} 0.713928
redis_command_call_duration_seconds_sum{addr="localhost:7002",alias="",cmd="config"} 1.022363
redis_command_call_duration_seconds_sum{addr="localhost:7002",alias="",cmd="info"} 1.117117
redis_command_call_duration_seconds_sum{addr="localhost:7002",alias="",cmd="latency"} 0.029406
redis_command_call_duration_seconds_sum{addr="localhost:7002",alias="",cmd="ping"} 9e-06
redis_command_call_duration_seconds_sum{addr="localhost:7002",alias="",cmd="psync"} 0.000941
redis_command_call_duration_seconds_sum{addr="localhost:7002",alias="",cmd="replconf"} 0.202136
redis_command_call_duration_seconds_sum{addr="localhost:7002",alias="",cmd="slowlog"} 0.012755
redis_command_call_duration_seconds_sum{addr="localhost:7003",alias="",cmd="cluster"} 0.012411
redis_command_call_duration_seconds_sum{addr="localhost:7003",alias="",cmd="config"} 0.018102
redis_command_call_duration_seconds_sum{addr="localhost:7003",alias="",cmd="info"} 0.01788
redis_command_call_duration_seconds_sum{addr="localhost:7003",alias="",cmd="latency"} 0.000546
redis_command_call_duration_seconds_sum{addr="localhost:7003",alias="",cmd="ping"} 4.3e-05
redis_command_call_duration_seconds_sum{addr="localhost:7003",alias="",cmd="slowlog"} 0.000255
redis_command_call_duration_seconds_sum{addr="localhost:7004",alias="",cmd="cluster"} 0.667918
redis_command_call_duration_seconds_sum{addr="localhost:7004",alias="",cmd="config"} 0.967677
redis_command_call_duration_seconds_sum{addr="localhost:7004",alias="",cmd="info"} 1.037405
redis_command_call_duration_seconds_sum{addr="localhost:7004",alias="",cmd="latency"} 0.032103
redis_command_call_duration_seconds_sum{addr="localhost:7004",alias="",cmd="mset"} 1.8e-05
redis_command_call_duration_seconds_sum{addr="localhost:7004",alias="",cmd="ping"} 0.003254
redis_command_call_duration_seconds_sum{addr="localhost:7004",alias="",cmd="select"} 1e-06
redis_command_call_duration_seconds_sum{addr="localhost:7004",alias="",cmd="slowlog"} 0.012603
redis_command_call_duration_seconds_sum{addr="localhost:7005",alias="",cmd="cluster"} 0.660824
redis_command_call_duration_seconds_sum{addr="localhost:7005",alias="",cmd="config"} 0.978622
redis_command_call_duration_seconds_sum{addr="localhost:7005",alias="",cmd="info"} 0.967543
redis_command_call_duration_seconds_sum{addr="localhost:7005",alias="",cmd="latency"} 0.032431
redis_command_call_duration_seconds_sum{addr="localhost:7005",alias="",cmd="ping"} 0.003108
redis_command_call_duration_seconds_sum{addr="localhost:7005",alias="",cmd="slowlog"} 0.011041
# HELP redis_commands_processed_total commands_processed_totalmetric
# TYPE redis_commands_processed_total gauge
redis_commands_processed_total{addr="localhost:7000",alias=""} 108490
redis_commands_processed_total{addr="localhost:7001",alias=""} 221734
redis_commands_processed_total{addr="localhost:7002",alias=""} 221731
redis_commands_processed_total{addr="localhost:7003",alias=""} 2048
redis_commands_processed_total{addr="localhost:7004",alias=""} 101871
redis_commands_processed_total{addr="localhost:7005",alias=""} 101869
# HELP redis_config_maxclients config_maxclientsmetric
# TYPE redis_config_maxclients gauge
redis_config_maxclients{addr="localhost:7000",alias=""} 10000
redis_config_maxclients{addr="localhost:7001",alias=""} 10000
redis_config_maxclients{addr="localhost:7002",alias=""} 10000
redis_config_maxclients{addr="localhost:7003",alias=""} 10000
redis_config_maxclients{addr="localhost:7004",alias=""} 10000
redis_config_maxclients{addr="localhost:7005",alias=""} 10000
# HELP redis_config_maxmemory config_maxmemorymetric
# TYPE redis_config_maxmemory gauge
redis_config_maxmemory{addr="localhost:7000",alias=""} 0
redis_config_maxmemory{addr="localhost:7001",alias=""} 0
redis_config_maxmemory{addr="localhost:7002",alias=""} 0
redis_config_maxmemory{addr="localhost:7003",alias=""} 0
redis_config_maxmemory{addr="localhost:7004",alias=""} 0
redis_config_maxmemory{addr="localhost:7005",alias=""} 0
# HELP redis_connected_clients connected_clientsmetric
# TYPE redis_connected_clients gauge
redis_connected_clients{addr="localhost:7000",alias=""} 1
redis_connected_clients{addr="localhost:7001",alias=""} 1
redis_connected_clients{addr="localhost:7002",alias=""} 1
redis_connected_clients{addr="localhost:7003",alias=""} 2
redis_connected_clients{addr="localhost:7004",alias=""} 2
redis_connected_clients{addr="localhost:7005",alias=""} 2
# HELP redis_connected_slave_offset Offset of connected slave
# TYPE redis_connected_slave_offset gauge
redis_connected_slave_offset{addr="localhost:7000",alias="",slave_ip="127.0.0.1",slave_state="online"} 113638
redis_connected_slave_offset{addr="localhost:7001",alias="",slave_ip="127.0.0.1",slave_state="online"} 186453
redis_connected_slave_offset{addr="localhost:7002",alias="",slave_ip="127.0.0.1",slave_state="online"} 186396
# HELP redis_connected_slaves connected_slavesmetric
# TYPE redis_connected_slaves gauge
redis_connected_slaves{addr="localhost:7000",alias=""} 1
redis_connected_slaves{addr="localhost:7001",alias=""} 1
redis_connected_slaves{addr="localhost:7002",alias=""} 1
redis_connected_slaves{addr="localhost:7003",alias=""} 0
redis_connected_slaves{addr="localhost:7004",alias=""} 0
redis_connected_slaves{addr="localhost:7005",alias=""} 0
# HELP redis_connections_received_total connections_received_totalmetric
# TYPE redis_connections_received_total gauge
redis_connections_received_total{addr="localhost:7000",alias=""} 9412
redis_connections_received_total{addr="localhost:7001",alias=""} 17723
redis_connections_received_total{addr="localhost:7002",alias=""} 17720
redis_connections_received_total{addr="localhost:7003",alias=""} 374
redis_connections_received_total{addr="localhost:7004",alias=""} 17710
redis_connections_received_total{addr="localhost:7005",alias=""} 17710
# HELP redis_db_avg_ttl_seconds Avg TTL in seconds
# TYPE redis_db_avg_ttl_seconds gauge
redis_db_avg_ttl_seconds{addr="localhost:7000",alias="",db="db0"} 0
redis_db_avg_ttl_seconds{addr="localhost:7001",alias="",db="db0"} 0
redis_db_avg_ttl_seconds{addr="localhost:7003",alias="",db="db0"} 0
redis_db_avg_ttl_seconds{addr="localhost:7004",alias="",db="db0"} 0
# HELP redis_db_keys Total number of keys by DB
# TYPE redis_db_keys gauge
redis_db_keys{addr="localhost:7000",alias="",db="db0"} 1
redis_db_keys{addr="localhost:7001",alias="",db="db0"} 1
redis_db_keys{addr="localhost:7002",alias="",db="db0"} 0
redis_db_keys{addr="localhost:7003",alias="",db="db0"} 1
redis_db_keys{addr="localhost:7004",alias="",db="db0"} 1
redis_db_keys{addr="localhost:7005",alias="",db="db0"} 0
# HELP redis_db_keys_expiring Total number of expiring keys by DB
# TYPE redis_db_keys_expiring gauge
redis_db_keys_expiring{addr="localhost:7000",alias="",db="db0"} 0
redis_db_keys_expiring{addr="localhost:7001",alias="",db="db0"} 0
redis_db_keys_expiring{addr="localhost:7002",alias="",db="db0"} 0
redis_db_keys_expiring{addr="localhost:7003",alias="",db="db0"} 0
redis_db_keys_expiring{addr="localhost:7004",alias="",db="db0"} 0
redis_db_keys_expiring{addr="localhost:7005",alias="",db="db0"} 0
# HELP redis_evicted_keys_total evicted_keys_totalmetric
# TYPE redis_evicted_keys_total gauge
redis_evicted_keys_total{addr="localhost:7000",alias=""} 0
redis_evicted_keys_total{addr="localhost:7001",alias=""} 0
redis_evicted_keys_total{addr="localhost:7002",alias=""} 0
redis_evicted_keys_total{addr="localhost:7003",alias=""} 0
redis_evicted_keys_total{addr="localhost:7004",alias=""} 0
redis_evicted_keys_total{addr="localhost:7005",alias=""} 0
# HELP redis_expired_keys_total expired_keys_totalmetric
# TYPE redis_expired_keys_total gauge
redis_expired_keys_total{addr="localhost:7000",alias=""} 0
redis_expired_keys_total{addr="localhost:7001",alias=""} 0
redis_expired_keys_total{addr="localhost:7002",alias=""} 0
redis_expired_keys_total{addr="localhost:7003",alias=""} 0
redis_expired_keys_total{addr="localhost:7004",alias=""} 0
redis_expired_keys_total{addr="localhost:7005",alias=""} 0
# HELP redis_exporter_build_info redis exporter build_info
# TYPE redis_exporter_build_info gauge
redis_exporter_build_info{build_date="<<< filled in by build >>>",commit_sha="<<< filled in by build >>>",golang_version="go1.9.4",version="<<< filled in by build >>>"} 1
# HELP redis_exporter_last_scrape_duration_seconds The last scrape duration.
# TYPE redis_exporter_last_scrape_duration_seconds gauge
redis_exporter_last_scrape_duration_seconds 0.032399569
# HELP redis_exporter_last_scrape_error The last scrape error status.
# TYPE redis_exporter_last_scrape_error gauge
redis_exporter_last_scrape_error 0
# HELP redis_exporter_scrapes_total Current total redis scrapes.
# TYPE redis_exporter_scrapes_total counter
redis_exporter_scrapes_total 1612
# HELP redis_instance_info Information about the Redis instance
# TYPE redis_instance_info gauge
redis_instance_info{addr="localhost:7000",alias="",os="",redis_build_id="",redis_mode="",redis_version="",role=""} 1
redis_instance_info{addr="localhost:7000",alias="",os="Linux 3.10.0-862.el7.x86_64 x86_64",redis_build_id="8a98b229e07adbaa",redis_mode="cluster",redis_version="4.0.11",role="master"} 1
redis_instance_info{addr="localhost:7001",alias="",os="",redis_build_id="",redis_mode="",redis_version="",role=""} 1
redis_instance_info{addr="localhost:7001",alias="",os="Linux 3.10.0-862.el7.x86_64 x86_64",redis_build_id="8a98b229e07adbaa",redis_mode="cluster",redis_version="4.0.11",role="master"} 1
redis_instance_info{addr="localhost:7002",alias="",os="",redis_build_id="",redis_mode="",redis_version="",role=""} 1
redis_instance_info{addr="localhost:7002",alias="",os="Linux 3.10.0-862.el7.x86_64 x86_64",redis_build_id="8a98b229e07adbaa",redis_mode="cluster",redis_version="4.0.11",role="master"} 1
redis_instance_info{addr="localhost:7003",alias="",os="",redis_build_id="",redis_mode="",redis_version="",role=""} 1
redis_instance_info{addr="localhost:7003",alias="",os="Linux 3.10.0-862.el7.x86_64 x86_64",redis_build_id="8a98b229e07adbaa",redis_mode="cluster",redis_version="4.0.11",role="slave"} 1
redis_instance_info{addr="localhost:7004",alias="",os="",redis_build_id="",redis_mode="",redis_version="",role=""} 1
redis_instance_info{addr="localhost:7004",alias="",os="Linux 3.10.0-862.el7.x86_64 x86_64",redis_build_id="8a98b229e07adbaa",redis_mode="cluster",redis_version="4.0.11",role="slave"} 1
redis_instance_info{addr="localhost:7005",alias="",os="",redis_build_id="",redis_mode="",redis_version="",role=""} 1
redis_instance_info{addr="localhost:7005",alias="",os="Linux 3.10.0-862.el7.x86_64 x86_64",redis_build_id="8a98b229e07adbaa",redis_mode="cluster",redis_version="4.0.11",role="slave"} 1
# HELP redis_instantaneous_input_kbps instantaneous_input_kbpsmetric
# TYPE redis_instantaneous_input_kbps gauge
redis_instantaneous_input_kbps{addr="localhost:7000",alias=""} 0.1
redis_instantaneous_input_kbps{addr="localhost:7001",alias=""} 0.12
redis_instantaneous_input_kbps{addr="localhost:7002",alias=""} 0.12
redis_instantaneous_input_kbps{addr="localhost:7003",alias=""} 0.08
redis_instantaneous_input_kbps{addr="localhost:7004",alias=""} 0.08
redis_instantaneous_input_kbps{addr="localhost:7005",alias=""} 0.08
# HELP redis_instantaneous_ops_per_sec instantaneous_ops_per_secmetric
# TYPE redis_instantaneous_ops_per_sec gauge
redis_instantaneous_ops_per_sec{addr="localhost:7000",alias=""} 3
redis_instantaneous_ops_per_sec{addr="localhost:7001",alias=""} 3
redis_instantaneous_ops_per_sec{addr="localhost:7002",alias=""} 4
redis_instantaneous_ops_per_sec{addr="localhost:7003",alias=""} 2
redis_instantaneous_ops_per_sec{addr="localhost:7004",alias=""} 2
redis_instantaneous_ops_per_sec{addr="localhost:7005",alias=""} 2
# HELP redis_instantaneous_output_kbps instantaneous_output_kbpsmetric
# TYPE redis_instantaneous_output_kbps gauge
redis_instantaneous_output_kbps{addr="localhost:7000",alias=""} 3.99
redis_instantaneous_output_kbps{addr="localhost:7001",alias=""} 4.06
redis_instantaneous_output_kbps{addr="localhost:7002",alias=""} 3.99
redis_instantaneous_output_kbps{addr="localhost:7003",alias=""} 3.89
redis_instantaneous_output_kbps{addr="localhost:7004",alias=""} 4.12
redis_instantaneous_output_kbps{addr="localhost:7005",alias=""} 4.05
# HELP redis_keyspace_hits_total keyspace_hits_totalmetric
# TYPE redis_keyspace_hits_total gauge
redis_keyspace_hits_total{addr="localhost:7000",alias=""} 0
redis_keyspace_hits_total{addr="localhost:7001",alias=""} 1
redis_keyspace_hits_total{addr="localhost:7002",alias=""} 0
redis_keyspace_hits_total{addr="localhost:7003",alias=""} 0
redis_keyspace_hits_total{addr="localhost:7004",alias=""} 0
redis_keyspace_hits_total{addr="localhost:7005",alias=""} 0
# HELP redis_keyspace_misses_total keyspace_misses_totalmetric
# TYPE redis_keyspace_misses_total gauge
redis_keyspace_misses_total{addr="localhost:7000",alias=""} 0
redis_keyspace_misses_total{addr="localhost:7001",alias=""} 0
redis_keyspace_misses_total{addr="localhost:7002",alias=""} 0
redis_keyspace_misses_total{addr="localhost:7003",alias=""} 0
redis_keyspace_misses_total{addr="localhost:7004",alias=""} 0
redis_keyspace_misses_total{addr="localhost:7005",alias=""} 0
# HELP redis_latest_fork_usec latest_fork_usecmetric
# TYPE redis_latest_fork_usec gauge
redis_latest_fork_usec{addr="localhost:7000",alias=""} 216
redis_latest_fork_usec{addr="localhost:7001",alias=""} 194
redis_latest_fork_usec{addr="localhost:7002",alias=""} 149
redis_latest_fork_usec{addr="localhost:7003",alias=""} 474
redis_latest_fork_usec{addr="localhost:7004",alias=""} 135
redis_latest_fork_usec{addr="localhost:7005",alias=""} 159
# HELP redis_loading_dump_file loading_dump_filemetric
# TYPE redis_loading_dump_file gauge
redis_loading_dump_file{addr="localhost:7000",alias=""} 0
redis_loading_dump_file{addr="localhost:7001",alias=""} 0
redis_loading_dump_file{addr="localhost:7002",alias=""} 0
redis_loading_dump_file{addr="localhost:7003",alias=""} 0
redis_loading_dump_file{addr="localhost:7004",alias=""} 0
redis_loading_dump_file{addr="localhost:7005",alias=""} 0
# HELP redis_master_last_io_seconds master_last_io_secondsmetric
# TYPE redis_master_last_io_seconds gauge
redis_master_last_io_seconds{addr="localhost:7003",alias=""} 8
redis_master_last_io_seconds{addr="localhost:7004",alias=""} 8
redis_master_last_io_seconds{addr="localhost:7005",alias=""} 10
# HELP redis_master_link_up Master link status on Redis slave
# TYPE redis_master_link_up gauge
redis_master_link_up{addr="localhost:7003",alias=""} 1
redis_master_link_up{addr="localhost:7004",alias=""} 1
redis_master_link_up{addr="localhost:7005",alias=""} 1
# HELP redis_master_repl_offset master_repl_offsetmetric
# TYPE redis_master_repl_offset gauge
redis_master_repl_offset{addr="localhost:7000",alias=""} 113638
redis_master_repl_offset{addr="localhost:7001",alias=""} 186453
redis_master_repl_offset{addr="localhost:7002",alias=""} 186396
redis_master_repl_offset{addr="localhost:7003",alias=""} 113638
redis_master_repl_offset{addr="localhost:7004",alias=""} 186453
redis_master_repl_offset{addr="localhost:7005",alias=""} 186396
# HELP redis_memory_fragmentation_ratio memory_fragmentation_ratiometric
# TYPE redis_memory_fragmentation_ratio gauge
redis_memory_fragmentation_ratio{addr="localhost:7000",alias=""} 1.25
redis_memory_fragmentation_ratio{addr="localhost:7001",alias=""} 0.69
redis_memory_fragmentation_ratio{addr="localhost:7002",alias=""} 0.74
redis_memory_fragmentation_ratio{addr="localhost:7003",alias=""} 1.31
redis_memory_fragmentation_ratio{addr="localhost:7004",alias=""} 0.72
redis_memory_fragmentation_ratio{addr="localhost:7005",alias=""} 0.73
# HELP redis_memory_max_bytes memory_max_bytesmetric
# TYPE redis_memory_max_bytes gauge
redis_memory_max_bytes{addr="localhost:7000",alias=""} 0
redis_memory_max_bytes{addr="localhost:7001",alias=""} 0
redis_memory_max_bytes{addr="localhost:7002",alias=""} 0
redis_memory_max_bytes{addr="localhost:7003",alias=""} 0
redis_memory_max_bytes{addr="localhost:7004",alias=""} 0
redis_memory_max_bytes{addr="localhost:7005",alias=""} 0
# HELP redis_memory_used_bytes memory_used_bytesmetric
# TYPE redis_memory_used_bytes gauge
redis_memory_used_bytes{addr="localhost:7000",alias=""} 2.651712e+06
redis_memory_used_bytes{addr="localhost:7001",alias=""} 2.646632e+06
redis_memory_used_bytes{addr="localhost:7002",alias=""} 2.647592e+06
redis_memory_used_bytes{addr="localhost:7003",alias=""} 2.649656e+06
redis_memory_used_bytes{addr="localhost:7004",alias=""} 2.64468e+06
redis_memory_used_bytes{addr="localhost:7005",alias=""} 2.6464e+06
# HELP redis_memory_used_lua_bytes memory_used_lua_bytesmetric
# TYPE redis_memory_used_lua_bytes gauge
redis_memory_used_lua_bytes{addr="localhost:7000",alias=""} 37888
redis_memory_used_lua_bytes{addr="localhost:7001",alias=""} 37888
redis_memory_used_lua_bytes{addr="localhost:7002",alias=""} 37888
redis_memory_used_lua_bytes{addr="localhost:7003",alias=""} 37888
redis_memory_used_lua_bytes{addr="localhost:7004",alias=""} 37888
redis_memory_used_lua_bytes{addr="localhost:7005",alias=""} 37888
# HELP redis_memory_used_peak_bytes memory_used_peak_bytesmetric
# TYPE redis_memory_used_peak_bytes gauge
redis_memory_used_peak_bytes{addr="localhost:7000",alias=""} 2.692664e+06
redis_memory_used_peak_bytes{addr="localhost:7001",alias=""} 2.692712e+06
redis_memory_used_peak_bytes{addr="localhost:7002",alias=""} 2.688544e+06
redis_memory_used_peak_bytes{addr="localhost:7003",alias=""} 2.690608e+06
redis_memory_used_peak_bytes{addr="localhost:7004",alias=""} 2.68768e+06
redis_memory_used_peak_bytes{addr="localhost:7005",alias=""} 2.687352e+06
# HELP redis_memory_used_rss_bytes memory_used_rss_bytesmetric
# TYPE redis_memory_used_rss_bytes gauge
redis_memory_used_rss_bytes{addr="localhost:7000",alias=""} 3.321856e+06
redis_memory_used_rss_bytes{addr="localhost:7001",alias=""} 1.826816e+06
redis_memory_used_rss_bytes{addr="localhost:7002",alias=""} 1.957888e+06
redis_memory_used_rss_bytes{addr="localhost:7003",alias=""} 3.465216e+06
redis_memory_used_rss_bytes{addr="localhost:7004",alias=""} 1.912832e+06
redis_memory_used_rss_bytes{addr="localhost:7005",alias=""} 1.92512e+06
# HELP redis_net_input_bytes_total net_input_bytes_totalmetric
# TYPE redis_net_input_bytes_total gauge
redis_net_input_bytes_total{addr="localhost:7000",alias=""} 3.604016e+06
redis_net_input_bytes_total{addr="localhost:7001",alias=""} 7.596348e+06
redis_net_input_bytes_total{addr="localhost:7002",alias=""} 7.600672e+06
redis_net_input_bytes_total{addr="localhost:7003",alias=""} 53933
redis_net_input_bytes_total{addr="localhost:7004",alias=""} 2.613161e+06
redis_net_input_bytes_total{addr="localhost:7005",alias=""} 2.613104e+06
# HELP redis_net_output_bytes_total net_output_bytes_totalmetric
# TYPE redis_net_output_bytes_total gauge
redis_net_output_bytes_total{addr="localhost:7000",alias=""} 6.713521e+07
redis_net_output_bytes_total{addr="localhost:7001",alias=""} 1.29991043e+08
redis_net_output_bytes_total{addr="localhost:7002",alias=""} 1.27144808e+08
redis_net_output_bytes_total{addr="localhost:7003",alias=""} 2.671808e+06
redis_net_output_bytes_total{addr="localhost:7004",alias=""} 1.33595947e+08
redis_net_output_bytes_total{addr="localhost:7005",alias=""} 1.31284904e+08
# HELP redis_process_id process_idmetric
# TYPE redis_process_id gauge
redis_process_id{addr="localhost:7000",alias=""} 15979
redis_process_id{addr="localhost:7001",alias=""} 10751
redis_process_id{addr="localhost:7002",alias=""} 10763
redis_process_id{addr="localhost:7003",alias=""} 9572
redis_process_id{addr="localhost:7004",alias=""} 10787
redis_process_id{addr="localhost:7005",alias=""} 10799
# HELP redis_pubsub_channels pubsub_channelsmetric
# TYPE redis_pubsub_channels gauge
redis_pubsub_channels{addr="localhost:7000",alias=""} 0
redis_pubsub_channels{addr="localhost:7001",alias=""} 0
redis_pubsub_channels{addr="localhost:7002",alias=""} 0
redis_pubsub_channels{addr="localhost:7003",alias=""} 0
redis_pubsub_channels{addr="localhost:7004",alias=""} 0
redis_pubsub_channels{addr="localhost:7005",alias=""} 0
# HELP redis_pubsub_patterns pubsub_patternsmetric
# TYPE redis_pubsub_patterns gauge
redis_pubsub_patterns{addr="localhost:7000",alias=""} 0
redis_pubsub_patterns{addr="localhost:7001",alias=""} 0
redis_pubsub_patterns{addr="localhost:7002",alias=""} 0
redis_pubsub_patterns{addr="localhost:7003",alias=""} 0
redis_pubsub_patterns{addr="localhost:7004",alias=""} 0
redis_pubsub_patterns{addr="localhost:7005",alias=""} 0
# HELP redis_rdb_bgsave_in_progress rdb_bgsave_in_progressmetric
# TYPE redis_rdb_bgsave_in_progress gauge
redis_rdb_bgsave_in_progress{addr="localhost:7000",alias=""} 0
redis_rdb_bgsave_in_progress{addr="localhost:7001",alias=""} 0
redis_rdb_bgsave_in_progress{addr="localhost:7002",alias=""} 0
redis_rdb_bgsave_in_progress{addr="localhost:7003",alias=""} 0
redis_rdb_bgsave_in_progress{addr="localhost:7004",alias=""} 0
redis_rdb_bgsave_in_progress{addr="localhost:7005",alias=""} 0
# HELP redis_rdb_changes_since_last_save rdb_changes_since_last_savemetric
# TYPE redis_rdb_changes_since_last_save gauge
redis_rdb_changes_since_last_save{addr="localhost:7000",alias=""} 0
redis_rdb_changes_since_last_save{addr="localhost:7001",alias=""} 1
redis_rdb_changes_since_last_save{addr="localhost:7002",alias=""} 0
redis_rdb_changes_since_last_save{addr="localhost:7003",alias=""} 1
redis_rdb_changes_since_last_save{addr="localhost:7004",alias=""} 1
redis_rdb_changes_since_last_save{addr="localhost:7005",alias=""} 0
# HELP redis_rdb_current_bgsave_duration_sec rdb_current_bgsave_duration_secmetric
# TYPE redis_rdb_current_bgsave_duration_sec gauge
redis_rdb_current_bgsave_duration_sec{addr="localhost:7000",alias=""} -1
redis_rdb_current_bgsave_duration_sec{addr="localhost:7001",alias=""} -1
redis_rdb_current_bgsave_duration_sec{addr="localhost:7002",alias=""} -1
redis_rdb_current_bgsave_duration_sec{addr="localhost:7003",alias=""} -1
redis_rdb_current_bgsave_duration_sec{addr="localhost:7004",alias=""} -1
redis_rdb_current_bgsave_duration_sec{addr="localhost:7005",alias=""} -1
# HELP redis_rdb_last_bgsave_duration_sec rdb_last_bgsave_duration_secmetric
# TYPE redis_rdb_last_bgsave_duration_sec gauge
redis_rdb_last_bgsave_duration_sec{addr="localhost:7000",alias=""} 0
redis_rdb_last_bgsave_duration_sec{addr="localhost:7001",alias=""} 0
redis_rdb_last_bgsave_duration_sec{addr="localhost:7002",alias=""} 0
redis_rdb_last_bgsave_duration_sec{addr="localhost:7003",alias=""} -1
redis_rdb_last_bgsave_duration_sec{addr="localhost:7004",alias=""} -1
redis_rdb_last_bgsave_duration_sec{addr="localhost:7005",alias=""} -1
# HELP redis_rdb_last_bgsave_status rdb_last_bgsave_statusmetric
# TYPE redis_rdb_last_bgsave_status gauge
redis_rdb_last_bgsave_status{addr="localhost:7000",alias=""} 1
redis_rdb_last_bgsave_status{addr="localhost:7001",alias=""} 1
redis_rdb_last_bgsave_status{addr="localhost:7002",alias=""} 1
redis_rdb_last_bgsave_status{addr="localhost:7003",alias=""} 1
redis_rdb_last_bgsave_status{addr="localhost:7004",alias=""} 1
redis_rdb_last_bgsave_status{addr="localhost:7005",alias=""} 1
# HELP redis_rdb_last_cow_size_bytes rdb_last_cow_size_bytesmetric
# TYPE redis_rdb_last_cow_size_bytes gauge
redis_rdb_last_cow_size_bytes{addr="localhost:7000",alias=""} 294912
redis_rdb_last_cow_size_bytes{addr="localhost:7001",alias=""} 249856
redis_rdb_last_cow_size_bytes{addr="localhost:7002",alias=""} 372736
redis_rdb_last_cow_size_bytes{addr="localhost:7003",alias=""} 0
redis_rdb_last_cow_size_bytes{addr="localhost:7004",alias=""} 0
redis_rdb_last_cow_size_bytes{addr="localhost:7005",alias=""} 0
# HELP redis_rdb_last_save_timestamp_seconds rdb_last_save_timestamp_secondsmetric
# TYPE redis_rdb_last_save_timestamp_seconds gauge
redis_rdb_last_save_timestamp_seconds{addr="localhost:7000",alias=""} 1.539033347e+09
redis_rdb_last_save_timestamp_seconds{addr="localhost:7001",alias=""} 1.538177398e+09
redis_rdb_last_save_timestamp_seconds{addr="localhost:7002",alias=""} 1.538177397e+09
redis_rdb_last_save_timestamp_seconds{addr="localhost:7003",alias=""} 1.539033346e+09
redis_rdb_last_save_timestamp_seconds{addr="localhost:7004",alias=""} 1.538177301e+09
redis_rdb_last_save_timestamp_seconds{addr="localhost:7005",alias=""} 1.538177302e+09
# HELP redis_rejected_connections_total rejected_connections_totalmetric
# TYPE redis_rejected_connections_total gauge
redis_rejected_connections_total{addr="localhost:7000",alias=""} 0
redis_rejected_connections_total{addr="localhost:7001",alias=""} 0
redis_rejected_connections_total{addr="localhost:7002",alias=""} 0
redis_rejected_connections_total{addr="localhost:7003",alias=""} 0
redis_rejected_connections_total{addr="localhost:7004",alias=""} 0
redis_rejected_connections_total{addr="localhost:7005",alias=""} 0
# HELP redis_replication_backlog_bytes replication_backlog_bytesmetric
# TYPE redis_replication_backlog_bytes gauge
redis_replication_backlog_bytes{addr="localhost:7000",alias=""} 1.048576e+06
redis_replication_backlog_bytes{addr="localhost:7001",alias=""} 1.048576e+06
redis_replication_backlog_bytes{addr="localhost:7002",alias=""} 1.048576e+06
redis_replication_backlog_bytes{addr="localhost:7003",alias=""} 1.048576e+06
redis_replication_backlog_bytes{addr="localhost:7004",alias=""} 1.048576e+06
redis_replication_backlog_bytes{addr="localhost:7005",alias=""} 1.048576e+06
# HELP redis_slave_info Information about the Redis slave
# TYPE redis_slave_info gauge
redis_slave_info{addr="localhost:7003",alias="",master_host="127.0.0.1",master_port="7000",read_only="1"} 1
redis_slave_info{addr="localhost:7004",alias="",master_host="127.0.0.1",master_port="7001",read_only="1"} 1
redis_slave_info{addr="localhost:7005",alias="",master_host="127.0.0.1",master_port="7002",read_only="1"} 1
# HELP redis_slowlog_length Total slowlog
# TYPE redis_slowlog_length gauge
redis_slowlog_length{addr="localhost:7000",alias=""} 0
redis_slowlog_length{addr="localhost:7001",alias=""} 0
redis_slowlog_length{addr="localhost:7002",alias=""} 1
redis_slowlog_length{addr="localhost:7003",alias=""} 0
redis_slowlog_length{addr="localhost:7004",alias=""} 0
redis_slowlog_length{addr="localhost:7005",alias=""} 0
# HELP redis_start_time_seconds Start time of the Redis instance since unix epoch in seconds.
# TYPE redis_start_time_seconds gauge
redis_start_time_seconds{addr="localhost:7000",alias=""} 1.538588848e+09
redis_start_time_seconds{addr="localhost:7001",alias=""} 1.538177301e+09
redis_start_time_seconds{addr="localhost:7002",alias=""} 1.538177301e+09
redis_start_time_seconds{addr="localhost:7003",alias=""} 1.539033346e+09
redis_start_time_seconds{addr="localhost:7004",alias=""} 1.538177301e+09
redis_start_time_seconds{addr="localhost:7005",alias=""} 1.538177302e+09
# HELP redis_total_system_memory_bytes total_system_memory_bytesmetric
# TYPE redis_total_system_memory_bytes gauge
redis_total_system_memory_bytes{addr="localhost:7000",alias=""} 1.928024064e+09
redis_total_system_memory_bytes{addr="localhost:7001",alias=""} 1.928024064e+09
redis_total_system_memory_bytes{addr="localhost:7002",alias=""} 1.928024064e+09
redis_total_system_memory_bytes{addr="localhost:7003",alias=""} 1.928024064e+09
redis_total_system_memory_bytes{addr="localhost:7004",alias=""} 1.928024064e+09
redis_total_system_memory_bytes{addr="localhost:7005",alias=""} 1.928024064e+09
# HELP redis_up upmetric
# TYPE redis_up gauge
redis_up{addr="localhost:7000",alias=""} 1
redis_up{addr="localhost:7001",alias=""} 1
redis_up{addr="localhost:7002",alias=""} 1
redis_up{addr="localhost:7003",alias=""} 1
redis_up{addr="localhost:7004",alias=""} 1
redis_up{addr="localhost:7005",alias=""} 1
# HELP redis_uptime_in_seconds uptime_in_secondsmetric
# TYPE redis_uptime_in_seconds gauge
redis_uptime_in_seconds{addr="localhost:7000",alias=""} 446362
redis_uptime_in_seconds{addr="localhost:7001",alias=""} 857909
redis_uptime_in_seconds{addr="localhost:7002",alias=""} 857909
redis_uptime_in_seconds{addr="localhost:7003",alias=""} 1864
redis_uptime_in_seconds{addr="localhost:7004",alias=""} 857909
redis_uptime_in_seconds{addr="localhost:7005",alias=""} 857908
# HELP redis_used_cpu_sys used_cpu_sysmetric
# TYPE redis_used_cpu_sys gauge
redis_used_cpu_sys{addr="localhost:7000",alias=""} 43.48
redis_used_cpu_sys{addr="localhost:7001",alias=""} 75.73
redis_used_cpu_sys{addr="localhost:7002",alias=""} 75.77
redis_used_cpu_sys{addr="localhost:7003",alias=""} 1.14
redis_used_cpu_sys{addr="localhost:7004",alias=""} 79.84
redis_used_cpu_sys{addr="localhost:7005",alias=""} 81.61
# HELP redis_used_cpu_sys_children used_cpu_sys_childrenmetric
# TYPE redis_used_cpu_sys_children gauge
redis_used_cpu_sys_children{addr="localhost:7000",alias=""} 0
redis_used_cpu_sys_children{addr="localhost:7001",alias=""} 0
redis_used_cpu_sys_children{addr="localhost:7002",alias=""} 0
redis_used_cpu_sys_children{addr="localhost:7003",alias=""} 0
redis_used_cpu_sys_children{addr="localhost:7004",alias=""} 0
redis_used_cpu_sys_children{addr="localhost:7005",alias=""} 0
# HELP redis_used_cpu_user used_cpu_usermetric
# TYPE redis_used_cpu_user gauge
redis_used_cpu_user{addr="localhost:7000",alias=""} 30.46
redis_used_cpu_user{addr="localhost:7001",alias=""} 55.37
redis_used_cpu_user{addr="localhost:7002",alias=""} 55.44
redis_used_cpu_user{addr="localhost:7003",alias=""} 0.86
redis_used_cpu_user{addr="localhost:7004",alias=""} 49.98
redis_used_cpu_user{addr="localhost:7005",alias=""} 48.38
# HELP redis_used_cpu_user_children used_cpu_user_childrenmetric
# TYPE redis_used_cpu_user_children gauge
redis_used_cpu_user_children{addr="localhost:7000",alias=""} 0
redis_used_cpu_user_children{addr="localhost:7001",alias=""} 0
redis_used_cpu_user_children{addr="localhost:7002",alias=""} 0
redis_used_cpu_user_children{addr="localhost:7003",alias=""} 0
redis_used_cpu_user_children{addr="localhost:7004",alias=""} 0
redis_used_cpu_user_children{addr="localhost:7005",alias=""} 0

 

What does it look like?

Example Grafana screenshots:
redis_exporter_screen
redis_exporter_screen_02

Grafana dashboard is available on grafana.net and/or github.com.

Grafana dashboard with host & alias selector is available on github.com.

What else?

Open an issue or PR if you have more suggestions or ideas about what to add.

5 Responses so far.

  1. sunfriendli says:
    How did you get the metric aboat ‘redis_used_cpu_user’?
    I did what document tell me, but there is nothing about cpu usage return.
  2. sunfriendli says:
    Hello, I encountered fail to get metrics about ‘cpu usage’ , I did everything document tells me, but it didn’t works? can you do me a favor! Please!
  3. Rajendra says:
    Hello, unable to get redis metrics cloud you please help me how can I get redis metrics including default metrics.
    • Rajendra says:
      I have did below steps:

      $ go get github.com/oliver006/redis_exporter
      $ cd $GOPATH/src/github.com/oliver006/redis_exporter
      $ go build
      $ redis_exporter –redis.addr redis://localhost:6379 –redis.password

      curl http://localhost:9121/metrics
      ERRO[0303] Couldn’t connect to redis instance
      # HELP go_gc_duration_seconds A summary of the GC invocation durations.
      # TYPE go_gc_duration_seconds summary
      go_gc_duration_seconds{quantile=”0″} 0
      go_gc_duration_seconds{quantile=”0.25″} 0
      go_gc_duration_seconds{quantile=”0.5″} 0
      go_gc_duration_seconds{quantile=”0.75″} 0
      go_gc_duration_seconds{quantile=”1″} 0
      go_gc_duration_seconds_sum 0
      go_gc_duration_seconds_count 0
      # HELP go_goroutines Number of goroutines that currently exist.
      # TYPE go_goroutines gauge
      go_goroutines 6
      # HELP go_info Information about the Go environment.
      # TYPE go_info gauge
      go_info{version=”go1.13″} 1
      # HELP go_memstats_alloc_bytes Number of bytes allocated and still in use.
      # TYPE go_memstats_alloc_bytes gauge
      go_memstats_alloc_bytes 527664
      # HELP go_memstats_alloc_bytes_total Total number of bytes allocated, even if freed.
      # TYPE go_memstats_alloc_bytes_total counter
      go_memstats_alloc_bytes_total 527664
      # HELP go_memstats_buck_hash_sys_bytes Number of bytes used by the profiling bucket hash table.
      # TYPE go_memstats_buck_hash_sys_bytes gauge
      go_memstats_buck_hash_sys_bytes 2731
      # HELP go_memstats_frees_total Total number of frees.
      # TYPE go_memstats_frees_total counter
      go_memstats_frees_total 81
      # HELP go_memstats_gc_cpu_fraction The fraction of this program’s available CPU time used by the GC since the program started.
      # TYPE go_memstats_gc_cpu_fraction gauge
      go_memstats_gc_cpu_fraction 0
      # HELP go_memstats_gc_sys_bytes Number of bytes used for garbage collection system metadata.
      # TYPE go_memstats_gc_sys_bytes gauge
      go_memstats_gc_sys_bytes 2.240512e+06
      # HELP go_memstats_heap_alloc_bytes Number of heap bytes allocated and still in use.
      # TYPE go_memstats_heap_alloc_bytes gauge
      go_memstats_heap_alloc_bytes 527664
      # HELP go_memstats_heap_idle_bytes Number of heap bytes waiting to be used.
      # TYPE go_memstats_heap_idle_bytes gauge
      go_memstats_heap_idle_bytes 6.5568768e+07
      # HELP go_memstats_heap_inuse_bytes Number of heap bytes that are in use.
      # TYPE go_memstats_heap_inuse_bytes gauge
      go_memstats_heap_inuse_bytes 1.245184e+06
      # HELP go_memstats_heap_objects Number of allocated objects.
      # TYPE go_memstats_heap_objects gauge
      go_memstats_heap_objects 2317
      # HELP go_memstats_heap_released_bytes Number of heap bytes released to OS.
      # TYPE go_memstats_heap_released_bytes gauge
      go_memstats_heap_released_bytes 6.5568768e+07
      # HELP go_memstats_heap_sys_bytes Number of heap bytes obtained from system.
      # TYPE go_memstats_heap_sys_bytes gauge
      go_memstats_heap_sys_bytes 6.6813952e+07
      # HELP go_memstats_last_gc_time_seconds Number of seconds since 1970 of last garbage collection.
      # TYPE go_memstats_last_gc_time_seconds gauge
      go_memstats_last_gc_time_seconds 0
      # HELP go_memstats_lookups_total Total number of pointer lookups.
      # TYPE go_memstats_lookups_total counter
      go_memstats_lookups_total 0
      # HELP go_memstats_mallocs_total Total number of mallocs.
      # TYPE go_memstats_mallocs_total counter
      go_memstats_mallocs_total 2398
      # HELP go_memstats_mcache_inuse_bytes Number of bytes in use by mcache structures.
      # TYPE go_memstats_mcache_inuse_bytes gauge
      go_memstats_mcache_inuse_bytes 3472
      # HELP go_memstats_mcache_sys_bytes Number of bytes used for mcache structures obtained from system.
      # TYPE go_memstats_mcache_sys_bytes gauge
      go_memstats_mcache_sys_bytes 16384
      # HELP go_memstats_mspan_inuse_bytes Number of bytes in use by mspan structures.
      # TYPE go_memstats_mspan_inuse_bytes gauge
      go_memstats_mspan_inuse_bytes 15776
      # HELP go_memstats_mspan_sys_bytes Number of bytes used for mspan structures obtained from system.
      # TYPE go_memstats_mspan_sys_bytes gauge
      go_memstats_mspan_sys_bytes 16384
      # HELP go_memstats_next_gc_bytes Number of heap bytes when next garbage collection will take place.
      # TYPE go_memstats_next_gc_bytes gauge
      go_memstats_next_gc_bytes 4.473924e+06
      # HELP go_memstats_other_sys_bytes Number of bytes used for other system allocations.
      # TYPE go_memstats_other_sys_bytes gauge
      go_memstats_other_sys_bytes 544085
      # HELP go_memstats_stack_inuse_bytes Number of bytes in use by the stack allocator.
      # TYPE go_memstats_stack_inuse_bytes gauge
      go_memstats_stack_inuse_bytes 294912
      # HELP go_memstats_stack_sys_bytes Number of bytes obtained from system for stack allocator.
      # TYPE go_memstats_stack_sys_bytes gauge
      go_memstats_stack_sys_bytes 294912
      # HELP go_memstats_sys_bytes Number of bytes obtained from system.
      # TYPE go_memstats_sys_bytes gauge
      go_memstats_sys_bytes 6.992896e+07
      # HELP go_threads Number of OS threads created.
      # TYPE go_threads gauge
      go_threads 6
      # HELP process_cpu_seconds_total Total user and system CPU time spent in seconds.
      # TYPE process_cpu_seconds_total counter
      process_cpu_seconds_total 0
      # HELP process_max_fds Maximum number of open file descriptors.
      # TYPE process_max_fds gauge
      process_max_fds 1024
      # HELP process_open_fds Number of open file descriptors.
      # TYPE process_open_fds gauge
      process_open_fds 8
      # HELP process_resident_memory_bytes Resident memory size in bytes.
      # TYPE process_resident_memory_bytes gauge
      process_resident_memory_bytes 1.00352e+07
      # HELP process_start_time_seconds Start time of the process since unix epoch in seconds.
      # TYPE process_start_time_seconds gauge
      process_start_time_seconds 1.57080375839e+09
      # HELP process_virtual_memory_bytes Virtual memory size in bytes.
      # TYPE process_virtual_memory_bytes gauge
      process_virtual_memory_bytes 1.52571904e+08
      # HELP process_virtual_memory_max_bytes Maximum amount of virtual memory available in bytes.
      # TYPE process_virtual_memory_max_bytes gauge
      process_virtual_memory_max_bytes -1
      # HELP redis_exporter_build_info redis exporter build_info
      # TYPE redis_exporter_build_info gauge
      redis_exporter_build_info{build_date=”<<>>”,commit_sha=”<<>>”,golang_version=”go1.13″,version=”<<>>”} 1
      # HELP redis_exporter_last_scrape_duration_seconds exporter_last_scrape_duration_seconds metric
      # TYPE redis_exporter_last_scrape_duration_seconds gauge
      redis_exporter_last_scrape_duration_seconds 0.001125603
      # HELP redis_exporter_last_scrape_error The last scrape error status.
      # TYPE redis_exporter_last_scrape_error gauge
      redis_exporter_last_scrape_error{err=”dial redis: unknown network redis”} 1
      # HELP redis_exporter_scrape_duration_seconds Duration of scrape by the exporter
      # TYPE redis_exporter_scrape_duration_seconds summary
      redis_exporter_scrape_duration_seconds{quantile=”0.5″} NaN
      redis_exporter_scrape_duration_seconds{quantile=”0.9″} NaN
      redis_exporter_scrape_duration_seconds{quantile=”0.99″} NaN
      redis_exporter_scrape_duration_seconds_sum 0
      redis_exporter_scrape_duration_seconds_count 0
      # HELP redis_exporter_scrapes_total Current total redis scrapes.
      # TYPE redis_exporter_scrapes_total counter
      redis_exporter_scrapes_total 1
      # HELP redis_target_scrape_request_errors_total Errors in requests to the exporter
      # TYPE redis_target_scrape_request_errors_total counter
      redis_target_scrape_request_errors_total 0
      # HELP redis_up Information about the Redis instance
      # TYPE redis_up gauge
      redis_up 0

LEAVE A COMMENT