Update layouts with jq formatting

pull/416/head
Chris Goller 2016-11-07 21:57:18 -06:00
parent 5ed9036b4c
commit 84405dd609
2 changed files with 81 additions and 67 deletions

View File

@ -1,49 +1,59 @@
{ {
"id": "ff41d044-f61a-4522-8de7-9e39e3a1b5de", "id": "ff41d044-f61a-4522-8de7-9e39e3a1b5de",
"measurement": "netstat", "measurement": "netstat",
"app": "Network metrics", "app": "Network metrics",
"cells": [{ "cells": [
"x": 0,
"y": 0,
"w": 10,
"h": 10,
"i": "cf5d0608-b513-4244-a55f-accf520da3a1",
"name": "Open sockets",
"queries": [{
"query": "select tcp_established from netstat",
"db": "telegraf",
"rp": "autogen",
"groupbys": [],
"wheres": []
},
{
"query": "select udp_socket from netstat",
"db": "telegraf",
"rp": "autogen",
"groupbys": [],
"wheres": []
}]
},
{ {
"x": 0, "x": 0,
"y": 0, "y": 0,
"w": 10, "w": 10,
"h": 10, "h": 10,
"i": "cf5d0608-b513-4244-a55f-accf520da3a1", "i": "cf5d0608-b513-4244-a55f-accf520da3a1",
"name": "Sockets created/second ", "name": "Open sockets",
"queries": [{ "queries": [
"query": "select derivative(last(\"tcp_established\"), 10) from netstat",
"db": "telegraf",
"rp": "autogen",
"groupbys": ["time"],
"wheres": []
},
{ {
"query": "select derivative(last(\"udp_socket\"), 10) from netstat", "query": "select tcp_established from netstat",
"db": "telegraf", "db": "telegraf",
"rp": "autogen", "rp": "autogen",
"groupbys": ["time"], "groupbys": [],
"wheres": [] "wheres": []
}] },
}] {
} "query": "select udp_socket from netstat",
"db": "telegraf",
"rp": "autogen",
"groupbys": [],
"wheres": []
}
]
},
{
"x": 0,
"y": 0,
"w": 10,
"h": 10,
"i": "cf5d0608-b513-4244-a55f-accf520da3a1",
"name": "Sockets created/second ",
"queries": [
{
"query": "select derivative(last(\"tcp_established\"), 10) from netstat",
"db": "telegraf",
"rp": "autogen",
"groupbys": [
"time"
],
"wheres": []
},
{
"query": "select derivative(last(\"udp_socket\"), 10) from netstat",
"db": "telegraf",
"rp": "autogen",
"groupbys": [
"time"
],
"wheres": []
}
]
}
]
}

View File

@ -1,20 +1,24 @@
{ {
"id": "ffad2dff-d263-412e-806a-1e836af87942", "id": "ffad2dff-d263-412e-806a-1e836af87942",
"measurement": "processes", "measurement": "processes",
"app": "Host processes", "app": "Host processes",
"cells": [{ "cells": [
"x": 0, {
"y": 0, "x": 0,
"w": 10, "y": 0,
"h": 10, "w": 10,
"i": "84048146-f93d-4d6c-b7dd-c8e2a68abb27", "h": 10,
"name": "Total Processes", "i": "84048146-f93d-4d6c-b7dd-c8e2a68abb27",
"queries": [{ "name": "Total Processes",
"query": "select total from processes", "queries": [
"db": "telegraf", {
"rp": "autogen", "query": "select total from processes",
"groupbys": [], "db": "telegraf",
"wheres": [] "rp": "autogen",
}] "groupbys": [],
}] "wheres": []
} }
]
}
]
}