From 5aeeeca5f1a3c2caed5ddf7e27bd2a46f2050475 Mon Sep 17 00:00:00 2001 From: Chris Goller Date: Fri, 24 Feb 2017 17:03:59 -0600 Subject: [PATCH] Add labels to influxdb write layout --- canned/influxdb_write.json | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/canned/influxdb_write.json b/canned/influxdb_write.json index 8d8a81813..06e3f6cef 100644 --- a/canned/influxdb_write.json +++ b/canned/influxdb_write.json @@ -13,7 +13,8 @@ "name": "InfluxDB - Write Points", "queries": [ { - "query": "SELECT non_negative_derivative(max(\"pointReq\"), 1s) AS \"points_written\" FROM \"influxdb_write\"", + "query": "SELECT non_negative_derivative(max(\"pointReq\")) AS \"points_written\" FROM \"influxdb_write\"", + "label": "points/s", "groupbys": [], "wheres": [] } @@ -28,12 +29,13 @@ "name": "InfluxDB - Write Errors", "queries": [ { - "query": "SELECT non_negative_derivative(max(\"writeError\"), 1s) AS \"shard_write_error\" FROM \"influxdb_write\"", + "query": "SELECT non_negative_derivative(max(\"writeError\")) AS \"shard_write_error\" FROM \"influxdb_write\"", + "label": "errors/s", "groupbys": [], "wheres": [] }, { - "query": "SELECT non_negative_derivative(max(\"serveError\"), 1s) AS \"http_error\" FROM \"influxdb_httpd\"", + "query": "SELECT non_negative_derivative(max(\"serveError\")) AS \"http_error\" FROM \"influxdb_httpd\"", "groupbys": [], "wheres": [] }