Fix broken apps after cleanup

pull/10616/head
nathan haugo 2016-11-11 13:11:20 -08:00
parent 9b32ab5860
commit 1b8ae91273
7 changed files with 15 additions and 15 deletions

View File

@ -22,7 +22,7 @@
{
"query": "SELECT max(\"numSeries\") AS \"series\" FROM \"influxdb_database\"",
"db": "telegraf",
"rp": "autogen",
"rp": "",
"groupbys": [
],
"wheres": []

View File

@ -14,7 +14,7 @@
{
"query": "SELECT non_negative_derivative(max(\"writeReq\"), 1s) AS \"http_requests\" FROM \"influxdb_httpd\"",
"db": "telegraf",
"rp": "autogen",
"rp": "",
"groupbys": [
],
"wheres": []
@ -32,7 +32,7 @@
{
"query": "SELECT non_negative_derivative(max(\"queryReq\"), 1s) AS \"query_requests\" FROM \"influxdb_httpd\"",
"db": "telegraf",
"rp": "autogen",
"rp": "",
"groupbys": [
],
"wheres": []
@ -50,7 +50,7 @@
{
"query": "SELECT non_negative_derivative(max(\"clientError\"), 1s) AS \"client_errors\" FROM \"influxdb_httpd\"",
"db": "telegraf",
"rp": "autogen",
"rp": "",
"groupbys": [
],
"wheres": []
@ -58,7 +58,7 @@
{
"query": "SELECT non_negative_derivative(max(\"authFail\"), 1s) AS \"auth_fail\" FROM \"influxdb_httpd\"",
"db": "telegraf",
"rp": "autogen",
"rp": "",
"groupbys": [
],
"wheres": []

View File

@ -14,7 +14,7 @@
{
"query": "SELECT non_negative_derivative(max(\"queryDurationNs\"), 1s) AS \"duration\" FROM \"influxdb_queryExecutor\"",
"db": "telegraf",
"rp": "autogen",
"rp": "",
"groupbys": [
],
"wheres": []
@ -22,7 +22,7 @@
{
"query": "SELECT non_negative_derivative(max(\"queriesExecuted\"), 1s) AS \"queries_executed\" FROM \"influxdb_queryExecutor\"",
"db": "telegraf",
"rp": "autogen",
"rp": "",
"groupbys": [
],
"wheres": []

View File

@ -36,14 +36,14 @@
"name": "System - Sockets Created/Second ",
"queries": [
{
"query": "SELECT derivative(\"tcp_established\") AS \"tcp_established\" FROM netstat",
"query": "SELECT non_negative_derivative(max(\"tcp_established\")) AS \"tcp_established\" FROM netstat",
"db": "telegraf",
"rp": "",
"groupbys": [],
"wheres": []
},
{
"query": "SELECT derivative(\"udp_socket\") AS \"udp_socket\" FROM netstat",
"query": "SELECT non_negative_derivative(max(\"udp_socket\")) AS \"udp_socket\" FROM netstat",
"db": "telegraf",
"rp": "",
"groupbys": [],

View File

@ -51,7 +51,7 @@ cat > $APP_FILE << EOF
"queries": [{
"query": "select used_percent from disk",
"db": "telegraf",
"rp": "autogen",
"rp": "",
"groupbys": [],
"wheres": []
}]

View File

@ -50,7 +50,7 @@
"name": "NSQ - Topic Ingress",
"queries": [
{
"query": "select derivative(\"message_count\") AS \"messages_per_second\" FROM nsq_topic",
"query": "select non_negative_derivative(max(\"message_count\")) AS \"messages_per_second\" FROM nsq_topic",
"db": "telegraf",
"rp": "",
"groupbys": [
@ -70,9 +70,9 @@
"name": "NSQ topic egress",
"queries": [
{
"query": "select derivative(\"message_count\") - derivative(\"depth\") as messages_per_second from nsq_topic",
"query": "SELECT non_negative_derivative(max(\"message_count\")) - non_negative_derivative(max(\"depth\")) AS \"messages_per_second\" FROM nsq_topic",
"db": "telegraf",
"rp": "autogen",
"rp": "",
"groupbys": [
"\"topic\"",
"\"host\""

View File

@ -44,7 +44,7 @@
"name": "Redis - CPU",
"queries": [
{
"query": "SELECT non_negative_derivative(\"used_cpu_user\") AS \"used_cpu_per_second\" FROM redis",
"query": "SELECT non_negative_derivative(max(\"used_cpu_user\")) AS \"used_cpu_per_second\" FROM redis",
"db": "telegraf",
"rp": "",
"groupbys": []
@ -60,7 +60,7 @@
"name": "Redis - Memory",
"queries": [
{
"query": "SELECT non_negative_derivative(\"used_memory\") AS \"used_memory_per_second\" FROM redis",
"query": "SELECT non_negative_derivative(max(\"used_memory\")) AS \"used_memory_per_second\" FROM redis",
"db": "telegraf",
"rp": "",
"groupbys": []