From c0fb0eedfb8a7fab84216be3fedcbcaaefd066e5 Mon Sep 17 00:00:00 2001 From: rozetko Date: Tue, 22 May 2018 23:44:25 +0300 Subject: [PATCH] Update REST.md --- REST.md | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/REST.md b/REST.md index bc2359b..d0ba39e 100644 --- a/REST.md +++ b/REST.md @@ -52,23 +52,23 @@ Data format: { "name": "cpu_utilization_supervised", "metric": { - "datasource": "influx accelerometer", - "targets": [ - - ] + "datasource": "influx accelerometer", + "targets": [ + + ] }, "panelUrl": "http://grafana.example.com/d/oNZ35bWiz/new-dashboard-copy?panelId=2&fullscreen", "datasource": { - "data": null, - "type": "influxdb", - "method": "GET", - "params": { - "db": "collectd", - "q": "SELECT mean("value") FROM "cpu_value" WHERE ("type…ms and time <= 1526986266633ms GROUP BY time(10s)", - "epoch": "ms" - } - "url": "api/datasources/proxy/8/query" - } + "data": null, + "type": "influxdb", + "method": "GET", + "params": { + "db": "collectd", + "q": "SELECT mean("value") FROM "cpu_value" WHERE ("type_instance" = 'user') AND time >= 1525603866633ms and time <= 1526986266633ms GROUP BY time(10s)", + "epoch": "ms" + } + "url": "api/datasources/proxy/8/query" + } } ```