chore: delete more unused chronograf code (#21889)

pull/21892/head
Daniel Moran 2021-07-20 11:13:56 -04:00 committed by GitHub
parent 19047b95b7
commit abc337a07c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
56 changed files with 0 additions and 3095 deletions

View File

@ -1,26 +0,0 @@
# List any generated files here
TARGETS = bin_gen.go
# List any source files used to generate the targets here
SOURCES = bin.go $(shell find . -name '*.json')
# List any directories that have their own Makefile here
SUBDIRS =
# Default target
all: $(SUBDIRS) $(TARGETS)
# Recurse into subdirs for same make goal
$(SUBDIRS):
$(MAKE) -C $@ $(MAKECMDGOALS)
# Clean all targets recursively
clean: $(SUBDIRS)
rm -f $(TARGETS)
# Define go generate if not already defined
GO_GENERATE := go generate
# Run go generate for the targets
$(TARGETS): $(SOURCES)
$(GO_GENERATE) -x
.PHONY: all clean $(SUBDIRS)

View File

@ -1,7 +0,0 @@
## Canned Applications
The JSON application layouts in this directory ship with the application as nice, default layouts and queries for telegraf data.
### Create new Application
To create a new application in this directory run `./new_apps.sh`. This shell script will create a new application template with a generated UUID.
Update this layout application file's queries, measurements, and application name.

View File

@ -1,16 +0,0 @@
package canned
import "errors"
// The functions defined in this file are placeholders when the binary is compiled
// without assets.
// Asset returns an error stating no assets were included in the binary.
func Asset(string) ([]byte, error) {
return nil, errors.New("no assets included in binary")
}
// AssetNames returns nil because there are no assets included in the binary.
func AssetNames() []string {
return nil
}

View File

@ -1,62 +0,0 @@
{
"id": "6dfb4d49-20dc-4157-9018-2b1b1cb75c2d",
"measurement": "apache",
"app": "apache",
"autoflow": false,
"cells": [
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "0246e457-916b-43e3-be99-211c4cbc03e8",
"name": "Apache Bytes/Second",
"queries": [
{
"query": "SELECT non_negative_derivative(max(\"BytesPerSec\")) AS \"bytes_per_sec\" FROM \":db:\".\":rp:\".\"apache\"",
"label": "bytes/s",
"groupbys": [
"\"server\""
],
"wheres": []
}
]
},
{
"x": 4,
"y": 0,
"w": 4,
"h": 4,
"i": "37f2e4bb-9fa5-4891-a424-9df5ce7458bb",
"name": "Apache - Requests/Second",
"queries": [
{
"query": "SELECT non_negative_derivative(max(\"ReqPerSec\")) AS \"req_per_sec\" FROM \":db:\".\":rp:\".\"apache\"",
"label": "requests/s",
"groupbys": [
"\"server\""
],
"wheres": []
}
]
},
{
"x": 8,
"y": 0,
"w": 4,
"h": 4,
"i": "ea9174b3-2b56-4e80-a37d-064507c6775a",
"name": "Apache - Total Accesses",
"queries": [
{
"query": "SELECT non_negative_derivative(max(\"TotalAccesses\")) AS \"tot_access\" FROM \":db:\".\":rp:\".\"apache\"",
"label": "accesses/s",
"groupbys": [
"\"server\""
],
"wheres": []
}
]
}
]
}

View File

@ -1,83 +0,0 @@
package canned
import (
"context"
"encoding/json"
"fmt"
"github.com/influxdata/influxdb/v2/chronograf"
)
//go:generate env GO111MODULE=on go run github.com/kevinburke/go-bindata/go-bindata -o bin_gen.go -tags assets -ignore README|apps|.sh|go -pkg canned .
// BinLayoutsStore represents a layout store using data generated by go-bindata
type BinLayoutsStore struct {
Logger chronograf.Logger
}
// All returns the set of all layouts
func (s *BinLayoutsStore) All(ctx context.Context) ([]chronograf.Layout, error) {
names := AssetNames()
layouts := make([]chronograf.Layout, len(names))
for i, name := range names {
octets, err := Asset(name)
if err != nil {
s.Logger.
WithField("component", "apps").
WithField("name", name).
Error("Invalid Layout: ", err)
return nil, chronograf.ErrLayoutInvalid
}
var layout chronograf.Layout
if err = json.Unmarshal(octets, &layout); err != nil {
s.Logger.
WithField("component", "apps").
WithField("name", name).
Error("Unable to read layout:", err)
return nil, chronograf.ErrLayoutInvalid
}
layouts[i] = layout
}
return layouts, nil
}
// Add is not support by BinLayoutsStore
func (s *BinLayoutsStore) Add(ctx context.Context, layout chronograf.Layout) (chronograf.Layout, error) {
return chronograf.Layout{}, fmt.Errorf("add to BinLayoutsStore not supported")
}
// Delete is not support by BinLayoutsStore
func (s *BinLayoutsStore) Delete(ctx context.Context, layout chronograf.Layout) error {
return fmt.Errorf("delete to BinLayoutsStore not supported")
}
// Get retrieves Layout if `ID` exists.
func (s *BinLayoutsStore) Get(ctx context.Context, ID string) (chronograf.Layout, error) {
layouts, err := s.All(ctx)
if err != nil {
s.Logger.
WithField("component", "apps").
WithField("name", ID).
Error("Invalid Layout: ", err)
return chronograf.Layout{}, chronograf.ErrLayoutInvalid
}
for _, layout := range layouts {
if layout.ID == ID {
return layout, nil
}
}
s.Logger.
WithField("component", "apps").
WithField("name", ID).
Error("Layout not found")
return chronograf.Layout{}, chronograf.ErrLayoutNotFound
}
// Update not supported
func (s *BinLayoutsStore) Update(ctx context.Context, layout chronograf.Layout) error {
return fmt.Errorf("update to BinLayoutsStore not supported")
}

View File

@ -1,48 +0,0 @@
{
"id": "f3bec493-0bc1-49d5-a40a-a09bd5cfb60c",
"measurement": "consul_health_checks",
"app": "consul",
"autoflow": true,
"cells": [
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "9e14639d-b8d9-4245-8c45-862ed4383d31",
"name": "Consul Number of Critical Health Checks",
"queries": [
{
"query": "SELECT count(\"check_id\") as \"Number Critical\" FROM \":db:\".\":rp:\".\"consul_health_checks\"",
"label": "count",
"groupbys": [
"\"service_name\""
],
"wheres": [
"\"status\" = 'critical'"
]
}
]
},
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "595be39d-85db-4410-b349-35c25465a4b8",
"name": "Consul Number of Warning Health Checks",
"queries": [
{
"query": "SELECT count(\"check_id\") as \"Number Warning\" FROM \":db:\".\":rp:\".\"consul_health_checks\"",
"label": "count",
"groupbys": [
"\"service_name\""
],
"wheres": [
"\"status\" = 'warning'"
]
}
]
}
]
}

View File

@ -1,59 +0,0 @@
{
"id": "f3bec493-0bc1-49d5-a40a-a09bd5cfb700",
"measurement": "consul_consul_fsm_register",
"app": "consul_telemetry",
"autoflow": true,
"cells": [
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "9e14639d-b8d9-4245-8c45-862ed4383701",
"name": "Consul Agent Number of Go Routines",
"queries": [
{
"query": "SELECT max(\"value\") AS \"Go Routines\" FROM \":db:\".\":rp:\".\"consul_ip-172-31-6-247_runtime_num_goroutines\"",
"groupbys": [
],
"wheres": [
]
}
]
},
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "9e14639d-b8d9-4245-8c45-862ed4383702",
"name": "Consul Agent Runtime Alloc Bytes",
"queries": [
{
"query": "SELECT max(\"value\") AS \"Runtime Alloc Bytes\" FROM \":db:\".\":rp:\".\"consul_ip-172-31-6-247_runtime_alloc_bytes\"",
"groupbys": [
],
"wheres": [
]
}
]
},
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "9e14639d-b8d9-4245-8c45-862ed4383703",
"name": "Consul Agent Heap Objects",
"queries": [
{
"query": "SELECT max(\"value\") AS \"Heap Objects\" FROM \":db:\".\":rp:\".\"consul_ip-172-31-6-247_runtime_heap_objects\"",
"groupbys": [
],
"wheres": [
]
}
]
}
]
}

View File

@ -1,24 +0,0 @@
{
"id": "350b780c-7d32-4b29-ac49-0d4e2c092943",
"measurement": "consul_memberlist_msg_alive",
"app": "consul_telemetry",
"autoflow": true,
"cells": [
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "bd62186a-f475-478b-bf02-8c4ab07eccd1",
"name": "Consul Number of Agents",
"queries": [
{
"query": "SELECT min(\"value\") AS \"num_agents\" FROM \":db:\".\":rp:\".\"consul_memberlist_msg_alive\"",
"label": "count",
"groupbys": [],
"wheres": []
}
]
}
]
}

View File

@ -1,24 +0,0 @@
{
"id": "b15aaf24-701a-4d9b-920c-9a407e91da71",
"measurement": "consul_raft_state_candidate",
"app": "consul_telemetry",
"autoflow": true,
"cells": [
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "5b2bddce-badb-4594-91fb-0486f62266e5",
"name": "Consul Leadership Election",
"queries": [
{
"query": "SELECT max(\"value\") AS \"max_value\" FROM \":db:\".\":rp:\".\"consul_raft_state_candidate\"",
"label": "count",
"groupbys": [],
"wheres": []
}
]
}
]
}

View File

@ -1,24 +0,0 @@
{
"id": "26809869-8df3-49ad-b2f0-b1e1c72f67b0",
"measurement": "consul_consul_http_GET_v1_health_state__",
"app": "consul_telemetry",
"autoflow": true,
"cells": [
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "dfb4c50f-547e-484a-944b-d6374ba2b4c0",
"name": "Consul HTTP Request Time (ms)",
"queries": [
{
"query": "SELECT max(\"upper\") AS \"GET_health_state\" FROM \":db:\".\":rp:\".\"consul_consul_http_GET_v1_health_state__\"",
"label": "ms",
"groupbys": [],
"wheres": []
}
]
}
]
}

View File

@ -1,24 +0,0 @@
{
"id": "34611ae0-7c3e-4697-8db0-371b16bef345",
"measurement": "consul_raft_state_leader",
"app": "consul_telemetry",
"autoflow": true,
"cells": [
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "ef8eeeb5-b408-46d6-8cfc-20c00c9d7239",
"name": "Consul Leadership Change",
"queries": [
{
"query": "SELECT max(\"value\") as \"change\" FROM \":db:\".\":rp:\".\"consul_raft_state_leader\"",
"label": "count",
"groupbys": [],
"wheres": []
}
]
}
]
}

View File

@ -1,24 +0,0 @@
{
"id": "ef4b596c-77de-41c5-bb5b-d5c9a69fa633",
"measurement": "consul_serf_events",
"app": "consul_telemetry",
"autoflow": true,
"cells": [
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "59df3d73-5fac-48cb-84f1-dbe9a1bb886c",
"name": "Consul Number of serf events",
"queries": [
{
"query": "SELECT max(\"value\") AS \"serf_events\" FROM \":db:\".\":rp:\".\"consul_serf_events\"",
"label": "count",
"groupbys": [],
"wheres": []
}
]
}
]
}

View File

@ -1,24 +0,0 @@
{
"id": "0fa47984-825b-46f1-9ca5-0366e3281cc5",
"measurement": "cpu",
"app": "system",
"autoflow": true,
"cells": [
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "cc9ba2b6-e398-4396-80dc-819bb7ac7ce1",
"name": "CPU Usage",
"queries": [
{
"query": "SELECT 100 - mean(\"usage_idle\") AS \"usage\" FROM \":db:\".\":rp:\".\"cpu\"",
"label": "% CPU time",
"groupbys": [],
"wheres": []
}
]
}
]
}

View File

@ -1,26 +0,0 @@
{
"id": "0b75be4e-3454-4d5d-9a98-ca77c81397f6",
"measurement": "disk",
"app": "system",
"autoflow": true,
"cells": [
{
"x": 4,
"y": 0,
"w": 4,
"h": 4,
"i": "5825a4dd-df97-4e99-a99d-67b68833c183",
"name": "System - Disk used %",
"queries": [
{
"query": "SELECT mean(\"used_percent\") AS \"used_percent\" FROM \":db:\".\":rp:\".\"disk\"",
"label": "% used",
"groupbys": [
"\"path\""
],
"wheres": []
}
]
}
]
}

View File

@ -1,33 +0,0 @@
{
"id": "9e3a9fcd-a363-4470-991e-a4d6987a94c8",
"measurement": "diskio",
"app": "system",
"autoflow": true,
"cells": [
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "7f647740-d9f0-4012-8e7a-5d898c8f271e",
"name": "System Disk MB/s",
"queries": [
{
"query": "SELECT non_negative_derivative(max(\"read_bytes\"), 1s) / 1000000 AS \"read_megabytes_per_second\" FROM \":db:\".\":rp:\".\"diskio\"",
"groupbys": [
"\"name\""
],
"wheres": [],
"label": "MB/s"
},
{
"query": "SELECT non_negative_derivative(max(\"write_bytes\"), 1s) / 1000000 AS \"write_megabytes_per_second\" FROM \":db:\".\":rp:\".\"diskio\"",
"groupbys": [
"\"name\""
],
"wheres": []
}
]
}
]
}

View File

@ -1,111 +0,0 @@
{
"id": "0e980b97-c162-487b-a815-3f955df6243f",
"app": "docker",
"measurement": "docker",
"autoflow": true,
"cells": [
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "4c79cefb-5152-410c-9b88-74f9bff7ef22",
"name": "Docker - Container CPU %",
"queries": [
{
"query": "SELECT mean(\"usage_percent\") AS \"usage_percent\" FROM \":db:\".\":rp:\".\"docker_container_cpu\"",
"label": "% CPU time",
"groupbys": [
"\"container_name\""
]
}
],
"type": "line-stacked"
},
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "4c79cefb-5152-410c-9b88-74f9bff7ef00",
"name": "Docker - Container Memory (MB)",
"queries": [
{
"query": "SELECT mean(\"usage\") / 1048576 AS \"usage\" FROM \":db:\".\":rp:\".\"docker_container_mem\"",
"label": "MB",
"groupbys": [
"\"container_name\""
]
}
],
"type": "line-stepplot"
},
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "4c79cefb-5152-410c-9b88-74f9bff7ef01",
"name": "Docker - Containers",
"queries": [
{
"query": "SELECT max(\"n_containers\") AS \"max_n_containers\" FROM \":db:\".\":rp:\".\"docker\"",
"label": "count",
"groupbys": [
"\"host\""
]
}
],
"colors": [],
"type": "single-stat"
},
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "4c79cefb-5152-410c-9b88-74f9bff7ef02",
"name": "Docker - Images",
"queries": [
{
"query": "SELECT max(\"n_images\") AS \"max_n_images\" FROM \":db:\".\":rp:\".\"docker\"",
"groupbys": [
"\"host\""
]
}
],
"colors": [],
"type": "single-stat"
},
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "4c79cefb-5152-410c-9b88-74f9bff7ef03",
"name": "Docker - Container State",
"queries": [
{
"query": "SELECT max(\"n_containers_running\") AS \"max_n_containers_running\" FROM \":db:\".\":rp:\".\"docker\"",
"label": "count",
"groupbys": [
"\"host\""
]
},
{
"query": "SELECT max(\"n_containers_stopped\") AS \"max_n_containers_stopped\" FROM \":db:\".\":rp:\".\"docker\"",
"groupbys": [
"\"host\""
]
},
{
"query": "SELECT max(\"n_containers_paused\") AS \"max_n_containers_paused\" FROM \":db:\".\":rp:\".\"docker\"",
"groupbys": [
"\"host\""
]
}
],
"type": ""
}
]
}

View File

@ -1,46 +0,0 @@
{
"id": "0e980b97-c162-487b-a815-3f955df62440",
"measurement": "docker_container_blkio",
"app": "docker",
"autoflow": true,
"cells": [
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "4c79cefb-5152-410c-9b88-74f9bff7ef50",
"name": "Docker - Container Block IO",
"queries": [
{
"query": "SELECT max(\"io_serviced_recursive_read\") AS \"max_io_read\" FROM \":db:\".\":rp:\".\"docker_container_blkio\"",
"groupbys": [
"\"container_name\""
],
"wheres": []
},
{
"query": "SELECT max(\"io_serviced_recursive_sync\") AS \"max_io_sync\" FROM \":db:\".\":rp:\".\"docker_container_blkio\"",
"groupbys": [
"\"container_name\""
],
"wheres": []
},
{
"query": "SELECT max(\"io_serviced_recursive_write\") AS \"max_io_write\" FROM \":db:\".\":rp:\".\"docker_container_blkio\"",
"groupbys": [
"\"container_name\""
],
"wheres": []
},
{
"query": "SELECT max(\"io_serviced_recursive_total\") AS \"max_io_total\" FROM \":db:\".\":rp:\".\"docker_container_blkio\"",
"groupbys": [
"\"container_name\""
],
"wheres": []
}
]
}
]
}

View File

@ -1,32 +0,0 @@
{
"id": "0e980b97-c162-487b-a815-3f955df62430",
"measurement": "docker_container_net",
"app": "docker",
"autoflow": true,
"cells": [
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "4c79cefb-5152-410c-9b88-74f9bff7ef23",
"name": "Docker - Container Network",
"queries": [
{
"query": "SELECT derivative(mean(\"tx_bytes\"), 10s) AS \"net_tx_bytes\" FROM \":db:\".\":rp:\".\"docker_container_net\"",
"groupbys": [
"\"container_name\""
],
"wheres": []
},
{
"query": "SELECT derivative(mean(\"rx_bytes\"), 10s) AS \"net_rx_bytes\" FROM \":db:\".\":rp:\".\"docker_container_net\"",
"groupbys": [
"\"container_name\""
],
"wheres": []
}
]
}
]
}

View File

@ -1,158 +0,0 @@
{
"id": "1f3ac9d0-bfb3-4e13-91a6-8949f7643ee9",
"measurement": "elasticsearch_indices",
"app": "elasticsearch",
"autoflow": false,
"cells": [
{
"x": 0,
"y": 0,
"w": 12,
"h": 4,
"i": "3254c2ee-4b0f-440e-9cba-b996b96bf12a",
"name": "ElasticSearch - Query Throughput",
"queries": [
{
"query": "select non_negative_derivative(mean(search_query_total)) as searches_per_min, non_negative_derivative(mean(search_scroll_total)) as scrolls_per_min, non_negative_derivative(mean(search_fetch_total)) as fetches_per_min, non_negative_derivative(mean(search_suggest_total)) as suggests_per_min from elasticsearch_indices",
"groupbys": [],
"wheres": []
}
]
},
{
"x": 0,
"y": 4,
"w": 12,
"h": 4,
"i": "7db341c0-455b-4595-8d34-61dfbdaf6cc6",
"name": "ElasticSearch - Open Connections",
"queries": [
{
"query": "select mean(current_open) from elasticsearch_http",
"groupbys": [],
"wheres": []
}
]
},
{
"x": 0,
"y": 8,
"w": 6,
"h": 4,
"i": "ca304109-35db-4066-91e4-00875a618abb",
"name": "ElasticSearch - Query Latency",
"queries": [
{
"query": "select non_negative_derivative(mean(search_query_time_in_millis)) as mean, non_negative_derivative(median(search_query_time_in_millis)) as median, non_negative_derivative(percentile(search_query_time_in_millis, 95)) as ninety_fifth from elasticsearch_indices",
"groupbys": [],
"wheres": []
}
]
},
{
"x": 6,
"y": 8,
"w": 6,
"h": 4,
"i": "e0418118-a562-49d1-bf50-83943f72b245",
"name": "ElasticSearch - Fetch Latency",
"queries": [
{
"query": "select non_negative_derivative(mean(search_fetch_time_in_millis)) as mean, non_negative_derivative(median(search_fetch_time_in_millis)) as median, non_negative_derivative(percentile(search_fetch_time_in_millis, 95)) as ninety_fifth from elasticsearch_indices",
"groupbys": [],
"wheres": []
}
]
},
{
"x": 0,
"y": 12,
"w": 6,
"h": 4,
"i": "3912091e-2ee5-4f47-bc74-40520239372d",
"name": "ElasticSearch - Suggest Latency",
"queries": [
{
"query": "select non_negative_derivative(mean(search_suggest_time_in_millis)) as mean, non_negative_derivative(median(search_suggest_time_in_millis)) as median, non_negative_derivative(percentile(search_suggest_time_in_millis, 95)) as ninety_fifth from elasticsearch_indices",
"groupbys": [],
"wheres": []
}
]
},
{
"x": 6,
"y": 12,
"w": 6,
"h": 4,
"i": "01e536cd-baf8-4bf3-9cee-9c1d149b58ef",
"name": "ElasticSearch - Scroll Latency",
"queries": [
{
"query": "select non_negative_derivative(mean(search_scroll_time_in_millis)) as mean, non_negative_derivative(median(search_scroll_time_in_millis)) as median, non_negative_derivative(percentile(search_scroll_time_in_millis, 95)) as ninety_fifth from elasticsearch_indices",
"groupbys": [],
"wheres": []
}
]
},
{
"x": 0,
"y": 16,
"w": 12,
"h": 4,
"i": "306d6cdc-93ef-49d9-8151-a1bae355dfc6",
"name": "ElasticSearch - Indexing Latency",
"queries": [
{
"query": "select non_negative_derivative(mean(indexing_index_time_in_millis)) as mean from elasticsearch_indices",
"groupbys": [],
"wheres": []
}
]
},
{
"x": 0,
"y": 20,
"w": 4,
"h": 4,
"i": "5ef57f9f-4cba-4f9e-9264-15aa2954c724",
"name": "ElasticSearch - JVM GC Collection Counts",
"queries": [
{
"query": "select mean(gc_collectors_old_collection_count) as old_count, mean(gc_collectors_young_collection_count) as young_count from elasticsearch_jvm",
"groupbys": [],
"wheres": []
}
]
},
{
"x": 4,
"y": 20,
"w": 4,
"h": 4,
"i": "fa7c807e-3e87-4d26-869b-e0ffd3ef344a",
"name": "ElasticSearch - JVM GC Latency",
"queries": [
{
"query": "select non_negative_derivative(mean(gc_collectors_old_collection_time_in_millis)) as mean_old_time, non_negative_derivative(mean(gc_collectors_young_collection_time_in_millis)) as mean_young_time from elasticsearch_jvm",
"groupbys": [],
"wheres": []
}
]
},
{
"x": 8,
"y": 20,
"w": 4,
"h": 4,
"i": "6f4e01c4-31d6-4302-8e62-9f31f6c3f46f",
"name": "ElasticSearch - JVM Heap Usage",
"queries": [
{
"query": "select mean(mem_heap_used_percent) from elasticsearch_jvm",
"groupbys": [],
"wheres": []
}
]
}
]
}

View File

@ -1,238 +0,0 @@
{
"id": "45c064fd-ebf7-45a1-bf8d-f53746d38a03",
"measurement": "haproxy",
"app": "haproxy",
"autoflow": true,
"cells": [
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "b846eda3-e068-4a34-91e9-c108c962a572",
"name": "HAProxy Number of Servers",
"queries": [
{
"query": "select mean(\"active_servers\") AS active_servers, mean(\"backup_servers\") AS backup_servers FROM \":db:\".\":rp:\".\"haproxy\"",
"groupbys": [],
"wheres": []
}
]
},
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "a5070a99-c65a-4dfd-b486-2d3a2582d9eb",
"name": "HAProxy Sum HTTP 2xx",
"queries": [
{
"query": "SELECT non_negative_derivative(last(\"http_response.2xx\"), 1s) AS \"2xx\" FROM \":db:\".\":rp:\".\"haproxy\"",
"groupbys": [],
"wheres": []
}
]
},
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "ab80deab-f9be-4506-b547-6f8286cb7660",
"name": "HAProxy Sum HTTP 4xx",
"queries": [
{
"query": "SELECT non_negative_derivative(last(\"http_response.4xx\"), 1s) AS \"4xx\" FROM \":db:\".\":rp:\".\"haproxy\"",
"groupbys": [],
"wheres": []
}
]
},
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "9754391d-3464-49cc-b3ef-de9332d3bc20",
"name": "HAProxy Sum HTTP 5xx",
"queries": [
{
"query": "SELECT non_negative_derivative(last(\"http_response.5xx\"), 1s) AS \"5xx\" FROM \":db:\".\":rp:\".\"haproxy\"",
"groupbys": [],
"wheres": []
}
]
},
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "c836d118-6b03-436c-af60-0f95a5df0c89",
"name": "HAProxy Frontend HTTP Requests/Second ",
"queries": [
{
"query": "SELECT mean(\"req_rate\") AS \"requests_per_second\" FROM \":db:\".\":rp:\".\"haproxy\"",
"groupbys": [],
"wheres": []
}
]
},
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "cc411bc8-8f14-43bb-865b-4b921310aef3",
"name": "HAProxy Frontend Sessions/Second ",
"queries": [
{
"query": "SELECT non_negative_derivative(max(\"rate\")) AS \"sessions_per_second\" FROM \":db:\".\":rp:\".\"haproxy\"",
"groupbys": [],
"wheres": []
}
]
},
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "3cc170b6-cd89-4142-b6a7-ea61b78bbdff",
"name": "HAProxy Frontend Session Usage %",
"queries": [
{
"query": "SELECT non_negative_derivative(max(\"scur\")) / non_negative_derivative(max(\"slim\")) * 100 AS \"session_usage_percent\" FROM \":db:\".\":rp:\".\"haproxy\"",
"groupbys": [],
"wheres": []
}
]
},
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "724db2a3-f23d-46d6-aa5b-f9e44cac1ee2",
"name": "HAProxy Frontend Security Denials/Second",
"queries": [
{
"query": "SELECT non_negative_derivative(max(\"dreq\")) AS \"denials_per_second\" FROM \":db:\".\":rp:\".\"haproxy\"",
"groupbys": [],
"wheres": []
}
]
},
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "082a4e23-9256-441c-8414-db253a2c6d94",
"name": "HAProxy Frontend Request Errors/Second",
"queries": [
{
"query": "SELECT non_negative_derivative(max(\"ereq\")) AS \"errors_per_second\" FROM \":db:\".\":rp:\".\"haproxy\"",
"groupbys": [],
"wheres": []
}
]
},
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "c7de430d-5684-494d-b735-0c87e7ea14e3",
"name": "HAProxy Frontend Bytes/Second",
"queries": [
{
"query": "SELECT non_negative_derivative(max(\"bin\")) AS \"bytes_in_per_second\" FROM \":db:\".\":rp:\".\"haproxy\"",
"groupbys": [],
"wheres": []
},
{
"query": "SELECT non_negative_derivative(max(\"bout\")) AS \"bytes_out_per_second\" FROM \":db:\".\":rp:\".\"haproxy\"",
"groupbys": [],
"wheres": []
}
]
},
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "cde02d86-4243-48d4-b812-46f8119b2ac5",
"name": "HAProxy Backend Average Response Time (ms)",
"queries": [
{
"query": "SELECT max(\"rtime\") AS \"response_time\" FROM \":db:\".\":rp:\".\"haproxy\"",
"groupbys": [],
"wheres": []
}
]
},
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "2e8ef243-c993-4a53-b010-32de4beb1f81",
"name": "HAProxy Backend Connection Errors/Second",
"queries": [
{
"query": "SELECT non_negative_derivative(max(\"econ\")) AS \"errors_per_second\" FROM \":db:\".\":rp:\".\"haproxy\"",
"groupbys": [],
"wheres": []
}
]
},
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "f4223249-d2fa-4778-bb27-449bf8863ea3",
"name": "HAProxy Backend Queued Requests/Second",
"queries": [
{
"query": "SELECT non_negative_derivative(max(\"qcur\")) AS \"queued_per_second\" FROM \":db:\".\":rp:\".\"haproxy\"",
"groupbys": [],
"wheres": []
}
]
},
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "b3bcca49-7118-4f7e-921d-a8d47505795a",
"name": "HAProxy Backend Average Request Queue Time (ms)",
"queries": [
{
"query": "SELECT max(\"qtime\") AS \"queue_time\" FROM \":db:\".\":rp:\".\"haproxy\"",
"groupbys": [],
"wheres": []
}
]
},
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "dd925132-3419-4677-9f21-a3d34cf25c99",
"name": "HAProxy Backend Error Responses/Second",
"queries": [
{
"query": "SELECT max(\"eresp\") AS \"error_response_rate\" FROM \":db:\".\":rp:\".\"haproxy\"",
"groupbys": [],
"wheres": []
}
]
}
]
}

View File

@ -1,28 +0,0 @@
{
"id": "543aa120-14ba-46a2-8ef9-6e6c7be3d600",
"measurement": "influxdb_database",
"app": "influxdb",
"autoflow": true,
"cells": [
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "ebc3e2df-640f-4344-b493-d5aae873b6d3",
"name": "InfluxDB - Cardinality",
"queries": [
{
"query": "SELECT max(\"numMeasurements\") AS \"measurements\" FROM \":db:\".\":rp:\".\"influxdb_database\"",
"groupbys": [],
"wheres": []
},
{
"query": "SELECT max(\"numSeries\") AS \"series\" FROM \":db:\".\":rp:\".\"influxdb_database\"",
"groupbys": [],
"wheres": []
}
]
}
]
}

View File

@ -1,62 +0,0 @@
{
"id": "e0d70dc9-538a-4b29-8d27-4a76d5fc8a09",
"measurement": "influxdb_httpd",
"app": "influxdb",
"autoflow": true,
"cells": [
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "b4cbb2d6-a261-482a-942d-04e510f2b532",
"name": "InfluxDB - Write HTTP Requests",
"queries": [
{
"query": "SELECT non_negative_derivative(max(\"writeReq\")) AS \"http_requests\" FROM \":db:\".\":rp:\".\"influxdb_httpd\"",
"label": "count/s",
"groupbys": [],
"wheres": []
}
]
},
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "cb473467-1854-4c7c-930e-769f24beb761",
"name": "InfluxDB - Query Requests",
"queries": [
{
"query": "SELECT non_negative_derivative(max(\"queryReq\")) AS \"query_requests\" FROM \":db:\".\":rp:\".\"influxdb_httpd\"",
"label": "count/s",
"groupbys": [],
"wheres": []
}
]
},
{
"type": "line-stepplot",
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "e0d70dc9-538a-4b29-8d27-4a76d5fc8a09",
"name": "InfluxDB - Client Failures",
"queries": [
{
"query": "SELECT non_negative_derivative(max(\"clientError\")) AS \"client_errors\" FROM \":db:\".\":rp:\".\"influxdb_httpd\"",
"label": "count/s",
"groupbys": [],
"wheres": []
},
{
"query": "SELECT non_negative_derivative(max(\"authFail\"), 1s) AS \"auth_fail\" FROM \":db:\".\":rp:\".\"influxdb_httpd\"",
"groupbys": [],
"wheres": []
}
]
}
]
}

View File

@ -1,30 +0,0 @@
{
"id": "543aa120-14ba-46a2-8ef9-6e6c7be3d60e",
"measurement": "influxdb_queryExecutor",
"app": "influxdb",
"autoflow": true,
"cells": [
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "974f6948-d79a-4925-8162-193e6ddf1c7a",
"name": "InfluxDB - Query Performance",
"queries": [
{
"query": "SELECT non_negative_derivative(max(\"queryDurationNs\"), 1s) / 1000000 AS \"duration_ms\" FROM \":db:\".\":rp:\".\"influxdb_queryExecutor\"",
"label": "ms",
"groupbys": [],
"wheres": []
},
{
"query": "SELECT non_negative_derivative(max(\"queriesExecuted\"), 1s) / 1000000 AS \"queries_executed_ms\" FROM \":db:\".\":rp:\".\"influxdb_queryExecutor\"",
"label": "ms",
"groupbys": [],
"wheres": []
}
]
}
]
}

View File

@ -1,45 +0,0 @@
{
"id": "74fe93bf-14d6-40d4-af8f-335554f4acf3",
"measurement": "influxdb_write",
"app": "influxdb",
"autoflow": true,
"cells": [
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "12384232-7bc7-4129-8958-ef551a320524",
"name": "InfluxDB - Write Points",
"queries": [
{
"query": "SELECT non_negative_derivative(max(\"pointReq\")) AS \"points_written\" FROM \":db:\".\":rp:\".\"influxdb_write\"",
"label": "points/s",
"groupbys": [],
"wheres": []
}
]
},
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "6281a48f-c29a-4941-bdd9-07f6d0fd98cf",
"name": "InfluxDB - Write Errors",
"queries": [
{
"query": "SELECT non_negative_derivative(max(\"writeError\")) AS \"shard_write_error\" FROM \":db:\".\":rp:\".\"influxdb_write\"",
"label": "errors/s",
"groupbys": [],
"wheres": []
},
{
"query": "SELECT non_negative_derivative(max(\"serveError\")) AS \"http_error\" FROM \":db:\".\":rp:\".\"influxdb_httpd\"",
"groupbys": [],
"wheres": []
}
]
}
]
}

View File

@ -1,42 +0,0 @@
{
"id": "4a1efaec-57cf-4aeb-8dea-8a015f8ec3c5",
"measurement": "kubernetes_node",
"app": "kubernetes",
"autoflow": true,
"cells": [
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "5f406919-14b8-4c01-b0ce-f8ed75310805",
"name": "K8s - Node Millicores",
"queries": [
{
"query": "SELECT mean(\"cpu_usage_nanocores\") / 1000000 AS \"cpu_usage_millicores\" FROM \":db:\".\":rp:\".\"kubernetes_node\"",
"groupbys": [
"\"node_name\""
],
"wheres": []
}
]
},
{
"x": 4,
"y": 0,
"w": 4,
"h": 4,
"i": "042d47cc-fcfd-4b26-a690-d81c0321d408",
"name": "K8s - Node Memory Bytes",
"queries": [
{
"query": "SELECT mean(\"memory_usage_bytes\") AS \"memory_usage_bytes\" FROM \":db:\".\":rp:\".\"kubernetes_node\"",
"groupbys": [
"\"node_name\""
],
"wheres": []
}
]
}
]
}

View File

@ -1,42 +0,0 @@
{
"id": "50a14fed-6d0c-4c8a-a142-ad9276bee245",
"measurement": "kubernetes_pod_container",
"app": "kubernetes",
"autoflow": true,
"cells": [
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "e2427235-c81b-42a1-afdf-80d340fc01f8",
"name": "K8s - Pod Millicores",
"queries": [
{
"query": "SELECT mean(\"cpu_usage_nanocores\") / 1000000 AS \"cpu_usage_millicores\" FROM \":db:\".\":rp:\".\"kubernetes_pod_container\"",
"groupbys": [
"\"pod_name\""
],
"wheres": []
}
]
},
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "6edb8c61-f723-47ce-a7eb-904fc6fe066e",
"name": "K8s - Pod Memory Bytes",
"queries": [
{
"query": "SELECT mean(\"memory_usage_bytes\") AS \"memory_usage_bytes\" FROM \":db:\".\":rp:\".\"kubernetes_pod_container\"",
"groupbys": [
"\"pod_name\""
],
"wheres": []
}
]
}
]
}

View File

@ -1,44 +0,0 @@
{
"id": "45845136-bcb7-41ad-a02e-c63e9d3452de",
"measurement": "kubernetes_pod_network",
"app": "kubernetes",
"autoflow": true,
"cells": [
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "0e06ddcd-05dd-493f-9dba-a382300a7190",
"name": "K8s - Pod TX Bytes/Second",
"queries": [
{
"query": "SELECT non_negative_derivative(max(\"tx_bytes\")) AS \"tx_bytes_per_second\" FROM \":db:\".\":rp:\".\"kubernetes_pod_network\"",
"groupbys": [
"\"pod_name\"",
"\"host\""
],
"wheres": []
}
]
},
{
"x": 4,
"y": 0,
"w": 4,
"h": 4,
"i": "cc062b4c-70ca-4bd7-b372-398e734feb49",
"name": "K8s - Pod RX Bytes/Second ",
"queries": [
{
"query": "SELECT non_negative_derivative(max(\"rx_bytes\")) AS \"rx_bytes_per_second\" FROM \":db:\".\":rp:\".\"kubernetes_pod_network\"",
"groupbys": [
"\"pod_name\"",
"\"host\""
],
"wheres": []
}
]
}
]
}

View File

@ -1,42 +0,0 @@
{
"id": "05dde59a-a52f-4ede-81fa-0c6011f29287",
"measurement": "kubernetes_system_container",
"app": "kubernetes",
"autoflow": true,
"cells": [
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "64cf0f60-e157-4c03-9d7e-c280a7e2695f",
"name": "K8s - Kubelet Millicores",
"queries": [
{
"query": "SELECT mean(\"cpu_usage_nanocores\") / 1000000 AS \"cpu_usage_millicores\" FROM \":db:\".\":rp:\".\"kubernetes_system_container\"",
"groupbys": [],
"wheres": [
"\"container_name\" = 'kubelet'"
]
}
]
},
{
"x": 4,
"y": 0,
"w": 4,
"h": 4,
"i": "4a7454d1-4d60-4077-9e7b-8c915a00fe66",
"name": "K8s - Kubelet Memory Bytes",
"queries": [
{
"query": "SELECT mean(\"memory_usage_bytes\") AS \"memory_usage_bytes\" FROM \":db:\".\":rp:\".\"kubernetes_system_container\"",
"groupbys": [],
"wheres": [
"\"container_name\" = 'kubelet'"
]
}
]
}
]
}

View File

@ -1,23 +0,0 @@
{
"id": "ec6c48f4-48ca-4ba7-a842-5b700e19f274",
"measurement": "system",
"app": "system",
"autoflow": true,
"cells": [
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "6ec7e632-2c19-475c-8747-56feaacf46ce",
"name": "System Load",
"queries": [
{
"query": "SELECT mean(\"load1\") AS \"load\" FROM \":db:\".\":rp:\".\"system\"",
"groupbys": [],
"wheres": []
}
]
}
]
}

View File

@ -1,25 +0,0 @@
{
"id": "4a805493-f7ef-4da0-8de8-e78afd899722",
"measurement": "mem",
"app": "system",
"autoflow": true,
"cells": [
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "e6e5063c-43d5-409b-a0ab-68da51ed3f28",
"name": "System - Memory Gigabytes Used",
"queries": [
{
"query": "SELECT mean(\"used\") / 1073741824 AS \"used\", mean(\"available\") / 1073741824 AS \"available\" FROM \":db:\".\":rp:\".\"mem\"",
"label": "GB",
"groupbys": [],
"wheres": []
}
],
"type": "line-stacked"
}
]
}

View File

@ -1,216 +0,0 @@
{
"id": "f280c8c7-0530-425c-b281-788d8ded7676",
"measurement": "memcached",
"app": "memcached",
"autoflow": true,
"cells": [
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "1b5716f1-b9d1-4a8b-b3bb-6e7d120af490",
"name": "Memcached - Current Connections",
"queries": [
{
"query": "SELECT max(\"curr_connections\") AS \"current_connections\" FROM \":db:\".\":rp:\".\"memcached\"",
"label": "count",
"groupbys": [],
"wheres": []
}
]
},
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "1b5716f1-b9d1-4a8b-b3bb-6e7d120af400",
"name": "Memcached - Get Hits/Second",
"queries": [
{
"query": "SELECT non_negative_derivative(max(\"get_hits\")) AS \"get_hits\" FROM \":db:\".\":rp:\".\"memcached\"",
"label": "hits/s",
"groupbys": [],
"wheres": []
}
]
},
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "1b5716f1-b9d1-4a8b-b3bb-6e7d120af405",
"name": "Memcached - Get Misses/Second",
"queries": [
{
"query": "SELECT non_negative_derivative(max(\"get_misses\")) AS \"get_misses\" FROM \":db:\".\":rp:\".\"memcached\"",
"label": "misses/s",
"groupbys": [],
"wheres": []
}
]
},
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "1b5716f1-b9d1-4a8b-b3bb-6e7d120af413",
"name": "Memcached - Delete Hits/Second",
"queries": [
{
"query": "SELECT non_negative_derivative(max(\"delete_hits\")) AS \"delete_hits\" FROM \":db:\".\":rp:\".\"memcached\"",
"label": "deletes/s",
"groupbys": [],
"wheres": []
}
]
},
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "1b5716f1-b9d1-4a8b-b3bb-6e7d120af412",
"name": "Memcached - Delete Misses/Second",
"queries": [
{
"query": "SELECT non_negative_derivative(max(\"delete_misses\")) AS \"delete_misses\" FROM \":db:\".\":rp:\".\"memcached\"",
"label": "delete misses/s",
"groupbys": [],
"wheres": []
}
]
},
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "1b5716f1-b9d1-4a8b-b3bb-6e7d120af411",
"name": "Memcached - Incr Hits/Second",
"queries": [
{
"query": "SELECT non_negative_derivative(max(\"incr_hits\")) AS \"incr_hits\" FROM \":db:\".\":rp:\".\"memcached\"",
"label": "incr hits/s",
"groupbys": [],
"wheres": []
}
]
},
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "1b5716f1-b9d1-4a8b-b3bb-6e7d120af510",
"name": "Memcached - Incr Misses/Second",
"queries": [
{
"query": "SELECT non_negative_derivative(max(\"incr_misses\")) AS \"incr_misses\" FROM \":db:\".\":rp:\".\"memcached\"",
"label": "incr misses/s",
"groupbys": [],
"wheres": []
}
]
},
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "1b5716f1-b9d1-4a8b-b3bb-6e7d120af402",
"name": "Memcached - Current Items",
"queries": [
{
"query": "SELECT max(\"curr_items\") AS \"current_items\" FROM \":db:\".\":rp:\".\"memcached\"",
"label": "count",
"groupbys": [],
"wheres": []
}
]
},
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "1b5716f1-b9d1-4a8b-b3bb-6e7d120af403",
"name": "Memcached - Total Items",
"queries": [
{
"query": "SELECT max(\"total_items\") AS \"total_items\" FROM \":db:\".\":rp:\".\"memcached\"",
"label": "count",
"groupbys": [],
"wheres": []
}
]
},
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "1b5716f1-b9d1-4a8b-b3bb-6e7d120af404",
"name": "Memcached - Bytes Stored",
"queries": [
{
"query": "SELECT max(\"bytes\") AS \"bytes\" FROM \":db:\".\":rp:\".\"memcached\"",
"label": "bytes",
"groupbys": [],
"wheres": []
}
]
},
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "1b5716f1-b9d1-4a8b-b3bb-6e7d120af406",
"name": "Memcached - Bytes Read/Sec",
"queries": [
{
"query": "SELECT non_negative_derivative(max(\"bytes_read\")) AS \"bytes_read\" FROM \":db:\".\":rp:\".\"memcached\"",
"label": "bytes/s",
"groupbys": [],
"wheres": []
}
]
},
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "1b5716f1-b9d1-4a8b-b3bb-6e7d120af407",
"name": "Memcached - Bytes Written/Sec",
"queries": [
{
"query": "SELECT non_negative_derivative(max(\"bytes_written\")) AS \"bytes_written\" FROM \":db:\".\":rp:\".\"memcached\"",
"label": "bytes/s",
"groupbys": [],
"wheres": []
}
]
},
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "1b5716f1-b9d1-4a8b-b3bb-6e7d120af401",
"name": "Memcached - Evictions/10 Seconds",
"queries": [
{
"query": "SELECT non_negative_derivative(max(\"evictions\"), 10s) AS \"evictions\" FROM \":db:\".\":rp:\".\"memcached\"",
"label": "evictions / 10s",
"groupbys": [],
"wheres": []
}
]
}
]
}

View File

@ -1,132 +0,0 @@
{
"id": "0fa47984-825b-46f1-9ca5-0366e3220000",
"measurement": "mesos",
"app": "mesos",
"autoflow": true,
"cells": [
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "0fa47984-825b-46f1-9ca5-0366e3220007",
"name": "Mesos Active Slaves",
"queries": [
{
"query": "SELECT max(\"master/slaves_active\") AS \"Active Slaves\" FROM \":db:\".\":rp:\".\"mesos\"",
"label": "count",
"groupbys": [],
"wheres": []
}
]
},
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "0fa47984-825b-46f1-9ca5-0366e3220001",
"name": "Mesos Tasks Active",
"queries": [
{
"query": "SELECT max(\"master/tasks_running\") AS \"num tasks\" FROM \":db:\".\":rp:\".\"mesos\"",
"label": "count",
"groupbys": [],
"wheres": []
}
]
},
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "0fa47984-825b-46f1-9ca5-0366e3220004",
"name": "Mesos Tasks",
"queries": [
{
"query": "SELECT non_negative_derivative(max(\"master/tasks_finished\"), 60s) AS \"tasks finished\" FROM \":db:\".\":rp:\".\"mesos\"",
"label": "count",
"groupbys": [],
"wheres": []
},
{
"query": "SELECT non_negative_derivative(max(\"master/tasks_failed\"), 60s) AS \"tasks failed\" FROM \":db:\".\":rp:\".\"mesos\"",
"groupbys": [],
"wheres": []
},
{
"query": "SELECT non_negative_derivative(max(\"master/tasks_killed\"), 60s) AS \"tasks killed\" FROM \":db:\".\":rp:\".\"mesos\"",
"groupbys": [],
"wheres": []
}
]
},
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "0fa47984-825b-46f1-9ca5-0366e3220005",
"name": "Mesos Outstanding offers",
"queries": [
{
"query": "SELECT max(\"master/outstanding_offers\") AS \"Outstanding Offers\" FROM \":db:\".\":rp:\".\"mesos\"",
"label": "count",
"groupbys": [],
"wheres": []
}
]
},
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "0fa47984-825b-46f1-9ca5-0366e3220002",
"name": "Mesos Available/Used CPUs",
"queries": [
{
"query": "SELECT max(\"master/cpus_total\") AS \"cpu total\", max(\"master/cpus_used\") AS \"cpu used\" FROM \":db:\".\":rp:\".\"mesos\"",
"label": "count",
"groupbys": [],
"wheres": []
}
]
},
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "0fa47984-825b-46f1-9ca5-0366e3220003",
"name": "Mesos Available/Used Memory",
"queries": [
{
"query": "SELECT max(\"master/mem_total\") AS \"memory total\", max(\"master/mem_used\") AS \"memory used\" FROM \":db:\".\":rp:\".\"mesos\"",
"label": "MB",
"groupbys": [],
"wheres": []
}
]
},
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "0fa47984-825b-46f1-9ca5-0366e3220008",
"name": "Mesos Master Uptime",
"colors": [],
"type": "single-stat",
"queries": [
{
"query": "SELECT max(\"master/uptime_secs\") AS \"uptime\" FROM \":db:\".\":rp:\".\"mesos\"",
"label": "Seconds",
"groupbys": [],
"wheres": []
}
]
}
]
}

View File

@ -1,120 +0,0 @@
{
"id": "921298ad-0cdd-44f4-839b-10c319e7fcc7",
"measurement": "mongodb",
"app": "mongodb",
"autoflow": true,
"cells": [
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "b2631fd5-7d32-4a31-9edf-98362fd3626e",
"name": "MongoDB Read/Second",
"queries": [
{
"query": "SELECT mean(queries_per_sec) AS queries_per_second, mean(getmores_per_sec) AS getmores_per_second FROM \":db:\".\":rp:\".\"mongodb\"",
"label": "reads/s",
"groupbys": [],
"wheres": []
}
]
},
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "9362e390-951b-4dba-adec-40c261e37604",
"name": "MongoDB Writes/Second",
"queries": [
{
"query": "SELECT mean(inserts_per_sec) AS inserts_per_second, mean(updates_per_sec) AS updates_per_second, mean(deletes_per_sec) AS deletes_per_second FROM \":db:\".\":rp:\".\"mongodb\"",
"label": "writes/s",
"groupbys": [],
"wheres": []
}
]
},
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "7ca54d4c-9f0d-47fd-a7fe-2d01e832bbf4",
"name": "MongoDB Active Connections",
"queries": [
{
"query": "SELECT mean(open_connections) AS open_connections FROM \":db:\".\":rp:\".\"mongodb\"",
"label": "count",
"groupbys": [],
"wheres": []
}
]
},
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "ea5ae388-9ca3-42f9-835f-cc9b265705be",
"name": "MongoDB Reads/Writes Waiting in Queue",
"queries": [
{
"query": "SELECT max(queued_reads) AS queued_reads, max(queued_writes) as queued_writes FROM \":db:\".\":rp:\".\"mongodb\"",
"label": "count",
"groupbys": [],
"wheres": []
}
]
},
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "631dcbba-c997-4fd7-b640-754a1b36026c",
"name": "MongoDB Network Bytes/Second",
"queries": [
{
"query": "SELECT mean(net_in_bytes) AS net_in_bytes, mean(net_out_bytes) as net_out_bytes FROM \":db:\".\":rp:\".\"mongodb\"",
"label": "bytes/s",
"groupbys": [],
"wheres": []
}
]
},
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "5b03bef0-e5e9-4b53-b5f8-1d1b740cf5a2",
"name": "MongoDB Page Faults",
"queries": [
{
"query": "SELECT mean(page_faults_per_sec) AS page_faults_per_second FROM \":db:\".\":rp:\".\"mongodb\"",
"label": "faults/s",
"groupbys": [],
"wheres": []
}
]
},
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "4bc98883-2347-46bb-9459-1c6fe7fb47a8",
"name": "MongoDB Memory Usage (MB)",
"queries": [
{
"query": "SELECT mean(vsize_megabytes) AS virtual_memory_megabytes, mean(resident_megabytes) as resident_memory_megabytes FROM \":db:\".\":rp:\".\"mongodb\"",
"label": "MB",
"groupbys": [],
"wheres": []
}
]
}
]
}

View File

@ -1,84 +0,0 @@
{
"id": "c1aa88c7-a047-4b52-85c4-0eec21b357ef",
"measurement": "mysql",
"app": "mysql",
"autoflow": true,
"cells": [
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "531192d3-f183-4481-afea-79103d56875a",
"name": "MySQL Reads/Second",
"queries": [
{
"query":
"SELECT non_negative_derivative(last(\"commands_select\"), 1s) AS selects_per_second FROM \":db:\".\":rp:\".\"mysql\"",
"groupbys": ["\"server\""],
"wheres": []
},
{
"query":
"SELECT non_negative_derivative(last(\"com_select\"), 1s) AS selects_per_second FROM \":db:\".\":rp:\".\"mysql\"",
"groupbys": ["\"server\""],
"wheres": []
}
]
},
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "2dc5e60e-6ddb-43cb-80c5-dfc9294dad97",
"name": "MySQL Writes/Second",
"queries": [
{
"query":
"SELECT non_negative_derivative(last(\"commands_insert\"), 1s) AS inserts_per_second, non_negative_derivative(last(\"commands_update\"), 1s) AS updates_per_second, non_negative_derivative(last(\"commands_delete\"), 1s) AS deletes_per_second FROM \":db:\".\":rp:\".\"mysql\"",
"groupbys": ["\"server\""],
"wheres": []
},
{
"query":
"SELECT non_negative_derivative(last(\"com_insert\"), 1s) AS inserts_per_second, non_negative_derivative(last(\"com_update\"), 1s) AS updates_per_second, non_negative_derivative(last(\"com_delete\"), 1s) AS deletes_per_second FROM \":db:\".\":rp:\".\"mysql\"",
"groupbys": ["\"server\""],
"wheres": []
}
]
},
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "2179fd37-6380-47dc-a1f3-959b69d8f9ec",
"name": "MySQL Connections/Second",
"queries": [
{
"query":
"SELECT non_negative_derivative(last(\"threads_connected\"), 1s) AS cxn_per_second, non_negative_derivative(last(\"threads_running\"), 1s) AS threads_running_per_second FROM \":db:\".\":rp:\".\"mysql\"",
"groupbys": ["\"server\""],
"wheres": []
}
]
},
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "b13816b7-041d-4387-b593-86898aa379ab",
"name": "MySQL Connections Errors/Second",
"queries": [
{
"query":
"SELECT non_negative_derivative(last(\"connection_errors_max_connections\"), 1s) AS cxn_errors_per_second, non_negative_derivative(last(\"connection_errors_internal\"), 1s) AS internal_cxn_errors_per_second, non_negative_derivative(last(\"aborted_connects\"), 1s) AS cxn_aborted_per_second FROM \":db:\".\":rp:\".\"mysql\"",
"groupbys": ["\"server\""],
"wheres": []
}
]
}
]
}

View File

@ -1,49 +0,0 @@
{
"id": "4585a7db-73af-4ca1-9378-47ee67c71f99",
"measurement": "net",
"app": "system",
"autoflow": true,
"cells": [
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "e2f65d45-1898-4a16-860c-14b655575925",
"name": "System Network Mb/s",
"queries": [
{
"query": "SELECT non_negative_derivative(max(\"bytes_recv\"), 1s) / 125000 as \"rx_megabits_per_second\" FROM \":db:\".\":rp:\".\"net\"",
"groupbys": [],
"wheres": [],
"label": "Mb/s"
},
{
"query": "SELECT non_negative_derivative(max(\"bytes_sent\"), 1s) / 125000 as \"tx_megabits_per_second\" FROM \":db:\".\":rp:\".\"net\"",
"groupbys": [],
"wheres": []
}
]
},
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "5e957624-b28b-4904-8068-5e7a9a058609",
"name": "System Network Error Rate",
"queries": [
{
"query": "SELECT non_negative_derivative(max(\"err_in\"), 1s) / 125000 as \"tx_errors_per_second\" FROM \":db:\".\":rp:\".\"net\"",
"groupbys": [],
"wheres": []
},
{
"query": "SELECT non_negative_derivative(max(\"err_out\"), 1s) / 125000 as \"rx_errors_per_second\" FROM \":db:\".\":rp:\".\"net\"",
"groupbys": [],
"wheres": []
}
]
}
]
}

View File

@ -1,48 +0,0 @@
{
"id": "ff41d044-f61a-4522-8de7-9e39e3a1b5de",
"measurement": "netstat",
"app": "system",
"autoflow": true,
"cells": [
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "cf5d0608-b513-4244-a55f-accf520da3a1",
"name": "System - Open Sockets",
"queries": [
{
"query": "SELECT mean(\"tcp_established\") AS \"tcp_established\" FROM \":db:\".\":rp:\".\"netstat\"",
"groupbys": [],
"wheres": []
},
{
"query": "SELECT mean(\"udp_socket\") AS \"udp_socket\" FROM \":db:\".\":rp:\".\"netstat\"",
"groupbys": [],
"wheres": []
}
]
},
{
"x": 4,
"y": 0,
"w": 4,
"h": 4,
"i": "63503235-a588-49a7-ae0a-fb015c888e5b",
"name": "System - Sockets Created/Second ",
"queries": [
{
"query": "SELECT non_negative_derivative(max(\"tcp_established\")) AS \"tcp_established\" FROM \":db:\".\":rp:\".\"netstat\"",
"groupbys": [],
"wheres": []
},
{
"query": "SELECT non_negative_derivative(max(\"udp_socket\")) AS \"udp_socket\" FROM \":db:\".\":rp:\".\"netstat\"",
"groupbys": [],
"wheres": []
}
]
}
]
}

View File

@ -1,58 +0,0 @@
#!/bin/sh
measurement=
# Usage info
show_help() {
cat << EOF
Usage: ${0##*/} MEASUREMENT
Generate new layout for MEASUREMENT. File created will be named
MEASUREMENT.json with UUID being generated from the uuidgen command.
-h display this help and exit
EOF
}
while :; do
case $1 in
-h|-\?|--help) # Call a "show_help" function to display a synopsis, then exit.
show_help
exit
;;
*) # Default case: If no more options then break out of the loop.
measurement=$1
break
esac
shift
done
if [ -z "$measurement" ]; then
show_help
exit
fi
CELLID=$(uuidgen | tr A-Z a-z)
UUID=$(uuidgen | tr A-Z a-z)
APP_FILE="$measurement".json
echo Creating measurement file $APP_FILE
cat > $APP_FILE << EOF
{
"id": "$UUID",
"measurement": "$measurement",
"app": "$measurement",
"cells": [{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "$CELLID",
"name": "User facing cell Name",
"queries": [{
"query": "select mean(\"used_percent\") from disk",
"groupbys": [],
"wheres": []
}]
}]
}
EOF

View File

@ -1,76 +0,0 @@
{
"id": "b805d661-e5a3-45e4-af18-de0e9360e6e7",
"measurement": "nginx",
"app": "nginx",
"autoflow": true,
"cells": [
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "a209be7f-33c6-4612-88b2-848ae402c66a",
"name": "NGINX Client Connections",
"queries": [
{
"query": "SELECT non_negative_derivative(max(\"accepts\"), 1s) AS \"accepts\", non_negative_derivative(max(\"handled\"), 1s) AS \"handled\", non_negative_derivative(max(\"active\"), 1s) AS \"active\" FROM \":db:\".\":rp:\".\"nginx\"",
"groupbys": [
"\"server\""
],
"wheres": []
}
]
},
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "0fc591ad-8541-4de3-a36e-4ae69ff954c4",
"name": "NGINX Client Errors",
"queries": [
{
"query": "SELECT non_negative_derivative(max(\"accepts\")) - non_negative_derivative(max(\"handled\")) FROM \":db:\".\":rp:\".\"nginx\"",
"groupbys": [
"\"server\""
],
"wheres": []
}
]
},
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "a1f37574-b86e-4278-8acc-ba78d3ac2e4e",
"name": "NGINX Client Requests",
"queries": [
{
"query": "SELECT non_negative_derivative(max(\"requests\"), 1s) AS \"requests\" FROM \":db:\".\":rp:\".\"nginx\"",
"groupbys": [
"\"server\""
],
"wheres": []
}
]
},
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "5b91c5b0-d270-4d03-aeae-007f2351c80c",
"name": "NGINX Active Client State",
"queries": [
{
"query": "SELECT non_negative_derivative(max(\"waiting\"), 1s) AS \"waiting\", non_negative_derivative(max(\"reading\"), 1s) AS \"reading\", non_negative_derivative(max(\"writing\"), 1s) AS \"writing\" FROM \":db:\".\":rp:\".\"nginx\"",
"groupbys": [
"\"server\""
],
"wheres": []
}
]
}
]
}

View File

@ -1,44 +0,0 @@
{
"id": "7b035812-182a-4a94-ba2e-902dfb81e0a2",
"measurement": "nsq_channel",
"app": "nsq",
"autoflow": true,
"cells": [
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "89dad9c8-3391-400e-a44a-b5d4a2c53bf1",
"name": "NSQ - Channel Client Count",
"queries": [
{
"query": "SELECT mean(\"client_count\") AS \"client_count\" FROM \":db:\".\":rp:\".\"nsq_channel\"",
"groupbys": [
"\"topic\"",
"\"channel\""
],
"wheres": []
}
]
},
{
"x": 4,
"y": 0,
"w": 4,
"h": 4,
"i": "e3eb48c0-8283-4445-b174-f4f8e4182e45",
"name": "NSQ - Channel Messages Count",
"queries": [
{
"query": "SELECT mean(\"message_count\") AS \"message_count\" FROM \":db:\".\":rp:\".\"nsq_channel\"",
"groupbys": [
"\"topic\"",
"\"channel\""
],
"wheres": []
}
]
}
]
}

View File

@ -1,38 +0,0 @@
{
"id": "6c351881-05ec-48f1-b11b-9c36d2c7cc80",
"measurement": "nsq_server",
"app": "nsq",
"autoflow": true,
"cells": [
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "c376a3d8-cd2a-4212-bf1d-da776b75feeb",
"name": "NSQ - Topic Count",
"queries": [
{
"query": "SELECT mean(\"topic_count\") AS \"topic_count\" FROM \":db:\".\":rp:\".\"nsq_server\"",
"groupbys": [],
"wheres": []
}
]
},
{
"x": 4,
"y": 0,
"w": 4,
"h": 4,
"i": "aa1aa20a-48aa-4a42-aaa0-426aa6a58aa8",
"name": "NSQ - Server Count",
"queries": [
{
"query": "SELECT mean(\"server_count\") AS \"server_count\" FROM \":db:\".\":rp:\".\"nsq_server\"",
"groupbys": [],
"wheres": []
}
]
}
]
}

View File

@ -1,78 +0,0 @@
{
"id": "f7be6717-61df-4e58-ac4a-e4f49f95d847",
"measurement": "nsq_topic",
"app": "nsq",
"autoflow": true,
"cells": [
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "f07967cb-2c2a-41cb-8420-f041f46b0635",
"name": "NSQ - Topic Messages",
"queries": [
{
"query": "SELECT mean(\"depth\") AS \"depth\" FROM \":db:\".\":rp:\".\"nsq_topic\"",
"groupbys": [
"\"topic\""
],
"wheres": []
}
]
},
{
"x": 4,
"y": 0,
"w": 4,
"h": 4,
"i": "912f337b-3af2-42af-9352-b31a5bc3b431",
"name": "NSQ - Topic Messages on Disk",
"queries": [
{
"query": "SELECT mean(\"backend_depth\") AS \"backend_depth\" FROM \":db:\".\":rp:\".\"nsq_topic\"",
"groupbys": [
"\"topic\""
],
"wheres": []
}
]
},
{
"x": 0,
"y": 4,
"w": 4,
"h": 4,
"i": "06909f21-f035-4668-8193-8e06a018accb",
"name": "NSQ - Topic Ingress",
"queries": [
{
"query": "SELECT non_negative_derivative(max(\"message_count\")) AS \"messages_per_second\" FROM \":db:\".\":rp:\".\"nsq_topic\"",
"groupbys": [
"\"topic\"",
"\"host\""
],
"wheres": []
}
]
},
{
"x": 4,
"y": 4,
"w": 4,
"h": 4,
"i": "a5aa73a5-42aa-464a-aaaa-0a7a50632a0a",
"name": "NSQ topic egress",
"queries": [
{
"query": "SELECT non_negative_derivative(max(\"message_count\")) - non_negative_derivative(max(\"depth\")) AS \"messages_per_second\" FROM \":db:\".\":rp:\".\"nsq_topic\"",
"groupbys": [
"\"topic\"",
"\"host\""
],
"wheres": []
}
]
}
]
}

View File

@ -1,76 +0,0 @@
{
"id": "e6b69c66-6183-4728-9f1d-1b0f1fc01b7d",
"measurement": "phpfpm",
"app": "phpfpm",
"autoflow": true,
"cells": [
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "da42044d-8d10-4e3c-a0a2-41512266fd00",
"name": "phpfpm Accepted Connections",
"queries": [
{
"query": "SELECT non_negative_derivative(mean(\"accepted_conn\"),1s) FROM \":db:\".\":rp:\".\"phpfpm\"",
"label": "count",
"groupbys": [
"\"pool\""
]
}
]
},
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "7aae5ec6-dbaf-4926-b922-d585e6a869be",
"name": "phpfpm Processes",
"queries": [
{
"query": "SELECT mean(\"active_processes\") as \"active\",mean(\"idle_processes\") as \"idle\" FROM \":db:\".\":rp:\".\"phpfpm\"",
"label": "count",
"groupbys": [
"\"pool\""
]
}
]
},
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "e4de9091-7250-4634-bf38-81a441ef0f27",
"name": "phpfpm Slow Requests",
"queries": [
{
"query": "SELECT non_negative_derivative(mean(\"slow_requests\"),1s) FROM \":db:\".\":rp:\".\"phpfpm\"",
"label": "count",
"groupbys": [
"\"pool\""
]
}
]
},
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "7ed72ef0-a429-4edd-9c8e-a11625a279c2",
"name": "phpfpm Max Children Reached",
"queries": [
{
"query": "SELECT mean(\"max_children_reached\") FROM \":db:\".\":rp:\".\"phpfpm\"",
"label": "count",
"groupbys": [
"\"pool\""
]
}
]
}
]
}

View File

@ -1,42 +0,0 @@
{
"id": "6fba9b06-b9d3-4e67-a41e-177d585dfe28",
"measurement": "ping",
"app": "ping",
"autoflow": true,
"cells": [
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "f58a157b-9f2f-4175-94c7-c250d9491c11",
"name": "Ping Packet Loss Percent",
"queries": [
{
"query": "select max(\"percent_packet_loss\") as \"packet_loss\" from ping",
"groupbys": [
"\"url\""
],
"wheres": []
}
]
},
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "865f646f-6ed9-4878-81f6-2b9e0d40697d",
"name": "Ping Response Times (ms)",
"queries": [
{
"query": "select mean(\"average_response_ms\") as \"average\", mean(\"minimum_response_ms\") as \"min\", mean(\"maximum_response_ms\") as \"max\" from ping",
"groupbys": [
"\"url\""
],
"wheres": []
}
]
}
]
}

View File

@ -1,72 +0,0 @@
{
"id": "0975a073-9eb8-471c-aaf2-692b65f9fe5c",
"measurement": "postgresql",
"app": "postgresql",
"autoflow": false,
"cells": [
{
"x": 0,
"y": 0,
"w": 12,
"h": 4,
"i": "b417bc9f-b16d-4691-91a7-85adfdd3e8ec",
"name": "PostgreSQL - Rows",
"queries": [
{
"query": "SELECT non_negative_derivative(mean(\"tup_fetched\")) AS \"fetched\", non_negative_derivative(mean(\"tup_returned\")) AS \"returned\", non_negative_derivative(mean(\"tup_inserted\")) AS \"inserted\", non_negative_derivative(mean(\"tup_updated\")) AS \"updated\" FROM \":db:\".\":rp:\".\"postgresql\"",
"groupbys": [
"db"
],
"wheres": []
}
]
},
{
"x": 0,
"y": 8,
"w": 12,
"h": 4,
"i": "230d5baa-9376-438c-9a55-6f97f8c68e69",
"name": "PostgreSQL - QPS",
"queries": [
{
"query": "SELECT non_negative_derivative(mean(\"xact_commit\")) AS \"xact_commit\" FROM \":db:\".\":rp:\".\"postgresql\"",
"groupbys": [
"db"
],
"wheres": []
}
]
},
{
"x": 0,
"y": 4,
"w": 6,
"h": 4,
"i": "4762130d-7005-467f-80ad-8c7f6dfe822e",
"name": "PostgreSQL - Buffers",
"queries": [
{
"query": "SELECT mean(\"buffers_alloc\") AS \"buffers_allocated\", mean(\"buffers_backend\") AS \"buffers_backend\", mean(\"buffers_backend_fsync\") AS \"buffers_backend_fsync\", mean(\"buffers_checkpoint\") AS \"buffers_checkpoint\", mean(\"buffers_clean\") AS \"buffers_clean\" FROM \":db:\".\":rp:\".\"postgresql\"",
"groupbys": [],
"wheres": []
}
]
},
{
"x": 6,
"y": 4,
"w": 6,
"h": 4,
"i": "95e73bda-7527-4aca-89dd-109cb6bb4294",
"name": "PostgreSQL - Conflicts/Deadlocks",
"queries": [
{
"query": "SELECT mean(\"conflicts\") AS \"conflicts\", mean(\"deadlocks\") AS \"deadlocks\" FROM \":db:\".\":rp:\".\"postgresql\"",
"groupbys": [],
"wheres": []
}
]
}
]
}

View File

@ -1,23 +0,0 @@
{
"id": "ffad2dff-d263-412e-806a-1e836af87942",
"measurement": "processes",
"app": "system",
"autoflow": true,
"cells": [
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "84048146-f93d-4d6c-b7dd-c8e2a68abb27",
"name": "System - Total Processes",
"queries": [
{
"query": "SELECT mean(\"total\") AS \"total\" FROM \":db:\".\":rp:\".\"processes\"",
"groupbys": [],
"wheres": []
}
]
}
]
}

View File

@ -1,40 +0,0 @@
{
"id": "44644fae-21e7-4897-81e6-b11d2643cd61",
"measurement": "procstat",
"app": "system",
"autoflow": true,
"cells": [
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "e75a6baa-9938-4ade-b83f-55a239039964",
"name": "Processes Resident Memory (MB)",
"queries": [
{
"query": "SELECT max(\"memory_rss\") / 1000000 AS \"max_mb_memory_rss\" FROM \":db:\".\":rp:\".\"procstat\"",
"groupbys": ["\"exe\""],
"wheres": [],
"label": "MB"
}
]
},
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "2bfae447-47c6-4f85-9fec-494301d29a04",
"name": "Processes CPU Usage %",
"queries": [
{
"query": "SELECT max(\"cpu_usage\") AS \"cpu_usage\" FROM \":db:\".\":rp:\".\"procstat\"",
"groupbys": ["\"exe\""],
"wheres": [],
"label": "%"
}
]
}
]
}

View File

@ -1,72 +0,0 @@
{
"id": "0c57a644-aa74-4ec3-b099-b44499df1159",
"measurement": "rabbitmq_node",
"app": "rabbitmq",
"cells": [
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "c46351c6-b33a-4dc2-a053-3517e7c8098e",
"name": "RabbitMQ - Overview",
"queries": [
{
"query": "select mean(\"consumers\") AS \"consumers\" from rabbitmq_overview",
"groupbys": [],
"wheres": []
},
{
"query": "select mean(\"exchanges\") AS \"exchanges\" from rabbitmq_overview",
"groupbys": [],
"wheres": []
},
{
"query": "select mean(\"queues\") AS \"queues\" from rabbitmq_overview",
"groupbys": [],
"wheres": []
}
]
},
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "c46351c6-b33a-4dc2-a053-3517e6c8098e",
"name": "RabbitMQ - Published/Delivered per second",
"queries": [
{
"query": "select derivative(mean(\"messages_published\"), 1s) AS \"published_per_sec\" from rabbitmq_overview",
"groupbys": [],
"wheres": []
},
{
"query": "select derivative(mean(\"messages_delivered\"), 1s) AS \"delivered_per_sec\" from rabbitmq_overview",
"groupbys": [],
"wheres": []
}
]
},
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "c46351c6-b33a-4dc2-a053-3547e7c8098e",
"name": "RabbitMQ - Acked/Unacked per second",
"queries": [
{
"query": "select derivative(mean(\"messages_acked\"), 1s) AS \"acked_per_sec\" from rabbitmq_overview",
"groupbys": [],
"wheres": []
},
{
"query": "select derivative(mean(\"messages_unacked\"), 1s) AS \"unacked_per_sec\" from rabbitmq_overview",
"groupbys": [],
"wheres": []
}
]
}
]
}

View File

@ -1,64 +0,0 @@
{
"id": "793e6cca-7d7f-48e4-8db2-7b81761cc6ff",
"measurement": "redis",
"app": "redis",
"autoflow": true,
"cells": [
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "9c168ac8-2985-4883-bdf2-938ea9f065b9",
"name": "Redis - Connected Clients",
"queries": [
{
"query": "SELECT mean(\"clients\") AS \"clients\" FROM \":db:\".\":rp:\".\"redis\"",
"groupbys": []
}
]
},
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "9c168ac8-2985-4883-bdf2-938ea9f065a0",
"name": "Redis - Blocked Clients",
"queries": [
{
"query": "SELECT mean(\"blocked_clients\") AS \"blocked_clients\" FROM \":db:\".\":rp:\".\"redis\"",
"groupbys": []
}
]
},
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "9c168ac8-2985-4883-bdf2-938ea9f065b1",
"name": "Redis - CPU",
"queries": [
{
"query": "SELECT non_negative_derivative(max(\"used_cpu_user\")) AS \"used_cpu_per_second\" FROM \":db:\".\":rp:\".\"redis\"",
"groupbys": []
}
]
},
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "9c168ac8-2985-4883-bdf2-938ea9f065b2",
"name": "Redis - Memory",
"queries": [
{
"query": "SELECT non_negative_derivative(max(\"used_memory\")) AS \"used_memory_per_second\" FROM \":db:\".\":rp:\".\"redis\"",
"groupbys": []
}
]
}
]
}

View File

@ -1,127 +0,0 @@
{
"id": "f56fd522-3e9c-492d-88fe-34e05d6d2462",
"measurement": "riak",
"app": "riak",
"autoflow": true,
"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 \":db:\".\":rp:\".\"riak\"",
"groupbys": [
"\"nodename\""
],
"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 \":db:\".\":rp:\".\"riak\"",
"groupbys": [
"\"nodename\""
],
"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 \":db:\".\":rp:\".\"riak\"",
"groupbys": [
"\"nodename\""
],
"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 \":db:\".\":rp:\".\"riak\"",
"groupbys": [
"\"nodename\""
],
"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 \":db:\".\":rp:\".\"riak\"",
"groupbys": [
"\"nodename\""
],
"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 \":db:\".\":rp:\".\"riak\"",
"groupbys": [
"\"nodename\""
],
"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 \":db:\".\":rp:\".\"riak\"",
"groupbys": [
"\"nodename\""
],
"wheres": []
}
]
}
]
}

View File

@ -1,2 +0,0 @@
#!/bin/sh
uuidgen | tr A-Z a-z

View File

@ -1,22 +0,0 @@
{
"id": "83c57d16-a778-43ed-8941-0f9fec3408fa",
"measurement": "varnish",
"app": "varnish",
"cells": [
{
"x": 0,
"y": 0,
"w": 12,
"h": 4,
"i": "10b406cc-50a8-4c14-bf0e-5fe8bce1661c",
"name": "Varnish - Cache Hits/Misses",
"queries": [
{
"query": "select non_negative_derivative(mean(cache_hit)) as hits, non_negative_derivative(mean(cache_miss)) as misses from varnish",
"groupbys": [],
"wheres": []
}
]
}
]
}

View File

@ -1,23 +0,0 @@
{
"id": "188b7f23-648f-4c54-99f6-6a0e2e90a2fc",
"measurement": "win_cpu",
"app": "win_system",
"autoflow": true,
"cells": [
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "6921e19a-951e-42ef-b304-2b8b661fcc81",
"name": "System - CPU Usage",
"queries": [
{
"query": "SELECT mean(\"Percent_Processor_Time\") AS \"percent_processor_time\" FROM \":db:\".\":rp:\".\"win_cpu\"",
"groupbys": [],
"wheres": []
}
]
}
]
}

View File

@ -1,23 +0,0 @@
{
"id": "cef6c954-f066-4348-9425-4132429fe817",
"measurement": "win_mem",
"app": "win_system",
"autoflow": true,
"cells": [
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "1c275ca5-84a7-4146-9cf0-8ed654abb627",
"name": "System - Available Bytes",
"queries": [
{
"query": "SELECT mean(\"Available_Bytes\") AS \"available_bytes\" FROM \":db:\".\":rp:\".\"win_mem\"",
"groupbys": [],
"wheres": []
}
]
}
]
}

View File

@ -1,38 +0,0 @@
{
"id": "d795c66f-0d8a-4fc0-b7bf-2cef1d2f4519",
"measurement": "win_net",
"app": "win_system",
"autoflow": true,
"cells": [
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "3bf8c678-5904-46e7-9c9f-d0d16f0c3fc4",
"name": "System - TX Bytes/Second",
"queries": [
{
"query": "SELECT mean(\"Bytes_Sent_persec\") AS \"bytes_sent\" FROM \":db:\".\":rp:\".\"win_net\"",
"groupbys": [],
"wheres": []
}
]
},
{
"x": 4,
"y": 0,
"w": 4,
"h": 4,
"i": "46963ea2-b09b-4dcf-b08b-7cbcd8766f77",
"name": "RX Bytes/Second",
"queries": [
{
"query": "SELECT mean(\"Bytes_Received_persec\") AS \"bytes_received\" FROM \":db:\".\":rp:\".\"win_net\"",
"groupbys": [],
"wheres": []
}
]
}
]
}

View File

@ -1,23 +0,0 @@
{
"id": "96bd0303-19b6-4f87-a0f9-2755c6178ba7",
"measurement": "win_system",
"app": "win_system",
"autoflow": true,
"cells": [
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "d959c815-16a8-4a2b-a6ea-e37af38d4e2f",
"name": "System - Load",
"queries": [
{
"query": "SELECT mean(\"Processor_Queue_Length\") AS \"load\" FROM \":db:\".\":rp:\".\"win_system\"",
"groupbys": [],
"wheres": []
}
]
}
]
}

View File

@ -1,33 +0,0 @@
{
"id": "c7644755-505d-46f0-b278-5c29268293b2",
"measurement": "win_websvc",
"app": "iis",
"autoflow": true,
"cells": [
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "3539e3c3-ac15-49d3-9de8-64cd514588ca",
"name": "IIS - Service",
"queries": [
{
"query": "SELECT mean(\"Get_Requests_persec\") AS \"gets\" FROM \":db:\".\":rp:\".\"win_websvc\"",
"groupbys": [],
"wheres": []
},
{
"query": "SELECT mean(\"Post_Requests_persec\") AS \"posts\" FROM \":db:\".\":rp:\".\"win_websvc\"",
"groupbys": [],
"wheres": []
},
{
"query": "SELECT mean(\"Current_Connections\") AS \"connections\" FROM \":db:\".\":rp:\".\"win_websvc\"",
"groupbys": [],
"wheres": []
}
]
}
]
}