From 325c105fe394a9e4354d2377662eb221a0c3df98 Mon Sep 17 00:00:00 2001 From: Alexandre Pires Date: Thu, 3 Oct 2024 23:03:41 +0200 Subject: [PATCH] Added monitoring support --- .../ansible-weekly-reconciliation.yml | 1 + ansible/inventory/hosts | 3 + ansible/playbook_monitoring.yml | 33 + scripts/chronograf.sh | 3 + scripts/proxy-pt.sh | 3 + terraform/k8sapps/chronograf.tf | 165 + terraform/k8sapps/config.tf | 8 +- terraform/k8sapps/fluent_bit.tf | 150 + terraform/k8sapps/influxdb.tf | 149 + terraform/k8sapps/kapacitor.tf | 154 + terraform/k8sapps/monitoring.tf | 11 + .../1_host_compute_performance.dashboard | 2660 ++++++++++++++++ .../dashboards/2_disk_capacity.dashboard | 1057 +++++++ .../3_system_metrics.dashboard.disabled | 1522 +++++++++ .../4_net_interface_metric_explorer.dashboard | 2789 +++++++++++++++++ .../5_net_interface_performance.dashboard | 894 ++++++ .../k8sapps/resources/chronograf/default.org | 5 + .../k8sapps/resources/chronograf/internal.kap | 9 + .../k8sapps/resources/chronograf/internal.src | 10 + .../resources/fluent-bit/fluent-bit.conf | 273 ++ .../k8sapps/resources/fluent-bit/parsers.conf | 68 + terraform/k8sapps/resources/influxdb/init.iql | 6 + .../k8sapps/resources/telegraf/telegraf.conf | 171 + terraform/k8sapps/telegraf.tf | 163 + 24 files changed, 10306 insertions(+), 1 deletion(-) create mode 100644 ansible/playbook_monitoring.yml create mode 100755 scripts/chronograf.sh create mode 100755 scripts/proxy-pt.sh create mode 100644 terraform/k8sapps/chronograf.tf create mode 100644 terraform/k8sapps/fluent_bit.tf create mode 100644 terraform/k8sapps/influxdb.tf create mode 100644 terraform/k8sapps/kapacitor.tf create mode 100644 terraform/k8sapps/monitoring.tf create mode 100644 terraform/k8sapps/resources/chronograf/dashboards/1_host_compute_performance.dashboard create mode 100644 terraform/k8sapps/resources/chronograf/dashboards/2_disk_capacity.dashboard create mode 100644 terraform/k8sapps/resources/chronograf/dashboards/3_system_metrics.dashboard.disabled create mode 100644 terraform/k8sapps/resources/chronograf/dashboards/4_net_interface_metric_explorer.dashboard create mode 100644 terraform/k8sapps/resources/chronograf/dashboards/5_net_interface_performance.dashboard create mode 100644 terraform/k8sapps/resources/chronograf/default.org create mode 100644 terraform/k8sapps/resources/chronograf/internal.kap create mode 100644 terraform/k8sapps/resources/chronograf/internal.src create mode 100644 terraform/k8sapps/resources/fluent-bit/fluent-bit.conf create mode 100644 terraform/k8sapps/resources/fluent-bit/parsers.conf create mode 100644 terraform/k8sapps/resources/influxdb/init.iql create mode 100644 terraform/k8sapps/resources/telegraf/telegraf.conf create mode 100644 terraform/k8sapps/telegraf.tf diff --git a/.github/workflows/ansible-weekly-reconciliation.yml b/.github/workflows/ansible-weekly-reconciliation.yml index 675bc69..ef050b9 100644 --- a/.github/workflows/ansible-weekly-reconciliation.yml +++ b/.github/workflows/ansible-weekly-reconciliation.yml @@ -39,3 +39,4 @@ jobs: sectool exec ansible-playbook -u $ANSIBLE_USER playbook_nextcloud.yml sectool exec ansible-playbook -u $ANSIBLE_USER playbook_wordpress.yml sectool exec ansible-playbook -u $ANSIBLE_USER playbook_m3uproxy.yml + sectool exec ansible-playbook -u $ANSIBLE_USER playbook_monitoring.yml diff --git a/ansible/inventory/hosts b/ansible/inventory/hosts index 31f5fe5..96367fb 100644 --- a/ansible/inventory/hosts +++ b/ansible/inventory/hosts @@ -24,3 +24,6 @@ contabo01.a13labs.pt [iac] contabo01.a13labs.pt + +[monitoring] +contabo01.a13labs.pt diff --git a/ansible/playbook_monitoring.yml b/ansible/playbook_monitoring.yml new file mode 100644 index 0000000..6b6cae9 --- /dev/null +++ b/ansible/playbook_monitoring.yml @@ -0,0 +1,33 @@ +--- +- name: Monitoring Playbook (K8s) + hosts: monitoring + gather_facts: true + +# Specific tasks for this playbook + tasks: + - name: Set required facts + ansible.builtin.set_fact: + monitoring_home: "/var/lib/monitoring" + influxdb_home: "/var/lib/monitoring/influxdb.data" + kapacitor_home: "/var/lib/monitoring/kapacitor.data" + cronograf_home: "{{ persistent_data | default('/var/lib') }}/chronograf.data" + monitoring_user_id: 1000 + monitoring_group_id: 1000 + tags: always + + - name: Create required monitoring data folder + become: true + ansible.builtin.file: + state: directory + path: "{{ item }}" + mode: "0750" + owner: "{{ monitoring_user_id }}" + group: "{{ monitoring_group_id }}" + with_items: + - "{{ monitoring_home }}" + - "{{ influxdb_home }}" + - "{{ kapacitor_home }}" + - "{{ cronograf_home }}" + tags: + - tasks + - tasks::folders diff --git a/scripts/chronograf.sh b/scripts/chronograf.sh new file mode 100755 index 0000000..007f6ac --- /dev/null +++ b/scripts/chronograf.sh @@ -0,0 +1,3 @@ +#!/bin/bash +POD_NAME=$(kubectl get pods -n monitoring -l app=chronograf -o jsonpath="{.items[0].metadata.name}") +kubectl port-forward --address 127.0.0.1 --request-timeout=0 -n monitoring $POD_NAME 8888:8888 1>/dev/null 2>&1 & \ No newline at end of file diff --git a/scripts/proxy-pt.sh b/scripts/proxy-pt.sh new file mode 100755 index 0000000..ca7e21a --- /dev/null +++ b/scripts/proxy-pt.sh @@ -0,0 +1,3 @@ +#!/bin/bash +POD_NAME=$(kubectl get pods -n m3uproxy -l app=proxy-pt -o jsonpath="{.items[0].metadata.name}") +kubectl port-forward --address 127.0.0.1 --request-timeout=0 -n m3uproxy $POD_NAME 3128:3128 1>/dev/null 2>&1 & \ No newline at end of file diff --git a/terraform/k8sapps/chronograf.tf b/terraform/k8sapps/chronograf.tf new file mode 100644 index 0000000..dbb9edf --- /dev/null +++ b/terraform/k8sapps/chronograf.tf @@ -0,0 +1,165 @@ +locals { + dashboards = { for file in fileset("./resources/chronograf/dashboards", "*.dashboard") : file => file("./resources/chronograf/dashboards/${file}") } +} +resource "kubernetes_cluster_role" "chronograf" { + + metadata { + name = "chronograf-role" + } + + rule { + api_groups = [""] + resources = ["configmaps", "secrets"] + verbs = ["get", "watch", "list"] + } +} + +resource "kubernetes_cluster_role_binding" "chronograf" { + + metadata { + name = "chronograf-role-binding" + } + + role_ref { + api_group = "rbac.authorization.k8s.io" + kind = "ClusterRole" + name = kubernetes_cluster_role.chronograf.metadata.0.name + } + + subject { + kind = "ServiceAccount" + name = kubernetes_service_account.chronograf.metadata.0.name + namespace = kubernetes_namespace.monitoring.metadata.0.name + } +} + +resource "kubernetes_service_account" "chronograf" { + + metadata { + name = "chronograf-sa" + namespace = kubernetes_namespace.monitoring.metadata.0.name + } + + automount_service_account_token = false +} + +resource "kubernetes_config_map" "chronograf" { + + metadata { + name = "chronograf-resources" + namespace = kubernetes_namespace.monitoring.metadata.0.name + } + + data = merge({ + "default.org" = file("./resources/chronograf/default.org") + "internal.src" = file("./resources/chronograf/internal.src") + "internal.kap" = file("./resources/chronograf/internal.kap") + }, local.dashboards) +} + +resource "kubernetes_deployment" "chronograf" { + + depends_on = [ + kubernetes_stateful_set.influxdb + ] + + metadata { + name = "chronograf" + namespace = kubernetes_namespace.monitoring.metadata.0.name + } + + spec { + selector { + match_labels = { + app = "chronograf" + } + } + strategy { + type = "Recreate" + } + template { + metadata { + labels = { + app = "chronograf" + } + } + spec { + service_account_name = kubernetes_service_account.chronograf.metadata.0.name + automount_service_account_token = true + container { + name = "chronograf" + image = "chronograf:${local.chronograf_version}" + image_pull_policy = "IfNotPresent" + + resources { + requests = { + memory = "100Mi" + } + } + + liveness_probe { + tcp_socket { + port = "http" + } + initial_delay_seconds = 10 + timeout_seconds = 5 + period_seconds = 10 + failure_threshold = 6 + success_threshold = 1 + } + + readiness_probe { + tcp_socket { + port = "http" + } + initial_delay_seconds = 10 + timeout_seconds = 5 + period_seconds = 10 + failure_threshold = 6 + success_threshold = 1 + } + + security_context { + run_as_user = 1000 + run_as_group = 1000 + allow_privilege_escalation = false + } + + env { + name = "RESOURCES_PATH" + value = "/usr/share/chronograf/resources" + } + port { + container_port = 8888 + name = "http" + } + volume_mount { + mount_path = "/var/lib/chronograf" + name = "persistent-storage" + } + volume_mount { + mount_path = "/usr/share/chronograf/resources" + name = "config" + } + } + volume { + name = "persistent-storage" + host_path { + path = "/mnt/microk8s_persistent/chronograf.data" + } + } + volume { + name = "config" + config_map { + name = kubernetes_config_map.chronograf.metadata.0.name + } + } + } + } + } + lifecycle { + replace_triggered_by = [ + kubernetes_config_map.chronograf + ] + } +} diff --git a/terraform/k8sapps/config.tf b/terraform/k8sapps/config.tf index 725b47b..189178f 100644 --- a/terraform/k8sapps/config.tf +++ b/terraform/k8sapps/config.tf @@ -16,8 +16,14 @@ locals { nextcloud_sql_backup_cron_schedule = "40 2 * * *" nextcloud_files_backup_cron_schedule = "50 2 * * *" + # monitoring + influxdb_version = "1.8-alpine" + kapacitor_version = "1.6-alpine" + fluent_bit_version = "3.1" + telegraf_version = "1.32-alpine" + chronograf_version = "1.9-alpine" - # tvheadend + # m3uproxy m3uproxy_version = "latest" wireguard_version = "latest" m3uproxy_fqdn = "tv.alexpires.me" diff --git a/terraform/k8sapps/fluent_bit.tf b/terraform/k8sapps/fluent_bit.tf new file mode 100644 index 0000000..16bded8 --- /dev/null +++ b/terraform/k8sapps/fluent_bit.tf @@ -0,0 +1,150 @@ +resource "kubernetes_cluster_role" "fluent_bit" { + + metadata { + name = "fluent-bit-role" + } + + rule { + api_groups = [""] + resources = ["pods"] + verbs = ["get", "use"] + } +} + +resource "kubernetes_cluster_role_binding" "fluent_bit" { + + metadata { + name = "fluent-bit-role-binding" + } + + role_ref { + api_group = "rbac.authorization.k8s.io" + kind = "ClusterRole" + name = kubernetes_cluster_role.fluent_bit.metadata.0.name + } + + subject { + kind = "ServiceAccount" + name = kubernetes_service_account_v1.fluent_bit.metadata.0.name + namespace = kubernetes_namespace.monitoring.metadata.0.name + } +} + +resource "kubernetes_service_account_v1" "fluent_bit" { + metadata { + name = "fluent-bit-sa" + namespace = kubernetes_namespace.monitoring.metadata.0.name + } + + automount_service_account_token = false +} + +resource "kubernetes_config_map" "fluent_bit" { + metadata { + name = "fluent-bit" + namespace = kubernetes_namespace.monitoring.metadata.0.name + } + + data = { + "fluent-bit.conf" = file("./resources/fluent-bit/fluent-bit.conf") + "parsers.conf" = file("./resources/fluent-bit/parsers.conf") + } +} + +resource "kubernetes_daemonset" "fluent_bit" { + + depends_on = [ + kubernetes_stateful_set.influxdb + ] + + metadata { + name = "fluent-bit" + namespace = kubernetes_namespace.monitoring.metadata.0.name + } + + spec { + selector { + match_labels = { + app = "fluent-bit" + } + } + strategy { + type = "RollingUpdate" + } + template { + metadata { + labels = { + app = "fluent-bit" + } + } + + spec { + service_account_name = kubernetes_service_account_v1.fluent_bit.metadata.0.name + automount_service_account_token = true + container { + name = "fluent-bit" + image = "fluent/fluent-bit:${local.fluent_bit_version}" + image_pull_policy = "IfNotPresent" + resources { + requests = { + memory = "100Mi" + } + } + volume_mount { + name = "varlog" + mount_path = "/var/log" + } + volume_mount { + name = "varlibdockercontainers" + mount_path = "/var/lib/docker/containers" + read_only = true + } + volume_mount { + name = "config" + mount_path = "/fluent-bit/etc/fluent-bit.conf" + sub_path = "fluent-bit.conf" + } + volume_mount { + name = "config" + mount_path = "/fluent-bit/etc/parsers.conf" + sub_path = "parsers.conf" + } + volume_mount { + name = "geoip" + mount_path = "/fluent-bit/etc/GeoLite2-City.mmdb" + read_only = true + } + } + volume { + name = "varlog" + host_path { + path = "/var/log" + } + } + volume { + name = "varlibdockercontainers" + host_path { + path = "/var/lib/docker/containers" + } + } + volume { + name = "config" + config_map { + name = kubernetes_config_map.fluent_bit.metadata.0.name + } + } + volume { + name = "geoip" + host_path { + path = "/var/lib/GeoIP/GeoLite2-City.mmdb" + } + } + } + } + } + lifecycle { + replace_triggered_by = [ + kubernetes_config_map.fluent_bit + ] + } +} diff --git a/terraform/k8sapps/influxdb.tf b/terraform/k8sapps/influxdb.tf new file mode 100644 index 0000000..40f7b2c --- /dev/null +++ b/terraform/k8sapps/influxdb.tf @@ -0,0 +1,149 @@ +resource "kubernetes_service_account" "influxdb_service_account" { + + metadata { + name = "influxdb-sa" + namespace = kubernetes_namespace.monitoring.metadata.0.name + } + + automount_service_account_token = false +} + +resource "kubernetes_config_map" "influxdb_init" { + + metadata { + name = "influxdb-init" + namespace = kubernetes_namespace.monitoring.metadata.0.name + } + + data = { + "init.iql" = file("./resources/influxdb/init.iql") + } +} + +resource "kubernetes_service" "influxdb" { + metadata { + name = "influxdb" + namespace = kubernetes_namespace.monitoring.metadata.0.name + } + spec { + port { + port = 8086 + name = "api" + target_port = "api" + } + port { + port = 8088 + name = "rpc" + target_port = "rpc" + } + selector = { + app = "influxdb" + } + cluster_ip = "None" + } +} + +resource "kubernetes_stateful_set" "influxdb" { + metadata { + name = "influxdb" + namespace = kubernetes_namespace.monitoring.metadata.0.name + } + + spec { + selector { + match_labels = { + app = "influxdb" + } + } + replicas = 1 + service_name = "influxdb" + template { + metadata { + labels = { + app = "influxdb" + } + } + spec { + service_account_name = kubernetes_service_account.influxdb_service_account.metadata.0.name + security_context { + fs_group = 1000 + } + container { + name = "influxdb" + image = "influxdb:${local.influxdb_version}" + image_pull_policy = "IfNotPresent" + + resources { + requests = { + memory = "100Mi" + } + } + + port { + name = "api" + container_port = "8086" + } + + port { + name = "rpc" + container_port = "8088" + } + + liveness_probe { + http_get { + path = "/ping" + port = "api" + scheme = "HTTP" + } + initial_delay_seconds = 30 + timeout_seconds = 5 + } + + readiness_probe { + http_get { + path = "/ping" + port = "api" + scheme = "HTTP" + } + initial_delay_seconds = 30 + timeout_seconds = 5 + } + + security_context { + run_as_user = 1000 + run_as_group = 1000 + allow_privilege_escalation = false + } + + volume_mount { + name = "persistent-storage" + mount_path = "/var/lib/influxdb" + } + + volume_mount { + name = "init-db" + mount_path = "/docker-entrypoint-initdb.d" + } + } + + volume { + name = "persistent-storage" + host_path { + path = "/var/lib/monitoring/influxdb.data" + } + } + volume { + name = "init-db" + config_map { + name = kubernetes_config_map.influxdb_init.metadata.0.name + } + } + } + } + } + lifecycle { + replace_triggered_by = [ + kubernetes_config_map.influxdb_init + ] + } +} diff --git a/terraform/k8sapps/kapacitor.tf b/terraform/k8sapps/kapacitor.tf new file mode 100644 index 0000000..0640592 --- /dev/null +++ b/terraform/k8sapps/kapacitor.tf @@ -0,0 +1,154 @@ +resource "kubernetes_cluster_role" "kapacitor" { + + metadata { + name = "kapacitor-role" + } + + rule { + api_groups = [""] + resources = ["configmaps", "secrets"] + verbs = ["get", "watch", "list"] + } +} + +resource "kubernetes_cluster_role_binding" "kapacitor" { + + metadata { + name = "kapacitor-role-binding" + } + + role_ref { + api_group = "rbac.authorization.k8s.io" + kind = "ClusterRole" + name = kubernetes_cluster_role.kapacitor.metadata.0.name + } + + subject { + kind = "ServiceAccount" + name = kubernetes_service_account.kapacitor.metadata.0.name + namespace = kubernetes_namespace.monitoring.metadata.0.name + } +} + +resource "kubernetes_service_account" "kapacitor" { + metadata { + name = "kapacitor-sa" + namespace = kubernetes_namespace.monitoring.metadata.0.name + } + + automount_service_account_token = false +} + +resource "kubernetes_service" "kapacitor" { + metadata { + name = "kapacitor" + namespace = kubernetes_namespace.monitoring.metadata.0.name + } + spec { + port { + port = 9092 + name = "api" + target_port = "api" + } + selector = { + app = "kapacitor" + } + cluster_ip = "None" + } +} + +resource "kubernetes_deployment" "kapacitor" { + + depends_on = [ + kubernetes_stateful_set.influxdb + ] + + metadata { + name = "kapacitor" + namespace = kubernetes_namespace.monitoring.metadata.0.name + } + + spec { + selector { + match_labels = { + app = "kapacitor" + } + } + strategy { + type = "Recreate" + } + template { + metadata { + labels = { + app = "kapacitor" + } + } + spec { + service_account_name = kubernetes_service_account.kapacitor.metadata.0.name + automount_service_account_token = false + container { + name = "kapacitor" + image = "kapacitor:${local.kapacitor_version}" + image_pull_policy = "IfNotPresent" + + resources { + requests = { + memory = "100Mi" + } + } + + liveness_probe { + tcp_socket { + port = "api" + } + initial_delay_seconds = 10 + timeout_seconds = 5 + period_seconds = 10 + failure_threshold = 6 + success_threshold = 1 + } + + readiness_probe { + tcp_socket { + port = "api" + } + initial_delay_seconds = 10 + timeout_seconds = 5 + period_seconds = 10 + failure_threshold = 6 + success_threshold = 1 + } + + security_context { + run_as_user = 1000 + run_as_group = 1000 + allow_privilege_escalation = false + } + + env { + name = "KAPACITOR_HOSTNAME" + value = "kapacitor" + } + env { + name = "KAPACITOR_INFLUXDB_0_URLS_0" + value = "http://influxdb:8086/" + } + port { + container_port = 9092 + name = "api" + } + volume_mount { + mount_path = "/var/lib/kapacitor" + name = "persistent-storage" + } + } + volume { + name = "persistent-storage" + host_path { + path = "/var/lib/monitoring/kapacitor.data" + } + } + } + } + } +} diff --git a/terraform/k8sapps/monitoring.tf b/terraform/k8sapps/monitoring.tf new file mode 100644 index 0000000..8bc37ce --- /dev/null +++ b/terraform/k8sapps/monitoring.tf @@ -0,0 +1,11 @@ +resource "kubernetes_namespace" "monitoring" { + metadata { + annotations = { + name = "monitoring" + } + labels = { + name = "monitoring" + } + name = "monitoring" + } +} diff --git a/terraform/k8sapps/resources/chronograf/dashboards/1_host_compute_performance.dashboard b/terraform/k8sapps/resources/chronograf/dashboards/1_host_compute_performance.dashboard new file mode 100644 index 0000000..068596d --- /dev/null +++ b/terraform/k8sapps/resources/chronograf/dashboards/1_host_compute_performance.dashboard @@ -0,0 +1,2660 @@ +{ + "meta": { + "chronografVersion": "1.10.1", + "sources": { + "5000": { + "name": "internal", + "link": "/chronograf/v1/sources/5000" + } + } + }, + "dashboard": { + "id": "1", + "cells": [ + { + "i": "bcb01826-8d97-4380-b3b4-163963a4af18", + "x": 0, + "y": 4, + "w": 6, + "h": 3, + "name": "CPU Utilization - :host: - :cpu:", + "queries": [ + { + "query": "SELECT 100 - last(\"usage_idle\") - last(\"usage_iowait\") AS \"utilization\", last(\"usage_iowait\") AS \"I/O wait\" FROM \"telegraf\".\"autogen\".\"cpu\" WHERE time > :dashboardTime: AND \"cpu\"=':cpu:' AND \"host\"=':host:' GROUP BY time(:interval:) FILL(null)", + "queryConfig": { + "database": "", + "measurement": "", + "retentionPolicy": "", + "fields": [], + "tags": {}, + "groupBy": { + "time": "", + "tags": [] + }, + "areTagsAccepted": false, + "rawText": "SELECT 100 - last(\"usage_idle\") - last(\"usage_iowait\") AS \"utilization\", last(\"usage_iowait\") AS \"I/O wait\" FROM \"telegraf\".\"autogen\".\"cpu\" WHERE time > :dashboardTime: AND \"cpu\"=':cpu:' AND \"host\"=':host:' GROUP BY time(:interval:) FILL(null)", + "range": null, + "shifts": null + }, + "source": "", + "type": "influxql" + } + ], + "axes": { + "x": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + }, + "y": { + "bounds": [ + "0", + "" + ], + "label": "utilization", + "prefix": "", + "suffix": "%", + "base": "10", + "scale": "linear" + }, + "y2": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + } + }, + "type": "line", + "colors": [ + { + "id": "e0ad5304-f54a-47c4-af9a-d234a1addc0a", + "type": "scale", + "hex": "#31C0F6", + "name": "Nineteen Eighty Four", + "value": "0" + }, + { + "id": "799b522a-329f-4a00-8def-7833c02e5df6", + "type": "scale", + "hex": "#A500A5", + "name": "Nineteen Eighty Four", + "value": "0" + }, + { + "id": "5007a439-46c0-4988-be20-e01e11c6ea99", + "type": "scale", + "hex": "#FF7E27", + "name": "Nineteen Eighty Four", + "value": "0" + } + ], + "legend": {}, + "tableOptions": { + "verticalTimeAxis": true, + "sortBy": { + "internalName": "time", + "displayName": "", + "visible": true + }, + "wrapping": "truncate", + "fixFirstColumn": true + }, + "fieldOptions": [ + { + "internalName": "time", + "displayName": "", + "visible": true + } + ], + "timeFormat": "MM/DD/YYYY HH:mm:ss", + "decimalPlaces": { + "isEnforced": true, + "digits": 2 + }, + "note": "", + "noteVisibility": "default", + "links": { + "self": "/chronograf/v1/dashboards/1/cells/bcb01826-8d97-4380-b3b4-163963a4af18" + } + }, + { + "i": "a8c3ea5b-2030-4978-a934-464dbac017fd", + "x": 2, + "y": 0, + "w": 2, + "h": 1, + "name": "Processes - :host:", + "queries": [ + { + "query": "SELECT last(\"total\") FROM \"telegraf\".\"autogen\".\"processes\" WHERE time > :dashboardTime: and \"host\"=':host:'", + "queryConfig": { + "database": "telegraf", + "measurement": "processes", + "retentionPolicy": "autogen", + "fields": [ + { + "value": "last", + "type": "func", + "alias": "", + "args": [ + { + "value": "total", + "type": "field", + "alias": "" + } + ] + } + ], + "tags": { + "host": [ + ":host:" + ] + }, + "groupBy": { + "time": "", + "tags": [] + }, + "areTagsAccepted": true, + "rawText": null, + "range": null, + "shifts": null + }, + "source": "", + "type": "influxql" + } + ], + "axes": { + "x": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + }, + "y": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + }, + "y2": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + } + }, + "type": "single-stat", + "colors": [ + { + "id": "base", + "type": "text", + "hex": "#00C9FF", + "name": "laser", + "value": "-1000000000000000000" + } + ], + "legend": {}, + "tableOptions": { + "verticalTimeAxis": true, + "sortBy": { + "internalName": "time", + "displayName": "", + "visible": true + }, + "wrapping": "truncate", + "fixFirstColumn": true + }, + "fieldOptions": [ + { + "internalName": "time", + "displayName": "", + "visible": true + } + ], + "timeFormat": "MM/DD/YYYY HH:mm:ss", + "decimalPlaces": { + "isEnforced": true, + "digits": 0 + }, + "note": "", + "noteVisibility": "default", + "links": { + "self": "/chronograf/v1/dashboards/1/cells/a8c3ea5b-2030-4978-a934-464dbac017fd" + } + }, + { + "i": "65f3f797-e453-45f6-9669-6290e14fe8da", + "x": 0, + "y": 13, + "w": 6, + "h": 3, + "name": "Processes by State - :host:", + "queries": [ + { + "query": "SELECT last(\"zombies\") AS \"zombies\", last(\"unknown\") AS \"unknown\", last(\"stopped\") AS \"stopped\", last(\"sleeping\") AS \"sleeping\", last(\"running\") AS \"running\", last(\"paging\") AS \"paging\", last(\"idle\") AS \"idle\", last(\"dead\") AS \"dead\", last(\"blocked\") AS \"blocked\" FROM \"telegraf\".\"autogen\".\"processes\" WHERE time > :dashboardTime: and \"host\"=':host:' GROUP BY time(:interval:) FILL(null)", + "queryConfig": { + "database": "telegraf", + "measurement": "processes", + "retentionPolicy": "autogen", + "fields": [ + { + "value": "last", + "type": "func", + "alias": "zombies", + "args": [ + { + "value": "zombies", + "type": "field", + "alias": "" + } + ] + }, + { + "value": "last", + "type": "func", + "alias": "unknown", + "args": [ + { + "value": "unknown", + "type": "field", + "alias": "" + } + ] + }, + { + "value": "last", + "type": "func", + "alias": "stopped", + "args": [ + { + "value": "stopped", + "type": "field", + "alias": "" + } + ] + }, + { + "value": "last", + "type": "func", + "alias": "sleeping", + "args": [ + { + "value": "sleeping", + "type": "field", + "alias": "" + } + ] + }, + { + "value": "last", + "type": "func", + "alias": "running", + "args": [ + { + "value": "running", + "type": "field", + "alias": "" + } + ] + }, + { + "value": "last", + "type": "func", + "alias": "paging", + "args": [ + { + "value": "paging", + "type": "field", + "alias": "" + } + ] + }, + { + "value": "last", + "type": "func", + "alias": "idle", + "args": [ + { + "value": "idle", + "type": "field", + "alias": "" + } + ] + }, + { + "value": "last", + "type": "func", + "alias": "dead", + "args": [ + { + "value": "dead", + "type": "field", + "alias": "" + } + ] + }, + { + "value": "last", + "type": "func", + "alias": "blocked", + "args": [ + { + "value": "blocked", + "type": "field", + "alias": "" + } + ] + } + ], + "tags": { + "host": [ + ":host:" + ] + }, + "groupBy": { + "time": "auto", + "tags": [] + }, + "areTagsAccepted": true, + "fill": "null", + "rawText": null, + "range": null, + "shifts": null + }, + "source": "", + "type": "influxql" + } + ], + "axes": { + "x": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + }, + "y": { + "bounds": [ + "0", + "" + ], + "label": "users", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + }, + "y2": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + } + }, + "type": "line", + "colors": [ + { + "id": "e0ad5304-f54a-47c4-af9a-d234a1addc0a", + "type": "scale", + "hex": "#31C0F6", + "name": "Nineteen Eighty Four", + "value": "0" + }, + { + "id": "799b522a-329f-4a00-8def-7833c02e5df6", + "type": "scale", + "hex": "#A500A5", + "name": "Nineteen Eighty Four", + "value": "0" + }, + { + "id": "5007a439-46c0-4988-be20-e01e11c6ea99", + "type": "scale", + "hex": "#FF7E27", + "name": "Nineteen Eighty Four", + "value": "0" + } + ], + "legend": {}, + "tableOptions": { + "verticalTimeAxis": true, + "sortBy": { + "internalName": "time", + "displayName": "", + "visible": true + }, + "wrapping": "truncate", + "fixFirstColumn": true + }, + "fieldOptions": [ + { + "internalName": "time", + "displayName": "", + "visible": true + } + ], + "timeFormat": "MM/DD/YYYY HH:mm:ss", + "decimalPlaces": { + "isEnforced": true, + "digits": 0 + }, + "note": "", + "noteVisibility": "default", + "links": { + "self": "/chronograf/v1/dashboards/1/cells/65f3f797-e453-45f6-9669-6290e14fe8da" + } + }, + { + "i": "4164fd03-c581-4fa5-98d6-760c2f52415b", + "x": 2, + "y": 1, + "w": 2, + "h": 3, + "name": "CPU I/O Wait - :host:", + "queries": [ + { + "query": "SELECT last(\"usage_iowait\") FROM \"telegraf\".\"autogen\".\"cpu\" WHERE time > :dashboardTime: and \"host\"=':host:'", + "queryConfig": { + "database": "telegraf", + "measurement": "cpu", + "retentionPolicy": "autogen", + "fields": [ + { + "value": "last", + "type": "func", + "alias": "", + "args": [ + { + "value": "usage_iowait", + "type": "field", + "alias": "" + } + ] + } + ], + "tags": { + "host": [ + ":host:" + ] + }, + "groupBy": { + "time": "", + "tags": [] + }, + "areTagsAccepted": true, + "rawText": null, + "range": null, + "shifts": null + }, + "source": "", + "type": "influxql" + } + ], + "axes": { + "x": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + }, + "y": { + "bounds": [ + "0", + "" + ], + "label": "utilization", + "prefix": "", + "suffix": "%", + "base": "10", + "scale": "linear" + }, + "y2": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + } + }, + "type": "gauge", + "colors": [ + { + "id": "0", + "type": "min", + "hex": "#FFD255", + "name": "thunder", + "value": "0" + }, + { + "id": "1", + "type": "max", + "hex": "#DC4E58", + "name": "fire", + "value": "30" + } + ], + "legend": {}, + "tableOptions": { + "verticalTimeAxis": true, + "sortBy": { + "internalName": "time", + "displayName": "", + "visible": true + }, + "wrapping": "truncate", + "fixFirstColumn": true + }, + "fieldOptions": [ + { + "internalName": "time", + "displayName": "", + "visible": true + } + ], + "timeFormat": "MM/DD/YYYY HH:mm:ss", + "decimalPlaces": { + "isEnforced": true, + "digits": 1 + }, + "note": "", + "noteVisibility": "default", + "links": { + "self": "/chronograf/v1/dashboards/1/cells/4164fd03-c581-4fa5-98d6-760c2f52415b" + } + }, + { + "i": "849669d3-cc9b-405e-a2d0-8bb356d33da6", + "x": 4, + "y": 1, + "w": 2, + "h": 3, + "name": "CPU Nice Utilization - :host:", + "queries": [ + { + "query": "SELECT last(\"usage_nice\") FROM \"telegraf\".\"autogen\".\"cpu\" WHERE time > :dashboardTime: and \"host\"=':host:'", + "queryConfig": { + "database": "telegraf", + "measurement": "cpu", + "retentionPolicy": "autogen", + "fields": [ + { + "value": "last", + "type": "func", + "alias": "", + "args": [ + { + "value": "usage_nice", + "type": "field", + "alias": "" + } + ] + } + ], + "tags": { + "host": [ + ":host:" + ] + }, + "groupBy": { + "time": "", + "tags": [] + }, + "areTagsAccepted": true, + "rawText": null, + "range": null, + "shifts": null + }, + "source": "", + "type": "influxql" + } + ], + "axes": { + "x": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + }, + "y": { + "bounds": [ + "0", + "" + ], + "label": "utilization", + "prefix": "", + "suffix": "%", + "base": "10", + "scale": "linear" + }, + "y2": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + } + }, + "type": "gauge", + "colors": [ + { + "id": "0", + "type": "min", + "hex": "#32B08C", + "name": "viridian", + "value": "0" + }, + { + "id": "1", + "type": "max", + "hex": "#FFD255", + "name": "thunder", + "value": "100" + } + ], + "legend": {}, + "tableOptions": { + "verticalTimeAxis": true, + "sortBy": { + "internalName": "time", + "displayName": "", + "visible": true + }, + "wrapping": "truncate", + "fixFirstColumn": true + }, + "fieldOptions": [ + { + "internalName": "time", + "displayName": "", + "visible": true + } + ], + "timeFormat": "MM/DD/YYYY HH:mm:ss", + "decimalPlaces": { + "isEnforced": true, + "digits": 1 + }, + "note": "", + "noteVisibility": "default", + "links": { + "self": "/chronograf/v1/dashboards/1/cells/849669d3-cc9b-405e-a2d0-8bb356d33da6" + } + }, + { + "i": "41824145-e769-4fb7-a4ab-5580b8e40bb1", + "x": 9, + "y": 0, + "w": 3, + "h": 1, + "name": "Total Swap - :host:", + "queries": [ + { + "query": "SELECT last(\"total\") / 1073741824 AS \"swap\" FROM \"telegraf\".\"autogen\".\"swap\" WHERE time > :dashboardTime: AND \"host\"=':host:'", + "queryConfig": { + "database": "", + "measurement": "", + "retentionPolicy": "", + "fields": [], + "tags": {}, + "groupBy": { + "time": "", + "tags": [] + }, + "areTagsAccepted": false, + "rawText": "SELECT last(\"total\") / 1073741824 AS \"swap\" FROM \"telegraf\".\"autogen\".\"swap\" WHERE time > :dashboardTime: AND \"host\"=':host:'", + "range": null, + "shifts": null + }, + "source": "", + "type": "influxql" + } + ], + "axes": { + "x": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + }, + "y": { + "bounds": [ + "0", + "" + ], + "label": "bytes", + "prefix": "", + "suffix": " GiB", + "base": "2", + "scale": "linear" + }, + "y2": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + } + }, + "type": "single-stat", + "colors": [ + { + "id": "base", + "type": "text", + "hex": "#00C9FF", + "name": "laser", + "value": "-1000000000000000000" + } + ], + "legend": {}, + "tableOptions": { + "verticalTimeAxis": true, + "sortBy": { + "internalName": "time", + "displayName": "", + "visible": true + }, + "wrapping": "truncate", + "fixFirstColumn": true + }, + "fieldOptions": [ + { + "internalName": "time", + "displayName": "", + "visible": true + } + ], + "timeFormat": "MM/DD/YYYY HH:mm:ss", + "decimalPlaces": { + "isEnforced": true, + "digits": 2 + }, + "note": "", + "noteVisibility": "default", + "links": { + "self": "/chronograf/v1/dashboards/1/cells/41824145-e769-4fb7-a4ab-5580b8e40bb1" + } + }, + { + "i": "03d99473-ac2a-432f-b1ed-b5225d05505d", + "x": 10, + "y": 1, + "w": 2, + "h": 3, + "name": "Swap Utilization - :host:", + "queries": [ + { + "query": "SELECT last(\"used_percent\") AS \"utilization\" FROM \"telegraf\".\"autogen\".\"swap\" WHERE time > :dashboardTime: AND \"host\"=':host:'", + "queryConfig": { + "database": "telegraf", + "measurement": "swap", + "retentionPolicy": "autogen", + "fields": [ + { + "value": "last", + "type": "func", + "alias": "utilization", + "args": [ + { + "value": "used_percent", + "type": "field", + "alias": "" + } + ] + } + ], + "tags": { + "host": [ + ":host:" + ] + }, + "groupBy": { + "time": "", + "tags": [] + }, + "areTagsAccepted": true, + "rawText": null, + "range": null, + "shifts": null + }, + "source": "", + "type": "influxql" + } + ], + "axes": { + "x": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + }, + "y": { + "bounds": [ + "0", + "" + ], + "label": "utilization", + "prefix": "", + "suffix": "%", + "base": "10", + "scale": "linear" + }, + "y2": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + } + }, + "type": "gauge", + "colors": [ + { + "id": "0", + "type": "min", + "hex": "#FFD255", + "name": "thunder", + "value": "0" + }, + { + "id": "1", + "type": "max", + "hex": "#DC4E58", + "name": "fire", + "value": "100" + } + ], + "legend": {}, + "tableOptions": { + "verticalTimeAxis": true, + "sortBy": { + "internalName": "time", + "displayName": "", + "visible": true + }, + "wrapping": "truncate", + "fixFirstColumn": true + }, + "fieldOptions": [ + { + "internalName": "time", + "displayName": "", + "visible": true + } + ], + "timeFormat": "MM/DD/YYYY HH:mm:ss", + "decimalPlaces": { + "isEnforced": true, + "digits": 1 + }, + "note": "", + "noteVisibility": "default", + "links": { + "self": "/chronograf/v1/dashboards/1/cells/03d99473-ac2a-432f-b1ed-b5225d05505d" + } + }, + { + "i": "a74f57ee-f9dd-4946-895d-09739d3b9e1d", + "x": 6, + "y": 10, + "w": 6, + "h": 3, + "name": "Swap Utilization - :host:", + "queries": [ + { + "query": "SELECT last(\"used_percent\") AS \"utilization\" FROM \"telegraf\".\"autogen\".\"swap\" WHERE time > :dashboardTime: AND \"host\"=':host:' GROUP BY time(:interval:) FILL(null)", + "queryConfig": { + "database": "telegraf", + "measurement": "swap", + "retentionPolicy": "autogen", + "fields": [ + { + "value": "last", + "type": "func", + "alias": "utilization", + "args": [ + { + "value": "used_percent", + "type": "field", + "alias": "" + } + ] + } + ], + "tags": { + "host": [ + ":host:" + ] + }, + "groupBy": { + "time": "auto", + "tags": [] + }, + "areTagsAccepted": true, + "fill": "null", + "rawText": null, + "range": null, + "shifts": null + }, + "source": "", + "type": "influxql" + } + ], + "axes": { + "x": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + }, + "y": { + "bounds": [ + "0", + "" + ], + "label": "utilization", + "prefix": "", + "suffix": "%", + "base": "10", + "scale": "linear" + }, + "y2": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + } + }, + "type": "line", + "colors": [ + { + "id": "e0ad5304-f54a-47c4-af9a-d234a1addc0a", + "type": "scale", + "hex": "#31C0F6", + "name": "Nineteen Eighty Four", + "value": "0" + }, + { + "id": "799b522a-329f-4a00-8def-7833c02e5df6", + "type": "scale", + "hex": "#A500A5", + "name": "Nineteen Eighty Four", + "value": "0" + }, + { + "id": "5007a439-46c0-4988-be20-e01e11c6ea99", + "type": "scale", + "hex": "#FF7E27", + "name": "Nineteen Eighty Four", + "value": "0" + } + ], + "legend": {}, + "tableOptions": { + "verticalTimeAxis": true, + "sortBy": { + "internalName": "time", + "displayName": "", + "visible": true + }, + "wrapping": "truncate", + "fixFirstColumn": true + }, + "fieldOptions": [ + { + "internalName": "time", + "displayName": "", + "visible": true + } + ], + "timeFormat": "MM/DD/YYYY HH:mm:ss", + "decimalPlaces": { + "isEnforced": true, + "digits": 2 + }, + "note": "", + "noteVisibility": "default", + "links": { + "self": "/chronograf/v1/dashboards/1/cells/a74f57ee-f9dd-4946-895d-09739d3b9e1d" + } + }, + { + "i": "c3f775e4-524f-4498-8e21-9a5959284ee8", + "x": 6, + "y": 13, + "w": 6, + "h": 3, + "name": "Swap Usage - :host:", + "queries": [ + { + "query": "SELECT last(\"total\") AS \"swap total\", last(\"used\") AS \"swap used\" FROM \"telegraf\".\"autogen\".\"swap\" WHERE time > :dashboardTime: AND \"host\"=':host:' GROUP BY time(:interval:) FILL(null)", + "queryConfig": { + "database": "telegraf", + "measurement": "swap", + "retentionPolicy": "autogen", + "fields": [ + { + "value": "last", + "type": "func", + "alias": "swap total", + "args": [ + { + "value": "total", + "type": "field", + "alias": "" + } + ] + }, + { + "value": "last", + "type": "func", + "alias": "swap used", + "args": [ + { + "value": "used", + "type": "field", + "alias": "" + } + ] + } + ], + "tags": { + "host": [ + ":host:" + ] + }, + "groupBy": { + "time": "auto", + "tags": [] + }, + "areTagsAccepted": true, + "fill": "null", + "rawText": null, + "range": null, + "shifts": null + }, + "source": "", + "type": "influxql" + } + ], + "axes": { + "x": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + }, + "y": { + "bounds": [ + "0", + "" + ], + "label": "bytes", + "prefix": "", + "suffix": "B", + "base": "2", + "scale": "linear" + }, + "y2": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + } + }, + "type": "line", + "colors": [ + { + "id": "e0ad5304-f54a-47c4-af9a-d234a1addc0a", + "type": "scale", + "hex": "#31C0F6", + "name": "Nineteen Eighty Four", + "value": "0" + }, + { + "id": "799b522a-329f-4a00-8def-7833c02e5df6", + "type": "scale", + "hex": "#A500A5", + "name": "Nineteen Eighty Four", + "value": "0" + }, + { + "id": "5007a439-46c0-4988-be20-e01e11c6ea99", + "type": "scale", + "hex": "#FF7E27", + "name": "Nineteen Eighty Four", + "value": "0" + } + ], + "legend": {}, + "tableOptions": { + "verticalTimeAxis": true, + "sortBy": { + "internalName": "time", + "displayName": "", + "visible": true + }, + "wrapping": "truncate", + "fixFirstColumn": true + }, + "fieldOptions": [ + { + "internalName": "time", + "displayName": "", + "visible": true + } + ], + "timeFormat": "MM/DD/YYYY HH:mm:ss", + "decimalPlaces": { + "isEnforced": true, + "digits": 2 + }, + "note": "", + "noteVisibility": "default", + "links": { + "self": "/chronograf/v1/dashboards/1/cells/c3f775e4-524f-4498-8e21-9a5959284ee8" + } + }, + { + "i": "e9f5c61e-7f2a-4daf-8a0a-348664ef0b0c", + "x": 6, + "y": 0, + "w": 3, + "h": 1, + "name": "Total Memory - :host:", + "queries": [ + { + "query": "SELECT last(\"total\") / 1073741824 AS \"total memory\" FROM \"telegraf\".\"autogen\".\"mem\" WHERE time > :dashboardTime: AND \"host\"=':host:'", + "queryConfig": { + "database": "", + "measurement": "", + "retentionPolicy": "", + "fields": [], + "tags": {}, + "groupBy": { + "time": "", + "tags": [] + }, + "areTagsAccepted": false, + "rawText": "SELECT last(\"total\") / 1073741824 AS \"total memory\" FROM \"telegraf\".\"autogen\".\"mem\" WHERE time > :dashboardTime: AND \"host\"=':host:'", + "range": null, + "shifts": null + }, + "source": "", + "type": "influxql" + } + ], + "axes": { + "x": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + }, + "y": { + "bounds": [ + "0", + "" + ], + "label": "bytes", + "prefix": "", + "suffix": " GiB", + "base": "2", + "scale": "linear" + }, + "y2": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + } + }, + "type": "single-stat", + "colors": [ + { + "id": "base", + "type": "text", + "hex": "#00C9FF", + "name": "laser", + "value": "-1000000000000000000" + } + ], + "legend": {}, + "tableOptions": { + "verticalTimeAxis": true, + "sortBy": { + "internalName": "time", + "displayName": "", + "visible": true + }, + "wrapping": "truncate", + "fixFirstColumn": true + }, + "fieldOptions": [ + { + "internalName": "time", + "displayName": "", + "visible": true + } + ], + "timeFormat": "MM/DD/YYYY HH:mm:ss", + "decimalPlaces": { + "isEnforced": true, + "digits": 2 + }, + "note": "", + "noteVisibility": "default", + "links": { + "self": "/chronograf/v1/dashboards/1/cells/e9f5c61e-7f2a-4daf-8a0a-348664ef0b0c" + } + }, + { + "i": "7928d093-1958-4d78-aa59-d66115f05591", + "x": 8, + "y": 1, + "w": 2, + "h": 3, + "name": "Memory Utilization - :host:", + "queries": [ + { + "query": "SELECT last(\"used_percent\") AS \"utilization\" FROM \"telegraf\".\"autogen\".\"mem\" WHERE time > :dashboardTime: AND \"host\"=':host:'", + "queryConfig": { + "database": "telegraf", + "measurement": "mem", + "retentionPolicy": "autogen", + "fields": [ + { + "value": "last", + "type": "func", + "alias": "utilization", + "args": [ + { + "value": "used_percent", + "type": "field", + "alias": "" + } + ] + } + ], + "tags": { + "host": [ + ":host:" + ] + }, + "groupBy": { + "time": "", + "tags": [] + }, + "areTagsAccepted": true, + "rawText": null, + "range": null, + "shifts": null + }, + "source": "", + "type": "influxql" + } + ], + "axes": { + "x": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + }, + "y": { + "bounds": [ + "0", + "" + ], + "label": "utilization", + "prefix": "", + "suffix": "%", + "base": "10", + "scale": "linear" + }, + "y2": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + } + }, + "type": "gauge", + "colors": [ + { + "id": "0", + "type": "min", + "hex": "#32B08C", + "name": "viridian", + "value": "0" + }, + { + "id": "1", + "type": "max", + "hex": "#DC4E58", + "name": "fire", + "value": "100" + } + ], + "legend": {}, + "tableOptions": { + "verticalTimeAxis": true, + "sortBy": { + "internalName": "time", + "displayName": "", + "visible": true + }, + "wrapping": "truncate", + "fixFirstColumn": true + }, + "fieldOptions": [ + { + "internalName": "time", + "displayName": "", + "visible": true + } + ], + "timeFormat": "MM/DD/YYYY HH:mm:ss", + "decimalPlaces": { + "isEnforced": true, + "digits": 1 + }, + "note": "", + "noteVisibility": "default", + "links": { + "self": "/chronograf/v1/dashboards/1/cells/7928d093-1958-4d78-aa59-d66115f05591" + } + }, + { + "i": "1147de1e-56ae-4d80-a50c-0a90e27835af", + "x": 6, + "y": 4, + "w": 6, + "h": 3, + "name": "Memory Utilization - :host:", + "queries": [ + { + "query": "SELECT last(\"used_percent\") AS \"utilization\" FROM \"telegraf\".\"autogen\".\"mem\" WHERE time > :dashboardTime: AND \"host\"=':host:' GROUP BY time(:interval:) FILL(null)", + "queryConfig": { + "database": "telegraf", + "measurement": "mem", + "retentionPolicy": "autogen", + "fields": [ + { + "value": "last", + "type": "func", + "alias": "utilization", + "args": [ + { + "value": "used_percent", + "type": "field", + "alias": "" + } + ] + } + ], + "tags": { + "host": [ + ":host:" + ] + }, + "groupBy": { + "time": "auto", + "tags": [] + }, + "areTagsAccepted": true, + "fill": "null", + "rawText": null, + "range": null, + "shifts": null + }, + "source": "", + "type": "influxql" + } + ], + "axes": { + "x": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + }, + "y": { + "bounds": [ + "0", + "" + ], + "label": "utilization", + "prefix": "", + "suffix": "%", + "base": "10", + "scale": "linear" + }, + "y2": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + } + }, + "type": "line", + "colors": [ + { + "id": "e0ad5304-f54a-47c4-af9a-d234a1addc0a", + "type": "scale", + "hex": "#31C0F6", + "name": "Nineteen Eighty Four", + "value": "0" + }, + { + "id": "799b522a-329f-4a00-8def-7833c02e5df6", + "type": "scale", + "hex": "#A500A5", + "name": "Nineteen Eighty Four", + "value": "0" + }, + { + "id": "5007a439-46c0-4988-be20-e01e11c6ea99", + "type": "scale", + "hex": "#FF7E27", + "name": "Nineteen Eighty Four", + "value": "0" + } + ], + "legend": {}, + "tableOptions": { + "verticalTimeAxis": true, + "sortBy": { + "internalName": "time", + "displayName": "", + "visible": true + }, + "wrapping": "truncate", + "fixFirstColumn": true + }, + "fieldOptions": [ + { + "internalName": "time", + "displayName": "", + "visible": true + } + ], + "timeFormat": "MM/DD/YYYY HH:mm:ss", + "decimalPlaces": { + "isEnforced": true, + "digits": 2 + }, + "note": "", + "noteVisibility": "default", + "links": { + "self": "/chronograf/v1/dashboards/1/cells/1147de1e-56ae-4d80-a50c-0a90e27835af" + } + }, + { + "i": "9640bd59-5468-4f50-8338-be599dc169e5", + "x": 6, + "y": 7, + "w": 6, + "h": 3, + "name": "Memory Usage Details - :host:", + "queries": [ + { + "query": "SELECT last(\"cached\") AS \"cache\", last(\"buffered\") AS \"buffers\", last(\"used\") AS \"committed\" FROM \"telegraf\".\"autogen\".\"mem\" WHERE time > :dashboardTime: AND \"host\"=':host:' GROUP BY time(:interval:) FILL(null)", + "queryConfig": { + "database": "telegraf", + "measurement": "mem", + "retentionPolicy": "autogen", + "fields": [ + { + "value": "last", + "type": "func", + "alias": "cache", + "args": [ + { + "value": "cached", + "type": "field", + "alias": "" + } + ] + }, + { + "value": "last", + "type": "func", + "alias": "buffers", + "args": [ + { + "value": "buffered", + "type": "field", + "alias": "" + } + ] + }, + { + "value": "last", + "type": "func", + "alias": "committed", + "args": [ + { + "value": "used", + "type": "field", + "alias": "" + } + ] + } + ], + "tags": { + "host": [ + ":host:" + ] + }, + "groupBy": { + "time": "auto", + "tags": [] + }, + "areTagsAccepted": true, + "fill": "null", + "rawText": null, + "range": null, + "shifts": null + }, + "source": "", + "type": "influxql" + } + ], + "axes": { + "x": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + }, + "y": { + "bounds": [ + "0", + "" + ], + "label": "bytes", + "prefix": "", + "suffix": "B", + "base": "2", + "scale": "linear" + }, + "y2": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + } + }, + "type": "line-stacked", + "colors": [ + { + "id": "e0ad5304-f54a-47c4-af9a-d234a1addc0a", + "type": "scale", + "hex": "#31C0F6", + "name": "Nineteen Eighty Four", + "value": "0" + }, + { + "id": "799b522a-329f-4a00-8def-7833c02e5df6", + "type": "scale", + "hex": "#A500A5", + "name": "Nineteen Eighty Four", + "value": "0" + }, + { + "id": "5007a439-46c0-4988-be20-e01e11c6ea99", + "type": "scale", + "hex": "#FF7E27", + "name": "Nineteen Eighty Four", + "value": "0" + } + ], + "legend": {}, + "tableOptions": { + "verticalTimeAxis": true, + "sortBy": { + "internalName": "time", + "displayName": "", + "visible": true + }, + "wrapping": "truncate", + "fixFirstColumn": true + }, + "fieldOptions": [ + { + "internalName": "time", + "displayName": "", + "visible": true + } + ], + "timeFormat": "MM/DD/YYYY HH:mm:ss", + "decimalPlaces": { + "isEnforced": true, + "digits": 2 + }, + "note": "", + "noteVisibility": "default", + "links": { + "self": "/chronograf/v1/dashboards/1/cells/9640bd59-5468-4f50-8338-be599dc169e5" + } + }, + { + "i": "ad5afa23-927b-4969-b6f5-cf7605bc31ba", + "x": 6, + "y": 1, + "w": 2, + "h": 3, + "name": "CPU Load - 5min (norm) - :host:", + "queries": [ + { + "query": "SELECT last(\"load5\") / last(\"n_cpus\") FROM \"telegraf\".\"autogen\".\"system\" WHERE time > :dashboardTime: AND \"host\"=':host:'", + "queryConfig": { + "database": "", + "measurement": "", + "retentionPolicy": "", + "fields": [], + "tags": {}, + "groupBy": { + "time": "", + "tags": [] + }, + "areTagsAccepted": false, + "rawText": "SELECT last(\"load5\") / last(\"n_cpus\") FROM \"telegraf\".\"autogen\".\"system\" WHERE time > :dashboardTime: AND \"host\"=':host:'", + "range": null, + "shifts": null + }, + "source": "", + "type": "influxql" + } + ], + "axes": { + "x": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + }, + "y": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + }, + "y2": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + } + }, + "type": "gauge", + "colors": [ + { + "id": "0", + "type": "min", + "hex": "#32B08C", + "name": "viridian", + "value": "0" + }, + { + "id": "1", + "type": "max", + "hex": "#DC4E58", + "name": "fire", + "value": "2.5" + } + ], + "legend": {}, + "tableOptions": { + "verticalTimeAxis": true, + "sortBy": { + "internalName": "time", + "displayName": "", + "visible": true + }, + "wrapping": "truncate", + "fixFirstColumn": true + }, + "fieldOptions": [ + { + "internalName": "time", + "displayName": "", + "visible": true + } + ], + "timeFormat": "MM/DD/YYYY HH:mm:ss", + "decimalPlaces": { + "isEnforced": true, + "digits": 2 + }, + "note": "", + "noteVisibility": "default", + "links": { + "self": "/chronograf/v1/dashboards/1/cells/ad5afa23-927b-4969-b6f5-cf7605bc31ba" + } + }, + { + "i": "fd8e1391-a16f-4623-84b6-609d23e7a1c5", + "x": 0, + "y": 1, + "w": 2, + "h": 3, + "name": "CPU Utilization - :host:", + "queries": [ + { + "query": "SELECT 100 - last(\"usage_idle\") - last(\"usage_iowait\") AS \"utilization\" FROM \"telegraf\".\"autogen\".\"cpu\" WHERE time > :dashboardTime: and \"host\"=':host:' and \"cpu\"=':cpu:'", + "queryConfig": { + "database": "", + "measurement": "", + "retentionPolicy": "", + "fields": [], + "tags": {}, + "groupBy": { + "time": "", + "tags": [] + }, + "areTagsAccepted": false, + "rawText": "SELECT 100 - last(\"usage_idle\") - last(\"usage_iowait\") AS \"utilization\" FROM \"telegraf\".\"autogen\".\"cpu\" WHERE time > :dashboardTime: and \"host\"=':host:' and \"cpu\"=':cpu:'", + "range": null, + "shifts": null + }, + "source": "", + "type": "influxql" + } + ], + "axes": { + "x": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + }, + "y": { + "bounds": [ + "0", + "" + ], + "label": "utilization", + "prefix": "", + "suffix": "%", + "base": "10", + "scale": "linear" + }, + "y2": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + } + }, + "type": "gauge", + "colors": [ + { + "id": "0", + "type": "min", + "hex": "#32B08C", + "name": "viridian", + "value": "0" + }, + { + "id": "1", + "type": "max", + "hex": "#DC4E58", + "name": "fire", + "value": "100" + } + ], + "legend": {}, + "tableOptions": { + "verticalTimeAxis": true, + "sortBy": { + "internalName": "time", + "displayName": "", + "visible": true + }, + "wrapping": "truncate", + "fixFirstColumn": true + }, + "fieldOptions": [ + { + "internalName": "time", + "displayName": "", + "visible": true + } + ], + "timeFormat": "MM/DD/YYYY HH:mm:ss", + "decimalPlaces": { + "isEnforced": true, + "digits": 1 + }, + "note": "", + "noteVisibility": "default", + "links": { + "self": "/chronograf/v1/dashboards/1/cells/fd8e1391-a16f-4623-84b6-609d23e7a1c5" + } + }, + { + "i": "75c288e0-985e-402c-a1b0-868a95a38c5c", + "x": 0, + "y": 7, + "w": 6, + "h": 3, + "name": "CPU Utilization Details - :host: - :cpu:", + "queries": [ + { + "query": "SELECT last(\"usage_system\") AS \"system\", last(\"usage_user\") + last(\"usage_guest\") AS \"user\", last(\"usage_nice\") + last(\"usage_guest_nice\") AS \"nice\", last(\"usage_softirq\") AS \"softirq\", last(\"usage_irq\") AS \"irq\", last(\"usage_steal\") AS \"steal\" FROM \"telegraf\".\"autogen\".\"cpu\" WHERE time > :dashboardTime: AND \"cpu\"=':cpu:' AND \"host\"=':host:' GROUP BY time(:interval:) FILL(null)", + "queryConfig": { + "database": "", + "measurement": "", + "retentionPolicy": "", + "fields": [], + "tags": {}, + "groupBy": { + "time": "", + "tags": [] + }, + "areTagsAccepted": false, + "rawText": "SELECT last(\"usage_system\") AS \"system\", last(\"usage_user\") + last(\"usage_guest\") AS \"user\", last(\"usage_nice\") + last(\"usage_guest_nice\") AS \"nice\", last(\"usage_softirq\") AS \"softirq\", last(\"usage_irq\") AS \"irq\", last(\"usage_steal\") AS \"steal\" FROM \"telegraf\".\"autogen\".\"cpu\" WHERE time > :dashboardTime: AND \"cpu\"=':cpu:' AND \"host\"=':host:' GROUP BY time(:interval:) FILL(null)", + "range": null, + "shifts": null + }, + "source": "", + "type": "influxql" + } + ], + "axes": { + "x": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + }, + "y": { + "bounds": [ + "0", + "" + ], + "label": "utilization", + "prefix": "", + "suffix": "%", + "base": "10", + "scale": "linear" + }, + "y2": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + } + }, + "type": "line-stacked", + "colors": [ + { + "id": "e0ad5304-f54a-47c4-af9a-d234a1addc0a", + "type": "scale", + "hex": "#31C0F6", + "name": "Nineteen Eighty Four", + "value": "0" + }, + { + "id": "799b522a-329f-4a00-8def-7833c02e5df6", + "type": "scale", + "hex": "#A500A5", + "name": "Nineteen Eighty Four", + "value": "0" + }, + { + "id": "5007a439-46c0-4988-be20-e01e11c6ea99", + "type": "scale", + "hex": "#FF7E27", + "name": "Nineteen Eighty Four", + "value": "0" + } + ], + "legend": {}, + "tableOptions": { + "verticalTimeAxis": true, + "sortBy": { + "internalName": "time", + "displayName": "", + "visible": true + }, + "wrapping": "truncate", + "fixFirstColumn": true + }, + "fieldOptions": [ + { + "internalName": "time", + "displayName": "", + "visible": true + } + ], + "timeFormat": "MM/DD/YYYY HH:mm:ss", + "decimalPlaces": { + "isEnforced": true, + "digits": 2 + }, + "note": "", + "noteVisibility": "default", + "links": { + "self": "/chronograf/v1/dashboards/1/cells/75c288e0-985e-402c-a1b0-868a95a38c5c" + } + }, + { + "i": "8c0ec14e-6c6f-449b-8b43-c61cb21f0f0b", + "x": 0, + "y": 16, + "w": 6, + "h": 3, + "name": "Users - :host:", + "queries": [ + { + "query": "SELECT last(\"n_users\") AS \"users\" FROM \"telegraf\".\"autogen\"\"autogen\".\"system\" WHERE time > :dashboardTime: and \"host\"=':host:' GROUP BY time(:interval:) FILL(null)", + "queryConfig": { + "database": "", + "measurement": "", + "retentionPolicy": "", + "fields": [], + "tags": {}, + "groupBy": { + "time": "", + "tags": [] + }, + "areTagsAccepted": false, + "rawText": "SELECT last(\"n_users\") AS \"users\" FROM \"telegraf\".\"autogen\"\"autogen\".\"system\" WHERE time > :dashboardTime: and \"host\"=':host:' GROUP BY time(:interval:) FILL(null)", + "range": null, + "shifts": null + }, + "source": "", + "type": "influxql" + } + ], + "axes": { + "x": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + }, + "y": { + "bounds": [ + "0", + "" + ], + "label": "users", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + }, + "y2": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + } + }, + "type": "line", + "colors": [ + { + "id": "e0ad5304-f54a-47c4-af9a-d234a1addc0a", + "type": "scale", + "hex": "#31C0F6", + "name": "Nineteen Eighty Four", + "value": "0" + }, + { + "id": "799b522a-329f-4a00-8def-7833c02e5df6", + "type": "scale", + "hex": "#A500A5", + "name": "Nineteen Eighty Four", + "value": "0" + }, + { + "id": "5007a439-46c0-4988-be20-e01e11c6ea99", + "type": "scale", + "hex": "#FF7E27", + "name": "Nineteen Eighty Four", + "value": "0" + } + ], + "legend": {}, + "tableOptions": { + "verticalTimeAxis": true, + "sortBy": { + "internalName": "time", + "displayName": "", + "visible": true + }, + "wrapping": "truncate", + "fixFirstColumn": true + }, + "fieldOptions": [ + { + "internalName": "time", + "displayName": "", + "visible": true + } + ], + "timeFormat": "MM/DD/YYYY HH:mm:ss", + "decimalPlaces": { + "isEnforced": true, + "digits": 0 + }, + "note": "", + "noteVisibility": "default", + "links": { + "self": "/chronograf/v1/dashboards/1/cells/8c0ec14e-6c6f-449b-8b43-c61cb21f0f0b" + } + }, + { + "i": "a6488128-ecc8-4907-a689-a38a4a4e79c8", + "x": 4, + "y": 0, + "w": 2, + "h": 1, + "name": "Users - :host:", + "queries": [ + { + "query": "SELECT last(\"n_users\") FROM \"telegraf\".\"autogen\".\"system\" WHERE time > :dashboardTime: and \"host\"=':host:'", + "queryConfig": { + "database": "telegraf", + "measurement": "system", + "retentionPolicy": "autogen", + "fields": [ + { + "value": "last", + "type": "func", + "alias": "", + "args": [ + { + "value": "n_users", + "type": "field", + "alias": "" + } + ] + } + ], + "tags": { + "host": [ + ":host:" + ] + }, + "groupBy": { + "time": "", + "tags": [] + }, + "areTagsAccepted": true, + "rawText": null, + "range": null, + "shifts": null + }, + "source": "", + "type": "influxql" + } + ], + "axes": { + "x": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + }, + "y": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + }, + "y2": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + } + }, + "type": "single-stat", + "colors": [ + { + "id": "base", + "type": "text", + "hex": "#00C9FF", + "name": "laser", + "value": "-1000000000000000000" + } + ], + "legend": {}, + "tableOptions": { + "verticalTimeAxis": true, + "sortBy": { + "internalName": "time", + "displayName": "", + "visible": true + }, + "wrapping": "truncate", + "fixFirstColumn": true + }, + "fieldOptions": [ + { + "internalName": "time", + "displayName": "", + "visible": true + } + ], + "timeFormat": "MM/DD/YYYY HH:mm:ss", + "decimalPlaces": { + "isEnforced": true, + "digits": 0 + }, + "note": "", + "noteVisibility": "default", + "links": { + "self": "/chronograf/v1/dashboards/1/cells/a6488128-ecc8-4907-a689-a38a4a4e79c8" + } + }, + { + "i": "5a90c111-90ef-4201-a50c-cc517c974717", + "x": 0, + "y": 0, + "w": 2, + "h": 1, + "name": "CPU Cores - :host:", + "queries": [ + { + "query": "SELECT last(\"n_cpus\") AS \"mean_n_cpus\" FROM \"telegraf\".\"autogen\".\"system\" WHERE time > :dashboardTime: and \"host\"=':host:'", + "queryConfig": { + "database": "telegraf", + "measurement": "system", + "retentionPolicy": "autogen", + "fields": [ + { + "value": "last", + "type": "func", + "alias": "mean_n_cpus", + "args": [ + { + "value": "n_cpus", + "type": "field", + "alias": "" + } + ] + } + ], + "tags": { + "host": [ + ":host:" + ] + }, + "groupBy": { + "time": "", + "tags": [] + }, + "areTagsAccepted": true, + "rawText": null, + "range": null, + "shifts": null + }, + "source": "", + "type": "influxql" + } + ], + "axes": { + "x": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + }, + "y": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + }, + "y2": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + } + }, + "type": "single-stat", + "colors": [ + { + "id": "base", + "type": "text", + "hex": "#00C9FF", + "name": "laser", + "value": "-1000000000000000000" + } + ], + "legend": {}, + "tableOptions": { + "verticalTimeAxis": true, + "sortBy": { + "internalName": "time", + "displayName": "", + "visible": true + }, + "wrapping": "truncate", + "fixFirstColumn": true + }, + "fieldOptions": [ + { + "internalName": "time", + "displayName": "", + "visible": true + } + ], + "timeFormat": "MM/DD/YYYY HH:mm:ss", + "decimalPlaces": { + "isEnforced": true, + "digits": 0 + }, + "note": "", + "noteVisibility": "default", + "links": { + "self": "/chronograf/v1/dashboards/1/cells/5a90c111-90ef-4201-a50c-cc517c974717" + } + }, + { + "i": "f3db7e39-07ea-461a-94f0-5b088079abd1", + "x": 0, + "y": 10, + "w": 6, + "h": 3, + "name": "CPU Load (normalized) - :host:", + "queries": [ + { + "query": "SELECT max(\"load1\") / max(\"n_cpus\") AS \"1-min Load\", max(\"load5\") / max(\"n_cpus\") AS \"5-min Load\", max(\"load15\") / max(\"n_cpus\") AS \"15-min Load\" FROM \"telegraf\".\"autogen\"\"autogen\".\"system\" WHERE time > :dashboardTime: AND \"host\"=':host:' GROUP BY time(:interval:) FILL(null)", + "queryConfig": { + "database": "", + "measurement": "", + "retentionPolicy": "", + "fields": [], + "tags": {}, + "groupBy": { + "time": "", + "tags": [] + }, + "areTagsAccepted": false, + "rawText": "SELECT max(\"load1\") / max(\"n_cpus\") AS \"1-min Load\", max(\"load5\") / max(\"n_cpus\") AS \"5-min Load\", max(\"load15\") / max(\"n_cpus\") AS \"15-min Load\" FROM \"telegraf\".\"autogen\"\"autogen\".\"system\" WHERE time > :dashboardTime: AND \"host\"=':host:' GROUP BY time(:interval:) FILL(null)", + "range": null, + "shifts": null + }, + "source": "", + "type": "influxql" + } + ], + "axes": { + "x": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + }, + "y": { + "bounds": [ + "0", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "raw", + "scale": "linear" + }, + "y2": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + } + }, + "type": "line", + "colors": [ + { + "id": "e0ad5304-f54a-47c4-af9a-d234a1addc0a", + "type": "scale", + "hex": "#31C0F6", + "name": "Nineteen Eighty Four", + "value": "0" + }, + { + "id": "799b522a-329f-4a00-8def-7833c02e5df6", + "type": "scale", + "hex": "#A500A5", + "name": "Nineteen Eighty Four", + "value": "0" + }, + { + "id": "5007a439-46c0-4988-be20-e01e11c6ea99", + "type": "scale", + "hex": "#FF7E27", + "name": "Nineteen Eighty Four", + "value": "0" + } + ], + "legend": {}, + "tableOptions": { + "verticalTimeAxis": true, + "sortBy": { + "internalName": "time", + "displayName": "", + "visible": true + }, + "wrapping": "truncate", + "fixFirstColumn": true + }, + "fieldOptions": [ + { + "internalName": "time", + "displayName": "", + "visible": true + } + ], + "timeFormat": "MM/DD/YYYY HH:mm:ss", + "decimalPlaces": { + "isEnforced": true, + "digits": 2 + }, + "note": "", + "noteVisibility": "default", + "links": { + "self": "/chronograf/v1/dashboards/1/cells/f3db7e39-07ea-461a-94f0-5b088079abd1" + } + } + ], + "templates": [ + { + "tempVar": ":host:", + "values": [ + { + "value": "k8s", + "type": "influxql", + "selected": true + } + ], + "id": "47fc9bdb-e55b-4afd-89d9-2c67fb39dbdc", + "type": "influxql", + "label": "", + "query": { + "influxql": "SHOW TAG VALUES ON \"telegraf\" FROM \"system\" WITH KEY=\"host\"\n", + "measurement": "", + "tagKey": "", + "fieldKey": "" + }, + "sourceID": "5000", + "links": { + "self": "/chronograf/v1/dashboards/1/templates/47fc9bdb-e55b-4afd-89d9-2c67fb39dbdc" + } + }, + { + "tempVar": ":cpu:", + "values": [ + { + "value": "cpu-total", + "type": "influxql", + "selected": true + }, + { + "value": "cpu0", + "type": "influxql", + "selected": true + }, + { + "value": "cpu1", + "type": "influxql", + "selected": true + }, + { + "value": "cpu2", + "type": "influxql", + "selected": true + }, + { + "value": "cpu3", + "type": "influxql", + "selected": true + } + ], + "id": "f7002c65-e1fc-4b77-a0da-be15b3ed5c2c", + "type": "influxql", + "label": "", + "query": { + "influxql": "SHOW TAG VALUES ON \"telegraf\" FROM \"cpu\" WITH KEY=\"cpu\" WHERE \"host\"=':host:'", + "measurement": "", + "tagKey": "", + "fieldKey": "" + }, + "sourceID": "5000", + "links": { + "self": "/chronograf/v1/dashboards/1/templates/f7002c65-e1fc-4b77-a0da-be15b3ed5c2c" + } + } + ], + "name": "Host: Compute Performance", + "organization": "default", + "links": { + "self": "/chronograf/v1/dashboards/1", + "cells": "/chronograf/v1/dashboards/1/cells", + "templates": "/chronograf/v1/dashboards/1/templates" + } + } +} \ No newline at end of file diff --git a/terraform/k8sapps/resources/chronograf/dashboards/2_disk_capacity.dashboard b/terraform/k8sapps/resources/chronograf/dashboards/2_disk_capacity.dashboard new file mode 100644 index 0000000..d3876b4 --- /dev/null +++ b/terraform/k8sapps/resources/chronograf/dashboards/2_disk_capacity.dashboard @@ -0,0 +1,1057 @@ +{ + "meta": { + "chronografVersion": "1.8.0", + "sources": { + "5000": { + "name": "internal", + "link": "/chronograf/v1/sources/5000" + } + } + }, + "dashboard": { + "id": "2", + "cells": [ + { + "i": "12475f7d-6fed-47ce-83fe-f78af9687834", + "x": 6, + "y": 1, + "w": 6, + "h": 3, + "name": "inode usage - :host: - :file_system:", + "queries": [ + { + "query": "SELECT last(\"inodes_used\") AS \"inodes used\" FROM \"telegraf\".\"autogen\".\"disk\" WHERE time > :dashboardTime: AND \"host\"=':host:' AND \"path\"=':file_system:' GROUP BY time(:interval:) FILL(previous)", + "queryConfig": { + "database": "telegraf", + "measurement": "disk", + "retentionPolicy": "", + "fields": [ + { + "value": "last", + "type": "func", + "alias": "inodes used", + "args": [ + { + "value": "inodes_used", + "type": "field", + "alias": "" + } + ] + } + ], + "tags": { + "host": [ + ":host:" + ], + "path": [ + ":file_system:" + ] + }, + "groupBy": { + "time": "auto", + "tags": [] + }, + "areTagsAccepted": true, + "fill": "previous", + "rawText": null, + "range": null, + "shifts": null + }, + "source": "", + "type": "influxql" + } + ], + "axes": { + "x": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + }, + "y": { + "bounds": [ + "0", + "" + ], + "label": "inodes", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + }, + "y2": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + } + }, + "type": "line", + "colors": [ + { + "id": "base", + "type": "scale", + "hex": "#31C0F6", + "name": "Nineteen Eighty Four", + "value": "0" + }, + { + "id": "4b835bca-4233-4104-95d6-8e56edf6cab1", + "type": "scale", + "hex": "#A500A5", + "name": "Nineteen Eighty Four", + "value": "0" + }, + { + "id": "14f0d278-e294-483b-9b79-714488cee3c4", + "type": "scale", + "hex": "#FF7E27", + "name": "Nineteen Eighty Four", + "value": "0" + } + ], + "legend": {}, + "tableOptions": { + "verticalTimeAxis": true, + "sortBy": { + "internalName": "time", + "displayName": "", + "visible": true + }, + "wrapping": "truncate", + "fixFirstColumn": true + }, + "fieldOptions": [ + { + "internalName": "time", + "displayName": "", + "visible": true + } + ], + "timeFormat": "MM/DD/YYYY HH:mm:ss", + "decimalPlaces": { + "isEnforced": true, + "digits": 2 + }, + "note": "", + "noteVisibility": "default", + "links": { + "self": "/chronograf/v1/dashboards/2/cells/12475f7d-6fed-47ce-83fe-f78af9687834" + } + }, + { + "i": "c33cb5dd-5f49-4600-a6e7-9a9ba37e6e5d", + "x": 6, + "y": 0, + "w": 3, + "h": 1, + "name": "inodes Used - :host: - :file_system:", + "queries": [ + { + "query": "SELECT last(\"inodes_used\") AS \"inodes used\" FROM \"telegraf\".\"autogen\".\"disk\" WHERE time > :dashboardTime: AND \"host\"=':host:' AND \"path\"=':file_system:'", + "queryConfig": { + "database": "telegraf", + "measurement": "disk", + "retentionPolicy": "", + "fields": [ + { + "value": "last", + "type": "func", + "alias": "inodes used", + "args": [ + { + "value": "inodes_used", + "type": "field", + "alias": "" + } + ] + } + ], + "tags": { + "host": [ + ":host:" + ], + "path": [ + ":file_system:" + ] + }, + "groupBy": { + "time": "", + "tags": [] + }, + "areTagsAccepted": true, + "rawText": null, + "range": null, + "shifts": null + }, + "source": "", + "type": "influxql" + } + ], + "axes": { + "x": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + }, + "y": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + }, + "y2": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + } + }, + "type": "single-stat", + "colors": [ + { + "id": "base", + "type": "text", + "hex": "#00C9FF", + "name": "laser", + "value": "-1000000000000000000" + } + ], + "legend": {}, + "tableOptions": { + "verticalTimeAxis": true, + "sortBy": { + "internalName": "time", + "displayName": "", + "visible": true + }, + "wrapping": "truncate", + "fixFirstColumn": true + }, + "fieldOptions": [ + { + "internalName": "time", + "displayName": "", + "visible": true + } + ], + "timeFormat": "MM/DD/YYYY HH:mm:ss", + "decimalPlaces": { + "isEnforced": true, + "digits": 0 + }, + "note": "", + "noteVisibility": "default", + "links": { + "self": "/chronograf/v1/dashboards/2/cells/c33cb5dd-5f49-4600-a6e7-9a9ba37e6e5d" + } + }, + { + "i": "0819e027-5ac3-42c9-9ebe-05fd1621478e", + "x": 0, + "y": 4, + "w": 6, + "h": 3, + "name": "Capacity Utilization - :host: - :file_system:", + "queries": [ + { + "query": "SELECT last(\"used_percent\") AS \"capacity utilization\" FROM \"telegraf\".\"autogen\".\"disk\" WHERE time > :dashboardTime: AND \"host\"=':host:' AND \"path\"=':file_system:' GROUP BY time(:interval:) FILL(previous)", + "queryConfig": { + "database": "telegraf", + "measurement": "disk", + "retentionPolicy": "", + "fields": [ + { + "value": "last", + "type": "func", + "alias": "capacity utilization", + "args": [ + { + "value": "used_percent", + "type": "field", + "alias": "" + } + ] + } + ], + "tags": { + "host": [ + ":host:" + ], + "path": [ + ":file_system:" + ] + }, + "groupBy": { + "time": "auto", + "tags": [] + }, + "areTagsAccepted": true, + "fill": "previous", + "rawText": null, + "range": null, + "shifts": null + }, + "source": "", + "type": "influxql" + } + ], + "axes": { + "x": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + }, + "y": { + "bounds": [ + "0", + "" + ], + "label": "utilization", + "prefix": "", + "suffix": "%", + "base": "10", + "scale": "linear" + }, + "y2": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + } + }, + "type": "line-plus-single-stat", + "colors": [ + { + "id": "base", + "type": "scale", + "hex": "#31C0F6", + "name": "Nineteen Eighty Four", + "value": "0" + }, + { + "id": "4b835bca-4233-4104-95d6-8e56edf6cab1", + "type": "scale", + "hex": "#A500A5", + "name": "Nineteen Eighty Four", + "value": "0" + }, + { + "id": "14f0d278-e294-483b-9b79-714488cee3c4", + "type": "scale", + "hex": "#FF7E27", + "name": "Nineteen Eighty Four", + "value": "0" + } + ], + "legend": {}, + "tableOptions": { + "verticalTimeAxis": true, + "sortBy": { + "internalName": "time", + "displayName": "", + "visible": true + }, + "wrapping": "truncate", + "fixFirstColumn": true + }, + "fieldOptions": [ + { + "internalName": "time", + "displayName": "", + "visible": true + } + ], + "timeFormat": "MM/DD/YYYY HH:mm:ss", + "decimalPlaces": { + "isEnforced": true, + "digits": 2 + }, + "note": "", + "noteVisibility": "default", + "links": { + "self": "/chronograf/v1/dashboards/2/cells/0819e027-5ac3-42c9-9ebe-05fd1621478e" + } + }, + { + "i": "1949e1a0-daaa-4bbb-b99a-4f2a88f68d73", + "x": 9, + "y": 0, + "w": 3, + "h": 1, + "name": "", + "queries": [ + { + "query": "false", + "queryConfig": { + "database": "", + "measurement": "", + "retentionPolicy": "", + "fields": [], + "tags": {}, + "groupBy": { + "time": "", + "tags": [] + }, + "areTagsAccepted": false, + "rawText": "false", + "range": null, + "shifts": null + }, + "source": "", + "type": "influxql" + } + ], + "axes": { + "x": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + }, + "y": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + }, + "y2": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + } + }, + "type": "line", + "colors": [ + { + "id": "6f27a08e-d806-429e-b134-b452b6b13946", + "type": "scale", + "hex": "#31C0F6", + "name": "Nineteen Eighty Four", + "value": "0" + }, + { + "id": "80fea787-8ebd-46d6-84d5-3e4efaa5b94b", + "type": "scale", + "hex": "#A500A5", + "name": "Nineteen Eighty Four", + "value": "0" + }, + { + "id": "5acc8c5e-c122-4cd5-a780-48e005aaf5ed", + "type": "scale", + "hex": "#FF7E27", + "name": "Nineteen Eighty Four", + "value": "0" + } + ], + "legend": {}, + "tableOptions": { + "verticalTimeAxis": true, + "sortBy": { + "internalName": "time", + "displayName": "", + "visible": true + }, + "wrapping": "truncate", + "fixFirstColumn": true + }, + "fieldOptions": [ + { + "internalName": "time", + "displayName": "", + "visible": true + } + ], + "timeFormat": "MM/DD/YYYY HH:mm:ss", + "decimalPlaces": { + "isEnforced": true, + "digits": 2 + }, + "note": "", + "noteVisibility": "showWhenNoData", + "links": { + "self": "/chronograf/v1/dashboards/2/cells/1949e1a0-daaa-4bbb-b99a-4f2a88f68d73" + } + }, + { + "i": "32043c11-1d04-4dc6-9a24-7a91a730a726", + "x": 3, + "y": 0, + "w": 3, + "h": 1, + "name": "File System Capacity Used - :host: - :file_system:", + "queries": [ + { + "query": "SELECT last(\"used\") / 1073741824 AS \"capacity\" FROM \"telegraf\".\"autogen\".\"disk\" WHERE time > :dashboardTime: AND \"host\"=':host:' AND \"path\"=':file_system:'", + "queryConfig": { + "database": "", + "measurement": "", + "retentionPolicy": "", + "fields": [], + "tags": {}, + "groupBy": { + "time": "", + "tags": [] + }, + "areTagsAccepted": false, + "rawText": "SELECT last(\"used\") / 1073741824 AS \"capacity\" FROM \"telegraf\".\"autogen\".\"disk\" WHERE time > :dashboardTime: AND \"host\"=':host:' AND \"path\"=':file_system:'", + "range": null, + "shifts": null + }, + "source": "", + "type": "influxql" + } + ], + "axes": { + "x": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + }, + "y": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": " GiB", + "base": "10", + "scale": "linear" + }, + "y2": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + } + }, + "type": "single-stat", + "colors": [ + { + "id": "base", + "type": "text", + "hex": "#00C9FF", + "name": "laser", + "value": "-1000000000000000000" + } + ], + "legend": {}, + "tableOptions": { + "verticalTimeAxis": true, + "sortBy": { + "internalName": "time", + "displayName": "", + "visible": true + }, + "wrapping": "truncate", + "fixFirstColumn": true + }, + "fieldOptions": [ + { + "internalName": "time", + "displayName": "", + "visible": true + } + ], + "timeFormat": "MM/DD/YYYY HH:mm:ss", + "decimalPlaces": { + "isEnforced": true, + "digits": 2 + }, + "note": "", + "noteVisibility": "default", + "links": { + "self": "/chronograf/v1/dashboards/2/cells/32043c11-1d04-4dc6-9a24-7a91a730a726" + } + }, + { + "i": "a6ffbaac-52b9-46d7-8c36-f952be49e82c", + "x": 6, + "y": 4, + "w": 6, + "h": 3, + "name": "inode Utilization - :host: - :file_system:", + "queries": [ + { + "query": "SELECT (last(\"inodes_used\") / last(\"inodes_total\")) * 100 AS \"inode utilization\" FROM \"telegraf\".\"autogen\".\"disk\" WHERE time > :dashboardTime: AND \"host\"=':host:' AND \"path\"=':file_system:' GROUP BY time(:interval:) FILL(previous)", + "queryConfig": { + "database": "", + "measurement": "", + "retentionPolicy": "", + "fields": [], + "tags": {}, + "groupBy": { + "time": "", + "tags": [] + }, + "areTagsAccepted": false, + "rawText": "SELECT (last(\"inodes_used\") / last(\"inodes_total\")) * 100 AS \"inode utilization\" FROM \"telegraf\".\"autogen\".\"disk\" WHERE time > :dashboardTime: AND \"host\"=':host:' AND \"path\"=':file_system:' GROUP BY time(:interval:) FILL(previous)", + "range": null, + "shifts": null + }, + "source": "", + "type": "influxql" + } + ], + "axes": { + "x": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + }, + "y": { + "bounds": [ + "0", + "" + ], + "label": "utilization", + "prefix": "", + "suffix": "%", + "base": "10", + "scale": "linear" + }, + "y2": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + } + }, + "type": "line-plus-single-stat", + "colors": [ + { + "id": "base", + "type": "scale", + "hex": "#31C0F6", + "name": "Nineteen Eighty Four", + "value": "0" + }, + { + "id": "4b835bca-4233-4104-95d6-8e56edf6cab1", + "type": "scale", + "hex": "#A500A5", + "name": "Nineteen Eighty Four", + "value": "0" + }, + { + "id": "14f0d278-e294-483b-9b79-714488cee3c4", + "type": "scale", + "hex": "#FF7E27", + "name": "Nineteen Eighty Four", + "value": "0" + } + ], + "legend": {}, + "tableOptions": { + "verticalTimeAxis": true, + "sortBy": { + "internalName": "time", + "displayName": "", + "visible": true + }, + "wrapping": "truncate", + "fixFirstColumn": true + }, + "fieldOptions": [ + { + "internalName": "time", + "displayName": "", + "visible": true + } + ], + "timeFormat": "MM/DD/YYYY HH:mm:ss", + "decimalPlaces": { + "isEnforced": true, + "digits": 2 + }, + "note": "", + "noteVisibility": "default", + "links": { + "self": "/chronograf/v1/dashboards/2/cells/a6ffbaac-52b9-46d7-8c36-f952be49e82c" + } + }, + { + "i": "38530ab3-9a50-410e-a052-82ac6ecc58ff", + "x": 0, + "y": 0, + "w": 3, + "h": 1, + "name": "File System Capacity - :host: - :file_system:", + "queries": [ + { + "query": "SELECT last(\"total\") / 1073741824 AS \"capacity\" FROM \"telegraf\".\"autogen\".\"disk\" WHERE time > :dashboardTime: AND \"host\"=':host:' AND \"path\"=':file_system:'", + "queryConfig": { + "database": "", + "measurement": "", + "retentionPolicy": "", + "fields": [], + "tags": {}, + "groupBy": { + "time": "", + "tags": [] + }, + "areTagsAccepted": false, + "rawText": "SELECT last(\"total\") / 1073741824 AS \"capacity\" FROM \"telegraf\".\"autogen\".\"disk\" WHERE time > :dashboardTime: AND \"host\"=':host:' AND \"path\"=':file_system:'", + "range": null, + "shifts": null + }, + "source": "", + "type": "influxql" + } + ], + "axes": { + "x": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + }, + "y": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": " GiB", + "base": "10", + "scale": "linear" + }, + "y2": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + } + }, + "type": "single-stat", + "colors": [ + { + "id": "base", + "type": "text", + "hex": "#00C9FF", + "name": "laser", + "value": "-1000000000000000000" + } + ], + "legend": {}, + "tableOptions": { + "verticalTimeAxis": true, + "sortBy": { + "internalName": "time", + "displayName": "", + "visible": true + }, + "wrapping": "truncate", + "fixFirstColumn": true + }, + "fieldOptions": [ + { + "internalName": "time", + "displayName": "", + "visible": true + } + ], + "timeFormat": "MM/DD/YYYY HH:mm:ss", + "decimalPlaces": { + "isEnforced": true, + "digits": 2 + }, + "note": "", + "noteVisibility": "default", + "links": { + "self": "/chronograf/v1/dashboards/2/cells/38530ab3-9a50-410e-a052-82ac6ecc58ff" + } + }, + { + "i": "058909b3-b7e3-473f-8fc3-cbaee19e21b1", + "x": 0, + "y": 1, + "w": 6, + "h": 3, + "name": "Capacity Usage - :host: - :file_system:", + "queries": [ + { + "query": "SELECT last(\"used\") / 1073741824 AS \"capacity used\", (last(\"total\") - last(\"used\")) / 1073741824 AS \"capacity available\" FROM \"telegraf\".\"autogen\".\"disk\" WHERE time > :dashboardTime: AND \"host\"=':host:' AND \"path\"=':file_system:' GROUP BY time(:interval:) FILL(previous)", + "queryConfig": { + "database": "", + "measurement": "", + "retentionPolicy": "", + "fields": [], + "tags": {}, + "groupBy": { + "time": "", + "tags": [] + }, + "areTagsAccepted": false, + "rawText": "SELECT last(\"used\") / 1073741824 AS \"capacity used\", (last(\"total\") - last(\"used\")) / 1073741824 AS \"capacity available\" FROM \"telegraf\".\"autogen\".\"disk\" WHERE time > :dashboardTime: AND \"host\"=':host:' AND \"path\"=':file_system:' GROUP BY time(:interval:) FILL(previous)", + "range": null, + "shifts": null + }, + "source": "", + "type": "influxql" + } + ], + "axes": { + "x": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + }, + "y": { + "bounds": [ + "0", + "" + ], + "label": "bytes", + "prefix": "", + "suffix": "GiB", + "base": "2", + "scale": "linear" + }, + "y2": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + } + }, + "type": "line-stacked", + "colors": [ + { + "id": "base", + "type": "scale", + "hex": "#31C0F6", + "name": "Nineteen Eighty Four", + "value": "0" + }, + { + "id": "4b835bca-4233-4104-95d6-8e56edf6cab1", + "type": "scale", + "hex": "#A500A5", + "name": "Nineteen Eighty Four", + "value": "0" + }, + { + "id": "14f0d278-e294-483b-9b79-714488cee3c4", + "type": "scale", + "hex": "#FF7E27", + "name": "Nineteen Eighty Four", + "value": "0" + } + ], + "legend": {}, + "tableOptions": { + "verticalTimeAxis": true, + "sortBy": { + "internalName": "time", + "displayName": "", + "visible": true + }, + "wrapping": "truncate", + "fixFirstColumn": true + }, + "fieldOptions": [ + { + "internalName": "time", + "displayName": "", + "visible": true + } + ], + "timeFormat": "MM/DD/YYYY HH:mm:ss", + "decimalPlaces": { + "isEnforced": true, + "digits": 2 + }, + "note": "", + "noteVisibility": "default", + "links": { + "self": "/chronograf/v1/dashboards/2/cells/058909b3-b7e3-473f-8fc3-cbaee19e21b1" + } + } + ], + "templates": [ + { + "tempVar": ":host:", + "values": [ + { + "value": "k8s", + "type": "influxql", + "selected": true + } + ], + "id": "21f8e74f-f78c-440e-af0a-58efdb7299b0", + "type": "influxql", + "label": "", + "query": { + "influxql": "SHOW TAG VALUES ON \"telegraf\" FROM \"disk\" WITH KEY=\"host\"", + "measurement": "", + "tagKey": "", + "fieldKey": "" + }, + "sourceID": "5000", + "links": { + "self": "/chronograf/v1/dashboards/2/templates/21f8e74f-f78c-440e-af0a-58efdb7299b0" + } + }, + { + "tempVar": ":file_system:", + "values": [ + { + "value": "/", + "type": "influxql", + "selected": true + }, + { + "value": "/boot", + "type": "influxql", + "selected": true + }, + { + "value": "/etc/hostname", + "type": "influxql", + "selected": true + }, + { + "value": "/etc/hosts", + "type": "influxql", + "selected": true + }, + { + "value": "/etc/resolv.conf", + "type": "influxql", + "selected": true + }, + { + "value": "/mnt/microk8s_config", + "type": "influxql", + "selected": true + }, + { + "value": "/mnt/microk8s_persistent", + "type": "influxql", + "selected": true + } + ], + "id": "67208fb2-17f4-404a-b061-fa459a3d58c3", + "type": "influxql", + "label": "", + "query": { + "influxql": "SHOW TAG VALUES ON \"telegraf\" FROM \"disk\" WITH KEY=\"path\" WHERE \"host\"=':host:'", + "measurement": "", + "tagKey": "", + "fieldKey": "" + }, + "sourceID": "5000", + "links": { + "self": "/chronograf/v1/dashboards/2/templates/67208fb2-17f4-404a-b061-fa459a3d58c3" + } + } + ], + "name": "Disk: Capacity", + "organization": "default", + "links": { + "self": "/chronograf/v1/dashboards/2", + "cells": "/chronograf/v1/dashboards/2/cells", + "templates": "/chronograf/v1/dashboards/2/templates" + } + } +} \ No newline at end of file diff --git a/terraform/k8sapps/resources/chronograf/dashboards/3_system_metrics.dashboard.disabled b/terraform/k8sapps/resources/chronograf/dashboards/3_system_metrics.dashboard.disabled new file mode 100644 index 0000000..0b38495 --- /dev/null +++ b/terraform/k8sapps/resources/chronograf/dashboards/3_system_metrics.dashboard.disabled @@ -0,0 +1,1522 @@ +{ + "meta": { + "chronografVersion": "1.10.1", + "sources": { + "5000": { + "name": "internal", + "link": "/chronograf/v1/sources/5000" + } + } + }, + "dashboard": { + "id": "3", + "cells": [ + { + "i": "cf83b26b-9628-4620-9483-e24322cbe2a9", + "x": 0, + "y": 0, + "w": 12, + "h": 1, + "name": "", + "queries": [ + { + "query": "", + "queryConfig": { + "database": "", + "measurement": "", + "retentionPolicy": "", + "fields": [], + "tags": {}, + "groupBy": { + "time": "", + "tags": [] + }, + "areTagsAccepted": false, + "rawText": "", + "range": null, + "shifts": null + }, + "source": "", + "type": "influxql" + } + ], + "axes": { + "x": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + }, + "y": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + }, + "y2": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + } + }, + "type": "note", + "colors": [], + "legend": {}, + "tableOptions": { + "verticalTimeAxis": true, + "sortBy": { + "internalName": "time", + "displayName": "", + "visible": true + }, + "wrapping": "truncate", + "fixFirstColumn": true + }, + "fieldOptions": [ + { + "internalName": "time", + "displayName": "", + "visible": true + } + ], + "timeFormat": "MM/DD/YYYY HH:mm:ss", + "decimalPlaces": { + "isEnforced": true, + "digits": 2 + }, + "note": "This dashboard gives you an overview of System metrics with metrics from `system`, `mem`, `diskio`, `swap` and `net` measurements. See the [Telegraf Documentation](https://github.com/influxdata/telegraf/tree/master/plugins/inputs/system) for help configuring these plugins.", + "noteVisibility": "default", + "links": { + "self": "/chronograf/v1/dashboards/3/cells/cf83b26b-9628-4620-9483-e24322cbe2a9" + } + }, + { + "i": "d235ebac-e734-460e-a82c-b416002ed261", + "x": 6, + "y": 5, + "w": 3, + "h": 3, + "name": "Processes", + "queries": [ + { + "query": "SELECT mean(\"total\") AS \"mean_total\" FROM \"telegraf\".\"autogen\".\"processes\" WHERE host=:host: AND time > :dashboardTime: GROUP BY time(:interval:) FILL(null)", + "queryConfig": { + "database": "", + "measurement": "", + "retentionPolicy": "", + "fields": [], + "tags": {}, + "groupBy": { + "time": "", + "tags": [] + }, + "areTagsAccepted": false, + "rawText": "SELECT mean(\"total\") AS \"mean_total\" FROM \"telegraf\".\"autogen\".\"processes\" WHERE host=:host: AND time > :dashboardTime: GROUP BY time(:interval:) FILL(null)", + "range": null, + "shifts": null + }, + "source": "", + "type": "influxql" + } + ], + "axes": { + "x": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + }, + "y": { + "bounds": [ + "", + "" + ], + "label": "processes total", + "prefix": "", + "suffix": "", + "base": "2", + "scale": "linear" + }, + "y2": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + } + }, + "type": "line", + "colors": [ + { + "id": "base", + "type": "scale", + "hex": "#31C0F6", + "name": "Nineteen Eighty Four", + "value": "0" + }, + { + "id": "9b56030d-b186-40b9-8d87-c911c962c882", + "type": "scale", + "hex": "#A500A5", + "name": "Nineteen Eighty Four", + "value": "0" + }, + { + "id": "a45aaa88-9e45-4a68-b4e8-61538cb0f023", + "type": "scale", + "hex": "#FF7E27", + "name": "Nineteen Eighty Four", + "value": "0" + } + ], + "legend": {}, + "tableOptions": { + "verticalTimeAxis": true, + "sortBy": { + "internalName": "time", + "displayName": "", + "visible": true + }, + "wrapping": "truncate", + "fixFirstColumn": true + }, + "fieldOptions": [ + { + "internalName": "time", + "displayName": "", + "visible": true + } + ], + "timeFormat": "MM/DD/YYYY HH:mm:ss", + "decimalPlaces": { + "isEnforced": true, + "digits": 2 + }, + "note": "To enable this graph, you will need to configure the Telegraf `processes` plugin. For more information, please visit the [Telegraf Processes plugin documentation](https://github.com/influxdata/telegraf/tree/master/plugins/inputs/processes).", + "noteVisibility": "showWhenNoData", + "links": { + "self": "/chronograf/v1/dashboards/3/cells/d235ebac-e734-460e-a82c-b416002ed261" + } + }, + { + "i": "cf41cc7c-6956-4b0a-b43e-49f977eba2b7", + "x": 3, + "y": 2, + "w": 3, + "h": 3, + "name": "CPU Usage", + "queries": [ + { + "query": "SELECT mean(\"usage_system\") AS \"system\", mean(\"usage_user\") as \"user\", mean(\"usage_idle\") as \"idle\" FROM \"telegraf\".\"autogen\".\"cpu\" WHERE host = :host: and time > :dashboardTime: AND \"cpu\"='cpu-total' GROUP BY time(:interval:) FILL(null)", + "queryConfig": { + "database": "", + "measurement": "", + "retentionPolicy": "", + "fields": [], + "tags": {}, + "groupBy": { + "time": "", + "tags": [] + }, + "areTagsAccepted": false, + "rawText": "SELECT mean(\"usage_system\") AS \"system\", mean(\"usage_user\") as \"user\", mean(\"usage_idle\") as \"idle\" FROM \"telegraf\".\"autogen\".\"cpu\" WHERE host = :host: and time > :dashboardTime: AND \"cpu\"='cpu-total' GROUP BY time(:interval:) FILL(null)", + "range": null, + "shifts": null + }, + "source": "", + "type": "influxql" + } + ], + "axes": { + "x": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + }, + "y": { + "bounds": [ + "", + "" + ], + "label": "percentage", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + }, + "y2": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + } + }, + "type": "line-stacked", + "colors": [ + { + "id": "2818d86b-c91e-4d59-b7f4-e5c7212b627e", + "type": "scale", + "hex": "#74D495", + "name": "Atlantis", + "value": "0" + }, + { + "id": "4dfe99ee-4844-417b-ae70-c9af0b3ad826", + "type": "scale", + "hex": "#3F3FBA", + "name": "Atlantis", + "value": "0" + }, + { + "id": "31ea9d9b-c950-4ba5-b3e5-53738b2524c5", + "type": "scale", + "hex": "#FF4D9E", + "name": "Atlantis", + "value": "0" + } + ], + "legend": {}, + "tableOptions": { + "verticalTimeAxis": true, + "sortBy": { + "internalName": "time", + "displayName": "", + "visible": true + }, + "wrapping": "truncate", + "fixFirstColumn": true + }, + "fieldOptions": [ + { + "internalName": "time", + "displayName": "", + "visible": true + } + ], + "timeFormat": "MM/DD/YYYY HH:mm:ss", + "decimalPlaces": { + "isEnforced": true, + "digits": 2 + }, + "note": "To enable this graph, you will need to configure the Telegraf `cpu` plugin. For more information, please visit the [Telegraf CPU plugin documentation](https://github.com/influxdata/telegraf/tree/master/plugins/inputs/cpu).", + "noteVisibility": "showWhenNoData", + "links": { + "self": "/chronograf/v1/dashboards/3/cells/cf41cc7c-6956-4b0a-b43e-49f977eba2b7" + } + }, + { + "i": "646c5054-f1d3-40f0-b563-cb5157355c98", + "x": 0, + "y": 2, + "w": 3, + "h": 3, + "name": "Filesystems usage", + "queries": [ + { + "query": "SELECT mean(\"used_percent\") AS \"used\" FROM \"telegraf\".\"autogen\".\"disk\" WHERE time > :dashboardTime: AND \"host\"=:host: GROUP BY time(:interval:), \"path\" FILL(null)", + "queryConfig": { + "database": "", + "measurement": "", + "retentionPolicy": "", + "fields": [], + "tags": {}, + "groupBy": { + "time": "", + "tags": [] + }, + "areTagsAccepted": false, + "rawText": "SELECT mean(\"used_percent\") AS \"used\" FROM \"telegraf\".\"autogen\".\"disk\" WHERE time > :dashboardTime: AND \"host\"=:host: GROUP BY time(:interval:), \"path\" FILL(null)", + "range": null, + "shifts": null + }, + "source": "", + "type": "influxql" + } + ], + "axes": { + "x": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + }, + "y": { + "bounds": [ + "", + "" + ], + "label": "percentage", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + }, + "y2": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + } + }, + "type": "line", + "colors": [ + { + "id": "919f0386-9439-4387-9a51-2a4243d4940d", + "type": "scale", + "hex": "#31C0F6", + "name": "Nineteen Eighty Four", + "value": "0" + }, + { + "id": "1e7840a4-2fcf-4882-9351-604877a9c432", + "type": "scale", + "hex": "#A500A5", + "name": "Nineteen Eighty Four", + "value": "0" + }, + { + "id": "a4944a5f-30f7-41b5-b1a4-d1b2f316c72b", + "type": "scale", + "hex": "#FF7E27", + "name": "Nineteen Eighty Four", + "value": "0" + } + ], + "legend": {}, + "tableOptions": { + "verticalTimeAxis": true, + "sortBy": { + "internalName": "disk.mean_used_percent", + "displayName": "used", + "visible": true + }, + "wrapping": "truncate", + "fixFirstColumn": false + }, + "fieldOptions": [ + { + "internalName": "time", + "displayName": "", + "visible": false + }, + { + "internalName": "device", + "displayName": "", + "visible": true + }, + { + "internalName": "disk.mean_used_percent", + "displayName": "used", + "visible": true + } + ], + "timeFormat": "MM/DD/YYYY HH:mm:ss", + "decimalPlaces": { + "isEnforced": true, + "digits": 2 + }, + "note": "To enable this graph, you will need to configure the Telegraf `disk` plugin. For more information, please visit the [Telegraf Disk plugin documentation](https://github.com/influxdata/telegraf/tree/master/plugins/inputs/disk).", + "noteVisibility": "showWhenNoData", + "links": { + "self": "/chronograf/v1/dashboards/3/cells/646c5054-f1d3-40f0-b563-cb5157355c98" + } + }, + { + "i": "a6f7ca44-4195-44b7-8f76-9dab50baba11", + "x": 9, + "y": 5, + "w": 3, + "h": 3, + "name": "Swap", + "queries": [ + { + "query": "SELECT mean(\"total\") AS \"total\", mean(\"used\") AS \"used\" FROM \"telegraf\".\"autogen\".\"swap\" WHERE time > :dashboardTime: AND \"host\"=:host: GROUP BY time(:interval:) FILL(null)", + "queryConfig": { + "database": "", + "measurement": "", + "retentionPolicy": "", + "fields": [], + "tags": {}, + "groupBy": { + "time": "", + "tags": [] + }, + "areTagsAccepted": false, + "rawText": "SELECT mean(\"total\") AS \"total\", mean(\"used\") AS \"used\" FROM \"telegraf\".\"autogen\".\"swap\" WHERE time > :dashboardTime: AND \"host\"=:host: GROUP BY time(:interval:) FILL(null)", + "range": null, + "shifts": null + }, + "source": "", + "type": "influxql" + } + ], + "axes": { + "x": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + }, + "y": { + "bounds": [ + "", + "" + ], + "label": "swap", + "prefix": "", + "suffix": "", + "base": "2", + "scale": "linear" + }, + "y2": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + } + }, + "type": "line", + "colors": [ + { + "id": "base", + "type": "scale", + "hex": "#31C0F6", + "name": "Nineteen Eighty Four", + "value": "0" + }, + { + "id": "9b56030d-b186-40b9-8d87-c911c962c882", + "type": "scale", + "hex": "#A500A5", + "name": "Nineteen Eighty Four", + "value": "0" + }, + { + "id": "a45aaa88-9e45-4a68-b4e8-61538cb0f023", + "type": "scale", + "hex": "#FF7E27", + "name": "Nineteen Eighty Four", + "value": "0" + } + ], + "legend": { + "type": "static", + "orientation": "bottom" + }, + "tableOptions": { + "verticalTimeAxis": true, + "sortBy": { + "internalName": "time", + "displayName": "", + "visible": true + }, + "wrapping": "truncate", + "fixFirstColumn": true + }, + "fieldOptions": [ + { + "internalName": "time", + "displayName": "", + "visible": true + } + ], + "timeFormat": "MM/DD/YYYY HH:mm:ss", + "decimalPlaces": { + "isEnforced": true, + "digits": 2 + }, + "note": "To enable this graph, you will need to configure the Telegraf `swap` plugin. For more information, please visit the [Telegraf Swap plugin documentation](https://github.com/influxdata/telegraf/tree/master/plugins/inputs/swap).", + "noteVisibility": "showWhenNoData", + "links": { + "self": "/chronograf/v1/dashboards/3/cells/a6f7ca44-4195-44b7-8f76-9dab50baba11" + } + }, + { + "i": "887c0e5b-b0a1-4981-9faa-ebd53b15690d", + "x": 4, + "y": 1, + "w": 2, + "h": 1, + "name": "System Load", + "queries": [ + { + "query": "SELECT mean(\"load1\") AS \"mean_load1\" FROM \"telegraf\".\"autogen\".\"system\" WHERE host=:host: AND time > :dashboardTime: GROUP BY time(:interval:) FILL(previous)", + "queryConfig": { + "database": "", + "measurement": "", + "retentionPolicy": "", + "fields": [], + "tags": {}, + "groupBy": { + "time": "", + "tags": [] + }, + "areTagsAccepted": false, + "rawText": "SELECT mean(\"load1\") AS \"mean_load1\" FROM \"telegraf\".\"autogen\".\"system\" WHERE host=:host: AND time > :dashboardTime: GROUP BY time(:interval:) FILL(previous)", + "range": null, + "shifts": null + }, + "source": "", + "type": "influxql" + } + ], + "axes": { + "x": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + }, + "y": { + "bounds": [ + "", + "" + ], + "label": "Load", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + }, + "y2": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + } + }, + "type": "single-stat", + "colors": [ + { + "id": "base", + "type": "text", + "hex": "#00C9FF", + "name": "laser", + "value": "-1000000000000000000" + } + ], + "legend": {}, + "tableOptions": { + "verticalTimeAxis": true, + "sortBy": { + "internalName": "time", + "displayName": "", + "visible": true + }, + "wrapping": "truncate", + "fixFirstColumn": true + }, + "fieldOptions": [ + { + "internalName": "time", + "displayName": "", + "visible": true + } + ], + "timeFormat": "MM/DD/YYYY HH:mm:ss", + "decimalPlaces": { + "isEnforced": true, + "digits": 2 + }, + "note": "To enable this graph, you will need to configure the Telegraf `system` plugin. For more information, please visit the [Telegraf System plugin documentation](https://github.com/influxdata/telegraf/tree/master/plugins/inputs/system).", + "noteVisibility": "showWhenNoData", + "links": { + "self": "/chronograf/v1/dashboards/3/cells/887c0e5b-b0a1-4981-9faa-ebd53b15690d" + } + }, + { + "i": "04aaf10d-8b71-4436-8149-f4ec51affb26", + "x": 3, + "y": 5, + "w": 3, + "h": 3, + "name": "Network", + "queries": [ + { + "query": "SELECT non_negative_derivative(max(\"bytes_recv\"), 1s) AS \"received\", non_negative_derivative(max(\"bytes_sent\"), 1s) AS \"sent\" FROM \"telegraf\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"host\" = :host: GROUP BY time(:interval:) FILL(null)", + "queryConfig": { + "database": "", + "measurement": "", + "retentionPolicy": "", + "fields": [], + "tags": {}, + "groupBy": { + "time": "", + "tags": [] + }, + "areTagsAccepted": false, + "rawText": "SELECT non_negative_derivative(max(\"bytes_recv\"), 1s) AS \"received\", non_negative_derivative(max(\"bytes_sent\"), 1s) AS \"sent\" FROM \"telegraf\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"host\" = :host: GROUP BY time(:interval:) FILL(null)", + "range": null, + "shifts": null + }, + "source": "", + "type": "influxql" + } + ], + "axes": { + "x": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + }, + "y": { + "bounds": [ + "", + "" + ], + "label": "Network", + "prefix": "", + "suffix": "B", + "base": "10", + "scale": "linear" + }, + "y2": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + } + }, + "type": "line", + "colors": [ + { + "id": "a98e3ce0-d794-4a05-9eef-9925caaf2883", + "type": "scale", + "hex": "#31C0F6", + "name": "Nineteen Eighty Four", + "value": "0" + }, + { + "id": "9b56030d-b186-40b9-8d87-c911c962c882", + "type": "scale", + "hex": "#A500A5", + "name": "Nineteen Eighty Four", + "value": "0" + }, + { + "id": "a45aaa88-9e45-4a68-b4e8-61538cb0f023", + "type": "scale", + "hex": "#FF7E27", + "name": "Nineteen Eighty Four", + "value": "0" + } + ], + "legend": { + "type": "static", + "orientation": "bottom" + }, + "tableOptions": { + "verticalTimeAxis": true, + "sortBy": { + "internalName": "time", + "displayName": "", + "visible": true + }, + "wrapping": "truncate", + "fixFirstColumn": true + }, + "fieldOptions": [ + { + "internalName": "time", + "displayName": "", + "visible": true + } + ], + "timeFormat": "MM/DD/YYYY HH:mm:ss", + "decimalPlaces": { + "isEnforced": true, + "digits": 2 + }, + "note": "To enable this graph, you will need to configure the Telegraf `net` plugin. For more information, please visit the [Telegraf Net plugin documentation](https://github.com/influxdata/telegraf/tree/master/plugins/inputs/net/NET_README.md).", + "noteVisibility": "showWhenNoData", + "links": { + "self": "/chronograf/v1/dashboards/3/cells/04aaf10d-8b71-4436-8149-f4ec51affb26" + } + }, + { + "i": "baa2954a-a658-416b-99a8-e869ceb7a3c9", + "x": 6, + "y": 1, + "w": 3, + "h": 1, + "name": "Total Memory", + "queries": [ + { + "query": "SELECT last(\"total\")/1024/1024/1024 AS \"last_total\" FROM \"telegraf\".\"autogen\".\"mem\" WHERE time > :dashboardTime: AND \"host\" = :host: FILL(null)", + "queryConfig": { + "database": "", + "measurement": "", + "retentionPolicy": "", + "fields": [], + "tags": {}, + "groupBy": { + "time": "", + "tags": [] + }, + "areTagsAccepted": false, + "rawText": "SELECT last(\"total\")/1024/1024/1024 AS \"last_total\" FROM \"telegraf\".\"autogen\".\"mem\" WHERE time > :dashboardTime: AND \"host\" = :host: FILL(null)", + "range": null, + "shifts": null + }, + "source": "", + "type": "influxql" + } + ], + "axes": { + "x": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + }, + "y": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": " GB", + "base": "10", + "scale": "linear" + }, + "y2": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + } + }, + "type": "single-stat", + "colors": [ + { + "id": "base", + "type": "text", + "hex": "#00C9FF", + "name": "laser", + "value": "-1000000000000000000" + } + ], + "legend": {}, + "tableOptions": { + "verticalTimeAxis": true, + "sortBy": { + "internalName": "time", + "displayName": "", + "visible": true + }, + "wrapping": "truncate", + "fixFirstColumn": true + }, + "fieldOptions": [ + { + "internalName": "time", + "displayName": "", + "visible": true + } + ], + "timeFormat": "MM/DD/YYYY HH:mm:ss", + "decimalPlaces": { + "isEnforced": true, + "digits": 2 + }, + "note": "To enable this graph, you will need to configure the Telegraf `mem` plugin. For more information, please visit the [Telegraf Mem plugin documentation](https://github.com/influxdata/telegraf/tree/master/plugins/inputs/mem).", + "noteVisibility": "showWhenNoData", + "links": { + "self": "/chronograf/v1/dashboards/3/cells/baa2954a-a658-416b-99a8-e869ceb7a3c9" + } + }, + { + "i": "956f26d5-6d4e-4b3e-9cb2-59c59e202f47", + "x": 0, + "y": 1, + "w": 2, + "h": 1, + "name": "System Uptime", + "queries": [ + { + "query": "SELECT last(\"uptime\")/86400 AS \"mean_uptime\" FROM \"telegraf\".\"autogen\".\"system\" WHERE time > :dashboardTime: AND \"host\" = :host: FILL(previous)", + "queryConfig": { + "database": "", + "measurement": "", + "retentionPolicy": "", + "fields": [], + "tags": {}, + "groupBy": { + "time": "", + "tags": [] + }, + "areTagsAccepted": false, + "rawText": "SELECT last(\"uptime\")/86400 AS \"mean_uptime\" FROM \"telegraf\".\"autogen\".\"system\" WHERE time > :dashboardTime: AND \"host\" = :host: FILL(previous)", + "range": null, + "shifts": null + }, + "source": "", + "type": "influxql" + } + ], + "axes": { + "x": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + }, + "y": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": " days", + "base": "10", + "scale": "linear" + }, + "y2": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + } + }, + "type": "single-stat", + "colors": [ + { + "id": "base", + "type": "text", + "hex": "#00C9FF", + "name": "laser", + "value": "-1000000000000000000" + } + ], + "legend": { + "type": "static", + "orientation": "bottom" + }, + "tableOptions": { + "verticalTimeAxis": true, + "sortBy": { + "internalName": "time", + "displayName": "", + "visible": true + }, + "wrapping": "truncate", + "fixFirstColumn": true + }, + "fieldOptions": [ + { + "internalName": "time", + "displayName": "", + "visible": true + }, + { + "internalName": "apache.mean_Uptime", + "displayName": "", + "visible": true + } + ], + "timeFormat": "MM/DD/YYYY HH:mm:ss", + "decimalPlaces": { + "isEnforced": true, + "digits": 1 + }, + "note": "To enable this graph, you will need to configure the Telegraf `system` plugin. For more information, please visit the [Telegraf System plugin documentation](https://github.com/influxdata/telegraf/tree/master/plugins/inputs/system).", + "noteVisibility": "showWhenNoData", + "links": { + "self": "/chronograf/v1/dashboards/3/cells/956f26d5-6d4e-4b3e-9cb2-59c59e202f47" + } + }, + { + "i": "b8278369-7970-446e-aa27-65ec1a9ec80d", + "x": 0, + "y": 5, + "w": 3, + "h": 3, + "name": "I/O", + "queries": [ + { + "query": "SELECT non_negative_derivative(max(\"read_bytes\"),1s) AS \"read bytes\", non_negative_derivative(max(\"write_bytes\"),1s) AS \"write bytes\" FROM \"telegraf\".\"autogen\".\"diskio\" WHERE time > :dashboardTime: AND \"host\" = :host: GROUP BY time(:interval:) FILL(null)", + "queryConfig": { + "database": "", + "measurement": "", + "retentionPolicy": "", + "fields": [], + "tags": {}, + "groupBy": { + "time": "", + "tags": [] + }, + "areTagsAccepted": false, + "rawText": "SELECT non_negative_derivative(max(\"read_bytes\"),1s) AS \"read bytes\", non_negative_derivative(max(\"write_bytes\"),1s) AS \"write bytes\" FROM \"telegraf\".\"autogen\".\"diskio\" WHERE time > :dashboardTime: AND \"host\" = :host: GROUP BY time(:interval:) FILL(null)", + "range": null, + "shifts": null + }, + "source": "", + "type": "influxql" + } + ], + "axes": { + "x": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + }, + "y": { + "bounds": [ + "", + "" + ], + "label": "I/O read/write", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + }, + "y2": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + } + }, + "type": "line", + "colors": [ + { + "id": "a98e3ce0-d794-4a05-9eef-9925caaf2883", + "type": "scale", + "hex": "#31C0F6", + "name": "Nineteen Eighty Four", + "value": "0" + }, + { + "id": "9b56030d-b186-40b9-8d87-c911c962c882", + "type": "scale", + "hex": "#A500A5", + "name": "Nineteen Eighty Four", + "value": "0" + }, + { + "id": "a45aaa88-9e45-4a68-b4e8-61538cb0f023", + "type": "scale", + "hex": "#FF7E27", + "name": "Nineteen Eighty Four", + "value": "0" + } + ], + "legend": { + "type": "static", + "orientation": "bottom" + }, + "tableOptions": { + "verticalTimeAxis": true, + "sortBy": { + "internalName": "time", + "displayName": "", + "visible": true + }, + "wrapping": "truncate", + "fixFirstColumn": true + }, + "fieldOptions": [ + { + "internalName": "time", + "displayName": "", + "visible": true + } + ], + "timeFormat": "MM/DD/YYYY HH:mm:ss", + "decimalPlaces": { + "isEnforced": true, + "digits": 2 + }, + "note": "To enable this graph, you will need to configure the Telegraf `diskio` plugin. For more information, please visit the [Telegraf DiskIO plugin documentation](https://github.com/influxdata/telegraf/tree/master/plugins/inputs/diskio).", + "noteVisibility": "showWhenNoData", + "links": { + "self": "/chronograf/v1/dashboards/3/cells/b8278369-7970-446e-aa27-65ec1a9ec80d" + } + }, + { + "i": "86e0b8e5-9ab8-4bd6-9429-7fdb0a1488f9", + "x": 6, + "y": 2, + "w": 3, + "h": 3, + "name": "System Load", + "queries": [ + { + "query": "SELECT mean(\"load1\") AS \"load1\", mean(\"load5\") AS \"load5\", mean(\"load15\") AS \"load15\" FROM \"telegraf\".\"autogen\".\"system\" WHERE time > :dashboardTime: AND \"host\" = :host: GROUP BY time(:interval:) FILL(null)", + "queryConfig": { + "database": "", + "measurement": "", + "retentionPolicy": "", + "fields": [], + "tags": {}, + "groupBy": { + "time": "", + "tags": [] + }, + "areTagsAccepted": false, + "rawText": "SELECT mean(\"load1\") AS \"load1\", mean(\"load5\") AS \"load5\", mean(\"load15\") AS \"load15\" FROM \"telegraf\".\"autogen\".\"system\" WHERE time > :dashboardTime: AND \"host\" = :host: GROUP BY time(:interval:) FILL(null)", + "range": null, + "shifts": null + }, + "source": "", + "type": "influxql" + } + ], + "axes": { + "x": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + }, + "y": { + "bounds": [ + "", + "" + ], + "label": "Load", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + }, + "y2": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + } + }, + "type": "line", + "colors": [ + { + "id": "a98e3ce0-d794-4a05-9eef-9925caaf2883", + "type": "scale", + "hex": "#31C0F6", + "name": "Nineteen Eighty Four", + "value": "0" + }, + { + "id": "9b56030d-b186-40b9-8d87-c911c962c882", + "type": "scale", + "hex": "#A500A5", + "name": "Nineteen Eighty Four", + "value": "0" + }, + { + "id": "a45aaa88-9e45-4a68-b4e8-61538cb0f023", + "type": "scale", + "hex": "#FF7E27", + "name": "Nineteen Eighty Four", + "value": "0" + } + ], + "legend": { + "type": "static", + "orientation": "bottom" + }, + "tableOptions": { + "verticalTimeAxis": true, + "sortBy": { + "internalName": "time", + "displayName": "", + "visible": true + }, + "wrapping": "truncate", + "fixFirstColumn": true + }, + "fieldOptions": [ + { + "internalName": "time", + "displayName": "", + "visible": true + } + ], + "timeFormat": "MM/DD/YYYY HH:mm:ss", + "decimalPlaces": { + "isEnforced": true, + "digits": 2 + }, + "note": "To enable this graph, you will need to configure the Telegraf `system` plugin. For more information, please visit the [Telegraf System plugin documentation](https://github.com/influxdata/telegraf/tree/master/plugins/inputs/system).", + "noteVisibility": "showWhenNoData", + "links": { + "self": "/chronograf/v1/dashboards/3/cells/86e0b8e5-9ab8-4bd6-9429-7fdb0a1488f9" + } + }, + { + "i": "102f49b8-52f9-44d4-b97b-60a7919ff9ec", + "x": 2, + "y": 1, + "w": 2, + "h": 1, + "name": "nCPU", + "queries": [ + { + "query": "SELECT max(\"n_cpus\") AS \"mean_n_cpus\" FROM \"telegraf\".\"autogen\".\"system\" WHERE time > :dashboardTime: AND \"host\" = :host: fill(previous)", + "queryConfig": { + "database": "", + "measurement": "", + "retentionPolicy": "", + "fields": [], + "tags": {}, + "groupBy": { + "time": "", + "tags": [] + }, + "areTagsAccepted": false, + "rawText": "SELECT max(\"n_cpus\") AS \"mean_n_cpus\" FROM \"telegraf\".\"autogen\".\"system\" WHERE time > :dashboardTime: AND \"host\" = :host: fill(previous)", + "range": null, + "shifts": null + }, + "source": "", + "type": "influxql" + } + ], + "axes": { + "x": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + }, + "y": { + "bounds": [ + "", + "" + ], + "label": "nCPU", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + }, + "y2": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + } + }, + "type": "single-stat", + "colors": [ + { + "id": "base", + "type": "text", + "hex": "#00C9FF", + "name": "laser", + "value": "-1000000000000000000" + } + ], + "legend": {}, + "tableOptions": { + "verticalTimeAxis": true, + "sortBy": { + "internalName": "time", + "displayName": "", + "visible": true + }, + "wrapping": "truncate", + "fixFirstColumn": true + }, + "fieldOptions": [ + { + "internalName": "time", + "displayName": "", + "visible": true + } + ], + "timeFormat": "MM/DD/YYYY HH:mm:ss", + "decimalPlaces": { + "isEnforced": false, + "digits": 2 + }, + "note": "To enable this graph, you will need to configure the Telegraf `system` plugin. For more information, please visit the [Telegraf System plugin documentation](https://github.com/influxdata/telegraf/tree/master/plugins/inputs/system).", + "noteVisibility": "showWhenNoData", + "links": { + "self": "/chronograf/v1/dashboards/3/cells/102f49b8-52f9-44d4-b97b-60a7919ff9ec" + } + }, + { + "i": "3c9894f7-f71d-4875-bf5e-30e9723a7b81", + "x": 9, + "y": 1, + "w": 3, + "h": 4, + "name": "Memory usage", + "queries": [ + { + "query": "SELECT mean(\"used_percent\") AS \"last_used_percent\" FROM \"telegraf\".\"autogen\".\"mem\" WHERE time > :dashboardTime: AND \"host\"=:host: GROUP BY time(:interval:) FILL(previous)", + "queryConfig": { + "database": "", + "measurement": "", + "retentionPolicy": "", + "fields": [], + "tags": {}, + "groupBy": { + "time": "", + "tags": [] + }, + "areTagsAccepted": false, + "rawText": "SELECT mean(\"used_percent\") AS \"last_used_percent\" FROM \"telegraf\".\"autogen\".\"mem\" WHERE time > :dashboardTime: AND \"host\"=:host: GROUP BY time(:interval:) FILL(previous)", + "range": null, + "shifts": null + }, + "source": "", + "type": "influxql" + } + ], + "axes": { + "x": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + }, + "y": { + "bounds": [ + "", + "" + ], + "label": "Memory used %", + "prefix": "", + "suffix": " %", + "base": "10", + "scale": "linear" + }, + "y2": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + } + }, + "type": "line-plus-single-stat", + "colors": [ + { + "id": "base", + "type": "scale", + "hex": "#8F8AF4", + "name": "Do Androids Dream of Electric Sheep?", + "value": "0" + }, + { + "id": "8314ff20-1158-4910-85fa-c880ca805611", + "type": "scale", + "hex": "#A51414", + "name": "Do Androids Dream of Electric Sheep?", + "value": "0" + }, + { + "id": "84b07d37-6abe-461d-9e1e-fefbaa696368", + "type": "scale", + "hex": "#F4CF31", + "name": "Do Androids Dream of Electric Sheep?", + "value": "0" + } + ], + "legend": {}, + "tableOptions": { + "verticalTimeAxis": true, + "sortBy": { + "internalName": "time", + "displayName": "", + "visible": true + }, + "wrapping": "truncate", + "fixFirstColumn": true + }, + "fieldOptions": [ + { + "internalName": "time", + "displayName": "", + "visible": true + } + ], + "timeFormat": "MM/DD/YYYY HH:mm:ss", + "decimalPlaces": { + "isEnforced": true, + "digits": 0 + }, + "note": "To enable this graph, you will need to configure the Telegraf `mem` plugin. For more information, please visit the [Telegraf Mem plugin documentation](https://github.com/influxdata/telegraf/tree/master/plugins/inputs/mem).", + "noteVisibility": "showWhenNoData", + "links": { + "self": "/chronograf/v1/dashboards/3/cells/3c9894f7-f71d-4875-bf5e-30e9723a7b81" + } + } + ], + "templates": [ + { + "tempVar": ":host:", + "values": [ + { + "value": "k8s", + "type": "influxql", + "selected": true + } + ], + "id": "ada9a96d-8dd8-4dbb-9be1-64418957db4e", + "type": "tagValues", + "label": "", + "query": { + "influxql": "SHOW TAG VALUES ON :database: FROM :measurement: WITH KEY=:tagKey:", + "db": "telegraf", + "measurement": "system", + "tagKey": "host", + "fieldKey": "" + }, + "sourceID": "5000", + "links": { + "self": "/chronograf/v1/dashboards/3/templates/ada9a96d-8dd8-4dbb-9be1-64418957db4e" + } + } + ], + "name": "System", + "organization": "default", + "links": { + "self": "/chronograf/v1/dashboards/3", + "cells": "/chronograf/v1/dashboards/3/cells", + "templates": "/chronograf/v1/dashboards/3/templates" + } + } +} \ No newline at end of file diff --git a/terraform/k8sapps/resources/chronograf/dashboards/4_net_interface_metric_explorer.dashboard b/terraform/k8sapps/resources/chronograf/dashboards/4_net_interface_metric_explorer.dashboard new file mode 100644 index 0000000..a306424 --- /dev/null +++ b/terraform/k8sapps/resources/chronograf/dashboards/4_net_interface_metric_explorer.dashboard @@ -0,0 +1,2789 @@ +{ + "meta": { + "chronografVersion": "1.10.1", + "sources": { + "5000": { + "name": "internal", + "link": "/chronograf/v1/sources/5000" + } + } + }, + "dashboard": { + "id": "4", + "cells": [ + { + "i": "58c98eda-6241-4299-a5ba-96adbe712a6c", + "x": 6, + "y": 4, + "w": 6, + "h": 3, + "name": ":host_2: - :interface_2: - :metric_2b:", + "queries": [ + { + "query": "SELECT non_negative_derivative(last(:metric_2b:),1s) AS :metric_2b: FROM \"telegraf\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"host\"=':host_2:' AND \"interface\"=':interface_2:' GROUP BY time(:interval:) FILL(null)", + "queryConfig": { + "database": "", + "measurement": "", + "retentionPolicy": "", + "fields": [], + "tags": {}, + "groupBy": { + "time": "", + "tags": [] + }, + "areTagsAccepted": false, + "rawText": "SELECT non_negative_derivative(last(:metric_2b:),1s) AS :metric_2b: FROM \"telegraf\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"host\"=':host_2:' AND \"interface\"=':interface_2:' GROUP BY time(:interval:) FILL(null)", + "range": null, + "shifts": null + }, + "source": "", + "type": "influxql" + } + ], + "axes": { + "x": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + }, + "y": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "/s", + "base": "10", + "scale": "linear" + }, + "y2": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + } + }, + "type": "line", + "colors": [ + { + "id": "52ceec60-d336-4e19-84d6-ac1c0ed121c0", + "type": "scale", + "hex": "#DA6FF1", + "name": "Ectoplasm", + "value": "0" + }, + { + "id": "0ef5581c-4241-455d-b868-34f6db962254", + "type": "scale", + "hex": "#00717A", + "name": "Ectoplasm", + "value": "0" + }, + { + "id": "3932ff33-54a7-42da-bb61-6e6966b1c9aa", + "type": "scale", + "hex": "#ACFF76", + "name": "Ectoplasm", + "value": "0" + } + ], + "legend": {}, + "tableOptions": { + "verticalTimeAxis": true, + "sortBy": { + "internalName": "time", + "displayName": "", + "visible": true + }, + "wrapping": "truncate", + "fixFirstColumn": true + }, + "fieldOptions": [ + { + "internalName": "time", + "displayName": "", + "visible": true + } + ], + "timeFormat": "MM/DD/YYYY HH:mm:ss", + "decimalPlaces": { + "isEnforced": true, + "digits": 2 + }, + "note": "", + "noteVisibility": "default", + "links": { + "self": "/chronograf/v1/dashboards/4/cells/58c98eda-6241-4299-a5ba-96adbe712a6c" + } + }, + { + "i": "9e53a92e-7473-485c-aead-d8a290541b20", + "x": 6, + "y": 1, + "w": 6, + "h": 3, + "name": ":host_2: - :interface_2: - :metric_2a:", + "queries": [ + { + "query": "SELECT non_negative_derivative(last(:metric_2a:),1s) AS :metric_2a: FROM \"telegraf\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"host\"=':host_2:' AND \"interface\"=':interface_2:' GROUP BY time(:interval:) FILL(null)", + "queryConfig": { + "database": "", + "measurement": "", + "retentionPolicy": "", + "fields": [], + "tags": {}, + "groupBy": { + "time": "", + "tags": [] + }, + "areTagsAccepted": false, + "rawText": "SELECT non_negative_derivative(last(:metric_2a:),1s) AS :metric_2a: FROM \"telegraf\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"host\"=':host_2:' AND \"interface\"=':interface_2:' GROUP BY time(:interval:) FILL(null)", + "range": null, + "shifts": null + }, + "source": "", + "type": "influxql" + } + ], + "axes": { + "x": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + }, + "y": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "/s", + "base": "10", + "scale": "linear" + }, + "y2": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + } + }, + "type": "line", + "colors": [ + { + "id": "52ceec60-d336-4e19-84d6-ac1c0ed121c0", + "type": "scale", + "hex": "#DA6FF1", + "name": "Ectoplasm", + "value": "0" + }, + { + "id": "0ef5581c-4241-455d-b868-34f6db962254", + "type": "scale", + "hex": "#00717A", + "name": "Ectoplasm", + "value": "0" + }, + { + "id": "3932ff33-54a7-42da-bb61-6e6966b1c9aa", + "type": "scale", + "hex": "#ACFF76", + "name": "Ectoplasm", + "value": "0" + } + ], + "legend": {}, + "tableOptions": { + "verticalTimeAxis": true, + "sortBy": { + "internalName": "time", + "displayName": "", + "visible": true + }, + "wrapping": "truncate", + "fixFirstColumn": true + }, + "fieldOptions": [ + { + "internalName": "time", + "displayName": "", + "visible": true + } + ], + "timeFormat": "MM/DD/YYYY HH:mm:ss", + "decimalPlaces": { + "isEnforced": true, + "digits": 2 + }, + "note": "", + "noteVisibility": "default", + "links": { + "self": "/chronograf/v1/dashboards/4/cells/9e53a92e-7473-485c-aead-d8a290541b20" + } + }, + { + "i": "d8b04f29-a104-4c74-863c-d346ccc0fae8", + "x": 9, + "y": 0, + "w": 3, + "h": 1, + "name": ":host_2: - :interface_2: - current :metric_2b:", + "queries": [ + { + "query": "SELECT non_negative_derivative(last(:metric_2b:),1s) FROM \"telegraf\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"host\"=':host_2:' AND \"interface\"=':interface_2:' GROUP BY time(:interval:) FILL(null)", + "queryConfig": { + "database": "", + "measurement": "", + "retentionPolicy": "", + "fields": [], + "tags": {}, + "groupBy": { + "time": "", + "tags": [] + }, + "areTagsAccepted": false, + "rawText": "SELECT non_negative_derivative(last(:metric_2b:),1s) FROM \"telegraf\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"host\"=':host_2:' AND \"interface\"=':interface_2:' GROUP BY time(:interval:) FILL(null)", + "range": null, + "shifts": null + }, + "source": "", + "type": "influxql" + } + ], + "axes": { + "x": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + }, + "y": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "/s", + "base": "10", + "scale": "linear" + }, + "y2": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + } + }, + "type": "single-stat", + "colors": [ + { + "id": "base", + "type": "text", + "hex": "#ffffff", + "name": "white", + "value": "-1000000000000000000" + } + ], + "legend": {}, + "tableOptions": { + "verticalTimeAxis": true, + "sortBy": { + "internalName": "time", + "displayName": "", + "visible": true + }, + "wrapping": "truncate", + "fixFirstColumn": true + }, + "fieldOptions": [ + { + "internalName": "time", + "displayName": "", + "visible": true + } + ], + "timeFormat": "MM/DD/YYYY HH:mm:ss", + "decimalPlaces": { + "isEnforced": true, + "digits": 2 + }, + "note": "", + "noteVisibility": "default", + "links": { + "self": "/chronograf/v1/dashboards/4/cells/d8b04f29-a104-4c74-863c-d346ccc0fae8" + } + }, + { + "i": "8927ce27-daec-42e7-8be4-10e7d0895c9b", + "x": 6, + "y": 0, + "w": 3, + "h": 1, + "name": ":host_2: - :interface_2: - current :metric_2a:", + "queries": [ + { + "query": "SELECT non_negative_derivative(last(:metric_2a:),1s) FROM \"telegraf\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"host\"=':host_2:' AND \"interface\"=':interface_2:' GROUP BY time(:interval:) FILL(null)", + "queryConfig": { + "database": "", + "measurement": "", + "retentionPolicy": "", + "fields": [], + "tags": {}, + "groupBy": { + "time": "", + "tags": [] + }, + "areTagsAccepted": false, + "rawText": "SELECT non_negative_derivative(last(:metric_2a:),1s) FROM \"telegraf\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"host\"=':host_2:' AND \"interface\"=':interface_2:' GROUP BY time(:interval:) FILL(null)", + "range": null, + "shifts": null + }, + "source": "", + "type": "influxql" + } + ], + "axes": { + "x": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + }, + "y": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "/s", + "base": "10", + "scale": "linear" + }, + "y2": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + } + }, + "type": "single-stat", + "colors": [ + { + "id": "base", + "type": "text", + "hex": "#ffffff", + "name": "white", + "value": "-1000000000000000000" + } + ], + "legend": {}, + "tableOptions": { + "verticalTimeAxis": true, + "sortBy": { + "internalName": "time", + "displayName": "", + "visible": true + }, + "wrapping": "truncate", + "fixFirstColumn": true + }, + "fieldOptions": [ + { + "internalName": "time", + "displayName": "", + "visible": true + } + ], + "timeFormat": "MM/DD/YYYY HH:mm:ss", + "decimalPlaces": { + "isEnforced": true, + "digits": 2 + }, + "note": "", + "noteVisibility": "default", + "links": { + "self": "/chronograf/v1/dashboards/4/cells/8927ce27-daec-42e7-8be4-10e7d0895c9b" + } + }, + { + "i": "cd77b1a3-cffb-48e6-89cf-ff3195a98abf", + "x": 3, + "y": 0, + "w": 3, + "h": 1, + "name": ":host_1: - :interface_1: - current :metric_1b:", + "queries": [ + { + "query": "SELECT non_negative_derivative(last(:metric_1b:),1s) FROM \"telegraf\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"host\"=':host_1:' AND \"interface\"=':interface_1:' GROUP BY time(:interval:) FILL(null)", + "queryConfig": { + "database": "", + "measurement": "", + "retentionPolicy": "", + "fields": [], + "tags": {}, + "groupBy": { + "time": "", + "tags": [] + }, + "areTagsAccepted": false, + "rawText": "SELECT non_negative_derivative(last(:metric_1b:),1s) FROM \"telegraf\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"host\"=':host_1:' AND \"interface\"=':interface_1:' GROUP BY time(:interval:) FILL(null)", + "range": null, + "shifts": null + }, + "source": "", + "type": "influxql" + } + ], + "axes": { + "x": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + }, + "y": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "/s", + "base": "10", + "scale": "linear" + }, + "y2": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + } + }, + "type": "single-stat", + "colors": [ + { + "id": "base", + "type": "text", + "hex": "#ffffff", + "name": "white", + "value": "-1000000000000000000" + } + ], + "legend": {}, + "tableOptions": { + "verticalTimeAxis": true, + "sortBy": { + "internalName": "time", + "displayName": "", + "visible": true + }, + "wrapping": "truncate", + "fixFirstColumn": true + }, + "fieldOptions": [ + { + "internalName": "time", + "displayName": "", + "visible": true + } + ], + "timeFormat": "MM/DD/YYYY HH:mm:ss", + "decimalPlaces": { + "isEnforced": true, + "digits": 2 + }, + "note": "", + "noteVisibility": "default", + "links": { + "self": "/chronograf/v1/dashboards/4/cells/cd77b1a3-cffb-48e6-89cf-ff3195a98abf" + } + }, + { + "i": "509a72e9-78c4-4f06-9ddc-c6108b1cd150", + "x": 0, + "y": 0, + "w": 3, + "h": 1, + "name": ":host_1: - :interface_1: - current :metric_1a:", + "queries": [ + { + "query": "SELECT non_negative_derivative(last(:metric_1a:),1s) FROM \"telegraf\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"host\"=':host_1:' AND \"interface\"=':interface_1:' GROUP BY time(:interval:) FILL(null)", + "queryConfig": { + "database": "", + "measurement": "", + "retentionPolicy": "", + "fields": [], + "tags": {}, + "groupBy": { + "time": "", + "tags": [] + }, + "areTagsAccepted": false, + "rawText": "SELECT non_negative_derivative(last(:metric_1a:),1s) FROM \"telegraf\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"host\"=':host_1:' AND \"interface\"=':interface_1:' GROUP BY time(:interval:) FILL(null)", + "range": null, + "shifts": null + }, + "source": "", + "type": "influxql" + } + ], + "axes": { + "x": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + }, + "y": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "/s", + "base": "10", + "scale": "linear" + }, + "y2": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + } + }, + "type": "single-stat", + "colors": [ + { + "id": "base", + "type": "text", + "hex": "#ffffff", + "name": "white", + "value": "-1000000000000000000" + } + ], + "legend": {}, + "tableOptions": { + "verticalTimeAxis": true, + "sortBy": { + "internalName": "time", + "displayName": "", + "visible": true + }, + "wrapping": "truncate", + "fixFirstColumn": true + }, + "fieldOptions": [ + { + "internalName": "time", + "displayName": "", + "visible": true + } + ], + "timeFormat": "MM/DD/YYYY HH:mm:ss", + "decimalPlaces": { + "isEnforced": true, + "digits": 2 + }, + "note": "", + "noteVisibility": "default", + "links": { + "self": "/chronograf/v1/dashboards/4/cells/509a72e9-78c4-4f06-9ddc-c6108b1cd150" + } + }, + { + "i": "2847d29b-bae4-4f51-8ef8-f005a79d4373", + "x": 0, + "y": 4, + "w": 6, + "h": 3, + "name": ":host_1: - :interface_1: - :metric_1b:", + "queries": [ + { + "query": "SELECT non_negative_derivative(last(:metric_1b:),1s) AS :metric_1b: FROM \"telegraf\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"host\"=':host_1:' AND \"interface\"=':interface_1:' GROUP BY time(:interval:) FILL(null)", + "queryConfig": { + "database": "", + "measurement": "", + "retentionPolicy": "", + "fields": [], + "tags": {}, + "groupBy": { + "time": "", + "tags": [] + }, + "areTagsAccepted": false, + "rawText": "SELECT non_negative_derivative(last(:metric_1b:),1s) AS :metric_1b: FROM \"telegraf\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"host\"=':host_1:' AND \"interface\"=':interface_1:' GROUP BY time(:interval:) FILL(null)", + "range": null, + "shifts": null + }, + "source": "", + "type": "influxql" + } + ], + "axes": { + "x": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + }, + "y": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "/s", + "base": "10", + "scale": "linear" + }, + "y2": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + } + }, + "type": "line", + "colors": [ + { + "id": "52ceec60-d336-4e19-84d6-ac1c0ed121c0", + "type": "scale", + "hex": "#DA6FF1", + "name": "Ectoplasm", + "value": "0" + }, + { + "id": "0ef5581c-4241-455d-b868-34f6db962254", + "type": "scale", + "hex": "#00717A", + "name": "Ectoplasm", + "value": "0" + }, + { + "id": "3932ff33-54a7-42da-bb61-6e6966b1c9aa", + "type": "scale", + "hex": "#ACFF76", + "name": "Ectoplasm", + "value": "0" + } + ], + "legend": {}, + "tableOptions": { + "verticalTimeAxis": true, + "sortBy": { + "internalName": "time", + "displayName": "", + "visible": true + }, + "wrapping": "truncate", + "fixFirstColumn": true + }, + "fieldOptions": [ + { + "internalName": "time", + "displayName": "", + "visible": true + } + ], + "timeFormat": "MM/DD/YYYY HH:mm:ss", + "decimalPlaces": { + "isEnforced": true, + "digits": 2 + }, + "note": "", + "noteVisibility": "default", + "links": { + "self": "/chronograf/v1/dashboards/4/cells/2847d29b-bae4-4f51-8ef8-f005a79d4373" + } + }, + { + "i": "c62e5a20-621b-446c-9a9d-f48552f44c2b", + "x": 0, + "y": 1, + "w": 6, + "h": 3, + "name": ":host_1: - :interface_1: - :metric_1a:", + "queries": [ + { + "query": "SELECT non_negative_derivative(last(:metric_1a:),1s) AS :metric_1a: FROM \"telegraf\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"host\"=':host_1:' AND \"interface\"=':interface_1:' GROUP BY time(:interval:) FILL(null)", + "queryConfig": { + "database": "", + "measurement": "", + "retentionPolicy": "", + "fields": [], + "tags": {}, + "groupBy": { + "time": "", + "tags": [] + }, + "areTagsAccepted": false, + "rawText": "SELECT non_negative_derivative(last(:metric_1a:),1s) AS :metric_1a: FROM \"telegraf\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"host\"=':host_1:' AND \"interface\"=':interface_1:' GROUP BY time(:interval:) FILL(null)", + "range": null, + "shifts": null + }, + "source": "", + "type": "influxql" + } + ], + "axes": { + "x": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + }, + "y": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "/s", + "base": "10", + "scale": "linear" + }, + "y2": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + } + }, + "type": "line", + "colors": [ + { + "id": "52ceec60-d336-4e19-84d6-ac1c0ed121c0", + "type": "scale", + "hex": "#DA6FF1", + "name": "Ectoplasm", + "value": "0" + }, + { + "id": "0ef5581c-4241-455d-b868-34f6db962254", + "type": "scale", + "hex": "#00717A", + "name": "Ectoplasm", + "value": "0" + }, + { + "id": "3932ff33-54a7-42da-bb61-6e6966b1c9aa", + "type": "scale", + "hex": "#ACFF76", + "name": "Ectoplasm", + "value": "0" + } + ], + "legend": {}, + "tableOptions": { + "verticalTimeAxis": true, + "sortBy": { + "internalName": "time", + "displayName": "", + "visible": true + }, + "wrapping": "truncate", + "fixFirstColumn": true + }, + "fieldOptions": [ + { + "internalName": "time", + "displayName": "", + "visible": true + } + ], + "timeFormat": "MM/DD/YYYY HH:mm:ss", + "decimalPlaces": { + "isEnforced": true, + "digits": 2 + }, + "note": "", + "noteVisibility": "default", + "links": { + "self": "/chronograf/v1/dashboards/4/cells/c62e5a20-621b-446c-9a9d-f48552f44c2b" + } + } + ], + "templates": [ + { + "tempVar": ":host_1:", + "values": [ + { + "value": "k8s", + "type": "influxql", + "selected": true + } + ], + "id": "2f052195-a0cb-414c-9a4f-ee542a362ae4", + "type": "influxql", + "label": "", + "query": { + "influxql": "SHOW TAG VALUES ON \"telegraf\" FROM \"net\" WITH KEY=\"host\"", + "measurement": "", + "tagKey": "", + "fieldKey": "" + }, + "sourceID": "5000", + "links": { + "self": "/chronograf/v1/dashboards/4/templates/2f052195-a0cb-414c-9a4f-ee542a362ae4" + } + }, + { + "tempVar": ":interface_1:", + "values": [ + { + "value": "eth0", + "type": "influxql", + "selected": true + } + ], + "id": "a56477ab-cfa7-46a5-b4b6-49ec464169a7", + "type": "influxql", + "label": "", + "query": { + "influxql": "SHOW TAG VALUES ON \"telegraf\" FROM \"net\" WITH KEY=\"interface\" WHERE \"host\"=':host_1:'", + "measurement": "", + "tagKey": "", + "fieldKey": "" + }, + "sourceID": "5000", + "links": { + "self": "/chronograf/v1/dashboards/4/templates/a56477ab-cfa7-46a5-b4b6-49ec464169a7" + } + }, + { + "tempVar": ":metric_1a:", + "values": [ + { + "value": "bytes_recv", + "type": "influxql", + "selected": true + }, + { + "value": "bytes_sent", + "type": "influxql", + "selected": true + }, + { + "value": "drop_in", + "type": "influxql", + "selected": true + }, + { + "value": "drop_out", + "type": "influxql", + "selected": true + }, + { + "value": "err_in", + "type": "influxql", + "selected": true + }, + { + "value": "err_out", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_inaddrmaskreps", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_inaddrmasks", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_incsumerrors", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_indestunreachs", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_inechoreps", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_inechos", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_inerrors", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_inmsgs", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_inparmprobs", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_inredirects", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_insrcquenchs", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_intimeexcds", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_intimestampreps", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_intimestamps", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_outaddrmaskreps", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_outaddrmasks", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_outdestunreachs", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_outechoreps", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_outechos", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_outerrors", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_outmsgs", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_outparmprobs", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_outredirects", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_outsrcquenchs", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_outtimeexcds", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_outtimestampreps", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_outtimestamps", + "type": "influxql", + "selected": true + }, + { + "value": "ip_defaultttl", + "type": "influxql", + "selected": true + }, + { + "value": "ip_forwarding", + "type": "influxql", + "selected": true + }, + { + "value": "ip_forwdatagrams", + "type": "influxql", + "selected": true + }, + { + "value": "ip_fragcreates", + "type": "influxql", + "selected": true + }, + { + "value": "ip_fragfails", + "type": "influxql", + "selected": true + }, + { + "value": "ip_fragoks", + "type": "influxql", + "selected": true + }, + { + "value": "ip_inaddrerrors", + "type": "influxql", + "selected": true + }, + { + "value": "ip_indelivers", + "type": "influxql", + "selected": true + }, + { + "value": "ip_indiscards", + "type": "influxql", + "selected": true + }, + { + "value": "ip_inhdrerrors", + "type": "influxql", + "selected": true + }, + { + "value": "ip_inreceives", + "type": "influxql", + "selected": true + }, + { + "value": "ip_inunknownprotos", + "type": "influxql", + "selected": true + }, + { + "value": "ip_outdiscards", + "type": "influxql", + "selected": true + }, + { + "value": "ip_outnoroutes", + "type": "influxql", + "selected": true + }, + { + "value": "ip_outrequests", + "type": "influxql", + "selected": true + }, + { + "value": "ip_reasmfails", + "type": "influxql", + "selected": true + }, + { + "value": "ip_reasmoks", + "type": "influxql", + "selected": true + }, + { + "value": "ip_reasmreqds", + "type": "influxql", + "selected": true + }, + { + "value": "ip_reasmtimeout", + "type": "influxql", + "selected": true + }, + { + "value": "packets_recv", + "type": "influxql", + "selected": true + }, + { + "value": "packets_sent", + "type": "influxql", + "selected": true + }, + { + "value": "speed", + "type": "influxql", + "selected": true + }, + { + "value": "tcp_activeopens", + "type": "influxql", + "selected": true + }, + { + "value": "tcp_attemptfails", + "type": "influxql", + "selected": true + }, + { + "value": "tcp_currestab", + "type": "influxql", + "selected": true + }, + { + "value": "tcp_estabresets", + "type": "influxql", + "selected": true + }, + { + "value": "tcp_incsumerrors", + "type": "influxql", + "selected": true + }, + { + "value": "tcp_inerrs", + "type": "influxql", + "selected": true + }, + { + "value": "tcp_insegs", + "type": "influxql", + "selected": true + }, + { + "value": "tcp_maxconn", + "type": "influxql", + "selected": true + }, + { + "value": "tcp_outrsts", + "type": "influxql", + "selected": true + }, + { + "value": "tcp_outsegs", + "type": "influxql", + "selected": true + }, + { + "value": "tcp_passiveopens", + "type": "influxql", + "selected": true + }, + { + "value": "tcp_retranssegs", + "type": "influxql", + "selected": true + }, + { + "value": "tcp_rtoalgorithm", + "type": "influxql", + "selected": true + }, + { + "value": "tcp_rtomax", + "type": "influxql", + "selected": true + }, + { + "value": "tcp_rtomin", + "type": "influxql", + "selected": true + }, + { + "value": "udp_ignoredmulti", + "type": "influxql", + "selected": true + }, + { + "value": "udp_incsumerrors", + "type": "influxql", + "selected": true + }, + { + "value": "udp_indatagrams", + "type": "influxql", + "selected": true + }, + { + "value": "udp_inerrors", + "type": "influxql", + "selected": true + }, + { + "value": "udp_noports", + "type": "influxql", + "selected": true + }, + { + "value": "udp_outdatagrams", + "type": "influxql", + "selected": true + }, + { + "value": "udp_rcvbuferrors", + "type": "influxql", + "selected": true + }, + { + "value": "udp_sndbuferrors", + "type": "influxql", + "selected": true + }, + { + "value": "udplite_ignoredmulti", + "type": "influxql", + "selected": true + }, + { + "value": "udplite_incsumerrors", + "type": "influxql", + "selected": true + }, + { + "value": "udplite_indatagrams", + "type": "influxql", + "selected": true + }, + { + "value": "udplite_inerrors", + "type": "influxql", + "selected": true + }, + { + "value": "udplite_noports", + "type": "influxql", + "selected": true + }, + { + "value": "udplite_outdatagrams", + "type": "influxql", + "selected": true + }, + { + "value": "udplite_rcvbuferrors", + "type": "influxql", + "selected": true + }, + { + "value": "udplite_sndbuferrors", + "type": "influxql", + "selected": true + } + ], + "id": "1de045c1-3154-4e26-b919-2e08c0518901", + "type": "influxql", + "label": "", + "query": { + "influxql": "SHOW FIELD KEYS ON \"telegraf\" FROM \"net\"", + "measurement": "", + "tagKey": "", + "fieldKey": "" + }, + "sourceID": "5000", + "links": { + "self": "/chronograf/v1/dashboards/4/templates/1de045c1-3154-4e26-b919-2e08c0518901" + } + }, + { + "tempVar": ":metric_1b:", + "values": [ + { + "value": "bytes_recv", + "type": "influxql", + "selected": true + }, + { + "value": "bytes_sent", + "type": "influxql", + "selected": true + }, + { + "value": "drop_in", + "type": "influxql", + "selected": true + }, + { + "value": "drop_out", + "type": "influxql", + "selected": true + }, + { + "value": "err_in", + "type": "influxql", + "selected": true + }, + { + "value": "err_out", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_inaddrmaskreps", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_inaddrmasks", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_incsumerrors", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_indestunreachs", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_inechoreps", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_inechos", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_inerrors", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_inmsgs", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_inparmprobs", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_inredirects", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_insrcquenchs", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_intimeexcds", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_intimestampreps", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_intimestamps", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_outaddrmaskreps", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_outaddrmasks", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_outdestunreachs", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_outechoreps", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_outechos", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_outerrors", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_outmsgs", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_outparmprobs", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_outredirects", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_outsrcquenchs", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_outtimeexcds", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_outtimestampreps", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_outtimestamps", + "type": "influxql", + "selected": true + }, + { + "value": "ip_defaultttl", + "type": "influxql", + "selected": true + }, + { + "value": "ip_forwarding", + "type": "influxql", + "selected": true + }, + { + "value": "ip_forwdatagrams", + "type": "influxql", + "selected": true + }, + { + "value": "ip_fragcreates", + "type": "influxql", + "selected": true + }, + { + "value": "ip_fragfails", + "type": "influxql", + "selected": true + }, + { + "value": "ip_fragoks", + "type": "influxql", + "selected": true + }, + { + "value": "ip_inaddrerrors", + "type": "influxql", + "selected": true + }, + { + "value": "ip_indelivers", + "type": "influxql", + "selected": true + }, + { + "value": "ip_indiscards", + "type": "influxql", + "selected": true + }, + { + "value": "ip_inhdrerrors", + "type": "influxql", + "selected": true + }, + { + "value": "ip_inreceives", + "type": "influxql", + "selected": true + }, + { + "value": "ip_inunknownprotos", + "type": "influxql", + "selected": true + }, + { + "value": "ip_outdiscards", + "type": "influxql", + "selected": true + }, + { + "value": "ip_outnoroutes", + "type": "influxql", + "selected": true + }, + { + "value": "ip_outrequests", + "type": "influxql", + "selected": true + }, + { + "value": "ip_reasmfails", + "type": "influxql", + "selected": true + }, + { + "value": "ip_reasmoks", + "type": "influxql", + "selected": true + }, + { + "value": "ip_reasmreqds", + "type": "influxql", + "selected": true + }, + { + "value": "ip_reasmtimeout", + "type": "influxql", + "selected": true + }, + { + "value": "packets_recv", + "type": "influxql", + "selected": true + }, + { + "value": "packets_sent", + "type": "influxql", + "selected": true + }, + { + "value": "speed", + "type": "influxql", + "selected": true + }, + { + "value": "tcp_activeopens", + "type": "influxql", + "selected": true + }, + { + "value": "tcp_attemptfails", + "type": "influxql", + "selected": true + }, + { + "value": "tcp_currestab", + "type": "influxql", + "selected": true + }, + { + "value": "tcp_estabresets", + "type": "influxql", + "selected": true + }, + { + "value": "tcp_incsumerrors", + "type": "influxql", + "selected": true + }, + { + "value": "tcp_inerrs", + "type": "influxql", + "selected": true + }, + { + "value": "tcp_insegs", + "type": "influxql", + "selected": true + }, + { + "value": "tcp_maxconn", + "type": "influxql", + "selected": true + }, + { + "value": "tcp_outrsts", + "type": "influxql", + "selected": true + }, + { + "value": "tcp_outsegs", + "type": "influxql", + "selected": true + }, + { + "value": "tcp_passiveopens", + "type": "influxql", + "selected": true + }, + { + "value": "tcp_retranssegs", + "type": "influxql", + "selected": true + }, + { + "value": "tcp_rtoalgorithm", + "type": "influxql", + "selected": true + }, + { + "value": "tcp_rtomax", + "type": "influxql", + "selected": true + }, + { + "value": "tcp_rtomin", + "type": "influxql", + "selected": true + }, + { + "value": "udp_ignoredmulti", + "type": "influxql", + "selected": true + }, + { + "value": "udp_incsumerrors", + "type": "influxql", + "selected": true + }, + { + "value": "udp_indatagrams", + "type": "influxql", + "selected": true + }, + { + "value": "udp_inerrors", + "type": "influxql", + "selected": true + }, + { + "value": "udp_noports", + "type": "influxql", + "selected": true + }, + { + "value": "udp_outdatagrams", + "type": "influxql", + "selected": true + }, + { + "value": "udp_rcvbuferrors", + "type": "influxql", + "selected": true + }, + { + "value": "udp_sndbuferrors", + "type": "influxql", + "selected": true + }, + { + "value": "udplite_ignoredmulti", + "type": "influxql", + "selected": true + }, + { + "value": "udplite_incsumerrors", + "type": "influxql", + "selected": true + }, + { + "value": "udplite_indatagrams", + "type": "influxql", + "selected": true + }, + { + "value": "udplite_inerrors", + "type": "influxql", + "selected": true + }, + { + "value": "udplite_noports", + "type": "influxql", + "selected": true + }, + { + "value": "udplite_outdatagrams", + "type": "influxql", + "selected": true + }, + { + "value": "udplite_rcvbuferrors", + "type": "influxql", + "selected": true + }, + { + "value": "udplite_sndbuferrors", + "type": "influxql", + "selected": true + } + ], + "id": "d969c056-5213-4302-ad69-b3b03e81bae7", + "type": "influxql", + "label": "", + "query": { + "influxql": "SHOW FIELD KEYS ON \"telegraf\" FROM \"net\"", + "measurement": "", + "tagKey": "", + "fieldKey": "" + }, + "sourceID": "5000", + "links": { + "self": "/chronograf/v1/dashboards/4/templates/d969c056-5213-4302-ad69-b3b03e81bae7" + } + }, + { + "tempVar": ":host_2:", + "values": [ + { + "value": "k8s", + "type": "influxql", + "selected": true + } + ], + "id": "9df7545a-9278-4a69-a489-9388a0ba8d4f", + "type": "influxql", + "label": "", + "query": { + "influxql": "SHOW TAG VALUES ON \"telegraf\" FROM \"net\" WITH KEY=\"host\"", + "measurement": "", + "tagKey": "", + "fieldKey": "" + }, + "sourceID": "5000", + "links": { + "self": "/chronograf/v1/dashboards/4/templates/9df7545a-9278-4a69-a489-9388a0ba8d4f" + } + }, + { + "tempVar": ":interface_2:", + "values": [ + { + "value": "eth0", + "type": "influxql", + "selected": true + } + ], + "id": "b23f799d-5764-4749-92d1-95be0774a4c8", + "type": "influxql", + "label": "", + "query": { + "influxql": "SHOW TAG VALUES ON \"telegraf\" FROM \"net\" WITH KEY=\"interface\" WHERE \"host\"=':host_2:'", + "measurement": "", + "tagKey": "", + "fieldKey": "" + }, + "sourceID": "5000", + "links": { + "self": "/chronograf/v1/dashboards/4/templates/b23f799d-5764-4749-92d1-95be0774a4c8" + } + }, + { + "tempVar": ":metric_2a:", + "values": [ + { + "value": "bytes_recv", + "type": "influxql", + "selected": true + }, + { + "value": "bytes_sent", + "type": "influxql", + "selected": true + }, + { + "value": "drop_in", + "type": "influxql", + "selected": true + }, + { + "value": "drop_out", + "type": "influxql", + "selected": true + }, + { + "value": "err_in", + "type": "influxql", + "selected": true + }, + { + "value": "err_out", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_inaddrmaskreps", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_inaddrmasks", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_incsumerrors", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_indestunreachs", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_inechoreps", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_inechos", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_inerrors", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_inmsgs", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_inparmprobs", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_inredirects", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_insrcquenchs", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_intimeexcds", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_intimestampreps", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_intimestamps", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_outaddrmaskreps", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_outaddrmasks", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_outdestunreachs", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_outechoreps", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_outechos", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_outerrors", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_outmsgs", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_outparmprobs", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_outredirects", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_outsrcquenchs", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_outtimeexcds", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_outtimestampreps", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_outtimestamps", + "type": "influxql", + "selected": true + }, + { + "value": "ip_defaultttl", + "type": "influxql", + "selected": true + }, + { + "value": "ip_forwarding", + "type": "influxql", + "selected": true + }, + { + "value": "ip_forwdatagrams", + "type": "influxql", + "selected": true + }, + { + "value": "ip_fragcreates", + "type": "influxql", + "selected": true + }, + { + "value": "ip_fragfails", + "type": "influxql", + "selected": true + }, + { + "value": "ip_fragoks", + "type": "influxql", + "selected": true + }, + { + "value": "ip_inaddrerrors", + "type": "influxql", + "selected": true + }, + { + "value": "ip_indelivers", + "type": "influxql", + "selected": true + }, + { + "value": "ip_indiscards", + "type": "influxql", + "selected": true + }, + { + "value": "ip_inhdrerrors", + "type": "influxql", + "selected": true + }, + { + "value": "ip_inreceives", + "type": "influxql", + "selected": true + }, + { + "value": "ip_inunknownprotos", + "type": "influxql", + "selected": true + }, + { + "value": "ip_outdiscards", + "type": "influxql", + "selected": true + }, + { + "value": "ip_outnoroutes", + "type": "influxql", + "selected": true + }, + { + "value": "ip_outrequests", + "type": "influxql", + "selected": true + }, + { + "value": "ip_reasmfails", + "type": "influxql", + "selected": true + }, + { + "value": "ip_reasmoks", + "type": "influxql", + "selected": true + }, + { + "value": "ip_reasmreqds", + "type": "influxql", + "selected": true + }, + { + "value": "ip_reasmtimeout", + "type": "influxql", + "selected": true + }, + { + "value": "packets_recv", + "type": "influxql", + "selected": true + }, + { + "value": "packets_sent", + "type": "influxql", + "selected": true + }, + { + "value": "speed", + "type": "influxql", + "selected": true + }, + { + "value": "tcp_activeopens", + "type": "influxql", + "selected": true + }, + { + "value": "tcp_attemptfails", + "type": "influxql", + "selected": true + }, + { + "value": "tcp_currestab", + "type": "influxql", + "selected": true + }, + { + "value": "tcp_estabresets", + "type": "influxql", + "selected": true + }, + { + "value": "tcp_incsumerrors", + "type": "influxql", + "selected": true + }, + { + "value": "tcp_inerrs", + "type": "influxql", + "selected": true + }, + { + "value": "tcp_insegs", + "type": "influxql", + "selected": true + }, + { + "value": "tcp_maxconn", + "type": "influxql", + "selected": true + }, + { + "value": "tcp_outrsts", + "type": "influxql", + "selected": true + }, + { + "value": "tcp_outsegs", + "type": "influxql", + "selected": true + }, + { + "value": "tcp_passiveopens", + "type": "influxql", + "selected": true + }, + { + "value": "tcp_retranssegs", + "type": "influxql", + "selected": true + }, + { + "value": "tcp_rtoalgorithm", + "type": "influxql", + "selected": true + }, + { + "value": "tcp_rtomax", + "type": "influxql", + "selected": true + }, + { + "value": "tcp_rtomin", + "type": "influxql", + "selected": true + }, + { + "value": "udp_ignoredmulti", + "type": "influxql", + "selected": true + }, + { + "value": "udp_incsumerrors", + "type": "influxql", + "selected": true + }, + { + "value": "udp_indatagrams", + "type": "influxql", + "selected": true + }, + { + "value": "udp_inerrors", + "type": "influxql", + "selected": true + }, + { + "value": "udp_noports", + "type": "influxql", + "selected": true + }, + { + "value": "udp_outdatagrams", + "type": "influxql", + "selected": true + }, + { + "value": "udp_rcvbuferrors", + "type": "influxql", + "selected": true + }, + { + "value": "udp_sndbuferrors", + "type": "influxql", + "selected": true + }, + { + "value": "udplite_ignoredmulti", + "type": "influxql", + "selected": true + }, + { + "value": "udplite_incsumerrors", + "type": "influxql", + "selected": true + }, + { + "value": "udplite_indatagrams", + "type": "influxql", + "selected": true + }, + { + "value": "udplite_inerrors", + "type": "influxql", + "selected": true + }, + { + "value": "udplite_noports", + "type": "influxql", + "selected": true + }, + { + "value": "udplite_outdatagrams", + "type": "influxql", + "selected": true + }, + { + "value": "udplite_rcvbuferrors", + "type": "influxql", + "selected": true + }, + { + "value": "udplite_sndbuferrors", + "type": "influxql", + "selected": true + } + ], + "id": "54e6b71a-ccb7-4a8f-a644-e77306eb30bf", + "type": "influxql", + "label": "", + "query": { + "influxql": "SHOW FIELD KEYS ON \"telegraf\" FROM \"net\"", + "measurement": "", + "tagKey": "", + "fieldKey": "" + }, + "sourceID": "5000", + "links": { + "self": "/chronograf/v1/dashboards/4/templates/54e6b71a-ccb7-4a8f-a644-e77306eb30bf" + } + }, + { + "tempVar": ":metric_2b:", + "values": [ + { + "value": "bytes_recv", + "type": "influxql", + "selected": true + }, + { + "value": "bytes_sent", + "type": "influxql", + "selected": true + }, + { + "value": "drop_in", + "type": "influxql", + "selected": true + }, + { + "value": "drop_out", + "type": "influxql", + "selected": true + }, + { + "value": "err_in", + "type": "influxql", + "selected": true + }, + { + "value": "err_out", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_inaddrmaskreps", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_inaddrmasks", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_incsumerrors", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_indestunreachs", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_inechoreps", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_inechos", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_inerrors", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_inmsgs", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_inparmprobs", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_inredirects", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_insrcquenchs", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_intimeexcds", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_intimestampreps", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_intimestamps", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_outaddrmaskreps", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_outaddrmasks", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_outdestunreachs", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_outechoreps", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_outechos", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_outerrors", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_outmsgs", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_outparmprobs", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_outredirects", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_outsrcquenchs", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_outtimeexcds", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_outtimestampreps", + "type": "influxql", + "selected": true + }, + { + "value": "icmp_outtimestamps", + "type": "influxql", + "selected": true + }, + { + "value": "ip_defaultttl", + "type": "influxql", + "selected": true + }, + { + "value": "ip_forwarding", + "type": "influxql", + "selected": true + }, + { + "value": "ip_forwdatagrams", + "type": "influxql", + "selected": true + }, + { + "value": "ip_fragcreates", + "type": "influxql", + "selected": true + }, + { + "value": "ip_fragfails", + "type": "influxql", + "selected": true + }, + { + "value": "ip_fragoks", + "type": "influxql", + "selected": true + }, + { + "value": "ip_inaddrerrors", + "type": "influxql", + "selected": true + }, + { + "value": "ip_indelivers", + "type": "influxql", + "selected": true + }, + { + "value": "ip_indiscards", + "type": "influxql", + "selected": true + }, + { + "value": "ip_inhdrerrors", + "type": "influxql", + "selected": true + }, + { + "value": "ip_inreceives", + "type": "influxql", + "selected": true + }, + { + "value": "ip_inunknownprotos", + "type": "influxql", + "selected": true + }, + { + "value": "ip_outdiscards", + "type": "influxql", + "selected": true + }, + { + "value": "ip_outnoroutes", + "type": "influxql", + "selected": true + }, + { + "value": "ip_outrequests", + "type": "influxql", + "selected": true + }, + { + "value": "ip_reasmfails", + "type": "influxql", + "selected": true + }, + { + "value": "ip_reasmoks", + "type": "influxql", + "selected": true + }, + { + "value": "ip_reasmreqds", + "type": "influxql", + "selected": true + }, + { + "value": "ip_reasmtimeout", + "type": "influxql", + "selected": true + }, + { + "value": "packets_recv", + "type": "influxql", + "selected": true + }, + { + "value": "packets_sent", + "type": "influxql", + "selected": true + }, + { + "value": "speed", + "type": "influxql", + "selected": true + }, + { + "value": "tcp_activeopens", + "type": "influxql", + "selected": true + }, + { + "value": "tcp_attemptfails", + "type": "influxql", + "selected": true + }, + { + "value": "tcp_currestab", + "type": "influxql", + "selected": true + }, + { + "value": "tcp_estabresets", + "type": "influxql", + "selected": true + }, + { + "value": "tcp_incsumerrors", + "type": "influxql", + "selected": true + }, + { + "value": "tcp_inerrs", + "type": "influxql", + "selected": true + }, + { + "value": "tcp_insegs", + "type": "influxql", + "selected": true + }, + { + "value": "tcp_maxconn", + "type": "influxql", + "selected": true + }, + { + "value": "tcp_outrsts", + "type": "influxql", + "selected": true + }, + { + "value": "tcp_outsegs", + "type": "influxql", + "selected": true + }, + { + "value": "tcp_passiveopens", + "type": "influxql", + "selected": true + }, + { + "value": "tcp_retranssegs", + "type": "influxql", + "selected": true + }, + { + "value": "tcp_rtoalgorithm", + "type": "influxql", + "selected": true + }, + { + "value": "tcp_rtomax", + "type": "influxql", + "selected": true + }, + { + "value": "tcp_rtomin", + "type": "influxql", + "selected": true + }, + { + "value": "udp_ignoredmulti", + "type": "influxql", + "selected": true + }, + { + "value": "udp_incsumerrors", + "type": "influxql", + "selected": true + }, + { + "value": "udp_indatagrams", + "type": "influxql", + "selected": true + }, + { + "value": "udp_inerrors", + "type": "influxql", + "selected": true + }, + { + "value": "udp_noports", + "type": "influxql", + "selected": true + }, + { + "value": "udp_outdatagrams", + "type": "influxql", + "selected": true + }, + { + "value": "udp_rcvbuferrors", + "type": "influxql", + "selected": true + }, + { + "value": "udp_sndbuferrors", + "type": "influxql", + "selected": true + }, + { + "value": "udplite_ignoredmulti", + "type": "influxql", + "selected": true + }, + { + "value": "udplite_incsumerrors", + "type": "influxql", + "selected": true + }, + { + "value": "udplite_indatagrams", + "type": "influxql", + "selected": true + }, + { + "value": "udplite_inerrors", + "type": "influxql", + "selected": true + }, + { + "value": "udplite_noports", + "type": "influxql", + "selected": true + }, + { + "value": "udplite_outdatagrams", + "type": "influxql", + "selected": true + }, + { + "value": "udplite_rcvbuferrors", + "type": "influxql", + "selected": true + }, + { + "value": "udplite_sndbuferrors", + "type": "influxql", + "selected": true + } + ], + "id": "1d93c29a-fa3a-4306-97ef-74e2f6e3ece2", + "type": "influxql", + "label": "", + "query": { + "influxql": "SHOW FIELD KEYS ON \"telegraf\" FROM \"net\"", + "measurement": "", + "tagKey": "", + "fieldKey": "" + }, + "sourceID": "5000", + "links": { + "self": "/chronograf/v1/dashboards/4/templates/1d93c29a-fa3a-4306-97ef-74e2f6e3ece2" + } + } + ], + "name": "Net: Interface Metric Explorer", + "organization": "default", + "links": { + "self": "/chronograf/v1/dashboards/4", + "cells": "/chronograf/v1/dashboards/4/cells", + "templates": "/chronograf/v1/dashboards/4/templates" + } + } +} \ No newline at end of file diff --git a/terraform/k8sapps/resources/chronograf/dashboards/5_net_interface_performance.dashboard b/terraform/k8sapps/resources/chronograf/dashboards/5_net_interface_performance.dashboard new file mode 100644 index 0000000..25fd86b --- /dev/null +++ b/terraform/k8sapps/resources/chronograf/dashboards/5_net_interface_performance.dashboard @@ -0,0 +1,894 @@ +{ + "meta": { + "chronografVersion": "1.10.1", + "sources": { + "5000": { + "name": "internal", + "link": "/chronograf/v1/sources/5000" + } + } + }, + "dashboard": { + "id": "5", + "cells": [ + { + "i": "0b416a7f-bb94-48e7-9877-bb95a896fd6c", + "x": 9, + "y": 0, + "w": 3, + "h": 1, + "name": "Total Errors (packets) - :host: - :interface:", + "queries": [ + { + "query": "SELECT (last(\"err_in\") - first(\"err_in\")) + (last(\"err_out\") - first(\"err_out\")) AS \"Total Errors\" FROM \"telegraf\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"host\"=':host:' AND \"interface\"=':interface:' FILL(null)", + "queryConfig": { + "database": "", + "measurement": "", + "retentionPolicy": "", + "fields": [], + "tags": {}, + "groupBy": { + "time": "", + "tags": [] + }, + "areTagsAccepted": false, + "rawText": "SELECT (last(\"err_in\") - first(\"err_in\")) + (last(\"err_out\") - first(\"err_out\")) AS \"Total Errors\" FROM \"telegraf\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"host\"=':host:' AND \"interface\"=':interface:' FILL(null)", + "range": null, + "shifts": null + }, + "source": "", + "type": "influxql" + } + ], + "axes": { + "x": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + }, + "y": { + "bounds": [ + "", + "" + ], + "label": "bits", + "prefix": "", + "suffix": "", + "base": "2", + "scale": "linear" + }, + "y2": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + } + }, + "type": "single-stat", + "colors": [ + { + "id": "base", + "type": "text", + "hex": "#00C9FF", + "name": "laser", + "value": "-1000000000000000000" + } + ], + "legend": {}, + "tableOptions": { + "verticalTimeAxis": true, + "sortBy": { + "internalName": "time", + "displayName": "", + "visible": true + }, + "wrapping": "truncate", + "fixFirstColumn": true + }, + "fieldOptions": [ + { + "internalName": "time", + "displayName": "", + "visible": true + } + ], + "timeFormat": "MM/DD/YYYY HH:mm:ss", + "decimalPlaces": { + "isEnforced": true, + "digits": 0 + }, + "note": "", + "noteVisibility": "default", + "links": { + "self": "/chronograf/v1/dashboards/5/cells/0b416a7f-bb94-48e7-9877-bb95a896fd6c" + } + }, + { + "i": "b9acc5e0-7cb8-4901-8602-b5f9342ea386", + "x": 6, + "y": 0, + "w": 3, + "h": 1, + "name": "Total Discards (packets) - :host: - :interface:", + "queries": [ + { + "query": "SELECT (last(\"drop_in\") - first(\"drop_in\")) + (last(\"drop_out\") - first(\"drop_out\")) AS \"Total Discards\" FROM \"telegraf\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"host\"=':host:' AND \"interface\"=':interface:' FILL(null)", + "queryConfig": { + "database": "", + "measurement": "", + "retentionPolicy": "", + "fields": [], + "tags": {}, + "groupBy": { + "time": "", + "tags": [] + }, + "areTagsAccepted": false, + "rawText": "SELECT (last(\"drop_in\") - first(\"drop_in\")) + (last(\"drop_out\") - first(\"drop_out\")) AS \"Total Discards\" FROM \"telegraf\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"host\"=':host:' AND \"interface\"=':interface:' FILL(null)", + "range": null, + "shifts": null + }, + "source": "", + "type": "influxql" + } + ], + "axes": { + "x": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + }, + "y": { + "bounds": [ + "", + "" + ], + "label": "bits", + "prefix": "", + "suffix": "", + "base": "2", + "scale": "linear" + }, + "y2": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + } + }, + "type": "single-stat", + "colors": [ + { + "id": "base", + "type": "text", + "hex": "#00C9FF", + "name": "laser", + "value": "-1000000000000000000" + } + ], + "legend": {}, + "tableOptions": { + "verticalTimeAxis": true, + "sortBy": { + "internalName": "time", + "displayName": "", + "visible": true + }, + "wrapping": "truncate", + "fixFirstColumn": true + }, + "fieldOptions": [ + { + "internalName": "time", + "displayName": "", + "visible": true + } + ], + "timeFormat": "MM/DD/YYYY HH:mm:ss", + "decimalPlaces": { + "isEnforced": true, + "digits": 0 + }, + "note": "", + "noteVisibility": "default", + "links": { + "self": "/chronograf/v1/dashboards/5/cells/b9acc5e0-7cb8-4901-8602-b5f9342ea386" + } + }, + { + "i": "221e4ac0-af96-4535-baf1-64112fe65c62", + "x": 3, + "y": 0, + "w": 3, + "h": 1, + "name": "Total Traffic (packets) - :host: - :interface:", + "queries": [ + { + "query": "SELECT ((last(\"packets_recv\") - first(\"packets_recv\")) + (last(\"packets_sent\") - first(\"packets_sent\"))) / 1000 AS \"Total Packets\" FROM \"telegraf\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"host\"=':host:' AND \"interface\"=':interface:' FILL(null)", + "queryConfig": { + "database": "", + "measurement": "", + "retentionPolicy": "", + "fields": [], + "tags": {}, + "groupBy": { + "time": "", + "tags": [] + }, + "areTagsAccepted": false, + "rawText": "SELECT ((last(\"packets_recv\") - first(\"packets_recv\")) + (last(\"packets_sent\") - first(\"packets_sent\"))) / 1000 AS \"Total Packets\" FROM \"telegraf\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"host\"=':host:' AND \"interface\"=':interface:' FILL(null)", + "range": null, + "shifts": null + }, + "source": "", + "type": "influxql" + } + ], + "axes": { + "x": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + }, + "y": { + "bounds": [ + "", + "" + ], + "label": "bits", + "prefix": "", + "suffix": " K", + "base": "2", + "scale": "linear" + }, + "y2": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + } + }, + "type": "single-stat", + "colors": [ + { + "id": "base", + "type": "text", + "hex": "#00C9FF", + "name": "laser", + "value": "-1000000000000000000" + } + ], + "legend": {}, + "tableOptions": { + "verticalTimeAxis": true, + "sortBy": { + "internalName": "time", + "displayName": "", + "visible": true + }, + "wrapping": "truncate", + "fixFirstColumn": true + }, + "fieldOptions": [ + { + "internalName": "time", + "displayName": "", + "visible": true + } + ], + "timeFormat": "MM/DD/YYYY HH:mm:ss", + "decimalPlaces": { + "isEnforced": true, + "digits": 0 + }, + "note": "", + "noteVisibility": "default", + "links": { + "self": "/chronograf/v1/dashboards/5/cells/221e4ac0-af96-4535-baf1-64112fe65c62" + } + }, + { + "i": "bf42bf7c-3c5b-46e0-a419-b320c3d95faa", + "x": 0, + "y": 0, + "w": 3, + "h": 1, + "name": "Total Traffic (bytes) - :host: - :interface:", + "queries": [ + { + "query": "SELECT ((last(\"bytes_recv\") - first(\"bytes_recv\")) + (last(\"bytes_sent\") - first(\"bytes_sent\"))) / 1000000 AS \"Total Bytes\" FROM \"telegraf\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"host\"=':host:' AND \"interface\"=':interface:' FILL(null)", + "queryConfig": { + "database": "", + "measurement": "", + "retentionPolicy": "", + "fields": [], + "tags": {}, + "groupBy": { + "time": "", + "tags": [] + }, + "areTagsAccepted": false, + "rawText": "SELECT ((last(\"bytes_recv\") - first(\"bytes_recv\")) + (last(\"bytes_sent\") - first(\"bytes_sent\"))) / 1000000 AS \"Total Bytes\" FROM \"telegraf\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"host\"=':host:' AND \"interface\"=':interface:' FILL(null)", + "range": null, + "shifts": null + }, + "source": "", + "type": "influxql" + } + ], + "axes": { + "x": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + }, + "y": { + "bounds": [ + "", + "" + ], + "label": "bits", + "prefix": "", + "suffix": " MB", + "base": "2", + "scale": "linear" + }, + "y2": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + } + }, + "type": "single-stat", + "colors": [ + { + "id": "base", + "type": "text", + "hex": "#00C9FF", + "name": "laser", + "value": "-1000000000000000000" + } + ], + "legend": {}, + "tableOptions": { + "verticalTimeAxis": true, + "sortBy": { + "internalName": "time", + "displayName": "", + "visible": true + }, + "wrapping": "truncate", + "fixFirstColumn": true + }, + "fieldOptions": [ + { + "internalName": "time", + "displayName": "", + "visible": true + } + ], + "timeFormat": "MM/DD/YYYY HH:mm:ss", + "decimalPlaces": { + "isEnforced": true, + "digits": 2 + }, + "note": "", + "noteVisibility": "default", + "links": { + "self": "/chronograf/v1/dashboards/5/cells/bf42bf7c-3c5b-46e0-a419-b320c3d95faa" + } + }, + { + "i": "e9a055f5-7a22-4fc8-8848-9faea022fa93", + "x": 0, + "y": 7, + "w": 12, + "h": 3, + "name": "Dropped Packets - :host: - :interface:", + "queries": [ + { + "query": "SELECT non_negative_difference(last(\"drop_in\")) AS \"Ingress Discards\", (non_negative_difference(last(\"err_in\"))) AS \"Ingress Errors\" FROM \"telegraf\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"host\"=':host:' AND \"interface\"=':interface:' GROUP BY time(:interval:) FILL(null)", + "queryConfig": { + "database": "", + "measurement": "", + "retentionPolicy": "", + "fields": [], + "tags": {}, + "groupBy": { + "time": "", + "tags": [] + }, + "areTagsAccepted": false, + "rawText": "SELECT non_negative_difference(last(\"drop_in\")) AS \"Ingress Discards\", (non_negative_difference(last(\"err_in\"))) AS \"Ingress Errors\" FROM \"telegraf\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"host\"=':host:' AND \"interface\"=':interface:' GROUP BY time(:interval:) FILL(null)", + "range": null, + "shifts": null + }, + "source": "", + "type": "influxql" + }, + { + "query": "SELECT non_negative_derivative(last(\"drop_out\"),1s) * -1 AS \"Egress Dropped Packet Rate\", (non_negative_derivative(last(\"err_out\"),1s)) * -1 AS \"Egress Errored Packet Rate\" FROM \"telegraf\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"host\"=':host:' AND \"interface\"=':interface:' GROUP BY time(:interval:) FILL(null)", + "queryConfig": { + "database": "", + "measurement": "", + "retentionPolicy": "", + "fields": [], + "tags": {}, + "groupBy": { + "time": "", + "tags": [] + }, + "areTagsAccepted": false, + "rawText": "SELECT non_negative_derivative(last(\"drop_out\"),1s) * -1 AS \"Egress Dropped Packet Rate\", (non_negative_derivative(last(\"err_out\"),1s)) * -1 AS \"Egress Errored Packet Rate\" FROM \"telegraf\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"host\"=':host:' AND \"interface\"=':interface:' GROUP BY time(:interval:) FILL(null)", + "range": null, + "shifts": null + }, + "source": "", + "type": "influxql" + } + ], + "axes": { + "x": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + }, + "y": { + "bounds": [ + "", + "" + ], + "label": "packets", + "prefix": "", + "suffix": "/s", + "base": "2", + "scale": "linear" + }, + "y2": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + } + }, + "type": "line-stacked", + "colors": [ + { + "id": "d0d6afdf-e43a-4f84-bfb8-bce962799cdc", + "type": "scale", + "hex": "#31C0F6", + "name": "Nineteen Eighty Four", + "value": "0" + }, + { + "id": "51af7221-74a0-450e-8be0-91b40cffbdb7", + "type": "scale", + "hex": "#A500A5", + "name": "Nineteen Eighty Four", + "value": "0" + }, + { + "id": "c125b7e0-a2a2-42bf-9cc6-228eb6ced525", + "type": "scale", + "hex": "#FF7E27", + "name": "Nineteen Eighty Four", + "value": "0" + } + ], + "legend": {}, + "tableOptions": { + "verticalTimeAxis": true, + "sortBy": { + "internalName": "time", + "displayName": "", + "visible": true + }, + "wrapping": "truncate", + "fixFirstColumn": true + }, + "fieldOptions": [ + { + "internalName": "time", + "displayName": "", + "visible": true + } + ], + "timeFormat": "MM/DD/YYYY HH:mm:ss", + "decimalPlaces": { + "isEnforced": true, + "digits": 2 + }, + "note": "", + "noteVisibility": "default", + "links": { + "self": "/chronograf/v1/dashboards/5/cells/e9a055f5-7a22-4fc8-8848-9faea022fa93" + } + }, + { + "i": "63895134-f930-49ae-b1ac-3294142ef142", + "x": 0, + "y": 4, + "w": 12, + "h": 3, + "name": "Traffic Rate (pkts/s) - :host: - :interface:", + "queries": [ + { + "query": "SELECT non_negative_derivative(last(\"packets_recv\"),1s) AS \"Ingress Packet Rate\" FROM \"telegraf\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"host\"=':host:' AND \"interface\"=':interface:' GROUP BY time(:interval:) FILL(null)", + "queryConfig": { + "database": "", + "measurement": "", + "retentionPolicy": "", + "fields": [], + "tags": {}, + "groupBy": { + "time": "", + "tags": [] + }, + "areTagsAccepted": false, + "rawText": "SELECT non_negative_derivative(last(\"packets_recv\"),1s) AS \"Ingress Packet Rate\" FROM \"telegraf\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"host\"=':host:' AND \"interface\"=':interface:' GROUP BY time(:interval:) FILL(null)", + "range": null, + "shifts": null + }, + "source": "", + "type": "influxql" + }, + { + "query": "SELECT non_negative_derivative(last(\"packets_sent\"),1s) * -1 AS \"Egress Unicast Packet Rate\" FROM \"telegraf\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"host\"=':host:' AND \"interface\"=':interface:' GROUP BY time(:interval:) FILL(null)", + "queryConfig": { + "database": "", + "measurement": "", + "retentionPolicy": "", + "fields": [], + "tags": {}, + "groupBy": { + "time": "", + "tags": [] + }, + "areTagsAccepted": false, + "rawText": "SELECT non_negative_derivative(last(\"packets_sent\"),1s) * -1 AS \"Egress Unicast Packet Rate\" FROM \"telegraf\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"host\"=':host:' AND \"interface\"=':interface:' GROUP BY time(:interval:) FILL(null)", + "range": null, + "shifts": null + }, + "source": "", + "type": "influxql" + } + ], + "axes": { + "x": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + }, + "y": { + "bounds": [ + "", + "" + ], + "label": "packets", + "prefix": "", + "suffix": "/s", + "base": "2", + "scale": "linear" + }, + "y2": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + } + }, + "type": "line", + "colors": [ + { + "id": "d0d6afdf-e43a-4f84-bfb8-bce962799cdc", + "type": "scale", + "hex": "#31C0F6", + "name": "Nineteen Eighty Four", + "value": "0" + }, + { + "id": "51af7221-74a0-450e-8be0-91b40cffbdb7", + "type": "scale", + "hex": "#A500A5", + "name": "Nineteen Eighty Four", + "value": "0" + }, + { + "id": "c125b7e0-a2a2-42bf-9cc6-228eb6ced525", + "type": "scale", + "hex": "#FF7E27", + "name": "Nineteen Eighty Four", + "value": "0" + } + ], + "legend": {}, + "tableOptions": { + "verticalTimeAxis": true, + "sortBy": { + "internalName": "time", + "displayName": "", + "visible": true + }, + "wrapping": "truncate", + "fixFirstColumn": true + }, + "fieldOptions": [ + { + "internalName": "time", + "displayName": "", + "visible": true + } + ], + "timeFormat": "MM/DD/YYYY HH:mm:ss", + "decimalPlaces": { + "isEnforced": true, + "digits": 2 + }, + "note": "", + "noteVisibility": "default", + "links": { + "self": "/chronograf/v1/dashboards/5/cells/63895134-f930-49ae-b1ac-3294142ef142" + } + }, + { + "i": "a47e7219-bc4f-47c5-883f-11a80a24ba6a", + "x": 0, + "y": 1, + "w": 12, + "h": 3, + "name": "Traffic Rate (bits/s) - :host: - :interface:", + "queries": [ + { + "query": "SELECT non_negative_derivative(last(\"bytes_recv\"),1s) * 8 AS \"Ingress Bit Rate\" FROM \"telegraf\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"host\"=':host:' AND \"interface\"=':interface:' GROUP BY time(:interval:) FILL(null)", + "queryConfig": { + "database": "", + "measurement": "", + "retentionPolicy": "", + "fields": [], + "tags": {}, + "groupBy": { + "time": "", + "tags": [] + }, + "areTagsAccepted": false, + "rawText": "SELECT non_negative_derivative(last(\"bytes_recv\"),1s) * 8 AS \"Ingress Bit Rate\" FROM \"telegraf\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"host\"=':host:' AND \"interface\"=':interface:' GROUP BY time(:interval:) FILL(null)", + "range": null, + "shifts": null + }, + "source": "", + "type": "influxql" + }, + { + "query": "SELECT non_negative_derivative(last(\"bytes_sent\"),1s) * -8 AS \"Egress Traffic Rate\" FROM \"telegraf\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"host\"=':host:' AND \"interface\"=':interface:' GROUP BY time(:interval:) FILL(null)", + "queryConfig": { + "database": "", + "measurement": "", + "retentionPolicy": "", + "fields": [], + "tags": {}, + "groupBy": { + "time": "", + "tags": [] + }, + "areTagsAccepted": false, + "rawText": "SELECT non_negative_derivative(last(\"bytes_sent\"),1s) * -8 AS \"Egress Traffic Rate\" FROM \"telegraf\".\"autogen\".\"net\" WHERE time > :dashboardTime: AND \"host\"=':host:' AND \"interface\"=':interface:' GROUP BY time(:interval:) FILL(null)", + "range": null, + "shifts": null + }, + "source": "", + "type": "influxql" + } + ], + "axes": { + "x": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + }, + "y": { + "bounds": [ + "", + "" + ], + "label": "bandwidth", + "prefix": "", + "suffix": "b/s", + "base": "2", + "scale": "linear" + }, + "y2": { + "bounds": [ + "", + "" + ], + "label": "", + "prefix": "", + "suffix": "", + "base": "10", + "scale": "linear" + } + }, + "type": "line", + "colors": [ + { + "id": "d0d6afdf-e43a-4f84-bfb8-bce962799cdc", + "type": "scale", + "hex": "#31C0F6", + "name": "Nineteen Eighty Four", + "value": "0" + }, + { + "id": "51af7221-74a0-450e-8be0-91b40cffbdb7", + "type": "scale", + "hex": "#A500A5", + "name": "Nineteen Eighty Four", + "value": "0" + }, + { + "id": "c125b7e0-a2a2-42bf-9cc6-228eb6ced525", + "type": "scale", + "hex": "#FF7E27", + "name": "Nineteen Eighty Four", + "value": "0" + } + ], + "legend": {}, + "tableOptions": { + "verticalTimeAxis": true, + "sortBy": { + "internalName": "time", + "displayName": "", + "visible": true + }, + "wrapping": "truncate", + "fixFirstColumn": true + }, + "fieldOptions": [ + { + "internalName": "time", + "displayName": "", + "visible": true + } + ], + "timeFormat": "MM/DD/YYYY HH:mm:ss", + "decimalPlaces": { + "isEnforced": true, + "digits": 2 + }, + "note": "", + "noteVisibility": "default", + "links": { + "self": "/chronograf/v1/dashboards/5/cells/a47e7219-bc4f-47c5-883f-11a80a24ba6a" + } + } + ], + "templates": [ + { + "tempVar": ":host:", + "values": [ + { + "value": "k8s", + "type": "influxql", + "selected": true + } + ], + "id": "2f052195-a0cb-414c-9a4f-ee542a362ae4", + "type": "influxql", + "label": "", + "query": { + "influxql": "SHOW TAG VALUES ON \"telegraf\" FROM \"net\" WITH KEY=\"host\"", + "measurement": "", + "tagKey": "", + "fieldKey": "" + }, + "sourceID": "5000", + "links": { + "self": "/chronograf/v1/dashboards/5/templates/2f052195-a0cb-414c-9a4f-ee542a362ae4" + } + }, + { + "tempVar": ":interface:", + "values": [ + { + "value": "eth0", + "type": "influxql", + "selected": true + } + ], + "id": "a56477ab-cfa7-46a5-b4b6-49ec464169a7", + "type": "influxql", + "label": "", + "query": { + "influxql": "SHOW TAG VALUES ON \"telegraf\" FROM \"net\" WITH KEY=\"interface\" WHERE \"host\"=':host:'", + "measurement": "", + "tagKey": "", + "fieldKey": "" + }, + "sourceID": "5000", + "links": { + "self": "/chronograf/v1/dashboards/5/templates/a56477ab-cfa7-46a5-b4b6-49ec464169a7" + } + } + ], + "name": "Net: Interface Performance", + "organization": "default", + "links": { + "self": "/chronograf/v1/dashboards/5", + "cells": "/chronograf/v1/dashboards/5/cells", + "templates": "/chronograf/v1/dashboards/5/templates" + } + } +} \ No newline at end of file diff --git a/terraform/k8sapps/resources/chronograf/default.org b/terraform/k8sapps/resources/chronograf/default.org new file mode 100644 index 0000000..2896874 --- /dev/null +++ b/terraform/k8sapps/resources/chronograf/default.org @@ -0,0 +1,5 @@ +{ + "id": "default", + "name": "alexpires.me", + "defaultRole": "member" +} \ No newline at end of file diff --git a/terraform/k8sapps/resources/chronograf/internal.kap b/terraform/k8sapps/resources/chronograf/internal.kap new file mode 100644 index 0000000..50d6e78 --- /dev/null +++ b/terraform/k8sapps/resources/chronograf/internal.kap @@ -0,0 +1,9 @@ +{ + "id": "5000", + "srcID": "5000", + "name": "Internal", + "url": "http://kapacitor:9092", + "insecureSkipVerify": false, + "active": true, + "organization": "default" +} diff --git a/terraform/k8sapps/resources/chronograf/internal.src b/terraform/k8sapps/resources/chronograf/internal.src new file mode 100644 index 0000000..c53b4ab --- /dev/null +++ b/terraform/k8sapps/resources/chronograf/internal.src @@ -0,0 +1,10 @@ +{ + "id": "5000", + "name": "internal", + "url": "http://influxdb:8086", + "type": "influx", + "insecureSkipVerify": false, + "default": true, + "telegraf": "telegraf", + "organization": "default" +} \ No newline at end of file diff --git a/terraform/k8sapps/resources/fluent-bit/fluent-bit.conf b/terraform/k8sapps/resources/fluent-bit/fluent-bit.conf new file mode 100644 index 0000000..8b4dc86 --- /dev/null +++ b/terraform/k8sapps/resources/fluent-bit/fluent-bit.conf @@ -0,0 +1,273 @@ +[SERVICE] + Flush 1 + Daemon Off + Log_Level info + Parsers_File parsers.conf + +[INPUT] + Name tail + Tag ingress.* + Path /var/log/containers/nginx-ingress-microk8s-controller-*.log + Parser cri + Refresh_Interval 5 + Mem_Buf_Limit 5MB + Skip_Long_Lines On + +[INPUT] + Name tail + Tag nextcloud.* + Path /var/log/containers/nextcloud-app-*.log + Parser cri + Refresh_Interval 5 + Mem_Buf_Limit 5MB + Skip_Long_Lines On + +[INPUT] + Name tail + Tag wordpress.* + Path /var/log/containers/wordpress-app-*.log + Parser cri + Refresh_Interval 5 + Mem_Buf_Limit 5MB + Skip_Long_Lines On + +[INPUT] + Name tail + Tag gitea.* + Path /var/log/containers/gitea-app-*.log + Parser cri + Refresh_Interval 5 + Mem_Buf_Limit 5MB + Skip_Long_Lines On + +[INPUT] + Name tail + Tag kube.* + Path /var/log/containers/*.log + Parser cri + Refresh_Interval 5 + Mem_Buf_Limit 5MB + Skip_Long_Lines On + +[FILTER] + Name kubernetes + Match ingress.* + Kube_URL https://kubernetes.default.svc:443 + Kube_CA_File /var/run/secrets/kubernetes.io/serviceaccount/ca.crt + Kube_Token_File /var/run/secrets/kubernetes.io/serviceaccount/token + Kube_Tag_Prefix ingress.var.log.containers. + Merge_Log On + Merge_Log_Key log_processed + Labels On + K8S-Logging.Parser Off + K8S-Logging.Exclude Off + +[FILTER] + Name kubernetes + Match nextcloud.* + Kube_URL https://kubernetes.default.svc:443 + Kube_CA_File /var/run/secrets/kubernetes.io/serviceaccount/ca.crt + Kube_Token_File /var/run/secrets/kubernetes.io/serviceaccount/token + Kube_Tag_Prefix nextcloud.var.log.containers. + Merge_Log On + Merge_Log_Key log_processed + Labels On + K8S-Logging.Parser Off + K8S-Logging.Exclude Off + +[FILTER] + Name kubernetes + Match wordpress.* + Kube_URL https://kubernetes.default.svc:443 + Kube_CA_File /var/run/secrets/kubernetes.io/serviceaccount/ca.crt + Kube_Token_File /var/run/secrets/kubernetes.io/serviceaccount/token + Kube_Tag_Prefix wordpress.var.log.containers. + Merge_Log On + Merge_Log_Key log_processed + Labels On + K8S-Logging.Parser Off + K8S-Logging.Exclude Off + +[FILTER] + Name kubernetes + Match gitea.* + Kube_URL https://kubernetes.default.svc:443 + Kube_CA_File /var/run/secrets/kubernetes.io/serviceaccount/ca.crt + Kube_Token_File /var/run/secrets/kubernetes.io/serviceaccount/token + Kube_Tag_Prefix gitea.var.log.containers. + Merge_Log On + Merge_Log_Key log_processed + Labels On + K8S-Logging.Parser Off + K8S-Logging.Exclude Off + +[FILTER] + Name kubernetes + Match kube.* + Kube_URL https://kubernetes.default.svc:443 + Kube_CA_File /var/run/secrets/kubernetes.io/serviceaccount/ca.crt + Kube_Token_File /var/run/secrets/kubernetes.io/serviceaccount/token + Merge_Log On + Merge_Log_Key log_processed + Labels On + K8S-Logging.Parser On + K8S-Logging.Exclude On + +[FILTER] + Name nest + Match * + Wildcard pod_name + Operation lift + Nested_under kubernetes + Add_prefix kubernetes_ + +[FILTER] + Name rewrite_tag + Match ingress.* + Rule $kubernetes_pod_name ^.*$ ingress_logs false + +[FILTER] + Name rewrite_tag + Match nextcloud.* + Rule $kubernetes_pod_name ^.*$ nextcloud_logs false + +[FILTER] + Name rewrite_tag + Match wordpress.* + Rule $kubernetes_pod_name ^.*$ wordpress_logs false + +[FILTER] + Name rewrite_tag + Match gitea.* + Rule $kubernetes_pod_name ^.*$ gitea_logs false + +[FILTER] + Name rewrite_tag + Match kube.* + Rule $kubernetes_pod_name ^.*$ kubernetes_logs false + +[FILTER] + Name parser + Match ingress_logs + Key_Name log + Parser nginx-ingress + +[FILTER] + Name parser + Match nextcloud_logs + Key_Name log + Parser apache2 + +[FILTER] + Name parser + Match wordpress_logs + Key_Name log + Parser apache2 + +[FILTER] + Name parser + Match gitea_logs + Key_Name log + Parser gitea + +[FILTER] + Name geoip2 + Match ingress_logs + Database /fluent-bit/etc/GeoLite2-City.mmdb + Lookup_key host + Record country_name host %{country.names.en} + Record country_code host %{country.iso_code} + Record city host %{city.names.en} + Record coord.lat host %{location.latitude} + Record coord.lon host %{location.longitude} + +[FILTER] + Name geoip2 + Match nextcloud_logs + Database /fluent-bit/etc/GeoLite2-City.mmdb + Lookup_key host + Record country_name host %{country.names.en} + Record country_code host %{country.iso_code} + Record city host %{city.names.en} + Record coord.lat host %{location.latitude} + Record coord.lon host %{location.longitude} + +[FILTER] + Name geoip2 + Match wordpress_logs + Database /fluent-bit/etc/GeoLite2-City.mmdb + Lookup_key host + Record country_name host %{country.names.en} + Record country_code host %{country.iso_code} + Record city host %{city.names.en} + Record coord.lat host %{location.latitude} + Record coord.lon host %{location.longitude} + +[FILTER] + Name nest + Match ingress_logs + Operation nest + Wildcard coord.* + Nested_under coordinates + Remove_prefix coord. + +[FILTER] + Name nest + Match nextcloud_logs + Operation nest + Wildcard coord.* + Nested_under coordinates + Remove_prefix coord. + +[FILTER] + Name nest + Match wordpress_logs + Operation nest + Wildcard coord.* + Nested_under coordinates + Remove_prefix coord. + +[OUTPUT] + Name influxdb + Match ingress_logs + Host influxdb + Port 8086 + Database ingress + Sequence_Tag off + Tag_Keys proxy_upstream_name code + +[OUTPUT] + Name influxdb + Match nextcloud_logs + Host influxdb + Port 8086 + Database nextcloud + Sequence_Tag off + Tag_Keys code + +[OUTPUT] + Name influxdb + Match wordpress_logs + Host influxdb + Port 8086 + Database wordpress + Sequence_Tag off + Tag_Keys code + +[OUTPUT] + Name influxdb + Match gitea_logs + Host influxdb + Port 8086 + Database gitea + Sequence_Tag off + Tag_Keys status_code + +[OUTPUT] + Name influxdb + Match kubernetes_logs + Host influxdb + Port 8086 + Database kubernetes + Sequence_Tag off + Tag_Keys kubernetes_namespace_name kubernetes_container_name \ No newline at end of file diff --git a/terraform/k8sapps/resources/fluent-bit/parsers.conf b/terraform/k8sapps/resources/fluent-bit/parsers.conf new file mode 100644 index 0000000..3ca54b6 --- /dev/null +++ b/terraform/k8sapps/resources/fluent-bit/parsers.conf @@ -0,0 +1,68 @@ +[PARSER] + Name apache + Format regex + Regex ^(?[^ ]*) [^ ]* (?[^ ]*) \[(?