From 073c44070d0044af798e188be3c36396cae758ea Mon Sep 17 00:00:00 2001 From: Chris Goller Date: Mon, 14 Nov 2016 13:06:30 -0600 Subject: [PATCH 1/2] Add riak layout --- canned/riak.json | 126 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 126 insertions(+) create mode 100644 canned/riak.json diff --git a/canned/riak.json b/canned/riak.json new file mode 100644 index 000000000..ec36d5765 --- /dev/null +++ b/canned/riak.json @@ -0,0 +1,126 @@ +{ + "id": "f56fd522-3e9c-492d-88fe-34e05d6d2462", + "measurement": "riak", + "app": "riak", + "cells": [ + { + "x": 0, + "y": 0, + "w": 4, + "h": 4, + "i": "e12ebb94-2592-4b83-86fc-1f8a9aa84262", + "name": "Riak – Total Memory Bytes", + "queries": [ + { + "query": "SELECT max(\"memory_total\") as memory_total_bytes FROM riak", + "db": "telegraf", + "rp": "", + "groupbys": [], + "wheres": [] + } + ] + }, + { + "x": 0, + "y": 0, + "w": 4, + "h": 4, + "i": "8355d65d-34a7-4b6e-ae54-eaf25cd14e4b", + "name": "Riak – Object Byte Size", + "queries": [ + { + "query": "SELECT max(\"node_get_fsm_objsize_median\") AS \"median\", max(\"node_get_fsm_objsize_100\") AS \"100th-percentile\", max(\"node_get_fsm_objsize_99\") AS \"99th-percentile\", max(\"node_get_fsm_objsize_mean\") AS \"mean\", max(\"node_get_fsm_objsize_95\") AS \"95th-percentile\" FROM riak", + "db": "telegraf", + "rp": "", + "groupbys": [], + "wheres": [] + } + ] + }, + { + "x": 0, + "y": 0, + "w": 4, + "h": 4, + "i": "91e26cbe-1595-4d17-a54b-c26e08ecf572", + "name": "Riak – Number of Siblings/Minute", + "queries": [ + { + "query": "SELECT max(\"node_get_fsm_siblings_median\") AS \"median\", max(\"node_get_fsm_siblings_mean\") AS \"mean\", max(\"node_get_fsm_siblings_99\") AS \"99th-percentile\", max(\"node_get_fsm_siblings_95\") AS \"95h-percentile\", max(\"node_get_fsm_siblings_100\") AS \"100th-percentile\" FROM riak", + "db": "telegraf", + "rp": "", + "groupbys": [], + "wheres": [] + } + ] + }, + { + "x": 0, + "y": 0, + "w": 4, + "h": 4, + "i": "eefbdfec-8578-46a8-a0d5-1247d1d4cf97", + "name": "Riak – Latency (ms)", + "queries": [ + { + "query": "SELECT max(\"node_put_fsm_time_median\") / 1000 AS \"median_put_milliseconds\", max(\"node_get_fsm_time_median\") / 1000 AS \"median_get_milliseconds\" FROM riak", + "db": "telegraf", + "rp": "", + "groupbys": [], + "wheres": [] + } + ] + }, + { + "x": 0, + "y": 0, + "w": 4, + "h": 4, + "i": "48f268ae-3218-4b07-a2e9-575f89e2d6c9", + "name": "Riak – Reads and Writes/Minute", + "queries": [ + { + "query": "SELECT max(\"node_puts\") AS \"puts_per_minute\", max(\"node_gets\") AS \"gets_per_minute\" FROM riak", + "db": "telegraf", + "rp": "", + "groupbys": [], + "wheres": [] + } + ] + }, + { + "x": 0, + "y": 0, + "w": 4, + "h": 4, + "i": "f7c601c2-1007-49ec-bbcd-3f3e678ba781", + "name": "Riak – Active Connections", + "queries": [ + { + "query": "SELECT max(\"pbc_active\") AS \"active_protobuf_connections\" FROM riak", + "db": "telegraf", + "rp": "", + "groupbys": [], + "wheres": [] + } + ] + }, + { + "x": 0, + "y": 0, + "w": 4, + "h": 4, + "i": "f29575f9-6b78-465c-b055-b518d6eda09d", + "name": "Riak – Read Repairs/Minute", + "queries": [ + { + "query": "SELECT max(\"read_repairs\") AS \"read_repairs_per_minute\" FROM riak", + "db": "telegraf", + "rp": "", + "groupbys": [], + "wheres": [] + } + ] + } + ] +} From e4bad62d80418f0da8d14704277489703e278868 Mon Sep 17 00:00:00 2001 From: Chris Goller Date: Mon, 14 Nov 2016 13:17:38 -0600 Subject: [PATCH 2/2] Update riak layout to group by node name --- canned/riak.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/canned/riak.json b/canned/riak.json index ec36d5765..221ced790 100644 --- a/canned/riak.json +++ b/canned/riak.json @@ -15,7 +15,7 @@ "query": "SELECT max(\"memory_total\") as memory_total_bytes FROM riak", "db": "telegraf", "rp": "", - "groupbys": [], + "groupbys": ["\"nodename\""], "wheres": [] } ] @@ -32,7 +32,7 @@ "query": "SELECT max(\"node_get_fsm_objsize_median\") AS \"median\", max(\"node_get_fsm_objsize_100\") AS \"100th-percentile\", max(\"node_get_fsm_objsize_99\") AS \"99th-percentile\", max(\"node_get_fsm_objsize_mean\") AS \"mean\", max(\"node_get_fsm_objsize_95\") AS \"95th-percentile\" FROM riak", "db": "telegraf", "rp": "", - "groupbys": [], + "groupbys": ["\"nodename\""], "wheres": [] } ] @@ -49,7 +49,7 @@ "query": "SELECT max(\"node_get_fsm_siblings_median\") AS \"median\", max(\"node_get_fsm_siblings_mean\") AS \"mean\", max(\"node_get_fsm_siblings_99\") AS \"99th-percentile\", max(\"node_get_fsm_siblings_95\") AS \"95h-percentile\", max(\"node_get_fsm_siblings_100\") AS \"100th-percentile\" FROM riak", "db": "telegraf", "rp": "", - "groupbys": [], + "groupbys": ["\"nodename\""], "wheres": [] } ] @@ -66,7 +66,7 @@ "query": "SELECT max(\"node_put_fsm_time_median\") / 1000 AS \"median_put_milliseconds\", max(\"node_get_fsm_time_median\") / 1000 AS \"median_get_milliseconds\" FROM riak", "db": "telegraf", "rp": "", - "groupbys": [], + "groupbys": ["\"nodename\""], "wheres": [] } ] @@ -83,7 +83,7 @@ "query": "SELECT max(\"node_puts\") AS \"puts_per_minute\", max(\"node_gets\") AS \"gets_per_minute\" FROM riak", "db": "telegraf", "rp": "", - "groupbys": [], + "groupbys": ["\"nodename\""], "wheres": [] } ] @@ -100,7 +100,7 @@ "query": "SELECT max(\"pbc_active\") AS \"active_protobuf_connections\" FROM riak", "db": "telegraf", "rp": "", - "groupbys": [], + "groupbys": ["\"nodename\""], "wheres": [] } ] @@ -117,7 +117,7 @@ "query": "SELECT max(\"read_repairs\") AS \"read_repairs_per_minute\" FROM riak", "db": "telegraf", "rp": "", - "groupbys": [], + "groupbys": ["\"nodename\""], "wheres": [] } ]