Skip to main content

RiakKV

Plugin: python.d.plugin Module: riakkv

Overview​

This collector monitors RiakKV metrics about throughput, latency, resources and more.'

This collector reads the database stats from the /stats endpoint.

This collector is supported on all platforms.

This collector supports collecting metrics from multiple instances of this integration, including remote instances.

Default Behavior​

Auto-Detection​

If the /stats endpoint is accessible, RiakKV instances on the local host running on port 8098 will be autodetected.

Limits​

The default configuration for this integration does not impose any limits on data collection.

Performance Impact​

The default configuration for this integration is not expected to impose a significant performance impact on the system.

Metrics​

Metrics grouped by scope.

The scope defines the instance that the metric belongs to. An instance is uniquely identified by a set of labels.

Per RiakKV instance​

These metrics refer to the entire monitored application.

This scope has no labels.

Metrics:

MetricDimensionsUnit
riak.kv.throughputgets, putsoperations/s
riak.dt.vnode_updatescounters, sets, mapsoperations/s
riak.searchqueriesqueries/s
riak.search.documentsindexeddocuments/s
riak.consistent.operationsgets, putsoperations/s
riak.kv.latency.getmean, median, 95, 99, 100ms
riak.kv.latency.putmean, median, 95, 99, 100ms
riak.dt.latency.counter_mergemean, median, 95, 99, 100ms
riak.dt.latency.set_mergemean, median, 95, 99, 100ms
riak.dt.latency.map_mergemean, median, 95, 99, 100ms
riak.search.latency.querymedian, min, 95, 99, 999, maxms
riak.search.latency.indexmedian, min, 95, 99, 999, maxms
riak.consistent.latency.getmean, median, 95, 99, 100ms
riak.consistent.latency.putmean, median, 95, 99, 100ms
riak.vmprocessestotal
riak.vm.memory.processesallocated, usedMB
riak.kv.siblings_encountered.getmean, median, 95, 99, 100siblings
riak.kv.objsize.getmean, median, 95, 99, 100KB
riak.search.vnodeq_sizemean, median, 95, 99, 100messages
riak.search.indexerrorserrors
riak.core.protobuf_connectionsactiveconnections
riak.core.repairsreadrepairs
riak.core.fsm_activeget, put, secondary index, list keysfsms
riak.core.fsm_rejectedget, putfsms
riak.search.indexbad_entry, extract_failwrites

Alerts​

The following alerts are available:

Alert nameOn metricDescription
riakkv_1h_kv_get_mean_latency riak.kv.latency.getaverage time between reception of client GET request and subsequent response to client over the last hour
riakkv_kv_get_slow riak.kv.latency.getaverage time between reception of client GET request and subsequent response to the client over the last 3 minutes, compared to the average over the last hour
riakkv_1h_kv_put_mean_latency riak.kv.latency.putaverage time between reception of client PUT request and subsequent response to the client over the last hour
riakkv_kv_put_slow riak.kv.latency.putaverage time between reception of client PUT request and subsequent response to the client over the last 3 minutes, compared to the average over the last hour
riakkv_vm_high_process_count riak.vmnumber of processes running in the Erlang VM
riakkv_list_keys_active riak.core.fsm_activenumber of currently running list keys finite state machines

Setup​

Prerequisites​

Configure RiakKV to enable /stats endpoint​

You can follow the RiakKV configuration reference documentation for how to enable this.

Source : https://docs.riak.com/riak/kv/2.2.3/configuring/reference/#client-interfaces

Configuration​

File​

The configuration file name for this integration is python.d/riakkv.conf.

You can edit the configuration file using the edit-config script from the Netdata config directory.

cd /etc/netdata 2>/dev/null || cd /opt/netdata/etc/netdata
sudo ./edit-config python.d/riakkv.conf

Options​

There are 2 sections:

  • Global variables
  • One or more JOBS that can define multiple different instances to monitor.

The following options can be defined globally: priority, penalty, autodetection_retry, update_every, but can also be defined per JOB to override the global values.

Additionally, the following collapsed table contains all the options that can be configured inside a JOB definition.

Every configuration JOB starts with a job_name value which will appear in the dashboard, unless a name parameter is specified.

Config options
NameDescriptionDefaultRequired
update_everySets the default data collection frequency.5no
priorityControls the order of charts at the netdata dashboard.60000no
autodetection_retrySets the job re-check interval in seconds.0no
penaltyIndicates whether to apply penalty to update_every in case of failures.yesno
urlThe url of the servernoyes

Examples​

Basic (default)​

A basic example configuration per job

local:
url: 'http://localhost:8098/stats'

Multi-instance​

Note: When you define multiple jobs, their names must be unique.

Collecting metrics from local and remote instances.

Config
local:
url: 'http://localhost:8098/stats'

remote:
url: 'http://192.0.2.1:8098/stats'

Troubleshooting​

Debug Mode​

To troubleshoot issues with the riakkv collector, run the python.d.plugin with the debug option enabled. The output should give you clues as to why the collector isn't working.

  • Navigate to the plugins.d directory, usually at /usr/libexec/netdata/plugins.d/. If that's not the case on your system, open netdata.conf and look for the plugins setting under [directories].

    cd /usr/libexec/netdata/plugins.d/
  • Switch to the netdata user.

    sudo -u netdata -s
  • Run the python.d.plugin to debug the collector:

    ./python.d.plugin riakkv debug trace

Do you have any feedback for this page? If so, you can open a new issue on our netdata/learn repository.