From c45dd40fc8aa74a26fadb3e04ddb74a6bc9381ef Mon Sep 17 00:00:00 2001 From: aaronweissler <46028218+aaronweissler@users.noreply.github.com> Date: Thu, 7 Apr 2022 10:56:25 +0200 Subject: [PATCH 1/8] Remove inspectit-ocelot-demo folder --- inspectit-ocelot-demo/.env | 2 - inspectit-ocelot-demo/README.md | 4 - inspectit-ocelot-demo/build.gradle | 24 - .../configuration-server/agent_mappings.yaml | 17 - .../files/all/general.yml | 9 - .../files/all/hsqldb-sql-extraction.yml | 33 - .../files/all/parametrize-eureka-paths.yml | 20 - .../files/all/validatePetType.yml | 31 - .../docker-compose-influxdb-jaeger.yml | 250 - .../docker-compose-influxdb-zipkin.yml | 249 - .../docker-compose-prometheus-jaeger.yml | 245 - .../docker-compose-wavefront-zipkin.yml | 223 - .../grafana/marketplace/dashboard-mapping.txt | 10 - .../grafana/marketplace/influx/http.json | 1311 -- .../grafana/marketplace/influx/jvm.json | 1963 --- .../marketplace/influx/selfmonitoring.json | 1220 -- .../marketplace/influx/servicegraph.json | 483 - .../grafana/marketplace/influx/system.json | 921 -- .../grafana/marketplace/prometheus/http.json | 1037 -- .../grafana/marketplace/prometheus/jvm.json | 1795 --- .../prometheus/selfmonitoring.json | 1023 -- .../marketplace/prometheus/servicegraph.json | 302 - .../marketplace/prometheus/system.json | 868 -- .../provisioning/home-dashboard/home.json | 137 - .../agent/http-overview-influxql.json | 7560 ---------- .../dashboards/agent/jvm-metrics.json | 11781 ---------------- .../dashboards/agent/self-monitoring.json | 7068 --------- .../agent/service-graph-influxql.json | 485 - .../dashboards/agent/system-metrics.json | 5279 ------- .../influxdb/dashboards/dashboards.yml | 27 - .../dashboards/eum-server/Beacons.json | 479 - .../dashboards/eum-server/Traces.json | 805 -- .../influxdb/datasources/influxdb.yml | 84 - .../dashboards/agent/http-overview.json | 5918 -------- .../dashboards/agent/jvm-metrics.json | 10773 -------------- .../dashboards/agent/self-monitoring.json | 2001 --- .../dashboards/agent/service-graph.json | 306 - .../dashboards/agent/system-metrics.json | 4960 ------- .../prometheus/dashboards/dashboards.yml | 19 - .../prometheus/datasources/prometheus.yml | 47 - .../influx/continous-queries.iql | 11 - inspectit-ocelot-demo/load/Dockerfile | 15 - .../load/docker-entrypoint.sh | 11 - inspectit-ocelot-demo/load/load-script.yml | 63 - .../prometheus/prometheus.yml | 14 - .../telegraf/telegraf-influx.conf | 1250 -- .../telegraf/telegraf-wavefront.conf | 1250 -- 47 files changed, 72383 deletions(-) delete mode 100644 inspectit-ocelot-demo/.env delete mode 100644 inspectit-ocelot-demo/README.md delete mode 100644 inspectit-ocelot-demo/build.gradle delete mode 100644 inspectit-ocelot-demo/configuration-server/agent_mappings.yaml delete mode 100644 inspectit-ocelot-demo/configuration-server/files/all/general.yml delete mode 100644 inspectit-ocelot-demo/configuration-server/files/all/hsqldb-sql-extraction.yml delete mode 100644 inspectit-ocelot-demo/configuration-server/files/all/parametrize-eureka-paths.yml delete mode 100644 inspectit-ocelot-demo/configuration-server/files/all/validatePetType.yml delete mode 100644 inspectit-ocelot-demo/docker-compose-influxdb-jaeger.yml delete mode 100644 inspectit-ocelot-demo/docker-compose-influxdb-zipkin.yml delete mode 100644 inspectit-ocelot-demo/docker-compose-prometheus-jaeger.yml delete mode 100644 inspectit-ocelot-demo/docker-compose-wavefront-zipkin.yml delete mode 100644 inspectit-ocelot-demo/grafana/marketplace/dashboard-mapping.txt delete mode 100644 inspectit-ocelot-demo/grafana/marketplace/influx/http.json delete mode 100644 inspectit-ocelot-demo/grafana/marketplace/influx/jvm.json delete mode 100644 inspectit-ocelot-demo/grafana/marketplace/influx/selfmonitoring.json delete mode 100644 inspectit-ocelot-demo/grafana/marketplace/influx/servicegraph.json delete mode 100644 inspectit-ocelot-demo/grafana/marketplace/influx/system.json delete mode 100644 inspectit-ocelot-demo/grafana/marketplace/prometheus/http.json delete mode 100644 inspectit-ocelot-demo/grafana/marketplace/prometheus/jvm.json delete mode 100644 inspectit-ocelot-demo/grafana/marketplace/prometheus/selfmonitoring.json delete mode 100644 inspectit-ocelot-demo/grafana/marketplace/prometheus/servicegraph.json delete mode 100644 inspectit-ocelot-demo/grafana/marketplace/prometheus/system.json delete mode 100644 inspectit-ocelot-demo/grafana/provisioning/home-dashboard/home.json delete mode 100644 inspectit-ocelot-demo/grafana/provisioning/influxdb/dashboards/agent/http-overview-influxql.json delete mode 100644 inspectit-ocelot-demo/grafana/provisioning/influxdb/dashboards/agent/jvm-metrics.json delete mode 100644 inspectit-ocelot-demo/grafana/provisioning/influxdb/dashboards/agent/self-monitoring.json delete mode 100644 inspectit-ocelot-demo/grafana/provisioning/influxdb/dashboards/agent/service-graph-influxql.json delete mode 100644 inspectit-ocelot-demo/grafana/provisioning/influxdb/dashboards/agent/system-metrics.json delete mode 100644 inspectit-ocelot-demo/grafana/provisioning/influxdb/dashboards/dashboards.yml delete mode 100644 inspectit-ocelot-demo/grafana/provisioning/influxdb/dashboards/eum-server/Beacons.json delete mode 100644 inspectit-ocelot-demo/grafana/provisioning/influxdb/dashboards/eum-server/Traces.json delete mode 100644 inspectit-ocelot-demo/grafana/provisioning/influxdb/datasources/influxdb.yml delete mode 100644 inspectit-ocelot-demo/grafana/provisioning/prometheus/dashboards/agent/http-overview.json delete mode 100644 inspectit-ocelot-demo/grafana/provisioning/prometheus/dashboards/agent/jvm-metrics.json delete mode 100644 inspectit-ocelot-demo/grafana/provisioning/prometheus/dashboards/agent/self-monitoring.json delete mode 100644 inspectit-ocelot-demo/grafana/provisioning/prometheus/dashboards/agent/service-graph.json delete mode 100644 inspectit-ocelot-demo/grafana/provisioning/prometheus/dashboards/agent/system-metrics.json delete mode 100644 inspectit-ocelot-demo/grafana/provisioning/prometheus/dashboards/dashboards.yml delete mode 100644 inspectit-ocelot-demo/grafana/provisioning/prometheus/datasources/prometheus.yml delete mode 100644 inspectit-ocelot-demo/influx/continous-queries.iql delete mode 100644 inspectit-ocelot-demo/load/Dockerfile delete mode 100644 inspectit-ocelot-demo/load/docker-entrypoint.sh delete mode 100644 inspectit-ocelot-demo/load/load-script.yml delete mode 100644 inspectit-ocelot-demo/prometheus/prometheus.yml delete mode 100644 inspectit-ocelot-demo/telegraf/telegraf-influx.conf delete mode 100644 inspectit-ocelot-demo/telegraf/telegraf-wavefront.conf diff --git a/inspectit-ocelot-demo/.env b/inspectit-ocelot-demo/.env deleted file mode 100644 index b7e64b3f34..0000000000 --- a/inspectit-ocelot-demo/.env +++ /dev/null @@ -1,2 +0,0 @@ -INSPECTIT_OCELOT_VERSION=latest -INSPECTIT_PETCLINIC_VERSION=latest \ No newline at end of file diff --git a/inspectit-ocelot-demo/README.md b/inspectit-ocelot-demo/README.md deleted file mode 100644 index bae1bff919..0000000000 --- a/inspectit-ocelot-demo/README.md +++ /dev/null @@ -1,4 +0,0 @@ -# inspectIT Ocelot - Demo - -This project provides a comprehensive demonstration of the capabilities of the inspectIT Ocelot Java agent using different infrastructure architectures. -A detailed description of each existing scenario can be found in the [documentation](https://inspectit.github.io/inspectit-ocelot/docs/getting-started/docker-examples). diff --git a/inspectit-ocelot-demo/build.gradle b/inspectit-ocelot-demo/build.gradle deleted file mode 100644 index c19af51893..0000000000 --- a/inspectit-ocelot-demo/build.gradle +++ /dev/null @@ -1,24 +0,0 @@ -task setVersionForDockerCompose(type: Copy) { - from '.env' - into buildDir - filter { line -> line.replaceAll('INSPECTIT_OCELOT_VERSION=.*', "INSPECTIT_OCELOT_VERSION=${version}") } -} - -task packageDemo(type: Zip) { - dependsOn 'setVersionForDockerCompose' - archiveName = "inspectit-ocelot-demo-${version}.zip" - destinationDir = file(buildDir) - - from (projectDir){ - exclude "build.gradle" - exclude "README.md" - exclude "build/" - exclude "agent/" - exclude "**/Dockerfile" - exclude ".env" - } - - from (buildDir){ - include ".env" - } -} \ No newline at end of file diff --git a/inspectit-ocelot-demo/configuration-server/agent_mappings.yaml b/inspectit-ocelot-demo/configuration-server/agent_mappings.yaml deleted file mode 100644 index beb4d40c4b..0000000000 --- a/inspectit-ocelot-demo/configuration-server/agent_mappings.yaml +++ /dev/null @@ -1,17 +0,0 @@ -- name: "Gateway" - sources: - - "/gateway" - - "/all" - attributes: - service: "api-gateway" -- name: "Services" - sources: - - "/services" - - "/all" - attributes: - service: ".*-service" -- name: "Default Mapping" - sources: - - "/all" - attributes: - service: ".*" diff --git a/inspectit-ocelot-demo/configuration-server/files/all/general.yml b/inspectit-ocelot-demo/configuration-server/files/all/general.yml deleted file mode 100644 index 7708145682..0000000000 --- a/inspectit-ocelot-demo/configuration-server/files/all/general.yml +++ /dev/null @@ -1,9 +0,0 @@ -# See https://github.com/inspectIT/inspectit-oce/blob/0.1.M1/inspectit-oce-core/src/main/resources/config/default.yml -# for all the configuration options. -inspectit: - metrics: - # root setting for the polling frequency of all metrics - # when a metrics has no frequency defined separately, this frequency will be used - frequency: 5s - logging: - debug: false # set to true to see more details in the agents logs \ No newline at end of file diff --git a/inspectit-ocelot-demo/configuration-server/files/all/hsqldb-sql-extraction.yml b/inspectit-ocelot-demo/configuration-server/files/all/hsqldb-sql-extraction.yml deleted file mode 100644 index c0a94ab60e..0000000000 --- a/inspectit-ocelot-demo/configuration-server/files/all/hsqldb-sql-extraction.yml +++ /dev/null @@ -1,33 +0,0 @@ -inspectit: - instrumentation: - - scopes: - 's_hsqldb_prepared_statement_execute': - type: - name: 'org.hsqldb.jdbc.JDBCPreparedStatement' - methods: - - name: 'execute' - matcher-mode: STARTS_WITH - - actions: - # Extracts the SQL from a PreparedStatement for HSQLDB - 'a_hsqldb_prepared_statement_get_sql': - imports: - - 'org.hsqldb.jdbc' - - 'java.lang.reflect' - input: - _this: 'JDBCPreparedStatement' - _class: 'Class' - value-body: | - Field sqlField = _class.getDeclaredField("sql"); - sqlField.setAccessible(true); - return sqlField.get(_this); - - rules: - 'r_hsqldb_get_prep_statement_sql': - scopes: - 's_hsqldb_prepared_statement_execute': true - exit: - 'prepared_sql': - action: 'a_hsqldb_prepared_statement_get_sql' - only-if-null: 'prepared_sql' \ No newline at end of file diff --git a/inspectit-ocelot-demo/configuration-server/files/all/parametrize-eureka-paths.yml b/inspectit-ocelot-demo/configuration-server/files/all/parametrize-eureka-paths.yml deleted file mode 100644 index 2251e293a2..0000000000 --- a/inspectit-ocelot-demo/configuration-server/files/all/parametrize-eureka-paths.yml +++ /dev/null @@ -1,20 +0,0 @@ -inspectit: - instrumentation: - rules: - - # We extend the existing parametrization rules... - 'r_http_parametrize_path': - include: - 'r_parametrize_eureka_paths': true - - # .. with out own rule which parametrizes eureka paths - 'r_parametrize_eureka_paths': - entry: - 'http_path': - only-if-not-null: 'http_path' - action: 'a_regex_replaceMatch' - data-input: - 'string': 'http_path' - constant-input: - 'pattern': '\/eureka\/apps\/.+\/.+' - 'replacement': '/eureka/apps/{service}/{location}' diff --git a/inspectit-ocelot-demo/configuration-server/files/all/validatePetType.yml b/inspectit-ocelot-demo/configuration-server/files/all/validatePetType.yml deleted file mode 100644 index b7c4c6fab6..0000000000 --- a/inspectit-ocelot-demo/configuration-server/files/all/validatePetType.yml +++ /dev/null @@ -1,31 +0,0 @@ -inspectit: - instrumentation: - rules: - r_method_configuration_trace: - entry: - 'error_value': - action: 'a_assign_value' - constant-input: - 'value': 'birdTypeError' - tracing: - attributes: - 'errorTag': 'error_value' - include: - r_trace_method: true - scopes: - s_gen_scope_2531106c_77b9_4c1f_bb2a_551e1511aaaa: true - r_method_configuration_duration: - include: - r_method_metric: true - scopes: - s_gen_scope_2531106c_77b9_4c1f_bb2a_551e1511aaaa: true - scopes: - s_gen_scope_2531106c_77b9_4c1f_bb2a_551e1511aaaa: - type: - name: 'org.springframework.samples.petclinic.customers.web.PetResource' - matcher-mode: 'STARTS_WITH' - methods: - - name: validatePetType - matcher-mode: 'STARTS_WITH' - visibility: - - PRIVATE diff --git a/inspectit-ocelot-demo/docker-compose-influxdb-jaeger.yml b/inspectit-ocelot-demo/docker-compose-influxdb-jaeger.yml deleted file mode 100644 index 8fa3040fb6..0000000000 --- a/inspectit-ocelot-demo/docker-compose-influxdb-jaeger.yml +++ /dev/null @@ -1,250 +0,0 @@ -version: '3' - -services: - # Ocelot - ## Serves as a collector for traces - agent: - image: inspectit/inspectit-ocelot-agent:${INSPECTIT_OCELOT_VERSION} - container_name: agent - deploy: - resources: - limits: - memory: 128M - volumes: - - agent-vol:/agent - - ## Fetches the configuration - ocelot-config-server: - image: inspectit/inspectit-ocelot-configurationserver:${INSPECTIT_OCELOT_VERSION} - container_name: ocelot-config-server - deploy: - resources: - limits: - memory: 512M - environment: - - INSPECTIT_CONFIG_SERVER_WORKING_DIRECTORY=/configuration-server - - INSPECTIT_CONFIG_SERVER_DEFAULT_USER_PASSWORD=demo - volumes: - - ./configuration-server:/configuration-server - ports: - - 8090:8090 - - ## Self Monitoring - ocelot-eum-server: - image: inspectit/inspectit-ocelot-eum-server:${INSPECTIT_OCELOT_VERSION} - container_name: ocelot-eum-server - environment: - - INSPECTIT_EUM_SERVER_EXPORTERS_METRICS_PROMETHEUS_ENABLED=false - - INSPECTIT_EUM_SERVER_EXPORTERS_METRICS_INFLUX_URL=http://influxdb:8086 - - INSPECTIT_EUM_SERVER_EXPORTERS_METRICS_INFLUX_DATABASE=inspectit_eum - - INSPECTIT_EUM_SERVER_EXPORTERS_TRACING_JAEGER_GRPC=jaeger:14250 - deploy: - resources: - limits: - memory: 256M - volumes: - - ./eum-server:/eum-server - ports: - - 8085:8085 - - # Petclinic - config-server: - image: inspectit/spring-petclinic-config-server:${INSPECTIT_PETCLINIC_VERSION} - container_name: config-server - hostname: config-server - environment: - - INSPECTIT_SERVICE_NAME=config-server - - INSPECTIT_CONFIG_HTTP_URL=http://ocelot-config-server:8090/api/v1/agent/configuration - - INSPECTIT_EXPORTERS_METRICS_PROMETHEUS_ENABLED=false - - INSPECTIT_EXPORTERS_METRICS_INFLUX_URL=http://influxdb:8086 - - INSPECTIT_EXPORTERS_TRACING_JAEGER_URL=http://jaeger:14268/api/traces - deploy: - resources: - limits: - memory: 512M - depends_on: - - agent - - ocelot-config-server - entrypoint: ["./dockerize", "java", "-javaagent:/agent/inspectit-ocelot-agent.jar", "org.springframework.boot.loader.JarLauncher"] - volumes: - - agent-vol:/agent - ports: - - 8888:8888 - - discovery-server: - image: inspectit/spring-petclinic-discovery-server:${INSPECTIT_PETCLINIC_VERSION} - container_name: discovery-server - hostname: discovery-server - environment: - - INSPECTIT_SERVICE_NAME=discovery-server - - INSPECTIT_CONFIG_HTTP_URL=http://ocelot-config-server:8090/api/v1/agent/configuration - - INSPECTIT_EXPORTERS_METRICS_PROMETHEUS_ENABLED=false - - INSPECTIT_EXPORTERS_METRICS_INFLUX_URL=http://influxdb:8086 - - INSPECTIT_EXPORTERS_TRACING_JAEGER_URL=http://jaeger:14268/api/traces - deploy: - resources: - limits: - memory: 512M - depends_on: - - agent - - ocelot-config-server - - config-server - entrypoint: ["./dockerize","-wait=tcp://config-server:8888","-timeout=120s","--", "java", "-javaagent:/agent/inspectit-ocelot-agent.jar", "org.springframework.boot.loader.JarLauncher"] - volumes: - - agent-vol:/agent - ports: - - 8761:8761 - - customers-service: - image: inspectit/spring-petclinic-customers-service:${INSPECTIT_PETCLINIC_VERSION} - container_name: customers-service - hostname: customers-service - environment: - - INSPECTIT_SERVICE_NAME=customers-service - - INSPECTIT_CONFIG_HTTP_URL=http://ocelot-config-server:8090/api/v1/agent/configuration - - INSPECTIT_EXPORTERS_METRICS_PROMETHEUS_ENABLED=false - - INSPECTIT_EXPORTERS_METRICS_INFLUX_URL=http://influxdb:8086 - - INSPECTIT_EXPORTERS_TRACING_JAEGER_URL=http://jaeger:14268/api/traces - deploy: - resources: - limits: - memory: 512M - depends_on: - - agent - - ocelot-config-server - - config-server - - discovery-server - entrypoint: ["./dockerize","-wait=tcp://discovery-server:8761","-timeout=120s","--","java", "-javaagent:/agent/inspectit-ocelot-agent.jar", "org.springframework.boot.loader.JarLauncher"] - volumes: - - agent-vol:/agent - ports: - - 8081:8081 - - visits-service: - image: inspectit/spring-petclinic-visits-service:${INSPECTIT_PETCLINIC_VERSION} - container_name: visits-service - hostname: visits-service - environment: - - INSPECTIT_SERVICE_NAME=visits-service - - INSPECTIT_CONFIG_HTTP_URL=http://ocelot-config-server:8090/api/v1/agent/configuration - - INSPECTIT_EXPORTERS_METRICS_PROMETHEUS_ENABLED=false - - INSPECTIT_EXPORTERS_METRICS_INFLUX_URL=http://influxdb:8086 - - INSPECTIT_EXPORTERS_TRACING_JAEGER_URL=http://jaeger:14268/api/traces - deploy: - resources: - limits: - memory: 512M - depends_on: - - agent - - ocelot-config-server - - config-server - - discovery-server - entrypoint: ["./dockerize","-wait=tcp://discovery-server:8761","-timeout=120s","--","java", "-javaagent:/agent/inspectit-ocelot-agent.jar", "org.springframework.boot.loader.JarLauncher"] - volumes: - - agent-vol:/agent - ports: - - 8082:8082 - - vets-service: - image: inspectit/spring-petclinic-vets-service:${INSPECTIT_PETCLINIC_VERSION} - container_name: vets-service - hostname: vets-service - environment: - - INSPECTIT_SERVICE_NAME=vets-service - - INSPECTIT_CONFIG_HTTP_URL=http://ocelot-config-server:8090/api/v1/agent/configuration - - INSPECTIT_EXPORTERS_METRICS_PROMETHEUS_ENABLED=false - - INSPECTIT_EXPORTERS_METRICS_INFLUX_URL=http://influxdb:8086 - - INSPECTIT_EXPORTERS_TRACING_JAEGER_URL=http://jaeger:14268/api/traces - deploy: - resources: - limits: - memory: 512M - depends_on: - - agent - - ocelot-config-server - - config-server - - discovery-server - entrypoint: ["./dockerize","-wait=tcp://discovery-server:8761","-timeout=120s","--","java", "-javaagent:/agent/inspectit-ocelot-agent.jar", "org.springframework.boot.loader.JarLauncher"] - volumes: - - agent-vol:/agent - ports: - - 8083:8083 - - api-gateway: - image: inspectit/spring-petclinic-api-gateway:${INSPECTIT_PETCLINIC_VERSION} - container_name: api-gateway - hostname: api-gateway - environment: - - INSPECTIT_SERVICE_NAME=api-gateway - - INSPECTIT_CONFIG_HTTP_URL=http://ocelot-config-server:8090/api/v1/agent/configuration - - INSPECTIT_EXPORTERS_METRICS_PROMETHEUS_ENABLED=false - - INSPECTIT_EXPORTERS_METRICS_INFLUX_URL=http://influxdb:8086 - - INSPECTIT_EXPORTERS_TRACING_JAEGER_URL=http://jaeger:14268/api/traces - deploy: - resources: - limits: - memory: 512M - depends_on: - - agent - - ocelot-config-server - - config-server - - discovery-server - entrypoint: ["./dockerize","-wait=tcp://discovery-server:8761","-timeout=120s","--","java", "-javaagent:/agent/inspectit-ocelot-agent.jar", "org.springframework.boot.loader.JarLauncher"] - volumes: - - agent-vol:/agent - ports: - - 8080:8080 - - # Monitoring Backend - - # Load Generator - ## Artificial load on Demo - load: - image: inspectit/spring-petclinic-load:1.0 - container_name: load-generator - hostname: load-generator - - # InfluxDB - ## Time Series Database - influxdb: - image: influxdb:1.8 - container_name: influxdb - environment: - - INFLUXDB_HTTP_FLUX_ENABLED=true - - INFLUXDB_HTTP_LOG_ENABLED=false - - INFLUXDB_DATA_QUERY_LOG_ENABLED=false - deploy: - resources: - limits: - memory: 512M - volumes: - - ./influx:/docker-entrypoint-initdb.d - ports: - - 8086:8086 - - # Jaeger - ## Collects and visualizes traces - jaeger: - image: jaegertracing/all-in-one:1.25.0 - container_name: jaeger - ports: - - 16686:16686 - - # Grafana - ## Dashboarding - grafana: - image: grafana/grafana:8.0.6 - container_name: grafana - environment: - - GF_PANELS_DISABLE_SANITIZE_HTML=TRUE - - GF_SECURITY_ADMIN_PASSWORD=demo - - GF_PATHS_PROVISIONING=/usr/share/grafana/custom/ - - GF_INSTALL_PLUGINS=https://github.com/NovatecConsulting/novatec-service-dependency-graph-panel/releases/download/v4.0.2/novatec-sdg-panel.zip;novatec-sdg-panel - volumes: - - ./grafana/provisioning/influxdb:/usr/share/grafana/custom/ - - ./grafana/provisioning/home-dashboard/home.json:/usr/share/grafana/public/dashboards/home.json - ports: - - 3000:3000 - -volumes: - agent-vol: diff --git a/inspectit-ocelot-demo/docker-compose-influxdb-zipkin.yml b/inspectit-ocelot-demo/docker-compose-influxdb-zipkin.yml deleted file mode 100644 index d004d8b0c6..0000000000 --- a/inspectit-ocelot-demo/docker-compose-influxdb-zipkin.yml +++ /dev/null @@ -1,249 +0,0 @@ -version: '3' - -services: - # Ocelot - ## Serves as a collector for traces - agent: - image: inspectit/inspectit-ocelot-agent:${INSPECTIT_OCELOT_VERSION} - container_name: agent - deploy: - resources: - limits: - memory: 128M - volumes: - - agent-vol:/agent - - ## Fetches the configuration - ocelot-config-server: - image: inspectit/inspectit-ocelot-configurationserver:${INSPECTIT_OCELOT_VERSION} - container_name: ocelot-config-server - deploy: - resources: - limits: - memory: 512M - environment: - - INSPECTIT_CONFIG_SERVER_WORKING_DIRECTORY=/configuration-server - - INSPECTIT_CONFIG_SERVER_DEFAULT_USER_PASSWORD=demo - volumes: - - ./configuration-server:/configuration-server - ports: - - 8090:8090 - - ## Self Monitoring - ocelot-eum-server: - image: inspectit/inspectit-ocelot-eum-server:${INSPECTIT_OCELOT_VERSION} - container_name: ocelot-eum-server - environment: - - INSPECTIT_EUM_SERVER_EXPORTERS_METRICS_PROMETHEUS_ENABLED=false - - INSPECTIT_EUM_SERVER_EXPORTERS_METRICS_INFLUX_URL=http://influxdb:8086 - - INSPECTIT_EUM_SERVER_EXPORTERS_METRICS_INFLUX_DATABASE=inspectit_eum - deploy: - resources: - limits: - memory: 256M - volumes: - - ./eum-server:/eum-server - ports: - - 8085:8085 - - # Petclinic - config-server: - image: inspectit/spring-petclinic-config-server:${INSPECTIT_PETCLINIC_VERSION} - container_name: config-server - hostname: config-server - environment: - - INSPECTIT_SERVICE_NAME=config-server - - INSPECTIT_CONFIG_HTTP_URL=http://ocelot-config-server:8090/api/v1/agent/configuration - - INSPECTIT_EXPORTERS_METRICS_PROMETHEUS_ENABLED=false - - INSPECTIT_EXPORTERS_METRICS_INFLUX_URL=http://influxdb:8086 - - INSPECTIT_EXPORTERS_TRACING_ZIPKIN_URL=http://zipkin:9411/api/v2/spans - deploy: - resources: - limits: - memory: 512M - depends_on: - - agent - - ocelot-config-server - entrypoint: ["./dockerize", "java", "-javaagent:/agent/inspectit-ocelot-agent.jar", "org.springframework.boot.loader.JarLauncher"] - volumes: - - agent-vol:/agent - ports: - - 8888:8888 - - discovery-server: - image: inspectit/spring-petclinic-discovery-server:${INSPECTIT_PETCLINIC_VERSION} - container_name: discovery-server - hostname: discovery-server - environment: - - INSPECTIT_SERVICE_NAME=discovery-server - - INSPECTIT_CONFIG_HTTP_URL=http://ocelot-config-server:8090/api/v1/agent/configuration - - INSPECTIT_EXPORTERS_METRICS_PROMETHEUS_ENABLED=false - - INSPECTIT_EXPORTERS_METRICS_INFLUX_URL=http://influxdb:8086 - - INSPECTIT_EXPORTERS_TRACING_ZIPKIN_URL=http://zipkin:9411/api/v2/spans - deploy: - resources: - limits: - memory: 512M - depends_on: - - agent - - ocelot-config-server - - config-server - entrypoint: ["./dockerize","-wait=tcp://config-server:8888","-timeout=120s","--","java", "-javaagent:/agent/inspectit-ocelot-agent.jar", "org.springframework.boot.loader.JarLauncher"] - volumes: - - agent-vol:/agent - ports: - - 8761:8761 - - customers-service: - image: inspectit/spring-petclinic-customers-service:${INSPECTIT_PETCLINIC_VERSION} - container_name: customers-service - hostname: customers-service - environment: - - INSPECTIT_SERVICE_NAME=customers-service - - INSPECTIT_CONFIG_HTTP_URL=http://ocelot-config-server:8090/api/v1/agent/configuration - - INSPECTIT_EXPORTERS_METRICS_PROMETHEUS_ENABLED=false - - INSPECTIT_EXPORTERS_METRICS_INFLUX_URL=http://influxdb:8086 - - INSPECTIT_EXPORTERS_TRACING_ZIPKIN_URL=http://zipkin:9411/api/v2/spans - deploy: - resources: - limits: - memory: 512M - depends_on: - - agent - - ocelot-config-server - - config-server - - discovery-server - entrypoint: ["./dockerize","-wait=tcp://discovery-server:8761","-timeout=120s","--","java", "-javaagent:/agent/inspectit-ocelot-agent.jar", "org.springframework.boot.loader.JarLauncher"] - volumes: - - agent-vol:/agent - ports: - - 8081:8081 - - visits-service: - image: inspectit/spring-petclinic-visits-service:${INSPECTIT_PETCLINIC_VERSION} - container_name: visits-service - hostname: visits-service - environment: - - INSPECTIT_SERVICE_NAME=visits-service - - INSPECTIT_CONFIG_HTTP_URL=http://ocelot-config-server:8090/api/v1/agent/configuration - - INSPECTIT_EXPORTERS_METRICS_PROMETHEUS_ENABLED=false - - INSPECTIT_EXPORTERS_METRICS_INFLUX_URL=http://influxdb:8086 - - INSPECTIT_EXPORTERS_TRACING_ZIPKIN_URL=http://zipkin:9411/api/v2/spans - deploy: - resources: - limits: - memory: 512M - depends_on: - - agent - - ocelot-config-server - - config-server - - discovery-server - entrypoint: ["./dockerize","-wait=tcp://discovery-server:8761","-timeout=120s","--","java", "-javaagent:/agent/inspectit-ocelot-agent.jar", "org.springframework.boot.loader.JarLauncher"] - volumes: - - agent-vol:/agent - ports: - - 8082:8082 - - vets-service: - image: inspectit/spring-petclinic-vets-service:${INSPECTIT_PETCLINIC_VERSION} - container_name: vets-service - hostname: vets-service - environment: - - INSPECTIT_SERVICE_NAME=vets-service - - INSPECTIT_CONFIG_HTTP_URL=http://ocelot-config-server:8090/api/v1/agent/configuration - - INSPECTIT_EXPORTERS_METRICS_PROMETHEUS_ENABLED=false - - INSPECTIT_EXPORTERS_METRICS_INFLUX_URL=http://influxdb:8086 - - INSPECTIT_EXPORTERS_TRACING_ZIPKIN_URL=http://zipkin:9411/api/v2/spans - deploy: - resources: - limits: - memory: 512M - depends_on: - - agent - - ocelot-config-server - - config-server - - discovery-server - entrypoint: ["./dockerize","-wait=tcp://discovery-server:8761","-timeout=120s","--","java", "-javaagent:/agent/inspectit-ocelot-agent.jar", "org.springframework.boot.loader.JarLauncher"] - volumes: - - agent-vol:/agent - ports: - - 8083:8083 - - api-gateway: - image: inspectit/spring-petclinic-api-gateway:${INSPECTIT_PETCLINIC_VERSION} - container_name: api-gateway - hostname: api-gateway - environment: - - INSPECTIT_SERVICE_NAME=api-gateway - - INSPECTIT_CONFIG_HTTP_URL=http://ocelot-config-server:8090/api/v1/agent/configuration - - INSPECTIT_EXPORTERS_METRICS_PROMETHEUS_ENABLED=false - - INSPECTIT_EXPORTERS_METRICS_INFLUX_URL=http://influxdb:8086 - - INSPECTIT_EXPORTERS_TRACING_ZIPKIN_URL=http://zipkin:9411/api/v2/spans - deploy: - resources: - limits: - memory: 512M - depends_on: - - agent - - ocelot-config-server - - config-server - - discovery-server - entrypoint: ["./dockerize","-wait=tcp://discovery-server:8761","-timeout=120s","--","java", "-javaagent:/agent/inspectit-ocelot-agent.jar", "org.springframework.boot.loader.JarLauncher"] - volumes: - - agent-vol:/agent - ports: - - 8080:8080 - - # Monitoring Backend - - # Load Generator - ## Artificial load on Demo - load: - image: inspectit/spring-petclinic-load:1.0 - container_name: load-generator - hostname: load-generator - - # InfluxDB - ## Time Series Database - influxdb: - image: influxdb:1.8 - container_name: influxdb - environment: - - INFLUXDB_HTTP_FLUX_ENABLED=true - - INFLUXDB_HTTP_LOG_ENABLED=false - - INFLUXDB_DATA_QUERY_LOG_ENABLED=false - deploy: - resources: - limits: - memory: 512M - volumes: - - ./influx:/docker-entrypoint-initdb.d - ports: - - 8086:8086 - - # Zipkin - ## Collects and visualizes traces - zipkin: - image: openzipkin/zipkin - container_name: zipkin - ports: - - 9411:9411 - - # Grafana - ## Dashboarding - grafana: - image: grafana/grafana:8.0.6 - container_name: grafana - environment: - - GF_PANELS_DISABLE_SANITIZE_HTML=TRUE - - GF_SECURITY_ADMIN_PASSWORD=demo - - GF_PATHS_PROVISIONING=/usr/share/grafana/custom/ - - GF_INSTALL_PLUGINS=https://github.com/NovatecConsulting/novatec-service-dependency-graph-panel/releases/download/v4.0.2/novatec-sdg-panel.zip;novatec-sdg-panel - volumes: - - ./grafana/provisioning/influxdb:/usr/share/grafana/custom/ - - ./grafana/provisioning/home-dashboard/home.json:/usr/share/grafana/public/dashboards/home.json - ports: - - 3000:3000 - -volumes: - agent-vol: diff --git a/inspectit-ocelot-demo/docker-compose-prometheus-jaeger.yml b/inspectit-ocelot-demo/docker-compose-prometheus-jaeger.yml deleted file mode 100644 index ad88545946..0000000000 --- a/inspectit-ocelot-demo/docker-compose-prometheus-jaeger.yml +++ /dev/null @@ -1,245 +0,0 @@ -version: '3' - -services: - # Ocelot - ## Serves as a collector for traces - agent: - image: inspectit/inspectit-ocelot-agent:${INSPECTIT_OCELOT_VERSION} - container_name: agent - deploy: - resources: - limits: - memory: 128M - volumes: - - agent-vol:/agent - - ## Fetches the configuration - ocelot-config-server: - image: inspectit/inspectit-ocelot-configurationserver:${INSPECTIT_OCELOT_VERSION} - container_name: ocelot-config-server - deploy: - resources: - limits: - memory: 256M - environment: - - INSPECTIT_CONFIG_SERVER_WORKING_DIRECTORY=/configuration-server - - INSPECTIT_CONFIG_SERVER_DEFAULT_USER_PASSWORD=demo - volumes: - - ./configuration-server:/configuration-server - ports: - - 8090:8090 - - ## Self Monitoring - ocelot-eum-server: - image: inspectit/inspectit-ocelot-eum-server:${INSPECTIT_OCELOT_VERSION} - container_name: ocelot-eum-server - hostname: ocelot-eum-server - environment: - - INSPECTIT_EUM_SERVER_EXPORTERS_METRICS_PROMETHEUS_PORT=9097 - - INSPECTIT_EUM_SERVER_EXPORTERS_METRICS_PROMETHEUS_HOST=0.0.0.0 - - INSPECTIT_EUM_SERVER_EXPORTERS_TRACING_JAEGER_GRPC=jaeger:14250 - - deploy: - resources: - limits: - memory: 256M - volumes: - - ./eum-server:/eum-server - ports: - - 8085:8085 - - 9097:9097 - - # Petclinic - config-server: - image: inspectit/spring-petclinic-config-server:${INSPECTIT_PETCLINIC_VERSION} - container_name: config-server - hostname: config-server - environment: - - INSPECTIT_SERVICE_NAME=config-server - - INSPECTIT_CONFIG_HTTP_URL=http://ocelot-config-server:8090/api/v1/agent/configuration - - INSPECTIT_EXPORTERS_METRICS_PROMETHEUS_PORT=9096 - - INSPECTIT_EXPORTERS_TRACING_JAEGER_URL=http://jaeger:14268/api/traces - deploy: - resources: - limits: - memory: 512M - depends_on: - - agent - - ocelot-config-server - entrypoint: ["./dockerize", "java", "-javaagent:/agent/inspectit-ocelot-agent.jar", "org.springframework.boot.loader.JarLauncher"] - volumes: - - agent-vol:/agent - ports: - - 8888:8888 - - 9096:9096 - - discovery-server: - image: inspectit/spring-petclinic-discovery-server:${INSPECTIT_PETCLINIC_VERSION} - container_name: discovery-server - hostname: discovery-server - environment: - - INSPECTIT_SERVICE_NAME=discovery-server - - INSPECTIT_CONFIG_HTTP_URL=http://ocelot-config-server:8090/api/v1/agent/configuration - - INSPECTIT_EXPORTERS_METRICS_PROMETHEUS_PORT=9095 - - INSPECTIT_EXPORTERS_TRACING_JAEGER_URL=http://jaeger:14268/api/traces - deploy: - resources: - limits: - memory: 512M - depends_on: - - agent - - ocelot-config-server - - config-server - entrypoint: ["./dockerize","-wait=tcp://config-server:8888","-timeout=120s","--","java", "-javaagent:/agent/inspectit-ocelot-agent.jar", "org.springframework.boot.loader.JarLauncher"] - volumes: - - agent-vol:/agent - ports: - - 8761:8761 - - 9095:9095 - - customers-service: - image: inspectit/spring-petclinic-customers-service:${INSPECTIT_PETCLINIC_VERSION} - container_name: customers-service - hostname: customers-service - environment: - - INSPECTIT_SERVICE_NAME=customers-service - - INSPECTIT_CONFIG_HTTP_URL=http://ocelot-config-server:8090/api/v1/agent/configuration - - INSPECTIT_EXPORTERS_METRICS_PROMETHEUS_PORT=9091 - - INSPECTIT_EXPORTERS_TRACING_JAEGER_URL=http://jaeger:14268/api/traces - deploy: - resources: - limits: - memory: 512M - depends_on: - - agent - - ocelot-config-server - - config-server - - discovery-server - entrypoint: ["./dockerize","-wait=tcp://discovery-server:8761","-timeout=120s","--","java", "-javaagent:/agent/inspectit-ocelot-agent.jar", "org.springframework.boot.loader.JarLauncher"] - volumes: - - agent-vol:/agent - ports: - - 8081:8081 - - 9091:9091 - - visits-service: - image: inspectit/spring-petclinic-visits-service:${INSPECTIT_PETCLINIC_VERSION} - container_name: visits-service - hostname: visits-service - environment: - - INSPECTIT_SERVICE_NAME=visits-service - - INSPECTIT_CONFIG_HTTP_URL=http://ocelot-config-server:8090/api/v1/agent/configuration - - INSPECTIT_EXPORTERS_METRICS_PROMETHEUS_PORT=9092 - - INSPECTIT_EXPORTERS_TRACING_JAEGER_URL=http://jaeger:14268/api/traces - deploy: - resources: - limits: - memory: 512M - depends_on: - - agent - - ocelot-config-server - - config-server - - discovery-server - entrypoint: ["./dockerize","-wait=tcp://discovery-server:8761","-timeout=120s","--","java", "-javaagent:/agent/inspectit-ocelot-agent.jar", "org.springframework.boot.loader.JarLauncher"] - volumes: - - agent-vol:/agent - ports: - - 8082:8082 - - 9092:9092 - - vets-service: - image: inspectit/spring-petclinic-vets-service:${INSPECTIT_PETCLINIC_VERSION} - container_name: vets-service - hostname: vets-service - environment: - - INSPECTIT_SERVICE_NAME=vets-service - - INSPECTIT_CONFIG_HTTP_URL=http://ocelot-config-server:8090/api/v1/agent/configuration - - INSPECTIT_EXPORTERS_METRICS_PROMETHEUS_PORT=9093 - - INSPECTIT_EXPORTERS_TRACING_JAEGER_URL=http://jaeger:14268/api/traces - deploy: - resources: - limits: - memory: 512M - depends_on: - - agent - - ocelot-config-server - - config-server - - discovery-server - entrypoint: ["./dockerize","-wait=tcp://discovery-server:8761","-timeout=120s","--","java", "-javaagent:/agent/inspectit-ocelot-agent.jar", "org.springframework.boot.loader.JarLauncher"] - volumes: - - agent-vol:/agent - ports: - - 8083:8083 - - 9093:9093 - - api-gateway: - image: inspectit/spring-petclinic-api-gateway:${INSPECTIT_PETCLINIC_VERSION} - container_name: api-gateway - hostname: api-gateway - environment: - - INSPECTIT_SERVICE_NAME=api-gateway - - INSPECTIT_CONFIG_HTTP_URL=http://ocelot-config-server:8090/api/v1/agent/configuration - - INSPECTIT_EXPORTERS_METRICS_PROMETHEUS_PORT=9094 - - INSPECTIT_EXPORTERS_TRACING_JAEGER_URL=http://jaeger:14268/api/traces - deploy: - resources: - limits: - memory: 512M - depends_on: - - agent - - ocelot-config-server - - config-server - - discovery-server - entrypoint: ["./dockerize","-wait=tcp://discovery-server:8761","-timeout=120s","--","java", "-javaagent:/agent/inspectit-ocelot-agent.jar", "org.springframework.boot.loader.JarLauncher"] - volumes: - - agent-vol:/agent - ports: - - 8080:8080 - - 9094:9094 - - # Monitoring Backend - - # Load Generator - ## Artificial load on Demo - load: - image: inspectit/spring-petclinic-load:1.0 - container_name: load-generator - hostname: load-generator - - # Prometheus - ## Time Series Database & Monitoring - prometheus: - image: prom/prometheus:v2.29.1 - container_name: prometheus - volumes: - - ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml - ports: - - 9090:9090 - - # Jaeger - ## Collects and visualizes traces - jaeger: - image: jaegertracing/all-in-one:1.25.0 - container_name: jaeger - ports: - - 16686:16686 - - # Grafana - ## Dashboarding - grafana: - image: grafana/grafana:8.0.6 - container_name: grafana - environment: - - GF_PANELS_DISABLE_SANITIZE_HTML=TRUE - - GF_SECURITY_ADMIN_PASSWORD=demo - - GF_PATHS_PROVISIONING=/usr/share/grafana/custom/ - - GF_INSTALL_PLUGINS=https://github.com/NovatecConsulting/novatec-service-dependency-graph-panel/releases/download/v4.0.2/novatec-sdg-panel.zip;novatec-sdg-panel - volumes: - - ./grafana/provisioning/prometheus:/usr/share/grafana/custom/ - - ./grafana/provisioning/home-dashboard/home.json:/usr/share/grafana/public/dashboards/home.json - - ports: - - 3000:3000 - -volumes: - agent-vol: diff --git a/inspectit-ocelot-demo/docker-compose-wavefront-zipkin.yml b/inspectit-ocelot-demo/docker-compose-wavefront-zipkin.yml deleted file mode 100644 index ba7db1ab1a..0000000000 --- a/inspectit-ocelot-demo/docker-compose-wavefront-zipkin.yml +++ /dev/null @@ -1,223 +0,0 @@ -version: '3' - -services: - # Ocelot - ## Serves as a collector for traces - agent: - image: inspectit/inspectit-ocelot-agent:${INSPECTIT_OCELOT_VERSION} - container_name: agent - deploy: - resources: - limits: - memory: 128M - volumes: - - agent-vol:/agent - - ## Fetches the configuration - ocelot-config-server: - image: inspectit/inspectit-ocelot-configurationserver:${INSPECTIT_OCELOT_VERSION} - container_name: ocelot-config-server - deploy: - resources: - limits: - memory: 256M - environment: - - INSPECTIT_CONFIG_SERVER_WORKING_DIRECTORY=/configuration-server - - INSPECTIT_CONFIG_SERVER_DEFAULT_USER_PASSWORD=demo - volumes: - - ./configuration-server:/configuration-server - ports: - - 8090:8090 - - # Petclinic - config-server: - image: inspectit/spring-petclinic-config-server:${INSPECTIT_PETCLINIC_VERSION} - container_name: config-server - hostname: config-server - environment: - - INSPECTIT_SERVICE_NAME=config-server - - INSPECTIT_CONFIG_HTTP_URL=http://ocelot-config-server:8090/api/v1/agent/configuration - - INSPECTIT_EXPORTERS_METRICS_PROMETHEUS_PORT=9096 - - INSPECTIT_EXPORTERS_TRACING_ZIPKIN_URL=http://wfproxy:9411/api/v2/spans - deploy: - resources: - limits: - memory: 512M - depends_on: - - agent - - ocelot-config-server - - wfproxy - entrypoint: ["./dockerize", "java", "-javaagent:/agent/inspectit-ocelot-agent.jar", "org.springframework.boot.loader.JarLauncher"] - volumes: - - agent-vol:/agent - ports: - - 8888:8888 - - 9096:9096 - - discovery-server: - image: inspectit/spring-petclinic-discovery-server:${INSPECTIT_PETCLINIC_VERSION} - container_name: discovery-server - hostname: discovery-server - environment: - - INSPECTIT_SERVICE_NAME=discovery-server - - INSPECTIT_CONFIG_HTTP_URL=http://ocelot-config-server:8090/api/v1/agent/configuration - - INSPECTIT_EXPORTERS_METRICS_PROMETHEUS_PORT=9095 - - INSPECTIT_EXPORTERS_TRACING_ZIPKIN_URL=http://wfproxy:9411/api/v2/spans - deploy: - resources: - limits: - memory: 512M - depends_on: - - ocelot-config-server - - agent - - wfproxy - - config-server - entrypoint: ["./dockerize","-wait=tcp://config-server:8888","-timeout=60s","--","java", "-javaagent:/agent/inspectit-ocelot-agent.jar", "org.springframework.boot.loader.JarLauncher"] - volumes: - - agent-vol:/agent - ports: - - 8761:8761 - - 9095:9095 - - customers-service: - image: inspectit/spring-petclinic-customers-service:${INSPECTIT_PETCLINIC_VERSION} - container_name: customers-service - hostname: customers-service - environment: - - INSPECTIT_SERVICE_NAME=customers-service - - INSPECTIT_CONFIG_HTTP_URL=http://ocelot-config-server:8090/api/v1/agent/configuration - - INSPECTIT_EXPORTERS_METRICS_PROMETHEUS_PORT=9091 - - INSPECTIT_EXPORTERS_TRACING_ZIPKIN_URL=http://wfproxy:9411/api/v2/spans - deploy: - resources: - limits: - memory: 512M - depends_on: - - ocelot-config-server - - agent - - wfproxy - - config-server - - discovery-server - entrypoint: ["./dockerize","-wait=tcp://discovery-server:8761","-timeout=60s","--","java", "-javaagent:/agent/inspectit-ocelot-agent.jar", "org.springframework.boot.loader.JarLauncher"] - volumes: - - agent-vol:/agent - ports: - - 8081:8081 - - 9091:9091 - - visits-service: - image: inspectit/spring-petclinic-visits-service:${INSPECTIT_PETCLINIC_VERSION} - container_name: visits-service - hostname: visits-service - environment: - - INSPECTIT_SERVICE_NAME=visits-service - - INSPECTIT_CONFIG_HTTP_URL=http://ocelot-config-server:8090/api/v1/agent/configuration - - INSPECTIT_EXPORTERS_METRICS_PROMETHEUS_PORT=9092 - - INSPECTIT_EXPORTERS_TRACING_ZIPKIN_URL=http://wfproxy:9411/api/v2/spans - deploy: - resources: - limits: - memory: 512M - depends_on: - - ocelot-config-server - - agent - - wfproxy - - config-server - - discovery-server - entrypoint: ["./dockerize","-wait=tcp://discovery-server:8761","-timeout=60s","--","java", "-javaagent:/agent/inspectit-ocelot-agent.jar", "org.springframework.boot.loader.JarLauncher"] - volumes: - - agent-vol:/agent - ports: - - 8082:8082 - - 9092:9092 - - vets-service: - image: inspectit/spring-petclinic-vets-service:${INSPECTIT_PETCLINIC_VERSION} - container_name: vets-service - hostname: vets-service - environment: - - INSPECTIT_SERVICE_NAME=vets-service - - INSPECTIT_CONFIG_HTTP_URL=http://ocelot-config-server:8090/api/v1/agent/configuration - - INSPECTIT_EXPORTERS_METRICS_PROMETHEUS_PORT=9093 - - INSPECTIT_EXPORTERS_TRACING_ZIPKIN_URL=http://wfproxy:9411/api/v2/spans - deploy: - resources: - limits: - memory: 512M - depends_on: - - ocelot-config-server - - agent - - wfproxy - - config-server - - discovery-server - entrypoint: ["./dockerize","-wait=tcp://discovery-server:8761","-timeout=60s","--","java", "-javaagent:/agent/inspectit-ocelot-agent.jar", "org.springframework.boot.loader.JarLauncher"] - volumes: - - agent-vol:/agent - ports: - - 8083:8083 - - 9093:9093 - - api-gateway: - image: inspectit/spring-petclinic-api-gateway:${INSPECTIT_PETCLINIC_VERSION} - container_name: api-gateway - hostname: api-gateway - environment: - - INSPECTIT_SERVICE_NAME=api-gateway - - INSPECTIT_CONFIG_HTTP_URL=http://ocelot-config-server:8090/api/v1/agent/configuration - - INSPECTIT_EXPORTERS_METRICS_PROMETHEUS_PORT=9094 - - INSPECTIT_EXPORTERS_TRACING_ZIPKIN_URL=http://wfproxy:9411/api/v2/spans - deploy: - resources: - limits: - memory: 512M - depends_on: - - ocelot-config-server - - agent - - wfproxy - - config-server - - discovery-server - entrypoint: ["./dockerize","-wait=tcp://discovery-server:8761","-timeout=60s","--","java", "-javaagent:/agent/inspectit-ocelot-agent.jar", "org.springframework.boot.loader.JarLauncher"] - volumes: - - agent-vol:/agent - ports: - - 8080:8080 - - 9094:9094 - - # Monitoring Backend - - # Load Generator - ## Artificial load on Demo - load: - image: inspectit/spring-petclinic-load:1.0 - container_name: load-generator - hostname: load-generator - - # Wavefront - ## Time Series Database & Monitoring & Dashboarding - wfproxy: - image: wavefronthq/proxy:latest - container_name: wfproxy - environment: - - WAVEFRONT_URL=${WAVEFRONT_URL} - - WAVEFRONT_TOKEN=${WAVEFRONT_TOKEN} - - "WAVEFRONT_PROXY_ARGS=--traceZipkinListenerPorts 9411" - ports: - - 2879:2878 - - 9411:9411 - - # Telegraf - ## Monitoring Agent for Wavefront - telegraf: - image: telegraf:1.19.2 - container_name: telegraf - depends_on: - - wfproxy - volumes: - - ./telegraf/telegraf-wavefront.conf:/etc/telegraf/telegraf.conf:ro - deploy: - resources: - limits: - memory: 512M - -volumes: - agent-vol: diff --git a/inspectit-ocelot-demo/grafana/marketplace/dashboard-mapping.txt b/inspectit-ocelot-demo/grafana/marketplace/dashboard-mapping.txt deleted file mode 100644 index 2b6dcdb8f3..0000000000 --- a/inspectit-ocelot-demo/grafana/marketplace/dashboard-mapping.txt +++ /dev/null @@ -1,10 +0,0 @@ -10138=prometheus/http.json -9598=prometheus/jvm.json -10140=prometheus/selfmonitoring.json -10139=prometheus/servicegraph.json -9599=prometheus/system.json -10141=influx/http.json -9600=influx/jvm.json -10143=influx/selfmonitoring.json -10142=influx/servicegraph.json -9601=influx/system.json \ No newline at end of file diff --git a/inspectit-ocelot-demo/grafana/marketplace/influx/http.json b/inspectit-ocelot-demo/grafana/marketplace/influx/http.json deleted file mode 100644 index 8cf30727c8..0000000000 --- a/inspectit-ocelot-demo/grafana/marketplace/influx/http.json +++ /dev/null @@ -1,1311 +0,0 @@ -{ - "__inputs": [ - { - "name": "DS_LOCALINFLUX", - "label": "LocalInflux", - "description": "", - "type": "datasource", - "pluginId": "influxdb", - "pluginName": "InfluxDB" - } - ], - "__requires": [ - { - "type": "grafana", - "id": "grafana", - "name": "Grafana", - "version": "6.7.3" - }, - { - "type": "panel", - "id": "graph", - "name": "Graph", - "version": "" - }, - { - "type": "datasource", - "id": "influxdb", - "name": "InfluxDB", - "version": "1.0.0" - }, - { - "type": "panel", - "id": "singlestat", - "name": "Singlestat", - "version": "" - }, - { - "type": "panel", - "id": "table", - "name": "Table", - "version": "" - } - ], - "annotations": { - "list": [ - { - "$$hashKey": "object:290", - "builtIn": 1, - "datasource": "-- Grafana --", - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "type": "dashboard" - } - ] - }, - "editable": true, - "gnetId": null, - "graphTooltip": 0, - "id": null, - "iteration": 1588835205547, - "links": [], - "panels": [ - { - "collapsed": false, - "datasource": null, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 0 - }, - "id": 4, - "panels": [], - "repeat": "service", - "title": "$service", - "type": "row" - }, - { - "columns": [], - "datasource": "${DS_LOCALINFLUX}", - "fontSize": "100%", - "gridPos": { - "h": 5, - "w": 11, - "x": 0, - "y": 1 - }, - "id": 2, - "links": [], - "pageSize": null, - "repeat": null, - "repeatDirection": "h", - "scroll": true, - "showHeader": true, - "sort": { - "col": 4, - "desc": true - }, - "styles": [ - { - "alias": "Requests", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 0, - "mappingType": 1, - "pattern": "za_requests", - "thresholds": [], - "type": "number", - "unit": "none" - }, - { - "alias": "Avg. Response Time", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "link": false, - "mappingType": 1, - "pattern": "zb_response_time", - "thresholds": [], - "type": "number", - "unit": "ms" - }, - { - "alias": "HTTP Path", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "http_path", - "thresholds": [], - "type": "number", - "unit": "short" - }, - { - "alias": "Error Rate", - "align": "auto", - "colorMode": "cell", - "colors": [ - "rgba(50, 172, 45, 0.97)", - "rgba(237, 129, 40, 0.89)", - "rgba(245, 54, 54, 0.9)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "zc_error_rate", - "thresholds": [ - "0.0001", - "0.3" - ], - "type": "number", - "unit": "percentunit" - }, - { - "alias": "", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "Time", - "thresholds": [], - "type": "hidden", - "unit": "none" - } - ], - "targets": [ - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "hide": false, - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(total) as za_requests, SUM(times) / SUM(total) AS zb_response_time FROM (\n SELECT SUM(\"count\") AS total, SUM(\"sum\") AS times FROM \"http_in_responsetime\" \n WHERE $timeFilter AND service =~ /^$service$/ AND http_path =~ /^$path$/ GROUP BY http_path\n) GROUP BY http_path", - "rawQuery": true, - "refId": "A", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - }, - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(errors) / SUM(total) AS zc_error_rate FROM (\n SELECT SUM(\"count\") AS total, SUM(\"errorcount\") AS errors FROM \"http_in_error\" \n WHERE $timeFilter AND service =~ /^$service$/ AND http_path =~ /^$path$/ GROUP BY http_path fill(0)\n)\nGROUP BY http_path", - "rawQuery": true, - "refId": "B", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "title": "Incoming Requests", - "transform": "table", - "type": "table" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "${DS_LOCALINFLUX}", - "description": "", - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 5, - "w": 9, - "x": 11, - "y": 1 - }, - "hiddenSeries": false, - "id": 23, - "interval": "15s", - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": false, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "$tag_http_path", - "expr": "(sum(increase(http_in_responsetime_sum{service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__interval])) by (http_path)\n/ sum(increase(http_in_count{service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__interval])) by (http_path)) >= 0", - "format": "time_series", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": false, - "intervalFactor": 1, - "legendFormat": "{{http_path}}", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(sum) / SUM(count)\nFROM \"http_in_responsetime\" \nWHERE $timeFilter AND service =~ /^$service$/ AND http_path=~ /^$path$/\nGROUP BY time($__interval), http_path fill(none)", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Incoming Avg. Response Time", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "ms", - "label": "", - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "ms", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "${DS_LOCALINFLUX}", - "decimals": 2, - "description": "Incoming HTTP Requests per second for the selected endpoints and applications", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 5, - "w": 2, - "x": 20, - "y": 1 - }, - "hideTimeOverride": true, - "id": 6, - "interval": "15s", - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "expr": "sum(rate(http_in_count{service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__interval]))", - "format": "time_series", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": false, - "intervalFactor": 1, - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(count)/$__interval_ms*1000 AS value\nFROM \"http_in_responsetime\" \nWHERE $timeFilter AND service =~ /^$service$/ AND http_path=~ /^$path$/ \nGROUP BY time($__interval) fill(0)", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": "", - "timeShift": null, - "title": "In Req / Sec", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorPostfix": false, - "colorPrefix": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "${DS_LOCALINFLUX}", - "decimals": 2, - "description": "The error rate of incoming http requests for the selected endpoints and applications", - "format": "percentunit", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 5, - "w": 2, - "x": 22, - "y": 1 - }, - "hideTimeOverride": true, - "id": 44, - "interval": "15s", - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "expr": "(sum(increase(http_in_count{http_status!~\"(1|2|3)\\\\d\\\\d\",service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__range]))\n/ sum(increase(http_in_count{service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__range])) >= 0)\nor (sum(increase(http_in_count{service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__range])) > 0) * 0", - "format": "time_series", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": true, - "intervalFactor": 1, - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(errors) / SUM(total) AS value FROM (\n SELECT SUM(\"count\") AS total, SUM(\"errorcount\") AS errors FROM \"http_in_error\" \n WHERE $timeFilter AND service =~ /^$service$/ AND http_path =~ /^$path$/ GROUP BY time($__interval) fill(0)\n)\nWHERE total > 0\nGROUP BY time($__interval)", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": "0.01,0.1", - "timeFrom": null, - "timeShift": null, - "title": "In Error Rate", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "columns": [], - "datasource": "${DS_LOCALINFLUX}", - "fontSize": "100%", - "gridPos": { - "h": 5, - "w": 11, - "x": 0, - "y": 6 - }, - "id": 45, - "links": [], - "pageSize": null, - "repeatDirection": "h", - "scroll": true, - "showHeader": true, - "sort": { - "col": 6, - "desc": true - }, - "styles": [ - { - "alias": "", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "Time", - "thresholds": [], - "type": "hidden", - "unit": "short" - }, - { - "alias": "Requests", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 0, - "mappingType": 1, - "pattern": "za_requests", - "thresholds": [], - "type": "number", - "unit": "none" - }, - { - "alias": "Avg. Response Time", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "link": false, - "mappingType": 1, - "pattern": "zb_response_time", - "thresholds": [], - "type": "number", - "unit": "ms" - }, - { - "alias": "HTTP Path", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "http_path", - "preserveFormat": false, - "thresholds": [], - "type": "string", - "unit": "short" - }, - { - "alias": "Error Rate", - "align": "auto", - "colorMode": "cell", - "colors": [ - "rgba(50, 172, 45, 0.97)", - "rgba(237, 129, 40, 0.89)", - "rgba(245, 54, 54, 0.9)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "zc_error_rate", - "thresholds": [ - "0.0001", - "0.3" - ], - "type": "number", - "unit": "percentunit" - }, - { - "alias": "Target Host", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "http_host", - "thresholds": [], - "type": "string", - "unit": "short" - } - ], - "targets": [ - { - "expr": "sum(label_join(increase(http_out_count{service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__range]), \"http_url\", \"\", \"http_host\", \"http_path\")) by (http_url) > 0", - "format": "table", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": true, - "intervalFactor": 1, - "legendFormat": "", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(total) as za_requests, SUM(times) / SUM(total) AS zb_response_time FROM (\n SELECT SUM(\"count\") AS total, SUM(\"sum\") AS times FROM \"http_out_responsetime\" \n WHERE $timeFilter AND service =~ /^$service$/ AND http_path =~ /^$path$/ GROUP BY http_path,http_host\n) GROUP BY *", - "rawQuery": true, - "refId": "A", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - }, - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(errors) / SUM(total) AS zc_error_rate FROM (\n SELECT SUM(\"count\") AS total, SUM(\"errorcount\") AS errors FROM \"http_out_error\" \n WHERE $timeFilter AND service =~ /^$service$/ AND http_path =~ /^$path$/ GROUP BY http_path,http_host fill(0)\n)\nGROUP BY *", - "rawQuery": true, - "refId": "B", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "title": "Outgoing Requests", - "transform": "table", - "type": "table" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "${DS_LOCALINFLUX}", - "description": "", - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 5, - "w": 9, - "x": 11, - "y": 6 - }, - "hiddenSeries": false, - "id": 76, - "interval": "15s", - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": false, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "$tag_http_host$tag_http_path", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(sum) / SUM(count) AS value \nFROM \"http_out_responsetime\" \nWHERE $timeFilter AND service =~ /^$service$/ AND http_path=~ /^$path$/\nGROUP BY time($__interval), http_path,http_host fill(none)", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Outgoing Avg. Response Time", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "ms", - "label": "", - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "ms", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "${DS_LOCALINFLUX}", - "decimals": 2, - "description": "Outgoing HTTP Requests per second issued towards the selected endpoints from the given application", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 5, - "w": 2, - "x": 20, - "y": 6 - }, - "hideTimeOverride": true, - "id": 112, - "interval": "15s", - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "expr": "sum(rate(http_out_count{service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__interval]))", - "format": "time_series", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": false, - "intervalFactor": 1, - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(count)/$__interval_ms*1000 AS value\nFROM \"http_out_responsetime\" \nWHERE $timeFilter AND service =~ /^$service$/ AND http_path=~ /^$path$/ \nGROUP BY time($__interval) fill(0)", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": "", - "timeShift": null, - "title": "Out Req / Sec", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorPostfix": false, - "colorPrefix": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "${DS_LOCALINFLUX}", - "decimals": 2, - "description": "The error rate of outgoing http requests issued towards the selected endpoints of the selected application", - "format": "percentunit", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 5, - "w": 2, - "x": 22, - "y": 6 - }, - "hideTimeOverride": true, - "id": 153, - "interval": "15s", - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "expr": "(sum(increase(http_out_count{http_status!~\"(1|2|3)\\\\d\\\\d\",service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__range]))\n/ sum(increase(http_out_count{service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__range])) >= 0)\nor (sum(increase(http_out_count{service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__range])) > 0) * 0", - "format": "time_series", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": true, - "intervalFactor": 1, - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(errors) / SUM(total) AS value FROM (\n SELECT SUM(\"count\") AS total, SUM(\"errorcount\") AS errors FROM \"http_out_error\" \n WHERE $timeFilter AND service =~ /^$service$/ AND http_path =~ /^$path$/ GROUP BY time($__interval) fill(0)\n)\nWHERE total > 0\nGROUP BY time($__interval)", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": "0.01,0.1", - "timeFrom": null, - "timeShift": null, - "title": "Out Error Rate", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - } - ], - "refresh": "30s", - "schemaVersion": 22, - "style": "dark", - "tags": [], - "templating": { - "list": [ - { - "allValue": null, - "current": {}, - "datasource": "${DS_LOCALINFLUX}", - "definition": "SHOW TAG VALUES WITH key = \"service\"", - "hide": 0, - "includeAll": true, - "index": -1, - "label": "Service", - "multi": true, - "name": "service", - "options": [], - "query": "SHOW TAG VALUES WITH key = \"service\"", - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 1, - "tagValuesQuery": "", - "tags": [], - "tagsQuery": "", - "type": "query", - "useTags": false - }, - { - "allValue": ".*", - "current": {}, - "datasource": "${DS_LOCALINFLUX}", - "definition": "SHOW TAG VALUES WITH key = \"http_path\"", - "hide": 0, - "includeAll": true, - "index": -1, - "label": "Endpoint", - "multi": true, - "name": "path", - "options": [], - "query": "SHOW TAG VALUES WITH key = \"http_path\"", - "refresh": 2, - "regex": "", - "skipUrlSync": false, - "sort": 0, - "tagValuesQuery": "", - "tags": [], - "tagsQuery": "", - "type": "query", - "useTags": false - } - ] - }, - "time": { - "from": "now-5m", - "to": "now" - }, - "timepicker": { - "refresh_intervals": [ - "5s", - "10s", - "30s", - "1m", - "5m", - "15m", - "30m", - "1h", - "2h", - "1d" - ], - "time_options": [ - "5m", - "15m", - "1h", - "6h", - "12h", - "24h", - "2d", - "7d", - "30d" - ] - }, - "timezone": "", - "title": "HTTP Overview", - "uid": "523wqxqmz", - "variables": { - "list": [] - }, - "version": 1 -} \ No newline at end of file diff --git a/inspectit-ocelot-demo/grafana/marketplace/influx/jvm.json b/inspectit-ocelot-demo/grafana/marketplace/influx/jvm.json deleted file mode 100644 index c279c3884d..0000000000 --- a/inspectit-ocelot-demo/grafana/marketplace/influx/jvm.json +++ /dev/null @@ -1,1963 +0,0 @@ -{ - "__inputs": [ - { - "name": "DS_LOCALINFLUX", - "label": "LocalInflux", - "description": "", - "type": "datasource", - "pluginId": "influxdb", - "pluginName": "InfluxDB" - } - ], - "__requires": [ - { - "type": "grafana", - "id": "grafana", - "name": "Grafana", - "version": "5.4.2" - }, - { - "type": "panel", - "id": "graph", - "name": "Graph", - "version": "5.0.0" - }, - { - "type": "datasource", - "id": "influxdb", - "name": "InfluxDB", - "version": "5.0.0" - }, - { - "type": "panel", - "id": "singlestat", - "name": "Singlestat", - "version": "5.0.0" - }, - { - "type": "panel", - "id": "text", - "name": "Text", - "version": "5.0.0" - } - ], - "annotations": { - "list": [ - { - "builtIn": 1, - "datasource": "-- Grafana --", - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "type": "dashboard" - } - ] - }, - "editable": true, - "gnetId": null, - "graphTooltip": 0, - "id": null, - "iteration": 1587549648580, - "links": [], - "panels": [ - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 0 - }, - "id": 7, - "panels": [], - "repeat": "service", - "title": "$service", - "type": "row" - }, - { - "aliasColors": { - "process_cpu_usage ": "#badff4", - "system_cpu_usage ": "#1f78c1" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "${DS_LOCALINFLUX}", - "fill": 2, - "gridPos": { - "h": 6, - "w": 7, - "x": 0, - "y": 1 - }, - "id": 11, - "interval": "5s", - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "System CPU Usage", - "color": "#1f78c1" - }, - { - "alias": "JVM CPU Usage", - "color": "#70dbed" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "System CPU Usage", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "linear" - ], - "type": "fill" - } - ], - "measurement": "system_cpu_usage", - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"process_cpu_usage\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "JVM CPU Usage", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "linear" - ], - "type": "fill" - } - ], - "measurement": "process_cpu_usage", - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"system_cpu_usage\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n", - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "CPU Usage", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": null, - "format": "percentunit", - "label": null, - "logBase": 1, - "max": "1.05", - "min": "0", - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "${DS_LOCALINFLUX}", - "fill": 10, - "gridPos": { - "h": 6, - "w": 6, - "x": 7, - "y": 1 - }, - "id": 39, - "interval": "1s", - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "used", - "color": "#82b5d8" - }, - { - "alias": "committed", - "color": "#447ebc" - }, - { - "alias": "max", - "color": "#bf1b00", - "fill": 0, - "linewidth": 4 - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "max", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "jvm_memory_max", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(val) FROM (SELECT mean(value) AS val FROM jvm_memory_max WHERE $timeFilter AND area = 'heap' AND service =~ /^$service/ GROUP BY time($__interval),*) GROUP BY time($__interval) fill(linear)", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "heap" - } - ] - }, - { - "alias": "committed", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "jvm_memory_committed", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(val) FROM (SELECT mean(value) AS val FROM jvm_memory_committed WHERE $timeFilter AND area = 'heap' AND service =~ /^$service/ GROUP BY time($__interval),*) GROUP BY time($__interval) fill(linear)", - "rawQuery": true, - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "heap" - } - ] - }, - { - "alias": "used", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "jvm_memory_used", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(val) FROM (SELECT mean(value) AS val FROM jvm_memory_used WHERE $timeFilter AND area = 'heap' AND service =~ /^$service/ GROUP BY time($__interval),*) GROUP BY time($__interval) fill(linear)", - "rawQuery": true, - "refId": "C", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "heap" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Memory - Heap", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "decbytes", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": { - "daemon ": "#0a50a1", - "live-non-daemon ": "#82b5d8", - "non-daemon ": "#82b5d8", - "peak ": "#bf1b00" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "${DS_LOCALINFLUX}", - "fill": 4, - "gridPos": { - "h": 6, - "w": 6, - "x": 13, - "y": 1 - }, - "id": 42, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 2, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "peak live since JVM start", - "color": "#bf1b00", - "fill": 0, - "linewidth": 3 - }, - { - "alias": "total live" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "total live", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "previous" - ], - "type": "fill" - } - ], - "measurement": "jvm_threads_live", - "orderByTime": "ASC", - "policy": "default", - "query": "stackedPeak = () => {\npeak = from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_peak\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n\nlive = from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_live\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n \n\n \nreturn join(tables:{live:live, peak:peak},on:[\"_time\",\"_stop\",\"_start\", \"host\"])\n |> map(fn:(r) => ({\n _time: r._time,\n _value: (r._value_peak - r._value_live),\n _measurement: \"peak\"\n }))\n}\n\nstackedPeak()", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "live daemons", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "previous" - ], - "type": "fill" - } - ], - "measurement": "jvm_threads_daemon", - "orderByTime": "ASC", - "policy": "default", - "query": "stackedPeak = () => {\npeak = from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_peak\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n\nlive = from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_live\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n \n\n \nreturn join(tables:{live:live, peak:peak},on:[\"_time\",\"_stop\",\"_start\", \"host\"])\n |> map(fn:(r) => ({\n _time: r._time,\n _value: (r._value_peak - r._value_live),\n _measurement: \"peak\"\n }))\n}\n\nstackedPeak()", - "refId": "C", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "peak live since JVM start", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "previous" - ], - "type": "fill" - } - ], - "measurement": "jvm_threads_peak", - "orderByTime": "ASC", - "policy": "default", - "query": "stackedPeak = () => {\npeak = from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_peak\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n\nlive = from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_live\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n \n\n \nreturn join(tables:{live:live, peak:peak},on:[\"_time\",\"_stop\",\"_start\", \"host\"])\n |> map(fn:(r) => ({\n _time: r._time,\n _value: (r._value_peak - r._value_live),\n _measurement: \"peak\"\n }))\n}\n\nstackedPeak()", - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "max" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [ - { - "colorMode": "background6", - "fill": true, - "line": false, - "op": "time" - } - ], - "timeShift": null, - "title": "# Live Threads", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": 0, - "format": "none", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "${DS_LOCALINFLUX}", - "fill": 1, - "gridPos": { - "h": 6, - "w": 5, - "x": 19, - "y": 1 - }, - "id": 46, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "Allocated Memory", - "bars": true, - "color": "#ef843c", - "lines": false - }, - { - "alias": "Promoted Memory", - "bars": true, - "color": "#629e51", - "lines": false - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "Live Data Size", - "groupBy": [ - { - "params": [ - "1s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "hide": false, - "measurement": "jvm_gc_live_data_size", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT \"gauge\" FROM \"jvm_gc_live_data_size\" WHERE (\"service\" =~ /^$service$/) ", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "Max Data Size", - "groupBy": [ - { - "params": [ - "1s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "hide": false, - "measurement": "jvm_gc_max_data_size", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT \"gauge\" FROM \"jvm_gc_live_data_size\" WHERE (\"service\" =~ /^$service$/) ", - "rawQuery": false, - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "Allocated Memory", - "groupBy": [ - { - "params": [ - "1s" - ], - "type": "time" - } - ], - "hide": false, - "measurement": "jvm_gc_memory_allocated", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(\"counter\") FROM \"jvm_gc_memory_allocated\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time($__interval)", - "rawQuery": true, - "refId": "D", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "counter" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - }, - { - "params": [], - "type": "non_negative_difference" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "Promoted Memory", - "groupBy": [ - { - "params": [ - "1s" - ], - "type": "time" - } - ], - "hide": false, - "measurement": "jvm_gc_memory_promoted", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(\"counter\") FROM \"jvm_gc_memory_promoted\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time($__interval)", - "rawQuery": true, - "refId": "F", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "counter" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - }, - { - "params": [], - "type": "non_negative_difference" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Garbage Collection Memory", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "decbytes", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "ms", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "${DS_LOCALINFLUX}", - "format": "percentunit", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": true, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 6, - "w": 4, - "x": 0, - "y": 7 - }, - "id": 49, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [], - "measurement": "process_cpu_usage", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": "0.8,0.9", - "title": "Current CPU Usage", - "type": "singlestat", - "valueFontSize": "70%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "${DS_LOCALINFLUX}", - "format": "none", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 3, - "w": 3, - "x": 4, - "y": 7 - }, - "id": 4, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeat": null, - "repeatDirection": "h", - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [], - "measurement": "jvm_classes_loaded", - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n |> range(start: -1m)\n |> filter(fn: (r) =>\n r._measurement == \"jvm_classes_loaded\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"service\"])\n |> last()\n", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": "0.9,0.95", - "title": "Loaded Classes", - "type": "singlestat", - "valueFontSize": "50%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "${DS_LOCALINFLUX}", - "fill": 10, - "gridPos": { - "h": 6, - "w": 6, - "x": 7, - "y": 7 - }, - "id": 40, - "interval": "1s", - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "used", - "color": "#82b5d8" - }, - { - "alias": "committed", - "color": "#447ebc" - }, - { - "alias": "max", - "color": "#bf1b00", - "fill": 0, - "linewidth": 4 - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "max", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "jvm_memory_max", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(val) FROM (SELECT mean(value) AS val FROM jvm_memory_max WHERE $timeFilter AND area = 'nonheap' AND service =~ /^$service/ GROUP BY time($__interval),*) GROUP BY time($__interval) fill(previous)", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "nonheap" - } - ] - }, - { - "alias": "committed", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "jvm_memory_committed", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(val) FROM (SELECT mean(value) AS val FROM jvm_memory_committed WHERE $timeFilter AND area = 'nonheap' AND service =~ /^$service/ GROUP BY time($__interval),*) GROUP BY time($__interval) fill(previous)", - "rawQuery": true, - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "nonheap" - } - ] - }, - { - "alias": "used", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "jvm_memory_used", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(val) FROM (SELECT mean(value) AS val FROM jvm_memory_used WHERE $timeFilter AND area = 'nonheap' AND service =~ /^$service/ GROUP BY time($__interval),*) GROUP BY time($__interval) fill(previous)", - "rawQuery": true, - "refId": "C", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "nonheap" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Memory - Non-Heap", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "decbytes", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "${DS_LOCALINFLUX}", - "fill": 4, - "gridPos": { - "h": 6, - "w": 6, - "x": 13, - "y": 7 - }, - "id": 41, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "alias": "$tag_state", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "state" - ], - "type": "tag" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "jvm_threads_states", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"gauge\") FROM \"jvm_memory_max\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time(1m) fill(null)", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "# Threads by States", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": 0, - "format": "none", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": { - "Major GC": "#bf1b00" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "${DS_LOCALINFLUX}", - "fill": 1, - "gridPos": { - "h": 6, - "w": 5, - "x": 19, - "y": 7 - }, - "id": 47, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": false, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 3, - "points": true, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "Minor GC" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "Minor GC", - "groupBy": [ - { - "params": [ - "1s" - ], - "type": "time" - } - ], - "hide": false, - "measurement": "jvm_gc_pause", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(\"counter\") FROM \"jvm_gc_pause\" WHERE (\"service\" =~ /^$service$/ AND \"action\" = 'end of minor GC') AND $timeFilter GROUP BY time($__interval) fill(none)", - "rawQuery": true, - "refId": "C", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "counter" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - }, - { - "params": [], - "type": "non_negative_difference" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "action", - "operator": "=", - "value": "end of minor GC" - } - ] - }, - { - "alias": "Major GC", - "groupBy": [ - { - "params": [ - "1s" - ], - "type": "time" - } - ], - "hide": false, - "measurement": "jvm_gc_pause", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(\"counter\") FROM \"jvm_gc_pause\" WHERE (\"service\" =~ /^$service$/ AND \"action\" = 'end of major GC') AND $timeFilter GROUP BY time($__interval) fill(none)", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "counter" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - }, - { - "params": [], - "type": "non_negative_difference" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "action", - "operator": "=", - "value": "end of major GC" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Garbage Collection Pauses", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "ms", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "${DS_LOCALINFLUX}", - "format": "none", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 3, - "w": 3, - "x": 4, - "y": 10 - }, - "id": 12, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatDirection": "h", - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [], - "measurement": "jvm_classes_unloaded", - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n |> range(start: -1m)\n |> filter(fn: (r) =>\n r._measurement == \"jvm_classes_unloaded\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"service\"])\n |> last()\n", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": "0.9,0.95", - "title": "Unloaded Classes", - "type": "singlestat", - "valueFontSize": "50%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "content": "----", - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 13 - }, - "id": 51, - "links": [], - "mode": "html", - "title": "", - "transparent": true, - "type": "text" - } - ], - "refresh": "30s", - "schemaVersion": 16, - "style": "dark", - "tags": [], - "templating": { - "list": [ - { - "allValue": null, - "current": {}, - "datasource": "${DS_LOCALINFLUX}", - "definition": "SHOW TAG VALUES WITH KEY=\"service\"", - "hide": 0, - "includeAll": true, - "label": null, - "multi": true, - "name": "service", - "options": [], - "query": "SHOW TAG VALUES WITH KEY=\"service\"", - "refresh": 2, - "regex": "", - "skipUrlSync": false, - "sort": 0, - "tagValuesQuery": "", - "tags": [], - "tagsQuery": "", - "type": "query", - "useTags": false - } - ] - }, - "time": { - "from": "now-1h", - "to": "now" - }, - "timepicker": { - "refresh_intervals": [ - "5s", - "10s", - "30s", - "1m", - "5m", - "15m", - "30m", - "1h", - "2h", - "1d" - ], - "time_options": [ - "5m", - "15m", - "1h", - "6h", - "12h", - "24h", - "2d", - "7d", - "30d" - ] - }, - "timezone": "", - "title": "JVM Metrics", - "uid": "jaEIHn8ik", - "version": 2 -} \ No newline at end of file diff --git a/inspectit-ocelot-demo/grafana/marketplace/influx/selfmonitoring.json b/inspectit-ocelot-demo/grafana/marketplace/influx/selfmonitoring.json deleted file mode 100644 index 7269739932..0000000000 --- a/inspectit-ocelot-demo/grafana/marketplace/influx/selfmonitoring.json +++ /dev/null @@ -1,1220 +0,0 @@ -{ - "__inputs": [ - { - "name": "DS_LOCALINFLUX", - "label": "LocalInflux", - "description": "", - "type": "datasource", - "pluginId": "influxdb", - "pluginName": "InfluxDB" - } - ], - "__requires": [ - { - "type": "grafana", - "id": "grafana", - "name": "Grafana", - "version": "6.7.3" - }, - { - "type": "panel", - "id": "graph", - "name": "Graph", - "version": "" - }, - { - "type": "datasource", - "id": "influxdb", - "name": "InfluxDB", - "version": "1.0.0" - }, - { - "type": "panel", - "id": "singlestat", - "name": "Singlestat", - "version": "" - }, - { - "type": "panel", - "id": "table", - "name": "Table", - "version": "" - } - ], - "annotations": { - "list": [ - { - "$$hashKey": "object:10", - "builtIn": 1, - "datasource": "-- Grafana --", - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "type": "dashboard" - } - ] - }, - "editable": true, - "gnetId": null, - "graphTooltip": 0, - "id": null, - "iteration": 1588835108154, - "links": [], - "panels": [ - { - "collapsed": false, - "datasource": null, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 0 - }, - "id": 2, - "panels": [], - "repeat": "service", - "title": "$service", - "type": "row" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "${DS_LOCALINFLUX}", - "decimals": 3, - "format": "percentunit", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": true, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 6, - "w": 3, - "x": 0, - "y": 1 - }, - "id": 4, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT LAST(\"instrumented\")/LAST(\"loaded\") FROM instrumentation_state WHERE $timeFilter AND service =~ /^$service/", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": "10,30", - "title": "Instr. Scope", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "columns": [], - "datasource": "${DS_LOCALINFLUX}", - "fontSize": "120%", - "gridPos": { - "h": 6, - "w": 6, - "x": 3, - "y": 1 - }, - "id": 47, - "links": [], - "pageSize": null, - "scroll": true, - "showHeader": true, - "sort": { - "col": 1, - "desc": false - }, - "styles": [ - { - "alias": "Time", - "align": "auto", - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "pattern": "Time", - "type": "hidden" - }, - { - "alias": "Description", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "Metric", - "thresholds": [], - "type": "string", - "unit": "short" - }, - { - "alias": "Count", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 0, - "mappingType": 1, - "pattern": "Value", - "thresholds": [], - "type": "number", - "unit": "none" - }, - { - "alias": "", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "decimals": 2, - "pattern": "/.*/", - "thresholds": [], - "type": "number", - "unit": "short" - } - ], - "targets": [ - { - "alias": "# classes loaded by JVM", - "groupBy": [], - "measurement": "jvm_classes_loaded", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "# instrumented classes", - "groupBy": [], - "measurement": "inspectit_self_instrumented_classes", - "orderByTime": "ASC", - "policy": "default", - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "# classes pending for analysis", - "groupBy": [], - "measurement": "inspectit_self_instrumentation_queue_size", - "orderByTime": "ASC", - "policy": "default", - "refId": "C", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "title": "Instrumentation State", - "transform": "timeseries_to_rows", - "type": "table" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#d44a3a", - "rgba(237, 129, 40, 0.89)", - "#299c46" - ], - "datasource": "${DS_LOCALINFLUX}", - "format": "percentunit", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": true, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 6, - "w": 3, - "x": 9, - "y": 1 - }, - "id": 23, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "hide": false, - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT 1 - LAST(\"queuesize\")/LAST(\"loaded\") FROM instrumentation_state WHERE $timeFilter AND service =~ /^$service/", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": "0.33,0.66", - "title": "Analysis Progress", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "cacheTimeout": null, - "colorBackground": true, - "colorValue": false, - "colors": [ - "rgb(33,33,36)", - "#890f02", - "#d44a3a" - ], - "datasource": "${DS_LOCALINFLUX}", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 12, - "y": 1 - }, - "id": 76, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "$$hashKey": "object:380", - "name": "value to text", - "value": 1 - }, - { - "$$hashKey": "object:381", - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "inspectit_self_logs", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(\"counter\") FROM \"inspectit_self_logs\" WHERE (\"service\" =~ /^$service$/ AND \"level\" =~ /^ERROR$/ ) AND $timeFilter", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "counter" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - }, - { - "params": [], - "type": "non_negative_difference" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "level", - "operator": "=", - "value": "ERROR" - } - ] - } - ], - "thresholds": "1", - "title": "Errors", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "$$hashKey": "object:383", - "op": "=", - "text": "0", - "value": "null" - } - ], - "valueName": "current" - }, - { - "aliasColors": { - "classes pending for hook": "#99440a" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "${DS_LOCALINFLUX}", - "fill": 5, - "fillGradient": 0, - "gridPos": { - "h": 6, - "w": 10, - "x": 14, - "y": 1 - }, - "hiddenSeries": false, - "id": 49, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "instrumented classes", - "color": "#629e51", - "fill": 5, - "zindex": 3 - }, - { - "alias": "classes pending for analysis", - "color": "#eab839", - "zindex": 0 - }, - { - "alias": "loaded classes", - "color": "#82b5d8", - "zindex": -3 - }, - { - "alias": "JVM CPU Utilization", - "color": "#bf1b00", - "fill": 0, - "linewidth": 2, - "yaxis": 2, - "zindex": 3 - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "loaded classes", - "groupBy": [ - { - "params": [ - "1m" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "jvm_classes_loaded", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "instrumented classes", - "groupBy": [ - { - "params": [ - "1m" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "inspectit_self_instrumented_classes", - "orderByTime": "ASC", - "policy": "default", - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "classes pending for analysis", - "groupBy": [ - { - "params": [ - "1m" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "inspectit_self_instrumentation_queue_size", - "orderByTime": "ASC", - "policy": "default", - "refId": "C", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "JVM CPU Utilization", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "process_cpu_usage", - "orderByTime": "ASC", - "policy": "default", - "refId": "D", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Instrumentation State over time (Logarithmic Scale)", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": "# Classes", - "logBase": 10, - "max": null, - "min": "0", - "show": true - }, - { - "format": "percentunit", - "label": null, - "logBase": 1, - "max": "1", - "min": "0", - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": true, - "colorValue": false, - "colors": [ - "rgb(33,33,36)", - "#967302", - "#d44a3a" - ], - "datasource": "${DS_LOCALINFLUX}", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 12, - "y": 3 - }, - "id": 107, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "$$hashKey": "object:421", - "name": "value to text", - "value": 1 - }, - { - "$$hashKey": "object:422", - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "inspectit_self_logs", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(\"counter\") FROM \"inspectit_self_logs\" WHERE (\"service\" =~ /^$service$/ AND \"level\" =~ /^WARN$/ ) AND $timeFilter", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "counter" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - }, - { - "params": [], - "type": "non_negative_difference" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "level", - "operator": "=", - "value": "ERROR" - } - ] - } - ], - "thresholds": "1", - "title": "Warnings", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "$$hashKey": "object:424", - "op": "=", - "text": "0", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "rgb(33,33,36)", - "#967302", - "#d44a3a" - ], - "datasource": "${DS_LOCALINFLUX}", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 12, - "y": 5 - }, - "id": 108, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "$$hashKey": "object:462", - "name": "value to text", - "value": 1 - }, - { - "$$hashKey": "object:463", - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "inspectit_self_logs", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(\"counter\") FROM \"inspectit_self_logs\" WHERE (\"service\" =~ /^$service$/ AND \"level\" =~ /^INFO|DEBUG|TRACE$/ ) AND $timeFilter", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "counter" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - }, - { - "params": [], - "type": "non_negative_difference" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "level", - "operator": "=", - "value": "ERROR" - } - ] - } - ], - "thresholds": "1", - "title": "Other Logs", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "$$hashKey": "object:465", - "op": "=", - "text": "0", - "value": "null" - } - ], - "valueName": "current" - } - ], - "refresh": "30s", - "schemaVersion": 22, - "style": "dark", - "tags": [], - "templating": { - "list": [ - { - "allValue": null, - "current": {}, - "datasource": "${DS_LOCALINFLUX}", - "definition": "SHOW TAG VALUES WITH KEY = \"service\"", - "hide": 0, - "includeAll": true, - "index": -1, - "label": null, - "multi": true, - "name": "service", - "options": [], - "query": "SHOW TAG VALUES WITH KEY = \"service\"", - "refresh": 2, - "regex": "", - "skipUrlSync": false, - "sort": 0, - "tagValuesQuery": "", - "tags": [], - "tagsQuery": "", - "type": "query", - "useTags": false - } - ] - }, - "time": { - "from": "now-1h", - "to": "now" - }, - "timepicker": { - "refresh_intervals": [ - "5s", - "10s", - "30s", - "1m", - "5m", - "15m", - "30m", - "1h", - "2h", - "1d" - ], - "time_options": [ - "5m", - "15m", - "1h", - "6h", - "12h", - "24h", - "2d", - "7d", - "30d" - ] - }, - "timezone": "", - "title": "inspectIT Agent Self-Monitoring", - "uid": "D-EaVt_ik", - "variables": { - "list": [] - }, - "version": 1 -} \ No newline at end of file diff --git a/inspectit-ocelot-demo/grafana/marketplace/influx/servicegraph.json b/inspectit-ocelot-demo/grafana/marketplace/influx/servicegraph.json deleted file mode 100644 index c9343bb66e..0000000000 --- a/inspectit-ocelot-demo/grafana/marketplace/influx/servicegraph.json +++ /dev/null @@ -1,483 +0,0 @@ -{ - "__inputs": [ - { - "name": "DS_LOCALINFLUX", - "label": "LocalInflux", - "description": "", - "type": "datasource", - "pluginId": "influxdb", - "pluginName": "InfluxDB" - } - ], - "__requires": [ - { - "type": "grafana", - "id": "grafana", - "name": "Grafana", - "version": "6.7.3" - }, - { - "type": "datasource", - "id": "influxdb", - "name": "InfluxDB", - "version": "1.0.0" - }, - { - "type": "panel", - "id": "novatec-service-dependency-graph-panel", - "name": "Service Dependency Graph", - "version": "2.0" - } - ], - "annotations": { - "list": [ - { - "$$hashKey": "object:728", - "builtIn": 1, - "datasource": "-- Grafana --", - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "type": "dashboard" - } - ] - }, - "editable": true, - "gnetId": null, - "graphTooltip": 0, - "id": null, - "iteration": 1588835372501, - "links": [], - "panels": [ - { - "dataMapping": { - "errorRateColumn": "error-rate", - "errorRateOutgoingColumn": "error-rate-out", - "extOrigin": "origin_external", - "extTarget": "target_external", - "requestRateColumn": "in_count", - "requestRateExternalColumn": "request-rate-external", - "requestRateOutgoingColumn": "out_count", - "responseTimeColumn": "in_responsetime", - "responseTimeExternalColumn": "response-time-external", - "responseTimeOutgoingColumn": "out_responsetime", - "sourceComponentPrefix": "origin_", - "targetComponentPrefix": "target_", - "type": "protocol" - }, - "datasource": "${DS_LOCALINFLUX}", - "gridPos": { - "h": 20, - "w": 22, - "x": 0, - "y": 0 - }, - "id": 4, - "links": [], - "sdgSettings": { - "externalIcons": [ - { - "icon": "web", - "type": "web" - }, - { - "icon": "message", - "type": "jms" - }, - { - "icon": "database", - "type": "jdbc" - }, - { - "icon": "http", - "type": "http" - } - ], - "filterEmptyConnections": true, - "layout": "ltrTree", - "maxVolume": 10000, - "showConnectionStats": true, - "sumTimings": false - }, - "sdgStyle": { - "dangerColor": "rgb(184, 36, 36)", - "healthyColor": "rgb(87, 148, 242)" - }, - "settings": { - "animate": true, - "dataMapping": { - "errorRateColumn": "in_errors", - "errorRateOutgoingColumn": "out_errors", - "extOrigin": "origin_external", - "extTarget": "target_external", - "requestRateColumn": "in_count", - "requestRateOutgoingColumn": "out_count", - "responseTimeColumn": "in_responsetime", - "responseTimeOutgoingColumn": "out_responsetime", - "sourceComponentPrefix": "origin_", - "targetComponentPrefix": "target_", - "type": "protocol" - }, - "drillDownLink": "", - "externalIcons": [ - { - "$$hashKey": "object:822", - "filename": "web", - "name": "web" - }, - { - "$$hashKey": "object:823", - "filename": "message", - "name": "jms" - }, - { - "$$hashKey": "object:824", - "filename": "database", - "name": "jdbc" - }, - { - "$$hashKey": "object:825", - "filename": "http", - "name": "http" - } - ], - "filterEmptyConnections": true, - "showConnectionStats": true, - "showDebugInformation": false, - "showDummyData": false, - "style": { - "dangerColor": "rgb(184, 36, 36)", - "healthyColor": "rgb(87, 148, 242)" - }, - "sumTimings": false - }, - "targets": [ - { - "alias": "in_count", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "hide": false, - "measurement": "service_in_count", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(\"count\") AS \"in_count\" FROM \"autogen\".\"service_in_responsetime\" \nWHERE (\"service\" =~ /^$service$/ OR \"origin_service\" =~ /^$service$/) AND $timeFilter\nGROUP BY \"service\", \"origin_service\", \"target_external\", \"protocol\"", - "rawQuery": true, - "refId": "A", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "spread" - } - ] - ], - "tags": [] - }, - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "hide": false, - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(\"count\") AS \"out_count\" FROM \"autogen\".\"service_out_responsetime\" \nWHERE (\"service\" =~ /^$service$/ OR \"target_service\" =~ /^$service$/) AND $timeFilter\nGROUP BY \"service\", \"target_service\", \"target_external\", \"protocol\"", - "rawQuery": true, - "refId": "B", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - }, - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "hide": false, - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(\"sum\")/SUM(\"count\") AS \"in_responsetime\" FROM \"autogen\".\"service_in_responsetime\" \nWHERE (\"service\" =~ /^$service$/ OR \"origin_service\" =~ /^$service$/) AND $timeFilter\nGROUP BY \"service\", \"origin_service\", \"target_external\", \"protocol\"", - "rawQuery": true, - "refId": "C", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - }, - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "hide": false, - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(\"sum\")/SUM(\"count\") AS \"out_responsetime\" FROM \"autogen\".\"service_out_responsetime\" \nWHERE (\"service\" =~ /^$service$/ OR \"target_service\" =~ /^$service$/) AND $timeFilter\nGROUP BY \"service\", \"target_service\", \"target_external\", \"protocol\"", - "rawQuery": true, - "refId": "D", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - }, - { - "alias": "in_count", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "hide": false, - "measurement": "service_in_count", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(\"count\") AS \"in_errors\" FROM \"autogen\".\"service_in_responsetime\" \nWHERE (\"service\" =~ /^$service$/ OR \"origin_service\" =~ /^$service$/) AND \"error\"='true' AND $timeFilter\nGROUP BY \"service\", \"origin_service\", \"target_external\", \"protocol\"", - "rawQuery": true, - "refId": "E", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "spread" - } - ] - ], - "tags": [] - }, - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "hide": false, - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(\"count\") AS \"out_errors\" FROM \"autogen\".\"service_out_responsetime\" \nWHERE (\"service\" =~ /^$service$/ OR \"target_service\" =~ /^$service$/) AND \"error\"='true' AND $timeFilter\nGROUP BY \"service\", \"target_service\", \"target_external\", \"protocol\"", - "rawQuery": true, - "refId": "F", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "title": "Service Graph", - "type": "novatec-service-dependency-graph-panel" - } - ], - "refresh": "30s", - "schemaVersion": 22, - "style": "dark", - "tags": [], - "templating": { - "list": [ - { - "allValue": null, - "current": { - "selected": true, - "text": "service", - "value": "service" - }, - "hide": 2, - "includeAll": false, - "label": "", - "multi": false, - "name": "aggregationType", - "options": [ - { - "selected": true, - "text": "service", - "value": "service" - } - ], - "query": "service", - "skipUrlSync": false, - "type": "custom" - }, - { - "allValue": ".*", - "current": {}, - "datasource": "${DS_LOCALINFLUX}", - "definition": "SHOW TAG VALUES WITH KEY=\"service\"", - "hide": 0, - "includeAll": true, - "index": -1, - "label": "Service", - "multi": true, - "name": "service", - "options": [], - "query": "SHOW TAG VALUES WITH KEY=\"service\"", - "refresh": 2, - "regex": "", - "skipUrlSync": false, - "sort": 1, - "tagValuesQuery": "", - "tags": [], - "tagsQuery": "", - "type": "query", - "useTags": false - } - ] - }, - "time": { - "from": "now-5m", - "to": "now" - }, - "timepicker": { - "refresh_intervals": [ - "5s", - "10s", - "30s", - "1m", - "5m", - "15m", - "30m", - "1h", - "2h", - "1d" - ], - "time_options": [ - "5m", - "15m", - "1h", - "6h", - "12h", - "24h", - "2d", - "7d", - "30d" - ] - }, - "timezone": "", - "title": "Service Graph", - "uid": "Kx4wbZRZk", - "variables": { - "list": [] - }, - "version": 1 -} \ No newline at end of file diff --git a/inspectit-ocelot-demo/grafana/marketplace/influx/system.json b/inspectit-ocelot-demo/grafana/marketplace/influx/system.json deleted file mode 100644 index fffeed00c3..0000000000 --- a/inspectit-ocelot-demo/grafana/marketplace/influx/system.json +++ /dev/null @@ -1,921 +0,0 @@ -{ - "__inputs": [ - { - "name": "DS_LOCALINFLUX", - "label": "LocalInflux", - "description": "", - "type": "datasource", - "pluginId": "influxdb", - "pluginName": "InfluxDB" - } - ], - "__requires": [ - { - "type": "grafana", - "id": "grafana", - "name": "Grafana", - "version": "5.4.2" - }, - { - "type": "panel", - "id": "graph", - "name": "Graph", - "version": "5.0.0" - }, - { - "type": "datasource", - "id": "influxdb", - "name": "InfluxDB", - "version": "5.0.0" - }, - { - "type": "panel", - "id": "singlestat", - "name": "Singlestat", - "version": "5.0.0" - } - ], - "annotations": { - "list": [ - { - "builtIn": 1, - "datasource": "-- Grafana --", - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "type": "dashboard" - } - ] - }, - "editable": true, - "gnetId": null, - "graphTooltip": 0, - "id": null, - "iteration": 1580729039210, - "links": [], - "panels": [ - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 0 - }, - "id": 7, - "panels": [], - "repeat": "host", - "title": "$host", - "type": "row" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#bf1b00" - ], - "datasource": "${DS_LOCALINFLUX}", - "format": "percentunit", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": true, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 0, - "y": 1 - }, - "id": 5, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatDirection": "h", - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "last", - "targets": [ - { - "groupBy": [], - "measurement": "system_cpu_usage", - "orderByTime": "ASC", - "policy": "default", - "query": "", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$host$/" - } - ] - } - ], - "thresholds": "0.9,0.95", - "title": "CPU Usage", - "transparent": false, - "type": "singlestat", - "valueFontSize": "50%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "aliasColors": { - "CPU Utilization": "#82b5d8", - "Load Average": "#bf1b00" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "${DS_LOCALINFLUX}", - "fill": 2, - "gridPos": { - "h": 6, - "w": 8, - "x": 3, - "y": 1 - }, - "id": 11, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 3, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "Load Average", - "fill": 0, - "linewidth": 3, - "yaxis": 2 - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "CPU Utilization", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "system_cpu_usage", - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"system_cpu_usage\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\"])", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$host$/" - } - ] - }, - { - "alias": "Load Average", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "system_load_average_1m", - "orderByTime": "ASC", - "policy": "default", - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$host$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "CPU Usage", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": null, - "format": "percentunit", - "label": null, - "logBase": 1, - "max": "1.05", - "min": "0", - "show": true - }, - { - "format": "none", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "${DS_LOCALINFLUX}", - "format": "percentunit", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": true, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 12, - "y": 1 - }, - "id": 4, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeat": null, - "repeatDirection": "h", - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "disk_usage", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT 1 - last(\"free\") / last(\"total\") FROM \"disk_usage\" WHERE (\"host\" =~ /^$host$/) AND $timeFilter", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$host$/" - } - ] - } - ], - "thresholds": "0.9,0.95", - "title": "Disk Usage", - "type": "singlestat", - "valueFontSize": "50%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "aliasColors": { - "disk_free ": "#629e51", - "disk_used ": "#1f78c1" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "${DS_LOCALINFLUX}", - "fill": 7, - "gridPos": { - "h": 6, - "w": 9, - "x": 15, - "y": 1 - }, - "id": 13, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "total capacity", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "linear" - ], - "type": "fill" - } - ], - "measurement": "disk_total", - "orderByTime": "ASC", - "policy": "default", - "query": "usedPerc = () => {\ntotal = from(bucket: \"telegraf\")\n |> range($range)\n |> filter(fn: (r) =>\n r._measurement == \"disk_total\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n \nfree = from(bucket: \"telegraf\")\n |> range($range)\n |> filter(fn: (r) =>\n r._measurement == \"disk_free\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n \nreturn join(tables:{total:total, free:free},on:[\"_time\",\"_stop\",\"_start\"])\n |> map(fn:(r) => ({\n _time: r._time,\n _value: (r._value_total - r._value_free),\n _measurement: \"disk_used\"\n }))\n}\n\nusedPerc()", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$host$/" - } - ] - }, - { - "alias": "used", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "disk_usage", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"total\")- mean(free) FROM \"disk_usage\" WHERE (\"host\" =~ /^$host$/) AND $timeFilter GROUP BY time($__interval) fill(linear)", - "rawQuery": true, - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "total" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$host$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Disk Usage", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": null, - "format": "decbytes", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "${DS_LOCALINFLUX}", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 3, - "x": 0, - "y": 5 - }, - "id": 9, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [], - "measurement": "system_cpu_count", - "orderByTime": "ASC", - "policy": "autogen", - "query": "from(bucket: \"telegraf\")\n|> range(start: -1m)\n|> filter(fn: (r) =>\n r._measurement == \"system_cpu_count\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\"])\n|> last()", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$host$/" - } - ] - } - ], - "thresholds": "", - "title": "# CPUs", - "transparent": false, - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#d44a3a", - "rgba(237, 129, 40, 0.89)", - "#299c46" - ], - "datasource": "${DS_LOCALINFLUX}", - "decimals": null, - "format": "decbytes", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 3, - "x": 12, - "y": 5 - }, - "id": 12, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [], - "measurement": "disk_free", - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n |> range(start: -1m)\n |> filter(fn: (r) =>\n r._measurement == \"disk_free\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\"])\n |> last()", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$host$/" - } - ] - } - ], - "thresholds": "500000,200000", - "title": "Disk Free", - "transparent": false, - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - } - ], - "refresh": "30s", - "schemaVersion": 16, - "style": "dark", - "tags": [], - "templating": { - "list": [ - { - "allValue": null, - "current": {}, - "datasource": "${DS_LOCALINFLUX}", - "definition": "SHOW TAG VALUES WITH KEY = \"host\"", - "hide": 0, - "includeAll": true, - "label": null, - "multi": true, - "name": "host", - "options": [], - "query": "SHOW TAG VALUES WITH KEY = \"host\"", - "refresh": 2, - "regex": "", - "skipUrlSync": false, - "sort": 0, - "tagValuesQuery": "", - "tags": [], - "tagsQuery": "", - "type": "query", - "useTags": false - } - ] - }, - "time": { - "from": "now-1h", - "to": "now" - }, - "timepicker": { - "refresh_intervals": [ - "5s", - "10s", - "30s", - "1m", - "5m", - "15m", - "30m", - "1h", - "2h", - "1d" - ], - "time_options": [ - "5m", - "15m", - "1h", - "6h", - "12h", - "24h", - "2d", - "7d", - "30d" - ] - }, - "timezone": "", - "title": "System Metrics", - "uid": "system-metrics", - "version": 1 -} \ No newline at end of file diff --git a/inspectit-ocelot-demo/grafana/marketplace/prometheus/http.json b/inspectit-ocelot-demo/grafana/marketplace/prometheus/http.json deleted file mode 100644 index f697d59701..0000000000 --- a/inspectit-ocelot-demo/grafana/marketplace/prometheus/http.json +++ /dev/null @@ -1,1037 +0,0 @@ -{ - "__inputs": [ - { - "name": "DS_LOCALPROMETHEUS", - "label": "LocalPrometheus", - "description": "", - "type": "datasource", - "pluginId": "prometheus", - "pluginName": "Prometheus" - } - ], - "__requires": [ - { - "type": "grafana", - "id": "grafana", - "name": "Grafana", - "version": "6.7.3" - }, - { - "type": "panel", - "id": "graph", - "name": "Graph", - "version": "" - }, - { - "type": "datasource", - "id": "prometheus", - "name": "Prometheus", - "version": "1.0.0" - }, - { - "type": "panel", - "id": "singlestat", - "name": "Singlestat", - "version": "" - }, - { - "type": "panel", - "id": "table", - "name": "Table", - "version": "" - } - ], - "annotations": { - "list": [ - { - "$$hashKey": "object:1734", - "builtIn": 1, - "datasource": "-- Grafana --", - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "type": "dashboard" - } - ] - }, - "editable": true, - "gnetId": null, - "graphTooltip": 0, - "id": null, - "iteration": 1588834567590, - "links": [], - "panels": [ - { - "collapsed": false, - "datasource": null, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 0 - }, - "id": 4, - "panels": [], - "repeat": "service", - "title": "$service", - "type": "row" - }, - { - "columns": [], - "datasource": "${DS_LOCALPROMETHEUS}", - "fontSize": "100%", - "gridPos": { - "h": 5, - "w": 11, - "x": 0, - "y": 1 - }, - "id": 2, - "links": [], - "pageSize": null, - "repeat": null, - "repeatDirection": "h", - "scroll": true, - "showHeader": true, - "sort": { - "col": 1, - "desc": true - }, - "styles": [ - { - "alias": "", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "Time", - "thresholds": [], - "type": "hidden", - "unit": "short" - }, - { - "alias": "Requests", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 0, - "mappingType": 1, - "pattern": "Value #A", - "thresholds": [], - "type": "number", - "unit": "none" - }, - { - "alias": "Avg. Response Time", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "link": false, - "mappingType": 1, - "pattern": "Value #B", - "thresholds": [], - "type": "number", - "unit": "ms" - }, - { - "alias": "HTTP Path", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "http_path", - "thresholds": [], - "type": "number", - "unit": "short" - }, - { - "alias": "Error Rate", - "align": "auto", - "colorMode": "cell", - "colors": [ - "rgba(50, 172, 45, 0.97)", - "rgba(237, 129, 40, 0.89)", - "rgba(245, 54, 54, 0.9)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "Value #C", - "thresholds": [ - "0.0001", - "0.3" - ], - "type": "number", - "unit": "percentunit" - } - ], - "targets": [ - { - "expr": "sum(increase(http_in_count{service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_path) > 0", - "format": "table", - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A" - }, - { - "expr": "sum(increase(http_in_responsetime_sum{service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_path) \n/ sum(increase(http_in_count{service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_path) > 0", - "format": "table", - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "B" - }, - { - "expr": "(sum(increase(http_in_count{http_status!~\"(1|2|3)\\\\d\\\\d\",service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_path) \n/ sum(increase(http_in_count{service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_path)) >= 0\nor (sum(increase(http_in_count{service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_path) > 0) * 0", - "format": "table", - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "C" - } - ], - "title": "Incoming Requests", - "transform": "table", - "type": "table" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "${DS_LOCALPROMETHEUS}", - "description": "", - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 5, - "w": 9, - "x": 11, - "y": 1 - }, - "hiddenSeries": false, - "id": 23, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": false, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "(sum(increase(http_in_responsetime_sum{service=\"$service\",http_path=~\"$path\"}[$__interval])) by (http_path)\n/ sum(increase(http_in_count{service=\"$service\",http_path=~\"$path\"}[$__interval])) by (http_path)) >= 0", - "format": "time_series", - "instant": false, - "interval": "", - "intervalFactor": 1, - "legendFormat": "{{http_path}}", - "refId": "A" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Incoming Avg. Response Time", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "ms", - "label": "", - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "ms", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "${DS_LOCALPROMETHEUS}", - "decimals": 2, - "description": "Incoming HTTP Requests per second for the selected endpoints and applications", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 5, - "w": 2, - "x": 20, - "y": 1 - }, - "hideTimeOverride": true, - "id": 6, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "expr": "sum(rate(http_in_count{service=\"$service\",http_path=~\"$path\"}[$__interval]))", - "format": "time_series", - "instant": false, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A" - } - ], - "thresholds": "", - "timeShift": "15s", - "title": "In Req / Sec", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorPostfix": false, - "colorPrefix": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "${DS_LOCALPROMETHEUS}", - "decimals": 2, - "description": "The error rate of incoming http requests for the selected endpoints and applications", - "format": "percentunit", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 5, - "w": 2, - "x": 22, - "y": 1 - }, - "hideTimeOverride": true, - "id": 44, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "expr": "(sum(increase(http_in_count{http_status!~\"(1|2|3)\\\\d\\\\d\",service=\"$service\",http_path=~\"$path\"}[$__range]))\n/ sum(increase(http_in_count{service=\"$service\",http_path=~\"$path\"}[$__range])) >= 0)\nor (sum(increase(http_in_count{service=\"$service\",http_path=~\"$path\"}[$__range])) > 0) * 0", - "format": "time_series", - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A" - } - ], - "thresholds": "0.01,0.1", - "timeFrom": null, - "timeShift": "15s", - "title": "In Error Rate", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "columns": [], - "datasource": "${DS_LOCALPROMETHEUS}", - "fontSize": "100%", - "gridPos": { - "h": 5, - "w": 11, - "x": 0, - "y": 6 - }, - "id": 45, - "links": [], - "pageSize": null, - "repeatDirection": "h", - "scroll": true, - "showHeader": true, - "sort": { - "col": 6, - "desc": true - }, - "styles": [ - { - "alias": "", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "Time", - "thresholds": [], - "type": "hidden", - "unit": "short" - }, - { - "alias": "Requests", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 0, - "mappingType": 1, - "pattern": "Value #A", - "thresholds": [], - "type": "number", - "unit": "none" - }, - { - "alias": "Avg. Response Time", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "link": false, - "mappingType": 1, - "pattern": "Value #B", - "thresholds": [], - "type": "number", - "unit": "ms" - }, - { - "alias": "HTTP Path", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "http_path", - "preserveFormat": false, - "thresholds": [], - "type": "hidden", - "unit": "short" - }, - { - "alias": "Error Rate", - "align": "auto", - "colorMode": "cell", - "colors": [ - "rgba(50, 172, 45, 0.97)", - "rgba(237, 129, 40, 0.89)", - "rgba(245, 54, 54, 0.9)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "Value #C", - "thresholds": [ - "0.0001", - "0.3" - ], - "type": "number", - "unit": "percentunit" - }, - { - "alias": "Target Host", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "http_host", - "thresholds": [], - "type": "hidden", - "unit": "short" - }, - { - "alias": "Http URL", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "http_url", - "thresholds": [], - "type": "string", - "unit": "short" - } - ], - "targets": [ - { - "expr": "sum(label_join(increase(http_out_count{service=\"$service\",http_path=~\"$path\"}[$__range]), \"http_url\", \"\", \"http_host\", \"http_path\")) by (http_url) > 0", - "format": "table", - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A" - }, - { - "expr": "label_join(sum(increase(http_out_responsetime_sum{service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_host,http_path) \n/ sum(increase(http_out_count{service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_host,http_path) > 0, \"http_url\", \"\", \"http_host\", \"http_path\")", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "B" - }, - { - "expr": "label_join((sum(increase(http_out_count{http_status!~\"(1|2|3)\\\\d\\\\d\",service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_path) \n/ sum(increase(http_out_count{service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_host,http_path)) >= 0\nor (sum(increase(http_out_count{service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_host,http_path) > 0) * 0 , \"http_url\", \"\", \"http_host\", \"http_path\")", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "C" - } - ], - "title": "Outgoing Requests", - "transform": "table", - "type": "table" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "${DS_LOCALPROMETHEUS}", - "description": "", - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 5, - "w": 9, - "x": 11, - "y": 6 - }, - "hiddenSeries": false, - "id": 76, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": false, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "(sum(increase(http_out_responsetime_sum{service=\"$service\",http_path=~\"$path\"}[$__interval])) by (http_host,http_path)\n/ sum(increase(http_out_count{service=\"$service\",http_path=~\"$path\"}[$__interval])) by (http_host,http_path)) >= 0", - "format": "time_series", - "instant": false, - "interval": "", - "intervalFactor": 1, - "legendFormat": "{{http_host}}{{http_path}}", - "refId": "A" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Outgoing Avg. Response Time", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "ms", - "label": "", - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "ms", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "${DS_LOCALPROMETHEUS}", - "decimals": 2, - "description": "Outgoing HTTP Requests per second issued towards the selected endpoints from the given application", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 5, - "w": 2, - "x": 20, - "y": 6 - }, - "hideTimeOverride": true, - "id": 112, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "expr": "sum(rate(http_out_count{service=\"$service\",http_path=~\"$path\"}[$__interval]))", - "format": "time_series", - "instant": false, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A" - } - ], - "thresholds": "", - "timeShift": "15s", - "title": "Out Req / Sec", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorPostfix": false, - "colorPrefix": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "${DS_LOCALPROMETHEUS}", - "decimals": 2, - "description": "The error rate of outgoing http requests issued towards the selected endpoints of the selected application", - "format": "percentunit", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 5, - "w": 2, - "x": 22, - "y": 6 - }, - "hideTimeOverride": true, - "id": 153, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "expr": "(sum(increase(http_out_count{http_status!~\"(1|2|3)\\\\d\\\\d\",service=\"$service\",http_path=~\"$path\"}[$__range]))\n/ sum(increase(http_out_count{service=\"$service\",http_path=~\"$path\"}[$__range])) >= 0)\nor (sum(increase(http_out_count{service=\"$service\",http_path=~\"$path\"}[$__range])) > 0) * 0", - "format": "time_series", - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A" - } - ], - "thresholds": "0.01,0.1", - "timeFrom": null, - "timeShift": "15s", - "title": "Out Error Rate", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - } - ], - "refresh": "30s", - "schemaVersion": 22, - "style": "dark", - "tags": [], - "templating": { - "list": [ - { - "allValue": null, - "current": {}, - "datasource": "${DS_LOCALPROMETHEUS}", - "definition": "label_values(service)", - "hide": 0, - "includeAll": true, - "index": -1, - "label": "Service", - "multi": true, - "name": "service", - "options": [], - "query": "label_values(service)", - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 1, - "tagValuesQuery": "", - "tags": [], - "tagsQuery": "", - "type": "query", - "useTags": false - }, - { - "allValue": ".*", - "current": {}, - "datasource": "${DS_LOCALPROMETHEUS}", - "definition": "label_values(http_path)", - "hide": 0, - "includeAll": true, - "index": -1, - "label": "Endpoint", - "multi": true, - "name": "path", - "options": [], - "query": "label_values(http_path)", - "refresh": 2, - "regex": "", - "skipUrlSync": false, - "sort": 0, - "tagValuesQuery": "", - "tags": [], - "tagsQuery": "", - "type": "query", - "useTags": false - } - ] - }, - "time": { - "from": "now-5m", - "to": "now" - }, - "timepicker": { - "refresh_intervals": [ - "5s", - "10s", - "30s", - "1m", - "5m", - "15m", - "30m", - "1h", - "2h", - "1d" - ], - "time_options": [ - "5m", - "15m", - "1h", - "6h", - "12h", - "24h", - "2d", - "7d", - "30d" - ] - }, - "timezone": "", - "title": "HTTP Overview", - "uid": "523wqxqmz", - "variables": { - "list": [] - }, - "version": 1 -} \ No newline at end of file diff --git a/inspectit-ocelot-demo/grafana/marketplace/prometheus/jvm.json b/inspectit-ocelot-demo/grafana/marketplace/prometheus/jvm.json deleted file mode 100644 index 30727f8cfe..0000000000 --- a/inspectit-ocelot-demo/grafana/marketplace/prometheus/jvm.json +++ /dev/null @@ -1,1795 +0,0 @@ -{ - "__inputs": [ - { - "name": "DS_LOCALPROMETHEUS", - "label": "LocalPrometheus", - "description": "", - "type": "datasource", - "pluginId": "prometheus", - "pluginName": "Prometheus" - } - ], - "__requires": [ - { - "type": "grafana", - "id": "grafana", - "name": "Grafana", - "version": "5.4.2" - }, - { - "type": "panel", - "id": "graph", - "name": "Graph", - "version": "5.0.0" - }, - { - "type": "datasource", - "id": "prometheus", - "name": "Prometheus", - "version": "5.0.0" - }, - { - "type": "panel", - "id": "singlestat", - "name": "Singlestat", - "version": "5.0.0" - }, - { - "type": "panel", - "id": "text", - "name": "Text", - "version": "5.0.0" - } - ], - "annotations": { - "list": [ - { - "builtIn": 1, - "datasource": "-- Grafana --", - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "type": "dashboard" - } - ] - }, - "editable": true, - "gnetId": null, - "graphTooltip": 0, - "id": null, - "iteration": 1567608124582, - "links": [], - "panels": [ - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 0 - }, - "id": 7, - "panels": [], - "repeat": "service", - "title": "$service", - "type": "row" - }, - { - "aliasColors": { - "process_cpu_usage": "#badff4", - "process_cpu_usage ": "#badff4", - "system_cpu_usage": "#1f78c1", - "system_cpu_usage ": "#1f78c1" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "${DS_LOCALPROMETHEUS}", - "fill": 2, - "gridPos": { - "h": 6, - "w": 7, - "x": 0, - "y": 1 - }, - "id": 11, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "process_cpu_usage{service=\"$service\"}", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "process_cpu_usage", - "query": "from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"process_cpu_usage\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])", - "refId": "A", - "resultFormat": "time_series" - }, - { - "expr": "system_cpu_usage{service=\"$service\"}", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "system_cpu_usage", - "query": "from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"system_cpu_usage\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n", - "refId": "B", - "resultFormat": "time_series" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "CPU Usage", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": null, - "format": "percentunit", - "label": null, - "logBase": 1, - "max": "1.05", - "min": "0", - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "${DS_LOCALPROMETHEUS}", - "fill": 10, - "gridPos": { - "h": 6, - "w": 6, - "x": 7, - "y": 1 - }, - "id": 39, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "used", - "color": "#82b5d8" - }, - { - "alias": "committed", - "color": "#447ebc" - }, - { - "alias": "max", - "color": "#bf1b00", - "fill": 0, - "linewidth": 4 - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "max", - "expr": "sum(jvm_memory_max{service=\"$service\", area=\"heap\"})", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "interval": "", - "intervalFactor": 1, - "legendFormat": "max", - "measurement": "jvm_memory_max", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"gauge\") FROM \"jvm_memory_max\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time(1m) fill(null)", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "heap" - } - ] - }, - { - "alias": "committed", - "expr": "sum(jvm_memory_committed{service=\"$service\", area=\"heap\"})", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "hide": false, - "intervalFactor": 1, - "legendFormat": "committed", - "measurement": "jvm_memory_committed", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"gauge\") FROM \"jvm_memory_max\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time(1m) fill(null)", - "rawQuery": false, - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "heap" - } - ] - }, - { - "alias": "used", - "expr": "sum(jvm_memory_used{service=\"$service\", area=\"heap\"})", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "hide": false, - "intervalFactor": 1, - "legendFormat": "used", - "measurement": "jvm_memory_used", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"gauge\") FROM \"jvm_memory_max\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time(1m) fill(null)", - "rawQuery": false, - "refId": "C", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "heap" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Memory - Heap", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "decbytes", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": { - "daemon": "#0a50a1", - "daemon ": "#0a50a1", - "live-non-daemon ": "#82b5d8", - "non-daemon ": "#82b5d8", - "non-deamon": "#82b5d8", - "peak": "#bf1b00", - "peak ": "#bf1b00" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "${DS_LOCALPROMETHEUS}", - "fill": 4, - "gridPos": { - "h": 6, - "w": 6, - "x": 13, - "y": 1 - }, - "id": 42, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 2, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "expr": "jvm_threads_daemon{service=\"$service\"}", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "daemon", - "query": "from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_daemon\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> map(fn:(r) => ({\n _time: r._time,\n _value: r._value,\n _measurement: \"daemon\"\n }))\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])", - "refId": "B" - }, - { - "alias": "$tag_state", - "expr": "jvm_threads_live{service=\"$service\"} - jvm_threads_daemon{service=\"$service\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "state" - ], - "type": "tag" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "intervalFactor": 1, - "legendFormat": "non-deamon", - "measurement": "jvm_threads_states", - "orderByTime": "ASC", - "policy": "default", - "query": "lnd = () => {\nlive = from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_live\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n \ndaemon = from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_daemon\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n \nreturn join(tables:{live:live, daemon:daemon},on:[\"_time\",\"_stop\",\"_start\", \"host\"])\n |> map(fn:(r) => ({\n _time: r._time,\n _value: (r._value_live - r._value_daemon),\n _measurement: \"non-daemon\"\n }))\n}\n\nlnd()", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "expr": "jvm_threads_peak{service=\"$service\"} - jvm_threads_live{service=\"$service\"}", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "peak", - "query": "stackedPeak = () => {\npeak = from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_peak\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n\nlive = from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_live\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n \n\n \nreturn join(tables:{live:live, peak:peak},on:[\"_time\",\"_stop\",\"_start\", \"host\"])\n |> map(fn:(r) => ({\n _time: r._time,\n _value: (r._value_peak - r._value_live),\n _measurement: \"peak\"\n }))\n}\n\nstackedPeak()", - "refId": "C" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [ - { - "colorMode": "background6", - "fill": true, - "line": false, - "op": "time" - } - ], - "timeShift": null, - "title": "# Live Threads", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": 0, - "format": "none", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "${DS_LOCALPROMETHEUS}", - "fill": 1, - "gridPos": { - "h": 6, - "w": 5, - "x": 19, - "y": 1 - }, - "id": 46, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "Allocated Memory", - "bars": true, - "color": "#ef843c", - "lines": false - }, - { - "alias": "Promoted Memory", - "bars": true, - "color": "#629e51", - "lines": false - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "Live Data Size", - "expr": "jvm_gc_live_data_size{service=\"$service\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "hide": false, - "intervalFactor": 1, - "legendFormat": "Live Data Size", - "measurement": "jvm_gc_live_data_size", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT \"gauge\" FROM \"jvm_gc_live_data_size\" WHERE (\"service\" =~ /^$service$/) ", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "Max Data Size", - "expr": "jvm_gc_max_data_size{service=\"$service\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "hide": false, - "intervalFactor": 1, - "legendFormat": "Max Data Size", - "measurement": "jvm_gc_max_data_size", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT \"gauge\" FROM \"jvm_gc_live_data_size\" WHERE (\"service\" =~ /^$service$/) ", - "rawQuery": false, - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "Allocated Memory", - "expr": "idelta(jvm_gc_memory_allocated{service=\"$service\"}[$__range])", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - } - ], - "intervalFactor": 1, - "legendFormat": "Allocated Memory", - "measurement": "jvm_gc_memory_allocated", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT difference(sum(\"counter\")) FROM \"jvm_gc_memory_allocated\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time(15s)", - "rawQuery": false, - "refId": "D", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "counter" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - }, - { - "params": [], - "type": "non_negative_difference" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "Promoted Memory", - "expr": "idelta(jvm_gc_memory_promoted{service=\"$service\"}[$__range])", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - } - ], - "intervalFactor": 1, - "legendFormat": "Promoted Memory", - "measurement": "jvm_gc_memory_promoted", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT difference(sum(\"counter\")) FROM \"jvm_gc_memory_allocated\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time(15s)", - "rawQuery": false, - "refId": "F", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "counter" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - }, - { - "params": [], - "type": "non_negative_difference" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Garbage Collection Memory", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "decbytes", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "ms", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "${DS_LOCALPROMETHEUS}", - "format": "percentunit", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": true, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 6, - "w": 4, - "x": 0, - "y": 7 - }, - "id": 49, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "expr": "process_cpu_usage{service=\"$service\"}", - "format": "time_series", - "groupBy": [], - "instant": true, - "interval": "", - "intervalFactor": 1, - "measurement": "process_cpu_usage", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": "0.8,0.9", - "title": "Current CPU Usage", - "type": "singlestat", - "valueFontSize": "70%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "${DS_LOCALPROMETHEUS}", - "format": "none", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 3, - "w": 3, - "x": 4, - "y": 7 - }, - "id": 4, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeat": null, - "repeatDirection": "h", - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "expr": "jvm_classes_loaded{service=\"$service\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": true, - "intervalFactor": 1, - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n |> range(start: -1m)\n |> filter(fn: (r) =>\n r._measurement == \"jvm_classes_loaded\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"service\"])\n |> last()\n", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": "0.9,0.95", - "title": "Loaded Classes", - "type": "singlestat", - "valueFontSize": "50%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "${DS_LOCALPROMETHEUS}", - "fill": 10, - "gridPos": { - "h": 6, - "w": 6, - "x": 7, - "y": 7 - }, - "id": 40, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "used", - "color": "#82b5d8" - }, - { - "alias": "committed", - "color": "#447ebc" - }, - { - "alias": "max", - "color": "#bf1b00", - "fill": 0, - "linewidth": 4 - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "max", - "expr": "sum(jvm_memory_max{service=\"$service\", area=\"nonheap\"})", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "intervalFactor": 1, - "legendFormat": "max", - "measurement": "jvm_memory_max", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"gauge\") FROM \"jvm_memory_max\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time(1m) fill(null)", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "nonheap" - } - ] - }, - { - "alias": "committed", - "expr": "sum(jvm_memory_committed{service=\"$service\", area=\"nonheap\"})", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "intervalFactor": 1, - "legendFormat": "committed", - "measurement": "jvm_memory_committed", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"gauge\") FROM \"jvm_memory_max\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time(1m) fill(null)", - "rawQuery": false, - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "nonheap" - } - ] - }, - { - "alias": "used", - "expr": "sum(jvm_memory_used{service=\"$service\", area=\"nonheap\"})", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "intervalFactor": 1, - "legendFormat": "used", - "measurement": "jvm_memory_used", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"gauge\") FROM \"jvm_memory_max\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time(1m) fill(null)", - "rawQuery": false, - "refId": "C", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "nonheap" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Memory - Non-Heap", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "decbytes", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "${DS_LOCALPROMETHEUS}", - "fill": 4, - "gridPos": { - "h": 6, - "w": 6, - "x": 13, - "y": 7 - }, - "id": 41, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "alias": "$tag_state", - "expr": "jvm_threads_states{service=\"$service\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "state" - ], - "type": "tag" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "intervalFactor": 1, - "legendFormat": "{{state}}", - "measurement": "jvm_threads_states", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"gauge\") FROM \"jvm_memory_max\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time(1m) fill(null)", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "# Threads by States", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": 0, - "format": "none", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": { - "Major GC": "#bf1b00" - }, - "bars": true, - "dashLength": 10, - "dashes": false, - "datasource": "${DS_LOCALPROMETHEUS}", - "fill": 1, - "gridPos": { - "h": 6, - "w": 5, - "x": 19, - "y": 7 - }, - "id": 47, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": false, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "expr": "sum(idelta(jvm_gc_pause{service=\"$service\", action=\"end of minor GC\"}[$__range]))", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "Minor GC", - "refId": "A" - }, - { - "expr": "idelta(jvm_gc_pause{service=\"$service\", action=\"end of major GC\"}[$__range])", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "Major GC", - "refId": "B" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Garbage Collection Pauses", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "ms", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "${DS_LOCALPROMETHEUS}", - "format": "none", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 3, - "w": 3, - "x": 4, - "y": 10 - }, - "id": 12, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatDirection": "h", - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "expr": "jvm_classes_unloaded{service=\"$service\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": true, - "intervalFactor": 1, - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n |> range(start: -1m)\n |> filter(fn: (r) =>\n r._measurement == \"jvm_classes_unloaded\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"service\"])\n |> last()\n", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": "0.9,0.95", - "title": "Unloaded Classes", - "type": "singlestat", - "valueFontSize": "50%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "content": "----", - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 13 - }, - "id": 51, - "links": [], - "mode": "html", - "title": "", - "transparent": true, - "type": "text" - } - ], - "refresh": "30s", - "schemaVersion": 16, - "style": "dark", - "tags": [], - "templating": { - "list": [ - { - "allValue": null, - "current": {}, - "datasource": "${DS_LOCALPROMETHEUS}", - "definition": "label_values(service)", - "hide": 0, - "includeAll": true, - "label": null, - "multi": true, - "name": "service", - "options": [], - "query": "label_values(service)", - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 0, - "tagValuesQuery": "", - "tags": [], - "tagsQuery": "", - "type": "query", - "useTags": false - } - ] - }, - "time": { - "from": "now-1h", - "to": "now" - }, - "timepicker": { - "refresh_intervals": [ - "5s", - "10s", - "30s", - "1m", - "5m", - "15m", - "30m", - "1h", - "2h", - "1d" - ], - "time_options": [ - "5m", - "15m", - "1h", - "6h", - "12h", - "24h", - "2d", - "7d", - "30d" - ] - }, - "timezone": "", - "title": "JVM Metrics", - "uid": "D65bST8iz", - "version": 1 -} \ No newline at end of file diff --git a/inspectit-ocelot-demo/grafana/marketplace/prometheus/selfmonitoring.json b/inspectit-ocelot-demo/grafana/marketplace/prometheus/selfmonitoring.json deleted file mode 100644 index 5fa706e730..0000000000 --- a/inspectit-ocelot-demo/grafana/marketplace/prometheus/selfmonitoring.json +++ /dev/null @@ -1,1023 +0,0 @@ -{ - "__inputs": [ - { - "name": "DS_LOCALPROMETHEUS", - "label": "LocalPrometheus", - "description": "", - "type": "datasource", - "pluginId": "prometheus", - "pluginName": "Prometheus" - } - ], - "__requires": [ - { - "type": "grafana", - "id": "grafana", - "name": "Grafana", - "version": "6.7.3" - }, - { - "type": "panel", - "id": "graph", - "name": "Graph", - "version": "" - }, - { - "type": "datasource", - "id": "prometheus", - "name": "Prometheus", - "version": "1.0.0" - }, - { - "type": "panel", - "id": "singlestat", - "name": "Singlestat", - "version": "" - }, - { - "type": "panel", - "id": "table", - "name": "Table", - "version": "" - } - ], - "annotations": { - "list": [ - { - "$$hashKey": "object:181", - "builtIn": 1, - "datasource": "-- Grafana --", - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "type": "dashboard" - } - ] - }, - "editable": true, - "gnetId": null, - "graphTooltip": 0, - "id": null, - "iteration": 1588836480548, - "links": [], - "panels": [ - { - "collapsed": false, - "datasource": null, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 0 - }, - "id": 2, - "panels": [], - "repeat": "service", - "title": "$service", - "type": "row" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "${DS_LOCALPROMETHEUS}", - "decimals": 3, - "format": "percentunit", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": true, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 6, - "w": 3, - "x": 0, - "y": 1 - }, - "id": 4, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "expr": "inspectit_self_instrumented_classes{service=\"$service\"} / jvm_classes_loaded{service=\"$service\"}", - "format": "time_series", - "instant": true, - "intervalFactor": 1, - "query": "perc = () => {\ninstrumented = from(bucket: \"telegraf\")\n|> range(start:-1h)\n|> filter(fn: (r) => \nr._measurement == \"inspectit_self_instrumented_classes\" AND \nr.service == \"$service\" AND \nr._field == \"gauge\")\n|> keep(columns: [\"_time\",\"_value\"])\n\n\nloaded = from(bucket: \"telegraf\")\n|> range(start:-1h)\n|> filter(fn: (r) => \nr._measurement == \"jvm_classes_loaded\" AND \nr.service == \"$service\" AND \nr._field == \"gauge\")\n|> keep(columns: [\"_time\",\"_value\"])\n\n\nreturn join(tables:{instrumented:instrumented, loaded:loaded},on:[\"_time\"])\n|> map(fn:(r) => ({\n_time: r._time,\n_value: (r._value_instrumented / r._value_loaded),\n_measurement: \"perc-instrumented\" }))\n|> last()\n}\n\nperc()", - "refId": "A", - "resultFormat": "time_series" - } - ], - "thresholds": "10,30", - "title": "Instr. Scope", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "columns": [], - "datasource": "${DS_LOCALPROMETHEUS}", - "fontSize": "120%", - "gridPos": { - "h": 6, - "w": 7, - "x": 3, - "y": 1 - }, - "id": 47, - "links": [], - "pageSize": null, - "scroll": true, - "showHeader": true, - "sort": { - "col": 2, - "desc": true - }, - "styles": [ - { - "alias": "Time", - "align": "auto", - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "pattern": "Time", - "type": "hidden" - }, - { - "alias": "Description", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "Metric", - "thresholds": [], - "type": "string", - "unit": "short" - }, - { - "alias": "Count", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 0, - "mappingType": 1, - "pattern": "Value", - "thresholds": [], - "type": "number", - "unit": "none" - }, - { - "alias": "", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "decimals": 2, - "pattern": "/.*/", - "thresholds": [], - "type": "number", - "unit": "short" - } - ], - "targets": [ - { - "alias": "# classes loaded by JVM", - "expr": "jvm_classes_loaded{service=\"$service\"}", - "format": "time_series", - "groupBy": [], - "instant": true, - "intervalFactor": 1, - "legendFormat": "# classes loaded by JVM", - "measurement": "jvm_classes_loaded", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "# instrumented classes", - "expr": "inspectit_self_instrumentation_queue_size{service=\"$service\"}", - "format": "time_series", - "groupBy": [], - "instant": true, - "intervalFactor": 1, - "legendFormat": "# classes pending for analysis", - "measurement": "inspectit_self_instrumented_classes", - "orderByTime": "ASC", - "policy": "default", - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "# classes pending for analysis", - "expr": "inspectit_self_instrumented_classes{service=\"$service\"}", - "format": "time_series", - "groupBy": [], - "instant": true, - "intervalFactor": 1, - "legendFormat": "# instrumented classes", - "measurement": "inspectit_self_instrumentation_analysis_queue_size", - "orderByTime": "ASC", - "policy": "default", - "refId": "C", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "expr": "inspectit_self_logs{service=\"$service\",level=\"ERROR\"}", - "format": "time_series", - "instant": true, - "intervalFactor": 1, - "legendFormat": "# errors since startup", - "refId": "D" - }, - { - "expr": "inspectit_self_logs{service=\"$service\",level=\"WARN\"}", - "format": "time_series", - "instant": true, - "intervalFactor": 1, - "legendFormat": "# warnings since startup", - "refId": "E" - } - ], - "title": "Instrumentation State", - "transform": "timeseries_to_rows", - "type": "table" - }, - { - "cacheTimeout": null, - "colorBackground": true, - "colorPostfix": false, - "colorValue": false, - "colors": [ - "rgb(33, 33, 36)", - "#890f02", - "#299c46" - ], - "datasource": "${DS_LOCALPROMETHEUS}", - "decimals": 0, - "description": "Number of newly logged errors. This metric can display too low numbers in case the agent just restarted!", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 10, - "y": 1 - }, - "id": 76, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "$$hashKey": "object:291", - "name": "value to text", - "value": 1 - }, - { - "$$hashKey": "object:292", - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": " ", - "postfixFontSize": "30%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "expr": "sum(increase(inspectit_self_logs{service=~\"$service\",level=~\"FATAL|ERROR\"}[$__range]))", - "format": "time_series", - "instant": true, - "intervalFactor": 1, - "refId": "A" - } - ], - "thresholds": "1", - "title": "Errors", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "$$hashKey": "object:294", - "op": "=", - "text": "0", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#d44a3a", - "rgba(237, 129, 40, 0.89)", - "#299c46" - ], - "datasource": "${DS_LOCALPROMETHEUS}", - "format": "percentunit", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": true, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 6, - "w": 3, - "x": 12, - "y": 1 - }, - "id": 23, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "expr": "1 - (inspectit_self_instrumentation_queue_size{service=\"$service\"}/jvm_classes_loaded{service=\"$service\"})", - "format": "time_series", - "instant": true, - "intervalFactor": 1, - "query": "perc = () => {\ninstrumented = from(bucket: \"telegraf\")\n|> range(start:-1h)\n|> filter(fn: (r) => \nr._measurement == \"inspectit_self_instrumentation_analysis_queue_size\" AND \nr.service == \"$service\" AND \nr._field == \"gauge\")\n|> keep(columns: [\"_time\",\"_value\"])\n\n\nloaded = from(bucket: \"telegraf\")\n|> range(start:-1h)\n|> filter(fn: (r) => \nr._measurement == \"jvm_classes_loaded\" AND \nr.service == \"$service\" AND \nr._field == \"gauge\")\n|> keep(columns: [\"_time\",\"_value\"])\n\n\nreturn join(tables:{instrumented:instrumented, loaded:loaded},on:[\"_time\"])\n|> map(fn:(r) => ({\n_time: r._time,\n_value: 1.0 - (r._value_instrumented / r._value_loaded),\n_measurement: \"progress\" }))\n|> last()\n}\n\nperc()", - "refId": "A", - "resultFormat": "time_series" - } - ], - "thresholds": "0.33,0.66", - "title": "Instrumentation Progress", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "aliasColors": { - "classes pending for hook": "#99440a" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "${DS_LOCALPROMETHEUS}", - "fill": 5, - "fillGradient": 0, - "gridPos": { - "h": 6, - "w": 9, - "x": 15, - "y": 1 - }, - "hiddenSeries": false, - "id": 49, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "instrumented classes", - "color": "#629e51", - "fill": 5, - "zindex": 3 - }, - { - "alias": "classes pending for analysis", - "color": "#eab839", - "zindex": 0 - }, - { - "alias": "loaded classes", - "color": "#82b5d8", - "zindex": -3 - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "loaded classes", - "expr": "inspectit_self_instrumented_classes{service=\"$service\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "1m" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "intervalFactor": 1, - "legendFormat": "instrumented classes", - "measurement": "jvm_classes_loaded", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "instrumented classes", - "expr": "inspectit_self_instrumentation_queue_size{service=\"$service\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "1m" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "intervalFactor": 1, - "legendFormat": "classes pending for analysis", - "measurement": "inspectit_self_instrumented_classes", - "orderByTime": "ASC", - "policy": "default", - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "classes pending for analysis", - "expr": "jvm_classes_loaded{service=\"$service\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "1m" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "intervalFactor": 1, - "legendFormat": "loaded classes", - "measurement": "inspectit_self_instrumentation_analysis_queue_size", - "orderByTime": "ASC", - "policy": "default", - "refId": "C", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Instrumentation State over time (Logarithmic Scale)", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": "# Classes", - "logBase": 10, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": true, - "colorPostfix": false, - "colorValue": false, - "colors": [ - "rgba(33, 33, 36, 1)", - "#967302", - "#299c46" - ], - "datasource": "${DS_LOCALPROMETHEUS}", - "decimals": 0, - "description": "Number of newly logged warnings. This metric can display too low numbers in case the agent just restarted!", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 10, - "y": 3 - }, - "id": 107, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "$$hashKey": "object:397", - "name": "value to text", - "value": 1 - }, - { - "$$hashKey": "object:398", - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "30%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "expr": "increase(inspectit_self_logs{service=~\"$service\",level=~\"WARN\"}[$__range])", - "format": "time_series", - "instant": true, - "intervalFactor": 1, - "refId": "A" - } - ], - "thresholds": "1", - "title": "Warnings", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "$$hashKey": "object:400", - "op": "=", - "text": "0", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorPostfix": false, - "colorValue": false, - "colors": [ - "rgba(28, 26, 25, 0)", - "#eab839", - "#299c46" - ], - "datasource": "${DS_LOCALPROMETHEUS}", - "decimals": 0, - "description": "Number of newly logged infos. This metric can display too low numbers in case the agent just restarted!", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 10, - "y": 5 - }, - "id": 143, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "$$hashKey": "object:431", - "name": "value to text", - "value": 1 - }, - { - "$$hashKey": "object:432", - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "30%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "expr": "SUM(increase(inspectit_self_logs{service=~\"$service\",level=~\"INFO|DEBUG|TRACE\"}[$__range]))", - "format": "time_series", - "instant": true, - "intervalFactor": 1, - "refId": "A" - } - ], - "thresholds": "", - "title": "Other Logs", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "$$hashKey": "object:434", - "op": "=", - "text": "0", - "value": "null" - } - ], - "valueName": "current" - } - ], - "refresh": "30s", - "schemaVersion": 22, - "style": "dark", - "tags": [], - "templating": { - "list": [ - { - "allValue": null, - "current": {}, - "datasource": "${DS_LOCALPROMETHEUS}", - "definition": "label_values(service)", - "hide": 0, - "includeAll": true, - "index": -1, - "label": null, - "multi": true, - "name": "service", - "options": [], - "query": "label_values(service)", - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 0, - "tagValuesQuery": "", - "tags": [], - "tagsQuery": "", - "type": "query", - "useTags": false - } - ] - }, - "time": { - "from": "now-30m", - "to": "now" - }, - "timepicker": { - "refresh_intervals": [ - "5s", - "10s", - "30s", - "1m", - "5m", - "15m", - "30m", - "1h", - "2h", - "1d" - ], - "time_options": [ - "5m", - "15m", - "1h", - "6h", - "12h", - "24h", - "2d", - "7d", - "30d" - ] - }, - "timezone": "", - "title": "inspectIT Agent Self-Monitoring", - "uid": "oG69sg5Zk", - "variables": { - "list": [] - }, - "version": 1 -} \ No newline at end of file diff --git a/inspectit-ocelot-demo/grafana/marketplace/prometheus/servicegraph.json b/inspectit-ocelot-demo/grafana/marketplace/prometheus/servicegraph.json deleted file mode 100644 index 6bac556539..0000000000 --- a/inspectit-ocelot-demo/grafana/marketplace/prometheus/servicegraph.json +++ /dev/null @@ -1,302 +0,0 @@ -{ - "__inputs": [ - { - "name": "DS_LOCALPROMETHEUS", - "label": "LocalPrometheus", - "description": "", - "type": "datasource", - "pluginId": "prometheus", - "pluginName": "Prometheus" - } - ], - "__requires": [ - { - "type": "grafana", - "id": "grafana", - "name": "Grafana", - "version": "6.7.3" - }, - { - "type": "panel", - "id": "novatec-service-dependency-graph-panel", - "name": "Service Dependency Graph", - "version": "2.0" - }, - { - "type": "datasource", - "id": "prometheus", - "name": "Prometheus", - "version": "1.0.0" - } - ], - "annotations": { - "list": [ - { - "$$hashKey": "object:1388", - "builtIn": 1, - "datasource": "-- Grafana --", - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "type": "dashboard" - } - ] - }, - "editable": true, - "gnetId": null, - "graphTooltip": 0, - "id": null, - "iteration": 1588833980797, - "links": [], - "panels": [ - { - "dataMapping": { - "errorRateColumn": "error-rate", - "errorRateOutgoingColumn": "error-rate-out", - "extOrigin": "origin_external", - "extTarget": "target_external", - "requestRateColumn": "Value #A", - "requestRateExternalColumn": "", - "requestRateOutgoingColumn": "Value #B", - "responseTimeColumn": "Value #C", - "responseTimeExternalColumn": "", - "responseTimeOutgoingColumn": "Value #D", - "sourceComponentPrefix": "origin_", - "targetComponentPrefix": "target_", - "type": "protocol" - }, - "datasource": "${DS_LOCALPROMETHEUS}", - "gridPos": { - "h": 19, - "w": 23, - "x": 0, - "y": 0 - }, - "id": 2, - "links": [], - "sdgSettings": { - "externalIcons": [ - { - "icon": "web", - "type": "web" - }, - { - "icon": "message", - "type": "jms" - }, - { - "icon": "database", - "type": "jdbc" - }, - { - "icon": "http", - "type": "http" - } - ], - "filterEmptyConnections": true, - "layout": "ltrTree", - "maxVolume": "100000", - "showConnectionStats": true, - "sumTimings": true - }, - "sdgStyle": { - "dangerColor": "rgb(184, 36, 36)", - "healthyColor": "rgb(87, 148, 242)" - }, - "settings": { - "animate": true, - "dataMapping": { - "errorRateColumn": "Value #E", - "errorRateOutgoingColumn": "Value #F", - "extOrigin": "origin_external", - "extTarget": "target_external", - "requestRateColumn": "Value #A", - "requestRateOutgoingColumn": "Value #B", - "responseTimeColumn": "Value #C", - "responseTimeOutgoingColumn": "Value #D", - "sourceComponentPrefix": "origin_", - "targetComponentPrefix": "target_", - "type": "protocol" - }, - "drillDownLink": "", - "externalIcons": [ - { - "$$hashKey": "object:1411", - "filename": "web", - "name": "web" - }, - { - "$$hashKey": "object:1412", - "filename": "message", - "name": "jms" - }, - { - "$$hashKey": "object:1413", - "filename": "database", - "name": "jdbc" - }, - { - "$$hashKey": "object:1414", - "filename": "http", - "name": "http" - } - ], - "filterEmptyConnections": true, - "showConnectionStats": true, - "showDebugInformation": false, - "showDummyData": false, - "style": { - "dangerColor": "rgb(184, 36, 36)", - "healthyColor": "rgb(87, 148, 242)" - }, - "sumTimings": true - }, - "targets": [ - { - "expr": "sum(increase(service_in_count{service=~\"$service\"}[$__range]) or increase(service_in_count{origin_service=~\"$service\"}[$__range]) >= 0) by (service,origin_service,origin_external,protocol) > 0", - "format": "table", - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A" - }, - { - "expr": "sum(increase(service_out_count{service=~\"$service\"}[$__range]) or increase(service_out_count{target_service=~\"$service\"}[$__range]) >= 0) by (service,target_service,target_external,protocol) > 0", - "format": "table", - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "B" - }, - { - "expr": "sum(increase(service_in_responsetime_sum{service=~\"$service\"}[$__range]) or increase(service_in_responsetime_sum{origin_service=~\"$service\"}[$__range]) >= 0) by (service,origin_service,origin_external,protocol) > 0", - "format": "table", - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "C" - }, - { - "expr": "sum(increase(service_out_responsetime_sum{service=~\"$service\"}[$__range]) or increase(service_out_responsetime_sum{target_service=~\"$service\"}[$__range]) >= 0) by (service,target_service,target_external,protocol) > 0", - "format": "table", - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "D" - }, - { - "expr": "sum(increase(service_in_count{service=~\"$service\",error=\"true\"}[$__range]) or increase(service_in_count{origin_service=~\"$service\",error=\"true\"}[$__range]) >= 0) by (service,origin_service,origin_external,protocol) > 0", - "format": "table", - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "E" - }, - { - "expr": "sum(increase(service_out_count{service=~\"$service\",error=\"true\"}[$__range]) or increase(service_out_count{target_service=~\"$service\",error=\"true\"}[$__range]) >= 0) by (service,target_service,target_external,protocol) > 0", - "format": "table", - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "F" - } - ], - "title": "Service Graph", - "type": "novatec-service-dependency-graph-panel" - } - ], - "refresh": "30s", - "schemaVersion": 22, - "style": "dark", - "tags": [], - "templating": { - "list": [ - { - "allValue": null, - "current": { - "text": "service", - "value": "service" - }, - "hide": 2, - "includeAll": false, - "label": null, - "multi": false, - "name": "aggregationType", - "options": [ - { - "selected": true, - "text": "service", - "value": "service" - } - ], - "query": "service", - "skipUrlSync": false, - "type": "custom" - }, - { - "allValue": ".*", - "current": {}, - "datasource": "${DS_LOCALPROMETHEUS}", - "definition": "label_values(service)", - "hide": 0, - "includeAll": true, - "index": -1, - "label": "Services", - "multi": true, - "name": "service", - "options": [], - "query": "label_values(service)", - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 0, - "tagValuesQuery": "", - "tags": [], - "tagsQuery": "", - "type": "query", - "useTags": false - } - ] - }, - "time": { - "from": "now-5m", - "to": "now" - }, - "timepicker": { - "refresh_intervals": [ - "5s", - "10s", - "30s", - "1m", - "5m", - "15m", - "30m", - "1h", - "2h", - "1d" - ], - "time_options": [ - "5m", - "15m", - "1h", - "6h", - "12h", - "24h", - "2d", - "7d", - "30d" - ] - }, - "timezone": "", - "title": "Service Graph", - "uid": "FlzDnieiz", - "variables": { - "list": [] - }, - "version": 1 -} \ No newline at end of file diff --git a/inspectit-ocelot-demo/grafana/marketplace/prometheus/system.json b/inspectit-ocelot-demo/grafana/marketplace/prometheus/system.json deleted file mode 100644 index a807eac086..0000000000 --- a/inspectit-ocelot-demo/grafana/marketplace/prometheus/system.json +++ /dev/null @@ -1,868 +0,0 @@ -{ - "__inputs": [ - { - "name": "DS_LOCALPROMETHEUS", - "label": "LocalPrometheus", - "description": "", - "type": "datasource", - "pluginId": "prometheus", - "pluginName": "Prometheus" - } - ], - "__requires": [ - { - "type": "grafana", - "id": "grafana", - "name": "Grafana", - "version": "5.4.2" - }, - { - "type": "panel", - "id": "graph", - "name": "Graph", - "version": "5.0.0" - }, - { - "type": "datasource", - "id": "prometheus", - "name": "Prometheus", - "version": "5.0.0" - }, - { - "type": "panel", - "id": "singlestat", - "name": "Singlestat", - "version": "5.0.0" - } - ], - "annotations": { - "list": [ - { - "builtIn": 1, - "datasource": "-- Grafana --", - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "type": "dashboard" - } - ] - }, - "editable": true, - "gnetId": null, - "graphTooltip": 0, - "id": null, - "iteration": 1567608165891, - "links": [], - "panels": [ - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 0 - }, - "id": 7, - "panels": [], - "repeat": "host", - "title": "$host", - "type": "row" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#bf1b00" - ], - "datasource": "${DS_LOCALPROMETHEUS}", - "format": "percentunit", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": true, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 0, - "y": 1 - }, - "id": 5, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatDirection": "h", - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "expr": "system_cpu_usage{host=\"$host\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": true, - "intervalFactor": 1, - "measurement": "system_cpu_usage", - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n|> range(start: -1m)\n|> filter(fn: (r) =>\n r._measurement == \"system_cpu_usage\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\"])", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": "0.9,0.95", - "title": "CPU Usage", - "transparent": false, - "type": "singlestat", - "valueFontSize": "50%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "aliasColors": { - "CPU Utilization": "#82b5d8", - "Load Average": "#bf1b00" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "${DS_LOCALPROMETHEUS}", - "fill": 2, - "gridPos": { - "h": 6, - "w": 8, - "x": 3, - "y": 1 - }, - "id": 11, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 3, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "Load Average", - "fill": 0, - "linewidth": 3, - "yaxis": 2 - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "CPU Utilization", - "expr": "system_cpu_usage{host=\"$host\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "intervalFactor": 1, - "legendFormat": "CPU Utilization", - "measurement": "system_cpu_usage", - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"system_cpu_usage\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\"])", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$host$/" - } - ] - }, - { - "alias": "Load Average", - "expr": "system_load_average_1m{host=\"$host\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "intervalFactor": 1, - "legendFormat": "Load Average", - "measurement": "system_load_average_1m", - "orderByTime": "ASC", - "policy": "default", - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$host$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "CPU Usage", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": null, - "format": "percentunit", - "label": null, - "logBase": 1, - "max": "1.05", - "min": "0", - "show": true - }, - { - "format": "none", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "${DS_LOCALPROMETHEUS}", - "format": "percentunit", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": true, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 12, - "y": 1 - }, - "id": 4, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeat": null, - "repeatDirection": "h", - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "expr": "(disk_total{host=\"$host\"} - disk_free{host=\"$host\"})/disk_total{host=\"$host\"}", - "format": "time_series", - "instant": true, - "intervalFactor": 1, - "query": "usedPerc = () => {\ntotal = from(bucket: \"telegraf\")\n |> range($range)\n |> filter(fn: (r) =>\n r._measurement == \"disk_total\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"service\"])\n \nfree = from(bucket: \"telegraf\")\n |> range($range)\n |> filter(fn: (r) =>\n r._measurement == \"disk_free\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"service\"])\n \nreturn join(tables:{total:total, free:free},on:[\"_time\",\"_stop\",\"_start\"])\n |> map(fn:(r) => ({\n _time: r._time,\n _value: (r._value_total - r._value_free)/r._value_total\n \n }))\n}\n\nusedPerc()", - "refId": "A" - } - ], - "thresholds": "0.9,0.95", - "title": "Disk Usage", - "type": "singlestat", - "valueFontSize": "50%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "aliasColors": { - "disk_free": "#629e51", - "disk_free ": "#629e51", - "disk_free{host=\"4d8670ccd24b\",host-address=\"172.19.0.10\",instance=\"vets-service:9093\",job=\"inspectit\",service=\"vets-service\"}": "#629e51", - "disk_used": "#1f78c1", - "disk_used ": "#1f78c1" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "${DS_LOCALPROMETHEUS}", - "fill": 7, - "gridPos": { - "h": 6, - "w": 9, - "x": 15, - "y": 1 - }, - "id": 13, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "expr": "disk_total{host=\"$host\"} - disk_free{host=\"$host\"}", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "disk_used", - "query": "usedPerc = () => {\ntotal = from(bucket: \"telegraf\")\n |> range($range)\n |> filter(fn: (r) =>\n r._measurement == \"disk_total\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n \nfree = from(bucket: \"telegraf\")\n |> range($range)\n |> filter(fn: (r) =>\n r._measurement == \"disk_free\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n \nreturn join(tables:{total:total, free:free},on:[\"_time\",\"_stop\",\"_start\"])\n |> map(fn:(r) => ({\n _time: r._time,\n _value: (r._value_total - r._value_free),\n _measurement: \"disk_used\"\n }))\n}\n\nusedPerc()", - "refId": "A" - }, - { - "expr": "disk_free{host=\"$host\"}", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "disk_free", - "query": "from(bucket: \"telegraf\")\n |> range($range)\n |> filter(fn: (r) =>\n r._measurement == \"disk_free\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n", - "refId": "B" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Disk Usage", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": null, - "format": "decbytes", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "${DS_LOCALPROMETHEUS}", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 3, - "x": 0, - "y": 5 - }, - "id": 9, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "expr": "system_cpu_count{host=\"$host\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": true, - "intervalFactor": 1, - "measurement": "system_cpu_count", - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n|> range(start: -1m)\n|> filter(fn: (r) =>\n r._measurement == \"system_cpu_count\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\"])\n|> last()", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": "", - "title": "# CPUs", - "transparent": false, - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#d44a3a", - "rgba(237, 129, 40, 0.89)", - "#299c46" - ], - "datasource": "${DS_LOCALPROMETHEUS}", - "decimals": null, - "format": "decbytes", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 3, - "x": 12, - "y": 5 - }, - "id": 12, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "expr": "disk_free{host=\"$host\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": true, - "intervalFactor": 1, - "measurement": "system_cpu_count", - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n |> range(start: -1m)\n |> filter(fn: (r) =>\n r._measurement == \"disk_free\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\"])\n |> last()", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": "500000,200000", - "title": "Disk Free", - "transparent": false, - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - } - ], - "refresh": "30s", - "schemaVersion": 16, - "style": "dark", - "tags": [], - "templating": { - "list": [ - { - "allValue": null, - "current": {}, - "datasource": "${DS_LOCALPROMETHEUS}", - "definition": "label_values(host)", - "hide": 0, - "includeAll": true, - "label": null, - "multi": false, - "name": "host", - "options": [], - "query": "label_values(host)", - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 0, - "tagValuesQuery": "", - "tags": [], - "tagsQuery": "", - "type": "query", - "useTags": false - } - ] - }, - "time": { - "from": "now-1h", - "to": "now" - }, - "timepicker": { - "refresh_intervals": [ - "5s", - "10s", - "30s", - "1m", - "5m", - "15m", - "30m", - "1h", - "2h", - "1d" - ], - "time_options": [ - "5m", - "15m", - "1h", - "6h", - "12h", - "24h", - "2d", - "7d", - "30d" - ] - }, - "timezone": "", - "title": "System Metrics", - "uid": "skfGrta43Ae2", - "version": 1 -} \ No newline at end of file diff --git a/inspectit-ocelot-demo/grafana/provisioning/home-dashboard/home.json b/inspectit-ocelot-demo/grafana/provisioning/home-dashboard/home.json deleted file mode 100644 index 0f611e18c4..0000000000 --- a/inspectit-ocelot-demo/grafana/provisioning/home-dashboard/home.json +++ /dev/null @@ -1,137 +0,0 @@ -{ - "annotations": { - "list": [ - { - "builtIn": 1, - "datasource": "-- Grafana --", - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "type": "dashboard" - } - ] - }, - "editable": true, - "gnetId": null, - "graphTooltip": 0, - "id": 7, - "links": [], - "panels": [ - { - "datasource": null, - "gridPos": { - "h": 5, - "w": 24, - "x": 0, - "y": 0 - }, - "id": 123126, - "options": { - "content": "\r\n\t
\r\n\t\t\r\n\t\t

Welcome to InspectIT Ocelot

\r\n\t\t

Need Help?

\r\n\t\tOcelot Documentation\r\n\t\tOpen APM Landscape\r\n\t\tContact us\r\n\t
\r\n\t", - "mode": "html" - }, - "pluginVersion": "8.0.6", - "targets": [ - { - "queryType": "randomWalk", - "refId": "A" - } - ], - "transparent": true, - "type": "text" - }, - { - "datasource": null, - "gridPos": { - "h": 9, - "w": 12, - "x": 0, - "y": 5 - }, - "id": 123124, - "links": [], - "options": { - "folderId": 8, - "maxItems": 30, - "query": "", - "showHeadings": false, - "showRecentlyViewed": false, - "showSearch": true, - "showStarred": false, - "tags": [] - }, - "pluginVersion": "8.0.6", - "tags": [], - "title": "Agent", - "type": "dashlist" - }, - { - "datasource": null, - "gridPos": { - "h": 9, - "w": 12, - "x": 12, - "y": 5 - }, - "id": 3, - "links": [], - "options": { - "folderId": 9, - "maxItems": 30, - "query": "", - "showHeadings": false, - "showRecentlyViewed": false, - "showSearch": true, - "showStarred": false, - "tags": [] - }, - "pluginVersion": "8.0.6", - "tags": [], - "title": "EUM", - "type": "dashlist" - } - ], - "refresh": false, - "schemaVersion": 30, - "style": "dark", - "tags": [], - "templating": { - "list": [] - }, - "time": { - "from": "2021-08-24T06:47:32.708Z", - "to": "2021-08-24T18:47:32.708Z" - }, - "timepicker": { - "hidden": true, - "refresh_intervals": [ - "5s", - "10s", - "30s", - "1m", - "5m", - "15m", - "30m", - "1h", - "2h", - "1d" - ], - "time_options": [ - "5m", - "15m", - "1h", - "6h", - "12h", - "24h", - "2d", - "7d", - "30d" - ], - "type": "timepicker" - }, - "timezone": "browser", - "title": "Home", - "uid": null, - "version": 0 -} diff --git a/inspectit-ocelot-demo/grafana/provisioning/influxdb/dashboards/agent/http-overview-influxql.json b/inspectit-ocelot-demo/grafana/provisioning/influxdb/dashboards/agent/http-overview-influxql.json deleted file mode 100644 index 982ffbeaee..0000000000 --- a/inspectit-ocelot-demo/grafana/provisioning/influxdb/dashboards/agent/http-overview-influxql.json +++ /dev/null @@ -1,7560 +0,0 @@ -{ - "annotations": { - "list": [ - { - "$$hashKey": "object:290", - "builtIn": 1, - "datasource": "-- Grafana --", - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "type": "dashboard" - } - ] - }, - "editable": true, - "gnetId": null, - "graphTooltip": 0, - "id": 2, - "iteration": 1588835205546, - "links": [], - "panels": [ - { - "collapsed": false, - "datasource": null, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 0 - }, - "id": 4, - "panels": [], - "repeat": "service", - "scopedVars": { - "service": { - "selected": false, - "text": "api-gateway", - "value": "api-gateway" - } - }, - "title": "$service", - "type": "row" - }, - { - "columns": [], - "datasource": "LocalInflux", - "fontSize": "100%", - "gridPos": { - "h": 5, - "w": 11, - "x": 0, - "y": 1 - }, - "id": 2, - "links": [], - "pageSize": null, - "repeat": null, - "repeatDirection": "h", - "scopedVars": { - "service": { - "selected": false, - "text": "api-gateway", - "value": "api-gateway" - } - }, - "scroll": true, - "showHeader": true, - "sort": { - "col": 4, - "desc": true - }, - "styles": [ - { - "alias": "Requests", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 0, - "mappingType": 1, - "pattern": "za_requests", - "thresholds": [], - "type": "number", - "unit": "none" - }, - { - "alias": "Avg. Response Time", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "link": false, - "mappingType": 1, - "pattern": "zb_response_time", - "thresholds": [], - "type": "number", - "unit": "ms" - }, - { - "alias": "HTTP Path", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "http_path", - "thresholds": [], - "type": "number", - "unit": "short" - }, - { - "alias": "Error Rate", - "align": "auto", - "colorMode": "cell", - "colors": [ - "rgba(50, 172, 45, 0.97)", - "rgba(237, 129, 40, 0.89)", - "rgba(245, 54, 54, 0.9)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "zc_error_rate", - "thresholds": [ - "0.0001", - "0.3" - ], - "type": "number", - "unit": "percentunit" - }, - { - "alias": "", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "Time", - "thresholds": [], - "type": "hidden", - "unit": "none" - } - ], - "targets": [ - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "hide": false, - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(total) as za_requests, SUM(times) / SUM(total) AS zb_response_time FROM (\n SELECT SUM(\"count\") AS total, SUM(\"sum\") AS times FROM \"http_in_responsetime\" \n WHERE $timeFilter AND service =~ /^$service$/ AND http_path =~ /^$path$/ GROUP BY http_path\n) GROUP BY http_path", - "rawQuery": true, - "refId": "A", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - }, - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(errors) / SUM(total) AS zc_error_rate FROM (\n SELECT SUM(\"count\") AS total, SUM(\"errorcount\") AS errors FROM \"http_in_error\" \n WHERE $timeFilter AND service =~ /^$service$/ AND http_path =~ /^$path$/ GROUP BY http_path fill(0)\n)\nGROUP BY http_path", - "rawQuery": true, - "refId": "B", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "title": "Incoming Requests", - "transform": "table", - "type": "table" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalInflux", - "description": "", - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 5, - "w": 9, - "x": 11, - "y": 1 - }, - "hiddenSeries": false, - "id": 23, - "interval": "15s", - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": false, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "scopedVars": { - "service": { - "selected": false, - "text": "api-gateway", - "value": "api-gateway" - } - }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "$tag_http_path", - "expr": "(sum(increase(http_in_responsetime_sum{service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__interval])) by (http_path)\n/ sum(increase(http_in_count{service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__interval])) by (http_path)) >= 0", - "format": "time_series", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": false, - "intervalFactor": 1, - "legendFormat": "{{http_path}}", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(sum) / SUM(count)\nFROM \"http_in_responsetime\" \nWHERE $timeFilter AND service =~ /^$service$/ AND http_path=~ /^$path$/\nGROUP BY time($__interval), http_path fill(none)", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Incoming Avg. Response Time", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "ms", - "label": "", - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "ms", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalInflux", - "decimals": 2, - "description": "Incoming HTTP Requests per second for the selected endpoints and applications", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 5, - "w": 2, - "x": 20, - "y": 1 - }, - "hideTimeOverride": true, - "id": 6, - "interval": "15s", - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "scopedVars": { - "service": { - "selected": false, - "text": "api-gateway", - "value": "api-gateway" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "expr": "sum(rate(http_in_count{service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__interval]))", - "format": "time_series", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": false, - "intervalFactor": 1, - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(count)/$__interval_ms*1000 AS value\nFROM \"http_in_responsetime\" \nWHERE $timeFilter AND service =~ /^$service$/ AND http_path=~ /^$path$/ \nGROUP BY time($__interval) fill(0)", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": "", - "timeShift": null, - "title": "In Req / Sec", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorPostfix": false, - "colorPrefix": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalInflux", - "decimals": 2, - "description": "The error rate of incoming http requests for the selected endpoints and applications", - "format": "percentunit", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 5, - "w": 2, - "x": 22, - "y": 1 - }, - "hideTimeOverride": true, - "id": 44, - "interval": "15s", - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "scopedVars": { - "service": { - "selected": false, - "text": "api-gateway", - "value": "api-gateway" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "expr": "(sum(increase(http_in_count{http_status!~\"(1|2|3)\\\\d\\\\d\",service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__range]))\n/ sum(increase(http_in_count{service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__range])) >= 0)\nor (sum(increase(http_in_count{service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__range])) > 0) * 0", - "format": "time_series", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": true, - "intervalFactor": 1, - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(errors) / SUM(total) AS value FROM (\n SELECT SUM(\"count\") AS total, SUM(\"errorcount\") AS errors FROM \"http_in_error\" \n WHERE $timeFilter AND service =~ /^$service$/ AND http_path =~ /^$path$/ GROUP BY time($__interval) fill(0)\n)\nWHERE total > 0\nGROUP BY time($__interval)", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": "0.01,0.1", - "timeFrom": null, - "timeShift": null, - "title": "In Error Rate", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "columns": [], - "datasource": "LocalInflux", - "fontSize": "100%", - "gridPos": { - "h": 5, - "w": 11, - "x": 0, - "y": 6 - }, - "id": 45, - "links": [], - "pageSize": null, - "repeatDirection": "h", - "scopedVars": { - "service": { - "selected": false, - "text": "api-gateway", - "value": "api-gateway" - } - }, - "scroll": true, - "showHeader": true, - "sort": { - "col": 6, - "desc": true - }, - "styles": [ - { - "alias": "", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "Time", - "thresholds": [], - "type": "hidden", - "unit": "short" - }, - { - "alias": "Requests", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 0, - "mappingType": 1, - "pattern": "za_requests", - "thresholds": [], - "type": "number", - "unit": "none" - }, - { - "alias": "Avg. Response Time", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "link": false, - "mappingType": 1, - "pattern": "zb_response_time", - "thresholds": [], - "type": "number", - "unit": "ms" - }, - { - "alias": "HTTP Path", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "http_path", - "preserveFormat": false, - "thresholds": [], - "type": "string", - "unit": "short" - }, - { - "alias": "Error Rate", - "align": "auto", - "colorMode": "cell", - "colors": [ - "rgba(50, 172, 45, 0.97)", - "rgba(237, 129, 40, 0.89)", - "rgba(245, 54, 54, 0.9)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "zc_error_rate", - "thresholds": [ - "0.0001", - "0.3" - ], - "type": "number", - "unit": "percentunit" - }, - { - "alias": "Target Host", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "http_host", - "thresholds": [], - "type": "string", - "unit": "short" - } - ], - "targets": [ - { - "expr": "sum(label_join(increase(http_out_count{service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__range]), \"http_url\", \"\", \"http_host\", \"http_path\")) by (http_url) > 0", - "format": "table", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": true, - "intervalFactor": 1, - "legendFormat": "", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(total) as za_requests, SUM(times) / SUM(total) AS zb_response_time FROM (\n SELECT SUM(\"count\") AS total, SUM(\"sum\") AS times FROM \"http_out_responsetime\" \n WHERE $timeFilter AND service =~ /^$service$/ AND http_path =~ /^$path$/ GROUP BY http_path,http_host\n) GROUP BY *", - "rawQuery": true, - "refId": "A", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - }, - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(errors) / SUM(total) AS zc_error_rate FROM (\n SELECT SUM(\"count\") AS total, SUM(\"errorcount\") AS errors FROM \"http_out_error\" \n WHERE $timeFilter AND service =~ /^$service$/ AND http_path =~ /^$path$/ GROUP BY http_path,http_host fill(0)\n)\nGROUP BY *", - "rawQuery": true, - "refId": "B", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "title": "Outgoing Requests", - "transform": "table", - "type": "table" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalInflux", - "description": "", - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 5, - "w": 9, - "x": 11, - "y": 6 - }, - "hiddenSeries": false, - "id": 76, - "interval": "15s", - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": false, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "scopedVars": { - "service": { - "selected": false, - "text": "api-gateway", - "value": "api-gateway" - } - }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "$tag_http_host$tag_http_path", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(sum) / SUM(count) AS value \nFROM \"http_out_responsetime\" \nWHERE $timeFilter AND service =~ /^$service$/ AND http_path=~ /^$path$/\nGROUP BY time($__interval), http_path,http_host fill(none)", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Outgoing Avg. Response Time", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "ms", - "label": "", - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "ms", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalInflux", - "decimals": 2, - "description": "Outgoing HTTP Requests per second issued towards the selected endpoints from the given application", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 5, - "w": 2, - "x": 20, - "y": 6 - }, - "hideTimeOverride": true, - "id": 112, - "interval": "15s", - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "scopedVars": { - "service": { - "selected": false, - "text": "api-gateway", - "value": "api-gateway" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "expr": "sum(rate(http_out_count{service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__interval]))", - "format": "time_series", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": false, - "intervalFactor": 1, - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(count)/$__interval_ms*1000 AS value\nFROM \"http_out_responsetime\" \nWHERE $timeFilter AND service =~ /^$service$/ AND http_path=~ /^$path$/ \nGROUP BY time($__interval) fill(0)", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": "", - "timeShift": null, - "title": "Out Req / Sec", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorPostfix": false, - "colorPrefix": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalInflux", - "decimals": 2, - "description": "The error rate of outgoing http requests issued towards the selected endpoints of the selected application", - "format": "percentunit", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 5, - "w": 2, - "x": 22, - "y": 6 - }, - "hideTimeOverride": true, - "id": 153, - "interval": "15s", - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "scopedVars": { - "service": { - "selected": false, - "text": "api-gateway", - "value": "api-gateway" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "expr": "(sum(increase(http_out_count{http_status!~\"(1|2|3)\\\\d\\\\d\",service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__range]))\n/ sum(increase(http_out_count{service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__range])) >= 0)\nor (sum(increase(http_out_count{service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__range])) > 0) * 0", - "format": "time_series", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": true, - "intervalFactor": 1, - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(errors) / SUM(total) AS value FROM (\n SELECT SUM(\"count\") AS total, SUM(\"errorcount\") AS errors FROM \"http_out_error\" \n WHERE $timeFilter AND service =~ /^$service$/ AND http_path =~ /^$path$/ GROUP BY time($__interval) fill(0)\n)\nWHERE total > 0\nGROUP BY time($__interval)", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": "0.01,0.1", - "timeFrom": null, - "timeShift": null, - "title": "Out Error Rate", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "collapsed": false, - "datasource": null, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 11 - }, - "id": 154, - "panels": [], - "repeat": null, - "repeatIteration": 1588835205546, - "repeatPanelId": 4, - "scopedVars": { - "service": { - "selected": false, - "text": "config-server", - "value": "config-server" - } - }, - "title": "$service", - "type": "row" - }, - { - "columns": [], - "datasource": "LocalInflux", - "fontSize": "100%", - "gridPos": { - "h": 5, - "w": 11, - "x": 0, - "y": 12 - }, - "id": 155, - "links": [], - "pageSize": null, - "repeat": null, - "repeatDirection": "h", - "repeatIteration": 1588835205546, - "repeatPanelId": 2, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "config-server", - "value": "config-server" - } - }, - "scroll": true, - "showHeader": true, - "sort": { - "col": 4, - "desc": true - }, - "styles": [ - { - "alias": "Requests", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 0, - "mappingType": 1, - "pattern": "za_requests", - "thresholds": [], - "type": "number", - "unit": "none" - }, - { - "alias": "Avg. Response Time", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "link": false, - "mappingType": 1, - "pattern": "zb_response_time", - "thresholds": [], - "type": "number", - "unit": "ms" - }, - { - "alias": "HTTP Path", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "http_path", - "thresholds": [], - "type": "number", - "unit": "short" - }, - { - "alias": "Error Rate", - "align": "auto", - "colorMode": "cell", - "colors": [ - "rgba(50, 172, 45, 0.97)", - "rgba(237, 129, 40, 0.89)", - "rgba(245, 54, 54, 0.9)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "zc_error_rate", - "thresholds": [ - "0.0001", - "0.3" - ], - "type": "number", - "unit": "percentunit" - }, - { - "alias": "", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "Time", - "thresholds": [], - "type": "hidden", - "unit": "none" - } - ], - "targets": [ - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "hide": false, - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(total) as za_requests, SUM(times) / SUM(total) AS zb_response_time FROM (\n SELECT SUM(\"count\") AS total, SUM(\"sum\") AS times FROM \"http_in_responsetime\" \n WHERE $timeFilter AND service =~ /^$service$/ AND http_path =~ /^$path$/ GROUP BY http_path\n) GROUP BY http_path", - "rawQuery": true, - "refId": "A", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - }, - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(errors) / SUM(total) AS zc_error_rate FROM (\n SELECT SUM(\"count\") AS total, SUM(\"errorcount\") AS errors FROM \"http_in_error\" \n WHERE $timeFilter AND service =~ /^$service$/ AND http_path =~ /^$path$/ GROUP BY http_path fill(0)\n)\nGROUP BY http_path", - "rawQuery": true, - "refId": "B", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "title": "Incoming Requests", - "transform": "table", - "type": "table" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalInflux", - "description": "", - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 5, - "w": 9, - "x": 11, - "y": 12 - }, - "hiddenSeries": false, - "id": 156, - "interval": "15s", - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": false, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1588835205546, - "repeatPanelId": 23, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "config-server", - "value": "config-server" - } - }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "$tag_http_path", - "expr": "(sum(increase(http_in_responsetime_sum{service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__interval])) by (http_path)\n/ sum(increase(http_in_count{service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__interval])) by (http_path)) >= 0", - "format": "time_series", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": false, - "intervalFactor": 1, - "legendFormat": "{{http_path}}", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(sum) / SUM(count)\nFROM \"http_in_responsetime\" \nWHERE $timeFilter AND service =~ /^$service$/ AND http_path=~ /^$path$/\nGROUP BY time($__interval), http_path fill(none)", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Incoming Avg. Response Time", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "ms", - "label": "", - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "ms", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalInflux", - "decimals": 2, - "description": "Incoming HTTP Requests per second for the selected endpoints and applications", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 5, - "w": 2, - "x": 20, - "y": 12 - }, - "hideTimeOverride": true, - "id": 157, - "interval": "15s", - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1588835205546, - "repeatPanelId": 6, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "config-server", - "value": "config-server" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "expr": "sum(rate(http_in_count{service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__interval]))", - "format": "time_series", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": false, - "intervalFactor": 1, - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(count)/$__interval_ms*1000 AS value\nFROM \"http_in_responsetime\" \nWHERE $timeFilter AND service =~ /^$service$/ AND http_path=~ /^$path$/ \nGROUP BY time($__interval) fill(0)", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": "", - "timeShift": null, - "title": "In Req / Sec", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorPostfix": false, - "colorPrefix": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalInflux", - "decimals": 2, - "description": "The error rate of incoming http requests for the selected endpoints and applications", - "format": "percentunit", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 5, - "w": 2, - "x": 22, - "y": 12 - }, - "hideTimeOverride": true, - "id": 158, - "interval": "15s", - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1588835205546, - "repeatPanelId": 44, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "config-server", - "value": "config-server" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "expr": "(sum(increase(http_in_count{http_status!~\"(1|2|3)\\\\d\\\\d\",service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__range]))\n/ sum(increase(http_in_count{service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__range])) >= 0)\nor (sum(increase(http_in_count{service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__range])) > 0) * 0", - "format": "time_series", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": true, - "intervalFactor": 1, - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(errors) / SUM(total) AS value FROM (\n SELECT SUM(\"count\") AS total, SUM(\"errorcount\") AS errors FROM \"http_in_error\" \n WHERE $timeFilter AND service =~ /^$service$/ AND http_path =~ /^$path$/ GROUP BY time($__interval) fill(0)\n)\nWHERE total > 0\nGROUP BY time($__interval)", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": "0.01,0.1", - "timeFrom": null, - "timeShift": null, - "title": "In Error Rate", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "columns": [], - "datasource": "LocalInflux", - "fontSize": "100%", - "gridPos": { - "h": 5, - "w": 11, - "x": 0, - "y": 17 - }, - "id": 159, - "links": [], - "pageSize": null, - "repeatDirection": "h", - "repeatIteration": 1588835205546, - "repeatPanelId": 45, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "config-server", - "value": "config-server" - } - }, - "scroll": true, - "showHeader": true, - "sort": { - "col": 6, - "desc": true - }, - "styles": [ - { - "alias": "", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "Time", - "thresholds": [], - "type": "hidden", - "unit": "short" - }, - { - "alias": "Requests", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 0, - "mappingType": 1, - "pattern": "za_requests", - "thresholds": [], - "type": "number", - "unit": "none" - }, - { - "alias": "Avg. Response Time", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "link": false, - "mappingType": 1, - "pattern": "zb_response_time", - "thresholds": [], - "type": "number", - "unit": "ms" - }, - { - "alias": "HTTP Path", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "http_path", - "preserveFormat": false, - "thresholds": [], - "type": "string", - "unit": "short" - }, - { - "alias": "Error Rate", - "align": "auto", - "colorMode": "cell", - "colors": [ - "rgba(50, 172, 45, 0.97)", - "rgba(237, 129, 40, 0.89)", - "rgba(245, 54, 54, 0.9)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "zc_error_rate", - "thresholds": [ - "0.0001", - "0.3" - ], - "type": "number", - "unit": "percentunit" - }, - { - "alias": "Target Host", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "http_host", - "thresholds": [], - "type": "string", - "unit": "short" - } - ], - "targets": [ - { - "expr": "sum(label_join(increase(http_out_count{service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__range]), \"http_url\", \"\", \"http_host\", \"http_path\")) by (http_url) > 0", - "format": "table", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": true, - "intervalFactor": 1, - "legendFormat": "", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(total) as za_requests, SUM(times) / SUM(total) AS zb_response_time FROM (\n SELECT SUM(\"count\") AS total, SUM(\"sum\") AS times FROM \"http_out_responsetime\" \n WHERE $timeFilter AND service =~ /^$service$/ AND http_path =~ /^$path$/ GROUP BY http_path,http_host\n) GROUP BY *", - "rawQuery": true, - "refId": "A", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - }, - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(errors) / SUM(total) AS zc_error_rate FROM (\n SELECT SUM(\"count\") AS total, SUM(\"errorcount\") AS errors FROM \"http_out_error\" \n WHERE $timeFilter AND service =~ /^$service$/ AND http_path =~ /^$path$/ GROUP BY http_path,http_host fill(0)\n)\nGROUP BY *", - "rawQuery": true, - "refId": "B", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "title": "Outgoing Requests", - "transform": "table", - "type": "table" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalInflux", - "description": "", - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 5, - "w": 9, - "x": 11, - "y": 17 - }, - "hiddenSeries": false, - "id": 160, - "interval": "15s", - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": false, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1588835205546, - "repeatPanelId": 76, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "config-server", - "value": "config-server" - } - }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "$tag_http_host$tag_http_path", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(sum) / SUM(count) AS value \nFROM \"http_out_responsetime\" \nWHERE $timeFilter AND service =~ /^$service$/ AND http_path=~ /^$path$/\nGROUP BY time($__interval), http_path,http_host fill(none)", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Outgoing Avg. Response Time", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "ms", - "label": "", - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "ms", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalInflux", - "decimals": 2, - "description": "Outgoing HTTP Requests per second issued towards the selected endpoints from the given application", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 5, - "w": 2, - "x": 20, - "y": 17 - }, - "hideTimeOverride": true, - "id": 161, - "interval": "15s", - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1588835205546, - "repeatPanelId": 112, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "config-server", - "value": "config-server" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "expr": "sum(rate(http_out_count{service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__interval]))", - "format": "time_series", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": false, - "intervalFactor": 1, - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(count)/$__interval_ms*1000 AS value\nFROM \"http_out_responsetime\" \nWHERE $timeFilter AND service =~ /^$service$/ AND http_path=~ /^$path$/ \nGROUP BY time($__interval) fill(0)", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": "", - "timeShift": null, - "title": "Out Req / Sec", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorPostfix": false, - "colorPrefix": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalInflux", - "decimals": 2, - "description": "The error rate of outgoing http requests issued towards the selected endpoints of the selected application", - "format": "percentunit", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 5, - "w": 2, - "x": 22, - "y": 17 - }, - "hideTimeOverride": true, - "id": 162, - "interval": "15s", - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1588835205546, - "repeatPanelId": 153, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "config-server", - "value": "config-server" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "expr": "(sum(increase(http_out_count{http_status!~\"(1|2|3)\\\\d\\\\d\",service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__range]))\n/ sum(increase(http_out_count{service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__range])) >= 0)\nor (sum(increase(http_out_count{service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__range])) > 0) * 0", - "format": "time_series", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": true, - "intervalFactor": 1, - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(errors) / SUM(total) AS value FROM (\n SELECT SUM(\"count\") AS total, SUM(\"errorcount\") AS errors FROM \"http_out_error\" \n WHERE $timeFilter AND service =~ /^$service$/ AND http_path =~ /^$path$/ GROUP BY time($__interval) fill(0)\n)\nWHERE total > 0\nGROUP BY time($__interval)", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": "0.01,0.1", - "timeFrom": null, - "timeShift": null, - "title": "Out Error Rate", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "collapsed": false, - "datasource": null, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 22 - }, - "id": 163, - "panels": [], - "repeat": null, - "repeatIteration": 1588835205546, - "repeatPanelId": 4, - "scopedVars": { - "service": { - "selected": false, - "text": "customers-service", - "value": "customers-service" - } - }, - "title": "$service", - "type": "row" - }, - { - "columns": [], - "datasource": "LocalInflux", - "fontSize": "100%", - "gridPos": { - "h": 5, - "w": 11, - "x": 0, - "y": 23 - }, - "id": 164, - "links": [], - "pageSize": null, - "repeat": null, - "repeatDirection": "h", - "repeatIteration": 1588835205546, - "repeatPanelId": 2, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "customers-service", - "value": "customers-service" - } - }, - "scroll": true, - "showHeader": true, - "sort": { - "col": 4, - "desc": true - }, - "styles": [ - { - "alias": "Requests", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 0, - "mappingType": 1, - "pattern": "za_requests", - "thresholds": [], - "type": "number", - "unit": "none" - }, - { - "alias": "Avg. Response Time", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "link": false, - "mappingType": 1, - "pattern": "zb_response_time", - "thresholds": [], - "type": "number", - "unit": "ms" - }, - { - "alias": "HTTP Path", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "http_path", - "thresholds": [], - "type": "number", - "unit": "short" - }, - { - "alias": "Error Rate", - "align": "auto", - "colorMode": "cell", - "colors": [ - "rgba(50, 172, 45, 0.97)", - "rgba(237, 129, 40, 0.89)", - "rgba(245, 54, 54, 0.9)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "zc_error_rate", - "thresholds": [ - "0.0001", - "0.3" - ], - "type": "number", - "unit": "percentunit" - }, - { - "alias": "", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "Time", - "thresholds": [], - "type": "hidden", - "unit": "none" - } - ], - "targets": [ - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "hide": false, - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(total) as za_requests, SUM(times) / SUM(total) AS zb_response_time FROM (\n SELECT SUM(\"count\") AS total, SUM(\"sum\") AS times FROM \"http_in_responsetime\" \n WHERE $timeFilter AND service =~ /^$service$/ AND http_path =~ /^$path$/ GROUP BY http_path\n) GROUP BY http_path", - "rawQuery": true, - "refId": "A", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - }, - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(errors) / SUM(total) AS zc_error_rate FROM (\n SELECT SUM(\"count\") AS total, SUM(\"errorcount\") AS errors FROM \"http_in_error\" \n WHERE $timeFilter AND service =~ /^$service$/ AND http_path =~ /^$path$/ GROUP BY http_path fill(0)\n)\nGROUP BY http_path", - "rawQuery": true, - "refId": "B", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "title": "Incoming Requests", - "transform": "table", - "type": "table" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalInflux", - "description": "", - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 5, - "w": 9, - "x": 11, - "y": 23 - }, - "hiddenSeries": false, - "id": 165, - "interval": "15s", - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": false, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1588835205546, - "repeatPanelId": 23, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "customers-service", - "value": "customers-service" - } - }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "$tag_http_path", - "expr": "(sum(increase(http_in_responsetime_sum{service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__interval])) by (http_path)\n/ sum(increase(http_in_count{service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__interval])) by (http_path)) >= 0", - "format": "time_series", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": false, - "intervalFactor": 1, - "legendFormat": "{{http_path}}", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(sum) / SUM(count)\nFROM \"http_in_responsetime\" \nWHERE $timeFilter AND service =~ /^$service$/ AND http_path=~ /^$path$/\nGROUP BY time($__interval), http_path fill(none)", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Incoming Avg. Response Time", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "ms", - "label": "", - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "ms", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalInflux", - "decimals": 2, - "description": "Incoming HTTP Requests per second for the selected endpoints and applications", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 5, - "w": 2, - "x": 20, - "y": 23 - }, - "hideTimeOverride": true, - "id": 166, - "interval": "15s", - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1588835205546, - "repeatPanelId": 6, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "customers-service", - "value": "customers-service" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "expr": "sum(rate(http_in_count{service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__interval]))", - "format": "time_series", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": false, - "intervalFactor": 1, - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(count)/$__interval_ms*1000 AS value\nFROM \"http_in_responsetime\" \nWHERE $timeFilter AND service =~ /^$service$/ AND http_path=~ /^$path$/ \nGROUP BY time($__interval) fill(0)", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": "", - "timeShift": null, - "title": "In Req / Sec", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorPostfix": false, - "colorPrefix": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalInflux", - "decimals": 2, - "description": "The error rate of incoming http requests for the selected endpoints and applications", - "format": "percentunit", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 5, - "w": 2, - "x": 22, - "y": 23 - }, - "hideTimeOverride": true, - "id": 167, - "interval": "15s", - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1588835205546, - "repeatPanelId": 44, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "customers-service", - "value": "customers-service" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "expr": "(sum(increase(http_in_count{http_status!~\"(1|2|3)\\\\d\\\\d\",service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__range]))\n/ sum(increase(http_in_count{service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__range])) >= 0)\nor (sum(increase(http_in_count{service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__range])) > 0) * 0", - "format": "time_series", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": true, - "intervalFactor": 1, - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(errors) / SUM(total) AS value FROM (\n SELECT SUM(\"count\") AS total, SUM(\"errorcount\") AS errors FROM \"http_in_error\" \n WHERE $timeFilter AND service =~ /^$service$/ AND http_path =~ /^$path$/ GROUP BY time($__interval) fill(0)\n)\nWHERE total > 0\nGROUP BY time($__interval)", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": "0.01,0.1", - "timeFrom": null, - "timeShift": null, - "title": "In Error Rate", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "columns": [], - "datasource": "LocalInflux", - "fontSize": "100%", - "gridPos": { - "h": 5, - "w": 11, - "x": 0, - "y": 28 - }, - "id": 168, - "links": [], - "pageSize": null, - "repeatDirection": "h", - "repeatIteration": 1588835205546, - "repeatPanelId": 45, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "customers-service", - "value": "customers-service" - } - }, - "scroll": true, - "showHeader": true, - "sort": { - "col": 6, - "desc": true - }, - "styles": [ - { - "alias": "", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "Time", - "thresholds": [], - "type": "hidden", - "unit": "short" - }, - { - "alias": "Requests", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 0, - "mappingType": 1, - "pattern": "za_requests", - "thresholds": [], - "type": "number", - "unit": "none" - }, - { - "alias": "Avg. Response Time", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "link": false, - "mappingType": 1, - "pattern": "zb_response_time", - "thresholds": [], - "type": "number", - "unit": "ms" - }, - { - "alias": "HTTP Path", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "http_path", - "preserveFormat": false, - "thresholds": [], - "type": "string", - "unit": "short" - }, - { - "alias": "Error Rate", - "align": "auto", - "colorMode": "cell", - "colors": [ - "rgba(50, 172, 45, 0.97)", - "rgba(237, 129, 40, 0.89)", - "rgba(245, 54, 54, 0.9)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "zc_error_rate", - "thresholds": [ - "0.0001", - "0.3" - ], - "type": "number", - "unit": "percentunit" - }, - { - "alias": "Target Host", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "http_host", - "thresholds": [], - "type": "string", - "unit": "short" - } - ], - "targets": [ - { - "expr": "sum(label_join(increase(http_out_count{service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__range]), \"http_url\", \"\", \"http_host\", \"http_path\")) by (http_url) > 0", - "format": "table", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": true, - "intervalFactor": 1, - "legendFormat": "", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(total) as za_requests, SUM(times) / SUM(total) AS zb_response_time FROM (\n SELECT SUM(\"count\") AS total, SUM(\"sum\") AS times FROM \"http_out_responsetime\" \n WHERE $timeFilter AND service =~ /^$service$/ AND http_path =~ /^$path$/ GROUP BY http_path,http_host\n) GROUP BY *", - "rawQuery": true, - "refId": "A", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - }, - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(errors) / SUM(total) AS zc_error_rate FROM (\n SELECT SUM(\"count\") AS total, SUM(\"errorcount\") AS errors FROM \"http_out_error\" \n WHERE $timeFilter AND service =~ /^$service$/ AND http_path =~ /^$path$/ GROUP BY http_path,http_host fill(0)\n)\nGROUP BY *", - "rawQuery": true, - "refId": "B", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "title": "Outgoing Requests", - "transform": "table", - "type": "table" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalInflux", - "description": "", - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 5, - "w": 9, - "x": 11, - "y": 28 - }, - "hiddenSeries": false, - "id": 169, - "interval": "15s", - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": false, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1588835205546, - "repeatPanelId": 76, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "customers-service", - "value": "customers-service" - } - }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "$tag_http_host$tag_http_path", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(sum) / SUM(count) AS value \nFROM \"http_out_responsetime\" \nWHERE $timeFilter AND service =~ /^$service$/ AND http_path=~ /^$path$/\nGROUP BY time($__interval), http_path,http_host fill(none)", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Outgoing Avg. Response Time", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "ms", - "label": "", - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "ms", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalInflux", - "decimals": 2, - "description": "Outgoing HTTP Requests per second issued towards the selected endpoints from the given application", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 5, - "w": 2, - "x": 20, - "y": 28 - }, - "hideTimeOverride": true, - "id": 170, - "interval": "15s", - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1588835205546, - "repeatPanelId": 112, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "customers-service", - "value": "customers-service" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "expr": "sum(rate(http_out_count{service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__interval]))", - "format": "time_series", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": false, - "intervalFactor": 1, - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(count)/$__interval_ms*1000 AS value\nFROM \"http_out_responsetime\" \nWHERE $timeFilter AND service =~ /^$service$/ AND http_path=~ /^$path$/ \nGROUP BY time($__interval) fill(0)", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": "", - "timeShift": null, - "title": "Out Req / Sec", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorPostfix": false, - "colorPrefix": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalInflux", - "decimals": 2, - "description": "The error rate of outgoing http requests issued towards the selected endpoints of the selected application", - "format": "percentunit", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 5, - "w": 2, - "x": 22, - "y": 28 - }, - "hideTimeOverride": true, - "id": 171, - "interval": "15s", - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1588835205546, - "repeatPanelId": 153, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "customers-service", - "value": "customers-service" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "expr": "(sum(increase(http_out_count{http_status!~\"(1|2|3)\\\\d\\\\d\",service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__range]))\n/ sum(increase(http_out_count{service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__range])) >= 0)\nor (sum(increase(http_out_count{service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__range])) > 0) * 0", - "format": "time_series", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": true, - "intervalFactor": 1, - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(errors) / SUM(total) AS value FROM (\n SELECT SUM(\"count\") AS total, SUM(\"errorcount\") AS errors FROM \"http_out_error\" \n WHERE $timeFilter AND service =~ /^$service$/ AND http_path =~ /^$path$/ GROUP BY time($__interval) fill(0)\n)\nWHERE total > 0\nGROUP BY time($__interval)", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": "0.01,0.1", - "timeFrom": null, - "timeShift": null, - "title": "Out Error Rate", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "collapsed": false, - "datasource": null, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 33 - }, - "id": 172, - "panels": [], - "repeat": null, - "repeatIteration": 1588835205546, - "repeatPanelId": 4, - "scopedVars": { - "service": { - "selected": false, - "text": "discovery-server", - "value": "discovery-server" - } - }, - "title": "$service", - "type": "row" - }, - { - "columns": [], - "datasource": "LocalInflux", - "fontSize": "100%", - "gridPos": { - "h": 5, - "w": 11, - "x": 0, - "y": 34 - }, - "id": 173, - "links": [], - "pageSize": null, - "repeat": null, - "repeatDirection": "h", - "repeatIteration": 1588835205546, - "repeatPanelId": 2, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "discovery-server", - "value": "discovery-server" - } - }, - "scroll": true, - "showHeader": true, - "sort": { - "col": 4, - "desc": true - }, - "styles": [ - { - "alias": "Requests", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 0, - "mappingType": 1, - "pattern": "za_requests", - "thresholds": [], - "type": "number", - "unit": "none" - }, - { - "alias": "Avg. Response Time", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "link": false, - "mappingType": 1, - "pattern": "zb_response_time", - "thresholds": [], - "type": "number", - "unit": "ms" - }, - { - "alias": "HTTP Path", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "http_path", - "thresholds": [], - "type": "number", - "unit": "short" - }, - { - "alias": "Error Rate", - "align": "auto", - "colorMode": "cell", - "colors": [ - "rgba(50, 172, 45, 0.97)", - "rgba(237, 129, 40, 0.89)", - "rgba(245, 54, 54, 0.9)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "zc_error_rate", - "thresholds": [ - "0.0001", - "0.3" - ], - "type": "number", - "unit": "percentunit" - }, - { - "alias": "", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "Time", - "thresholds": [], - "type": "hidden", - "unit": "none" - } - ], - "targets": [ - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "hide": false, - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(total) as za_requests, SUM(times) / SUM(total) AS zb_response_time FROM (\n SELECT SUM(\"count\") AS total, SUM(\"sum\") AS times FROM \"http_in_responsetime\" \n WHERE $timeFilter AND service =~ /^$service$/ AND http_path =~ /^$path$/ GROUP BY http_path\n) GROUP BY http_path", - "rawQuery": true, - "refId": "A", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - }, - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(errors) / SUM(total) AS zc_error_rate FROM (\n SELECT SUM(\"count\") AS total, SUM(\"errorcount\") AS errors FROM \"http_in_error\" \n WHERE $timeFilter AND service =~ /^$service$/ AND http_path =~ /^$path$/ GROUP BY http_path fill(0)\n)\nGROUP BY http_path", - "rawQuery": true, - "refId": "B", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "title": "Incoming Requests", - "transform": "table", - "type": "table" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalInflux", - "description": "", - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 5, - "w": 9, - "x": 11, - "y": 34 - }, - "hiddenSeries": false, - "id": 174, - "interval": "15s", - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": false, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1588835205546, - "repeatPanelId": 23, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "discovery-server", - "value": "discovery-server" - } - }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "$tag_http_path", - "expr": "(sum(increase(http_in_responsetime_sum{service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__interval])) by (http_path)\n/ sum(increase(http_in_count{service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__interval])) by (http_path)) >= 0", - "format": "time_series", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": false, - "intervalFactor": 1, - "legendFormat": "{{http_path}}", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(sum) / SUM(count)\nFROM \"http_in_responsetime\" \nWHERE $timeFilter AND service =~ /^$service$/ AND http_path=~ /^$path$/\nGROUP BY time($__interval), http_path fill(none)", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Incoming Avg. Response Time", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "ms", - "label": "", - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "ms", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalInflux", - "decimals": 2, - "description": "Incoming HTTP Requests per second for the selected endpoints and applications", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 5, - "w": 2, - "x": 20, - "y": 34 - }, - "hideTimeOverride": true, - "id": 175, - "interval": "15s", - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1588835205546, - "repeatPanelId": 6, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "discovery-server", - "value": "discovery-server" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "expr": "sum(rate(http_in_count{service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__interval]))", - "format": "time_series", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": false, - "intervalFactor": 1, - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(count)/$__interval_ms*1000 AS value\nFROM \"http_in_responsetime\" \nWHERE $timeFilter AND service =~ /^$service$/ AND http_path=~ /^$path$/ \nGROUP BY time($__interval) fill(0)", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": "", - "timeShift": null, - "title": "In Req / Sec", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorPostfix": false, - "colorPrefix": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalInflux", - "decimals": 2, - "description": "The error rate of incoming http requests for the selected endpoints and applications", - "format": "percentunit", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 5, - "w": 2, - "x": 22, - "y": 34 - }, - "hideTimeOverride": true, - "id": 176, - "interval": "15s", - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1588835205546, - "repeatPanelId": 44, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "discovery-server", - "value": "discovery-server" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "expr": "(sum(increase(http_in_count{http_status!~\"(1|2|3)\\\\d\\\\d\",service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__range]))\n/ sum(increase(http_in_count{service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__range])) >= 0)\nor (sum(increase(http_in_count{service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__range])) > 0) * 0", - "format": "time_series", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": true, - "intervalFactor": 1, - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(errors) / SUM(total) AS value FROM (\n SELECT SUM(\"count\") AS total, SUM(\"errorcount\") AS errors FROM \"http_in_error\" \n WHERE $timeFilter AND service =~ /^$service$/ AND http_path =~ /^$path$/ GROUP BY time($__interval) fill(0)\n)\nWHERE total > 0\nGROUP BY time($__interval)", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": "0.01,0.1", - "timeFrom": null, - "timeShift": null, - "title": "In Error Rate", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "columns": [], - "datasource": "LocalInflux", - "fontSize": "100%", - "gridPos": { - "h": 5, - "w": 11, - "x": 0, - "y": 39 - }, - "id": 177, - "links": [], - "pageSize": null, - "repeatDirection": "h", - "repeatIteration": 1588835205546, - "repeatPanelId": 45, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "discovery-server", - "value": "discovery-server" - } - }, - "scroll": true, - "showHeader": true, - "sort": { - "col": 6, - "desc": true - }, - "styles": [ - { - "alias": "", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "Time", - "thresholds": [], - "type": "hidden", - "unit": "short" - }, - { - "alias": "Requests", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 0, - "mappingType": 1, - "pattern": "za_requests", - "thresholds": [], - "type": "number", - "unit": "none" - }, - { - "alias": "Avg. Response Time", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "link": false, - "mappingType": 1, - "pattern": "zb_response_time", - "thresholds": [], - "type": "number", - "unit": "ms" - }, - { - "alias": "HTTP Path", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "http_path", - "preserveFormat": false, - "thresholds": [], - "type": "string", - "unit": "short" - }, - { - "alias": "Error Rate", - "align": "auto", - "colorMode": "cell", - "colors": [ - "rgba(50, 172, 45, 0.97)", - "rgba(237, 129, 40, 0.89)", - "rgba(245, 54, 54, 0.9)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "zc_error_rate", - "thresholds": [ - "0.0001", - "0.3" - ], - "type": "number", - "unit": "percentunit" - }, - { - "alias": "Target Host", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "http_host", - "thresholds": [], - "type": "string", - "unit": "short" - } - ], - "targets": [ - { - "expr": "sum(label_join(increase(http_out_count{service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__range]), \"http_url\", \"\", \"http_host\", \"http_path\")) by (http_url) > 0", - "format": "table", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": true, - "intervalFactor": 1, - "legendFormat": "", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(total) as za_requests, SUM(times) / SUM(total) AS zb_response_time FROM (\n SELECT SUM(\"count\") AS total, SUM(\"sum\") AS times FROM \"http_out_responsetime\" \n WHERE $timeFilter AND service =~ /^$service$/ AND http_path =~ /^$path$/ GROUP BY http_path,http_host\n) GROUP BY *", - "rawQuery": true, - "refId": "A", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - }, - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(errors) / SUM(total) AS zc_error_rate FROM (\n SELECT SUM(\"count\") AS total, SUM(\"errorcount\") AS errors FROM \"http_out_error\" \n WHERE $timeFilter AND service =~ /^$service$/ AND http_path =~ /^$path$/ GROUP BY http_path,http_host fill(0)\n)\nGROUP BY *", - "rawQuery": true, - "refId": "B", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "title": "Outgoing Requests", - "transform": "table", - "type": "table" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalInflux", - "description": "", - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 5, - "w": 9, - "x": 11, - "y": 39 - }, - "hiddenSeries": false, - "id": 178, - "interval": "15s", - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": false, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1588835205546, - "repeatPanelId": 76, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "discovery-server", - "value": "discovery-server" - } - }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "$tag_http_host$tag_http_path", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(sum) / SUM(count) AS value \nFROM \"http_out_responsetime\" \nWHERE $timeFilter AND service =~ /^$service$/ AND http_path=~ /^$path$/\nGROUP BY time($__interval), http_path,http_host fill(none)", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Outgoing Avg. Response Time", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "ms", - "label": "", - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "ms", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalInflux", - "decimals": 2, - "description": "Outgoing HTTP Requests per second issued towards the selected endpoints from the given application", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 5, - "w": 2, - "x": 20, - "y": 39 - }, - "hideTimeOverride": true, - "id": 179, - "interval": "15s", - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1588835205546, - "repeatPanelId": 112, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "discovery-server", - "value": "discovery-server" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "expr": "sum(rate(http_out_count{service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__interval]))", - "format": "time_series", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": false, - "intervalFactor": 1, - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(count)/$__interval_ms*1000 AS value\nFROM \"http_out_responsetime\" \nWHERE $timeFilter AND service =~ /^$service$/ AND http_path=~ /^$path$/ \nGROUP BY time($__interval) fill(0)", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": "", - "timeShift": null, - "title": "Out Req / Sec", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorPostfix": false, - "colorPrefix": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalInflux", - "decimals": 2, - "description": "The error rate of outgoing http requests issued towards the selected endpoints of the selected application", - "format": "percentunit", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 5, - "w": 2, - "x": 22, - "y": 39 - }, - "hideTimeOverride": true, - "id": 180, - "interval": "15s", - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1588835205546, - "repeatPanelId": 153, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "discovery-server", - "value": "discovery-server" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "expr": "(sum(increase(http_out_count{http_status!~\"(1|2|3)\\\\d\\\\d\",service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__range]))\n/ sum(increase(http_out_count{service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__range])) >= 0)\nor (sum(increase(http_out_count{service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__range])) > 0) * 0", - "format": "time_series", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": true, - "intervalFactor": 1, - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(errors) / SUM(total) AS value FROM (\n SELECT SUM(\"count\") AS total, SUM(\"errorcount\") AS errors FROM \"http_out_error\" \n WHERE $timeFilter AND service =~ /^$service$/ AND http_path =~ /^$path$/ GROUP BY time($__interval) fill(0)\n)\nWHERE total > 0\nGROUP BY time($__interval)", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": "0.01,0.1", - "timeFrom": null, - "timeShift": null, - "title": "Out Error Rate", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "collapsed": false, - "datasource": null, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 44 - }, - "id": 181, - "panels": [], - "repeat": null, - "repeatIteration": 1588835205546, - "repeatPanelId": 4, - "scopedVars": { - "service": { - "selected": false, - "text": "vets-service", - "value": "vets-service" - } - }, - "title": "$service", - "type": "row" - }, - { - "columns": [], - "datasource": "LocalInflux", - "fontSize": "100%", - "gridPos": { - "h": 5, - "w": 11, - "x": 0, - "y": 45 - }, - "id": 182, - "links": [], - "pageSize": null, - "repeat": null, - "repeatDirection": "h", - "repeatIteration": 1588835205546, - "repeatPanelId": 2, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "vets-service", - "value": "vets-service" - } - }, - "scroll": true, - "showHeader": true, - "sort": { - "col": 4, - "desc": true - }, - "styles": [ - { - "alias": "Requests", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 0, - "mappingType": 1, - "pattern": "za_requests", - "thresholds": [], - "type": "number", - "unit": "none" - }, - { - "alias": "Avg. Response Time", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "link": false, - "mappingType": 1, - "pattern": "zb_response_time", - "thresholds": [], - "type": "number", - "unit": "ms" - }, - { - "alias": "HTTP Path", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "http_path", - "thresholds": [], - "type": "number", - "unit": "short" - }, - { - "alias": "Error Rate", - "align": "auto", - "colorMode": "cell", - "colors": [ - "rgba(50, 172, 45, 0.97)", - "rgba(237, 129, 40, 0.89)", - "rgba(245, 54, 54, 0.9)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "zc_error_rate", - "thresholds": [ - "0.0001", - "0.3" - ], - "type": "number", - "unit": "percentunit" - }, - { - "alias": "", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "Time", - "thresholds": [], - "type": "hidden", - "unit": "none" - } - ], - "targets": [ - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "hide": false, - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(total) as za_requests, SUM(times) / SUM(total) AS zb_response_time FROM (\n SELECT SUM(\"count\") AS total, SUM(\"sum\") AS times FROM \"http_in_responsetime\" \n WHERE $timeFilter AND service =~ /^$service$/ AND http_path =~ /^$path$/ GROUP BY http_path\n) GROUP BY http_path", - "rawQuery": true, - "refId": "A", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - }, - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(errors) / SUM(total) AS zc_error_rate FROM (\n SELECT SUM(\"count\") AS total, SUM(\"errorcount\") AS errors FROM \"http_in_error\" \n WHERE $timeFilter AND service =~ /^$service$/ AND http_path =~ /^$path$/ GROUP BY http_path fill(0)\n)\nGROUP BY http_path", - "rawQuery": true, - "refId": "B", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "title": "Incoming Requests", - "transform": "table", - "type": "table" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalInflux", - "description": "", - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 5, - "w": 9, - "x": 11, - "y": 45 - }, - "hiddenSeries": false, - "id": 183, - "interval": "15s", - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": false, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1588835205546, - "repeatPanelId": 23, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "vets-service", - "value": "vets-service" - } - }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "$tag_http_path", - "expr": "(sum(increase(http_in_responsetime_sum{service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__interval])) by (http_path)\n/ sum(increase(http_in_count{service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__interval])) by (http_path)) >= 0", - "format": "time_series", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": false, - "intervalFactor": 1, - "legendFormat": "{{http_path}}", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(sum) / SUM(count)\nFROM \"http_in_responsetime\" \nWHERE $timeFilter AND service =~ /^$service$/ AND http_path=~ /^$path$/\nGROUP BY time($__interval), http_path fill(none)", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Incoming Avg. Response Time", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "ms", - "label": "", - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "ms", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalInflux", - "decimals": 2, - "description": "Incoming HTTP Requests per second for the selected endpoints and applications", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 5, - "w": 2, - "x": 20, - "y": 45 - }, - "hideTimeOverride": true, - "id": 184, - "interval": "15s", - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1588835205546, - "repeatPanelId": 6, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "vets-service", - "value": "vets-service" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "expr": "sum(rate(http_in_count{service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__interval]))", - "format": "time_series", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": false, - "intervalFactor": 1, - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(count)/$__interval_ms*1000 AS value\nFROM \"http_in_responsetime\" \nWHERE $timeFilter AND service =~ /^$service$/ AND http_path=~ /^$path$/ \nGROUP BY time($__interval) fill(0)", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": "", - "timeShift": null, - "title": "In Req / Sec", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorPostfix": false, - "colorPrefix": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalInflux", - "decimals": 2, - "description": "The error rate of incoming http requests for the selected endpoints and applications", - "format": "percentunit", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 5, - "w": 2, - "x": 22, - "y": 45 - }, - "hideTimeOverride": true, - "id": 185, - "interval": "15s", - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1588835205546, - "repeatPanelId": 44, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "vets-service", - "value": "vets-service" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "expr": "(sum(increase(http_in_count{http_status!~\"(1|2|3)\\\\d\\\\d\",service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__range]))\n/ sum(increase(http_in_count{service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__range])) >= 0)\nor (sum(increase(http_in_count{service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__range])) > 0) * 0", - "format": "time_series", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": true, - "intervalFactor": 1, - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(errors) / SUM(total) AS value FROM (\n SELECT SUM(\"count\") AS total, SUM(\"errorcount\") AS errors FROM \"http_in_error\" \n WHERE $timeFilter AND service =~ /^$service$/ AND http_path =~ /^$path$/ GROUP BY time($__interval) fill(0)\n)\nWHERE total > 0\nGROUP BY time($__interval)", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": "0.01,0.1", - "timeFrom": null, - "timeShift": null, - "title": "In Error Rate", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "columns": [], - "datasource": "LocalInflux", - "fontSize": "100%", - "gridPos": { - "h": 5, - "w": 11, - "x": 0, - "y": 50 - }, - "id": 186, - "links": [], - "pageSize": null, - "repeatDirection": "h", - "repeatIteration": 1588835205546, - "repeatPanelId": 45, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "vets-service", - "value": "vets-service" - } - }, - "scroll": true, - "showHeader": true, - "sort": { - "col": 6, - "desc": true - }, - "styles": [ - { - "alias": "", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "Time", - "thresholds": [], - "type": "hidden", - "unit": "short" - }, - { - "alias": "Requests", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 0, - "mappingType": 1, - "pattern": "za_requests", - "thresholds": [], - "type": "number", - "unit": "none" - }, - { - "alias": "Avg. Response Time", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "link": false, - "mappingType": 1, - "pattern": "zb_response_time", - "thresholds": [], - "type": "number", - "unit": "ms" - }, - { - "alias": "HTTP Path", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "http_path", - "preserveFormat": false, - "thresholds": [], - "type": "string", - "unit": "short" - }, - { - "alias": "Error Rate", - "align": "auto", - "colorMode": "cell", - "colors": [ - "rgba(50, 172, 45, 0.97)", - "rgba(237, 129, 40, 0.89)", - "rgba(245, 54, 54, 0.9)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "zc_error_rate", - "thresholds": [ - "0.0001", - "0.3" - ], - "type": "number", - "unit": "percentunit" - }, - { - "alias": "Target Host", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "http_host", - "thresholds": [], - "type": "string", - "unit": "short" - } - ], - "targets": [ - { - "expr": "sum(label_join(increase(http_out_count{service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__range]), \"http_url\", \"\", \"http_host\", \"http_path\")) by (http_url) > 0", - "format": "table", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": true, - "intervalFactor": 1, - "legendFormat": "", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(total) as za_requests, SUM(times) / SUM(total) AS zb_response_time FROM (\n SELECT SUM(\"count\") AS total, SUM(\"sum\") AS times FROM \"http_out_responsetime\" \n WHERE $timeFilter AND service =~ /^$service$/ AND http_path =~ /^$path$/ GROUP BY http_path,http_host\n) GROUP BY *", - "rawQuery": true, - "refId": "A", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - }, - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(errors) / SUM(total) AS zc_error_rate FROM (\n SELECT SUM(\"count\") AS total, SUM(\"errorcount\") AS errors FROM \"http_out_error\" \n WHERE $timeFilter AND service =~ /^$service$/ AND http_path =~ /^$path$/ GROUP BY http_path,http_host fill(0)\n)\nGROUP BY *", - "rawQuery": true, - "refId": "B", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "title": "Outgoing Requests", - "transform": "table", - "type": "table" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalInflux", - "description": "", - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 5, - "w": 9, - "x": 11, - "y": 50 - }, - "hiddenSeries": false, - "id": 187, - "interval": "15s", - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": false, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1588835205546, - "repeatPanelId": 76, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "vets-service", - "value": "vets-service" - } - }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "$tag_http_host$tag_http_path", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(sum) / SUM(count) AS value \nFROM \"http_out_responsetime\" \nWHERE $timeFilter AND service =~ /^$service$/ AND http_path=~ /^$path$/\nGROUP BY time($__interval), http_path,http_host fill(none)", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Outgoing Avg. Response Time", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "ms", - "label": "", - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "ms", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalInflux", - "decimals": 2, - "description": "Outgoing HTTP Requests per second issued towards the selected endpoints from the given application", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 5, - "w": 2, - "x": 20, - "y": 50 - }, - "hideTimeOverride": true, - "id": 188, - "interval": "15s", - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1588835205546, - "repeatPanelId": 112, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "vets-service", - "value": "vets-service" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "expr": "sum(rate(http_out_count{service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__interval]))", - "format": "time_series", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": false, - "intervalFactor": 1, - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(count)/$__interval_ms*1000 AS value\nFROM \"http_out_responsetime\" \nWHERE $timeFilter AND service =~ /^$service$/ AND http_path=~ /^$path$/ \nGROUP BY time($__interval) fill(0)", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": "", - "timeShift": null, - "title": "Out Req / Sec", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorPostfix": false, - "colorPrefix": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalInflux", - "decimals": 2, - "description": "The error rate of outgoing http requests issued towards the selected endpoints of the selected application", - "format": "percentunit", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 5, - "w": 2, - "x": 22, - "y": 50 - }, - "hideTimeOverride": true, - "id": 189, - "interval": "15s", - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1588835205546, - "repeatPanelId": 153, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "vets-service", - "value": "vets-service" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "expr": "(sum(increase(http_out_count{http_status!~\"(1|2|3)\\\\d\\\\d\",service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__range]))\n/ sum(increase(http_out_count{service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__range])) >= 0)\nor (sum(increase(http_out_count{service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__range])) > 0) * 0", - "format": "time_series", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": true, - "intervalFactor": 1, - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(errors) / SUM(total) AS value FROM (\n SELECT SUM(\"count\") AS total, SUM(\"errorcount\") AS errors FROM \"http_out_error\" \n WHERE $timeFilter AND service =~ /^$service$/ AND http_path =~ /^$path$/ GROUP BY time($__interval) fill(0)\n)\nWHERE total > 0\nGROUP BY time($__interval)", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": "0.01,0.1", - "timeFrom": null, - "timeShift": null, - "title": "Out Error Rate", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "collapsed": false, - "datasource": null, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 55 - }, - "id": 190, - "panels": [], - "repeat": null, - "repeatIteration": 1588835205546, - "repeatPanelId": 4, - "scopedVars": { - "service": { - "selected": false, - "text": "visits-service", - "value": "visits-service" - } - }, - "title": "$service", - "type": "row" - }, - { - "columns": [], - "datasource": "LocalInflux", - "fontSize": "100%", - "gridPos": { - "h": 5, - "w": 11, - "x": 0, - "y": 56 - }, - "id": 191, - "links": [], - "pageSize": null, - "repeat": null, - "repeatDirection": "h", - "repeatIteration": 1588835205546, - "repeatPanelId": 2, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "visits-service", - "value": "visits-service" - } - }, - "scroll": true, - "showHeader": true, - "sort": { - "col": 4, - "desc": true - }, - "styles": [ - { - "alias": "Requests", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 0, - "mappingType": 1, - "pattern": "za_requests", - "thresholds": [], - "type": "number", - "unit": "none" - }, - { - "alias": "Avg. Response Time", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "link": false, - "mappingType": 1, - "pattern": "zb_response_time", - "thresholds": [], - "type": "number", - "unit": "ms" - }, - { - "alias": "HTTP Path", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "http_path", - "thresholds": [], - "type": "number", - "unit": "short" - }, - { - "alias": "Error Rate", - "align": "auto", - "colorMode": "cell", - "colors": [ - "rgba(50, 172, 45, 0.97)", - "rgba(237, 129, 40, 0.89)", - "rgba(245, 54, 54, 0.9)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "zc_error_rate", - "thresholds": [ - "0.0001", - "0.3" - ], - "type": "number", - "unit": "percentunit" - }, - { - "alias": "", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "Time", - "thresholds": [], - "type": "hidden", - "unit": "none" - } - ], - "targets": [ - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "hide": false, - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(total) as za_requests, SUM(times) / SUM(total) AS zb_response_time FROM (\n SELECT SUM(\"count\") AS total, SUM(\"sum\") AS times FROM \"http_in_responsetime\" \n WHERE $timeFilter AND service =~ /^$service$/ AND http_path =~ /^$path$/ GROUP BY http_path\n) GROUP BY http_path", - "rawQuery": true, - "refId": "A", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - }, - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(errors) / SUM(total) AS zc_error_rate FROM (\n SELECT SUM(\"count\") AS total, SUM(\"errorcount\") AS errors FROM \"http_in_error\" \n WHERE $timeFilter AND service =~ /^$service$/ AND http_path =~ /^$path$/ GROUP BY http_path fill(0)\n)\nGROUP BY http_path", - "rawQuery": true, - "refId": "B", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "title": "Incoming Requests", - "transform": "table", - "type": "table" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalInflux", - "description": "", - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 5, - "w": 9, - "x": 11, - "y": 56 - }, - "hiddenSeries": false, - "id": 192, - "interval": "15s", - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": false, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1588835205546, - "repeatPanelId": 23, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "visits-service", - "value": "visits-service" - } - }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "$tag_http_path", - "expr": "(sum(increase(http_in_responsetime_sum{service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__interval])) by (http_path)\n/ sum(increase(http_in_count{service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__interval])) by (http_path)) >= 0", - "format": "time_series", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": false, - "intervalFactor": 1, - "legendFormat": "{{http_path}}", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(sum) / SUM(count)\nFROM \"http_in_responsetime\" \nWHERE $timeFilter AND service =~ /^$service$/ AND http_path=~ /^$path$/\nGROUP BY time($__interval), http_path fill(none)", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Incoming Avg. Response Time", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "ms", - "label": "", - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "ms", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalInflux", - "decimals": 2, - "description": "Incoming HTTP Requests per second for the selected endpoints and applications", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 5, - "w": 2, - "x": 20, - "y": 56 - }, - "hideTimeOverride": true, - "id": 193, - "interval": "15s", - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1588835205546, - "repeatPanelId": 6, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "visits-service", - "value": "visits-service" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "expr": "sum(rate(http_in_count{service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__interval]))", - "format": "time_series", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": false, - "intervalFactor": 1, - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(count)/$__interval_ms*1000 AS value\nFROM \"http_in_responsetime\" \nWHERE $timeFilter AND service =~ /^$service$/ AND http_path=~ /^$path$/ \nGROUP BY time($__interval) fill(0)", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": "", - "timeShift": null, - "title": "In Req / Sec", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorPostfix": false, - "colorPrefix": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalInflux", - "decimals": 2, - "description": "The error rate of incoming http requests for the selected endpoints and applications", - "format": "percentunit", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 5, - "w": 2, - "x": 22, - "y": 56 - }, - "hideTimeOverride": true, - "id": 194, - "interval": "15s", - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1588835205546, - "repeatPanelId": 44, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "visits-service", - "value": "visits-service" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "expr": "(sum(increase(http_in_count{http_status!~\"(1|2|3)\\\\d\\\\d\",service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__range]))\n/ sum(increase(http_in_count{service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__range])) >= 0)\nor (sum(increase(http_in_count{service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__range])) > 0) * 0", - "format": "time_series", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": true, - "intervalFactor": 1, - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(errors) / SUM(total) AS value FROM (\n SELECT SUM(\"count\") AS total, SUM(\"errorcount\") AS errors FROM \"http_in_error\" \n WHERE $timeFilter AND service =~ /^$service$/ AND http_path =~ /^$path$/ GROUP BY time($__interval) fill(0)\n)\nWHERE total > 0\nGROUP BY time($__interval)", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": "0.01,0.1", - "timeFrom": null, - "timeShift": null, - "title": "In Error Rate", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "columns": [], - "datasource": "LocalInflux", - "fontSize": "100%", - "gridPos": { - "h": 5, - "w": 11, - "x": 0, - "y": 61 - }, - "id": 195, - "links": [], - "pageSize": null, - "repeatDirection": "h", - "repeatIteration": 1588835205546, - "repeatPanelId": 45, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "visits-service", - "value": "visits-service" - } - }, - "scroll": true, - "showHeader": true, - "sort": { - "col": 6, - "desc": true - }, - "styles": [ - { - "alias": "", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "Time", - "thresholds": [], - "type": "hidden", - "unit": "short" - }, - { - "alias": "Requests", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 0, - "mappingType": 1, - "pattern": "za_requests", - "thresholds": [], - "type": "number", - "unit": "none" - }, - { - "alias": "Avg. Response Time", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "link": false, - "mappingType": 1, - "pattern": "zb_response_time", - "thresholds": [], - "type": "number", - "unit": "ms" - }, - { - "alias": "HTTP Path", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "http_path", - "preserveFormat": false, - "thresholds": [], - "type": "string", - "unit": "short" - }, - { - "alias": "Error Rate", - "align": "auto", - "colorMode": "cell", - "colors": [ - "rgba(50, 172, 45, 0.97)", - "rgba(237, 129, 40, 0.89)", - "rgba(245, 54, 54, 0.9)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "zc_error_rate", - "thresholds": [ - "0.0001", - "0.3" - ], - "type": "number", - "unit": "percentunit" - }, - { - "alias": "Target Host", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "http_host", - "thresholds": [], - "type": "string", - "unit": "short" - } - ], - "targets": [ - { - "expr": "sum(label_join(increase(http_out_count{service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__range]), \"http_url\", \"\", \"http_host\", \"http_path\")) by (http_url) > 0", - "format": "table", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": true, - "intervalFactor": 1, - "legendFormat": "", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(total) as za_requests, SUM(times) / SUM(total) AS zb_response_time FROM (\n SELECT SUM(\"count\") AS total, SUM(\"sum\") AS times FROM \"http_out_responsetime\" \n WHERE $timeFilter AND service =~ /^$service$/ AND http_path =~ /^$path$/ GROUP BY http_path,http_host\n) GROUP BY *", - "rawQuery": true, - "refId": "A", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - }, - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(errors) / SUM(total) AS zc_error_rate FROM (\n SELECT SUM(\"count\") AS total, SUM(\"errorcount\") AS errors FROM \"http_out_error\" \n WHERE $timeFilter AND service =~ /^$service$/ AND http_path =~ /^$path$/ GROUP BY http_path,http_host fill(0)\n)\nGROUP BY *", - "rawQuery": true, - "refId": "B", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "title": "Outgoing Requests", - "transform": "table", - "type": "table" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalInflux", - "description": "", - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 5, - "w": 9, - "x": 11, - "y": 61 - }, - "hiddenSeries": false, - "id": 196, - "interval": "15s", - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": false, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1588835205546, - "repeatPanelId": 76, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "visits-service", - "value": "visits-service" - } - }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "$tag_http_host$tag_http_path", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(sum) / SUM(count) AS value \nFROM \"http_out_responsetime\" \nWHERE $timeFilter AND service =~ /^$service$/ AND http_path=~ /^$path$/\nGROUP BY time($__interval), http_path,http_host fill(none)", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Outgoing Avg. Response Time", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "ms", - "label": "", - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "ms", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalInflux", - "decimals": 2, - "description": "Outgoing HTTP Requests per second issued towards the selected endpoints from the given application", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 5, - "w": 2, - "x": 20, - "y": 61 - }, - "hideTimeOverride": true, - "id": 197, - "interval": "15s", - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1588835205546, - "repeatPanelId": 112, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "visits-service", - "value": "visits-service" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "expr": "sum(rate(http_out_count{service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__interval]))", - "format": "time_series", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": false, - "intervalFactor": 1, - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(count)/$__interval_ms*1000 AS value\nFROM \"http_out_responsetime\" \nWHERE $timeFilter AND service =~ /^$service$/ AND http_path=~ /^$path$/ \nGROUP BY time($__interval) fill(0)", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": "", - "timeShift": null, - "title": "Out Req / Sec", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorPostfix": false, - "colorPrefix": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalInflux", - "decimals": 2, - "description": "The error rate of outgoing http requests issued towards the selected endpoints of the selected application", - "format": "percentunit", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 5, - "w": 2, - "x": 22, - "y": 61 - }, - "hideTimeOverride": true, - "id": 198, - "interval": "15s", - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1588835205546, - "repeatPanelId": 153, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "visits-service", - "value": "visits-service" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "expr": "(sum(increase(http_out_count{http_status!~\"(1|2|3)\\\\d\\\\d\",service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__range]))\n/ sum(increase(http_out_count{service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__range])) >= 0)\nor (sum(increase(http_out_count{service=\"$service\",application=~\"$application\",http_path=~\"$path\"}[$__range])) > 0) * 0", - "format": "time_series", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": true, - "intervalFactor": 1, - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(errors) / SUM(total) AS value FROM (\n SELECT SUM(\"count\") AS total, SUM(\"errorcount\") AS errors FROM \"http_out_error\" \n WHERE $timeFilter AND service =~ /^$service$/ AND http_path =~ /^$path$/ GROUP BY time($__interval) fill(0)\n)\nWHERE total > 0\nGROUP BY time($__interval)", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": "0.01,0.1", - "timeFrom": null, - "timeShift": null, - "title": "Out Error Rate", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - } - ], - "refresh": "30s", - "schemaVersion": 22, - "style": "dark", - "tags": [], - "templating": { - "list": [ - { - "allValue": null, - "current": { - "selected": false, - "text": "All", - "value": "$__all" - }, - "datasource": "LocalInflux", - "definition": "SHOW TAG VALUES WITH key = \"service\"", - "hide": 0, - "includeAll": true, - "index": -1, - "label": "Service", - "multi": true, - "name": "service", - "options": [], - "query": "SHOW TAG VALUES WITH key = \"service\"", - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 1, - "tagValuesQuery": "", - "tags": [], - "tagsQuery": "", - "type": "query", - "useTags": false - }, - { - "allValue": ".*", - "current": { - "selected": false, - "text": "All", - "value": "$__all" - }, - "datasource": "LocalInflux", - "definition": "SHOW TAG VALUES WITH key = \"http_path\"", - "hide": 0, - "includeAll": true, - "index": -1, - "label": "Endpoint", - "multi": true, - "name": "path", - "options": [], - "query": "SHOW TAG VALUES WITH key = \"http_path\"", - "refresh": 2, - "regex": "", - "skipUrlSync": false, - "sort": 0, - "tagValuesQuery": "", - "tags": [], - "tagsQuery": "", - "type": "query", - "useTags": false - } - ] - }, - "time": { - "from": "now-5m", - "to": "now" - }, - "timepicker": { - "refresh_intervals": [ - "5s", - "10s", - "30s", - "1m", - "5m", - "15m", - "30m", - "1h", - "2h", - "1d" - ], - "time_options": [ - "5m", - "15m", - "1h", - "6h", - "12h", - "24h", - "2d", - "7d", - "30d" - ] - }, - "timezone": "", - "title": "HTTP Overview", - "uid": "523wqxqmz", - "variables": { - "list": [] - }, - "version": 1 -} \ No newline at end of file diff --git a/inspectit-ocelot-demo/grafana/provisioning/influxdb/dashboards/agent/jvm-metrics.json b/inspectit-ocelot-demo/grafana/provisioning/influxdb/dashboards/agent/jvm-metrics.json deleted file mode 100644 index 4ca97d66b4..0000000000 --- a/inspectit-ocelot-demo/grafana/provisioning/influxdb/dashboards/agent/jvm-metrics.json +++ /dev/null @@ -1,11781 +0,0 @@ -{ - "annotations": { - "list": [ - { - "builtIn": 1, - "datasource": "-- Grafana --", - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "type": "dashboard" - } - ] - }, - "editable": true, - "gnetId": null, - "graphTooltip": 0, - "id": 5, - "iteration": 1587549200544, - "links": [], - "panels": [ - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 0 - }, - "id": 7, - "panels": [], - "repeat": "service", - "scopedVars": { - "service": { - "selected": false, - "text": "api-gateway", - "value": "api-gateway" - } - }, - "title": "$service", - "type": "row" - }, - { - "aliasColors": { - "process_cpu_usage ": "#badff4", - "system_cpu_usage ": "#1f78c1" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalInflux", - "fill": 2, - "gridPos": { - "h": 6, - "w": 7, - "x": 0, - "y": 1 - }, - "id": 11, - "interval": "5s", - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "scopedVars": { - "service": { - "selected": false, - "text": "api-gateway", - "value": "api-gateway" - } - }, - "seriesOverrides": [ - { - "alias": "System CPU Usage", - "color": "#1f78c1" - }, - { - "alias": "JVM CPU Usage", - "color": "#70dbed" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "System CPU Usage", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "linear" - ], - "type": "fill" - } - ], - "measurement": "system_cpu_usage", - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"process_cpu_usage\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "JVM CPU Usage", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "linear" - ], - "type": "fill" - } - ], - "measurement": "process_cpu_usage", - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"system_cpu_usage\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n", - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "CPU Usage", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": null, - "format": "percentunit", - "label": null, - "logBase": 1, - "max": "1.05", - "min": "0", - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalInflux", - "fill": 10, - "gridPos": { - "h": 6, - "w": 6, - "x": 7, - "y": 1 - }, - "id": 39, - "interval": "1s", - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "scopedVars": { - "service": { - "selected": false, - "text": "api-gateway", - "value": "api-gateway" - } - }, - "seriesOverrides": [ - { - "alias": "used", - "color": "#82b5d8" - }, - { - "alias": "committed", - "color": "#447ebc" - }, - { - "alias": "max", - "color": "#bf1b00", - "fill": 0, - "linewidth": 4 - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "max", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "jvm_memory_max", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(val) FROM (SELECT mean(value) AS val FROM jvm_memory_max WHERE $timeFilter AND area = 'heap' AND service =~ /^$service/ GROUP BY time($__interval),*) GROUP BY time($__interval) fill(linear)", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "heap" - } - ] - }, - { - "alias": "committed", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "jvm_memory_committed", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(val) FROM (SELECT mean(value) AS val FROM jvm_memory_committed WHERE $timeFilter AND area = 'heap' AND service =~ /^$service/ GROUP BY time($__interval),*) GROUP BY time($__interval) fill(linear)", - "rawQuery": true, - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "heap" - } - ] - }, - { - "alias": "used", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "jvm_memory_used", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(val) FROM (SELECT mean(value) AS val FROM jvm_memory_used WHERE $timeFilter AND area = 'heap' AND service =~ /^$service/ GROUP BY time($__interval),*) GROUP BY time($__interval) fill(linear)", - "rawQuery": true, - "refId": "C", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "heap" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Memory - Heap", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "decbytes", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": { - "daemon ": "#0a50a1", - "live-non-daemon ": "#82b5d8", - "non-daemon ": "#82b5d8", - "peak ": "#bf1b00" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalInflux", - "fill": 4, - "gridPos": { - "h": 6, - "w": 6, - "x": 13, - "y": 1 - }, - "id": 42, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 2, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "scopedVars": { - "service": { - "selected": false, - "text": "api-gateway", - "value": "api-gateway" - } - }, - "seriesOverrides": [ - { - "alias": "peak live since JVM start", - "color": "#bf1b00", - "fill": 0, - "linewidth": 3 - }, - { - "alias": "total live" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "total live", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "previous" - ], - "type": "fill" - } - ], - "measurement": "jvm_threads_live", - "orderByTime": "ASC", - "policy": "default", - "query": "stackedPeak = () => {\npeak = from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_peak\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n\nlive = from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_live\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n \n\n \nreturn join(tables:{live:live, peak:peak},on:[\"_time\",\"_stop\",\"_start\", \"host\"])\n |> map(fn:(r) => ({\n _time: r._time,\n _value: (r._value_peak - r._value_live),\n _measurement: \"peak\"\n }))\n}\n\nstackedPeak()", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "live daemons", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "previous" - ], - "type": "fill" - } - ], - "measurement": "jvm_threads_daemon", - "orderByTime": "ASC", - "policy": "default", - "query": "stackedPeak = () => {\npeak = from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_peak\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n\nlive = from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_live\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n \n\n \nreturn join(tables:{live:live, peak:peak},on:[\"_time\",\"_stop\",\"_start\", \"host\"])\n |> map(fn:(r) => ({\n _time: r._time,\n _value: (r._value_peak - r._value_live),\n _measurement: \"peak\"\n }))\n}\n\nstackedPeak()", - "refId": "C", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "peak live since JVM start", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "previous" - ], - "type": "fill" - } - ], - "measurement": "jvm_threads_peak", - "orderByTime": "ASC", - "policy": "default", - "query": "stackedPeak = () => {\npeak = from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_peak\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n\nlive = from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_live\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n \n\n \nreturn join(tables:{live:live, peak:peak},on:[\"_time\",\"_stop\",\"_start\", \"host\"])\n |> map(fn:(r) => ({\n _time: r._time,\n _value: (r._value_peak - r._value_live),\n _measurement: \"peak\"\n }))\n}\n\nstackedPeak()", - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "max" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [ - { - "colorMode": "background6", - "fill": true, - "line": false, - "op": "time" - } - ], - "timeShift": null, - "title": "# Live Threads", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": 0, - "format": "none", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalInflux", - "fill": 1, - "gridPos": { - "h": 6, - "w": 5, - "x": 19, - "y": 1 - }, - "id": 46, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "scopedVars": { - "service": { - "selected": false, - "text": "api-gateway", - "value": "api-gateway" - } - }, - "seriesOverrides": [ - { - "alias": "Allocated Memory", - "bars": true, - "color": "#ef843c", - "lines": false - }, - { - "alias": "Promoted Memory", - "bars": true, - "color": "#629e51", - "lines": false - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "Live Data Size", - "groupBy": [ - { - "params": [ - "1s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "hide": false, - "measurement": "jvm_gc_live_data_size", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT \"gauge\" FROM \"jvm_gc_live_data_size\" WHERE (\"service\" =~ /^$service$/) ", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "Max Data Size", - "groupBy": [ - { - "params": [ - "1s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "hide": false, - "measurement": "jvm_gc_max_data_size", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT \"gauge\" FROM \"jvm_gc_live_data_size\" WHERE (\"service\" =~ /^$service$/) ", - "rawQuery": false, - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "Allocated Memory", - "groupBy": [ - { - "params": [ - "1s" - ], - "type": "time" - } - ], - "hide": false, - "measurement": "jvm_gc_memory_allocated", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(\"counter\") FROM \"jvm_gc_memory_allocated\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time($__interval)", - "rawQuery": true, - "refId": "D", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "counter" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - }, - { - "params": [], - "type": "non_negative_difference" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "Promoted Memory", - "groupBy": [ - { - "params": [ - "1s" - ], - "type": "time" - } - ], - "hide": false, - "measurement": "jvm_gc_memory_promoted", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(\"counter\") FROM \"jvm_gc_memory_promoted\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time($__interval)", - "rawQuery": true, - "refId": "F", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "counter" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - }, - { - "params": [], - "type": "non_negative_difference" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Garbage Collection Memory", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "decbytes", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "ms", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalInflux", - "format": "percentunit", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": true, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 6, - "w": 4, - "x": 0, - "y": 7 - }, - "id": 49, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "scopedVars": { - "service": { - "selected": false, - "text": "api-gateway", - "value": "api-gateway" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [], - "measurement": "process_cpu_usage", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": "0.8,0.9", - "title": "Current CPU Usage", - "type": "singlestat", - "valueFontSize": "70%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalInflux", - "format": "none", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 3, - "w": 3, - "x": 4, - "y": 7 - }, - "id": 4, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeat": null, - "repeatDirection": "h", - "scopedVars": { - "service": { - "selected": false, - "text": "api-gateway", - "value": "api-gateway" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [], - "measurement": "jvm_classes_loaded", - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n |> range(start: -1m)\n |> filter(fn: (r) =>\n r._measurement == \"jvm_classes_loaded\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"service\"])\n |> last()\n", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": "0.9,0.95", - "title": "Loaded Classes", - "type": "singlestat", - "valueFontSize": "50%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalInflux", - "fill": 10, - "gridPos": { - "h": 6, - "w": 6, - "x": 7, - "y": 7 - }, - "id": 40, - "interval": "1s", - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "scopedVars": { - "service": { - "selected": false, - "text": "api-gateway", - "value": "api-gateway" - } - }, - "seriesOverrides": [ - { - "alias": "used", - "color": "#82b5d8" - }, - { - "alias": "committed", - "color": "#447ebc" - }, - { - "alias": "max", - "color": "#bf1b00", - "fill": 0, - "linewidth": 4 - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "max", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "jvm_memory_max", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(val) FROM (SELECT mean(value) AS val FROM jvm_memory_max WHERE $timeFilter AND area = 'nonheap' AND service =~ /^$service/ GROUP BY time($__interval),*) GROUP BY time($__interval) fill(previous)", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "nonheap" - } - ] - }, - { - "alias": "committed", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "jvm_memory_committed", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(val) FROM (SELECT mean(value) AS val FROM jvm_memory_committed WHERE $timeFilter AND area = 'nonheap' AND service =~ /^$service/ GROUP BY time($__interval),*) GROUP BY time($__interval) fill(previous)", - "rawQuery": true, - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "nonheap" - } - ] - }, - { - "alias": "used", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "jvm_memory_used", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(val) FROM (SELECT mean(value) AS val FROM jvm_memory_used WHERE $timeFilter AND area = 'nonheap' AND service =~ /^$service/ GROUP BY time($__interval),*) GROUP BY time($__interval) fill(previous)", - "rawQuery": true, - "refId": "C", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "nonheap" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Memory - Non-Heap", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "decbytes", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalInflux", - "fill": 4, - "gridPos": { - "h": 6, - "w": 6, - "x": 13, - "y": 7 - }, - "id": 41, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "scopedVars": { - "service": { - "selected": false, - "text": "api-gateway", - "value": "api-gateway" - } - }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "alias": "$tag_state", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "state" - ], - "type": "tag" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "jvm_threads_states", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"gauge\") FROM \"jvm_memory_max\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time(1m) fill(null)", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "# Threads by States", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": 0, - "format": "none", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": { - "Major GC": "#bf1b00" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalInflux", - "fill": 1, - "gridPos": { - "h": 6, - "w": 5, - "x": 19, - "y": 7 - }, - "id": 47, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": false, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 3, - "points": true, - "renderer": "flot", - "scopedVars": { - "service": { - "selected": false, - "text": "api-gateway", - "value": "api-gateway" - } - }, - "seriesOverrides": [ - { - "alias": "Minor GC" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "Minor GC", - "groupBy": [ - { - "params": [ - "1s" - ], - "type": "time" - } - ], - "hide": false, - "measurement": "jvm_gc_pause", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(\"counter\") FROM \"jvm_gc_pause\" WHERE (\"service\" =~ /^$service$/ AND \"action\" = 'end of minor GC') AND $timeFilter GROUP BY time($__interval) fill(none)", - "rawQuery": true, - "refId": "C", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "counter" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - }, - { - "params": [], - "type": "non_negative_difference" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "action", - "operator": "=", - "value": "end of minor GC" - } - ] - }, - { - "alias": "Major GC", - "groupBy": [ - { - "params": [ - "1s" - ], - "type": "time" - } - ], - "hide": false, - "measurement": "jvm_gc_pause", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(\"counter\") FROM \"jvm_gc_pause\" WHERE (\"service\" =~ /^$service$/ AND \"action\" = 'end of major GC') AND $timeFilter GROUP BY time($__interval) fill(none)", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "counter" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - }, - { - "params": [], - "type": "non_negative_difference" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "action", - "operator": "=", - "value": "end of major GC" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Garbage Collection Pauses", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "ms", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalInflux", - "format": "none", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 3, - "w": 3, - "x": 4, - "y": 10 - }, - "id": 12, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatDirection": "h", - "scopedVars": { - "service": { - "selected": false, - "text": "api-gateway", - "value": "api-gateway" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [], - "measurement": "jvm_classes_unloaded", - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n |> range(start: -1m)\n |> filter(fn: (r) =>\n r._measurement == \"jvm_classes_unloaded\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"service\"])\n |> last()\n", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": "0.9,0.95", - "title": "Unloaded Classes", - "type": "singlestat", - "valueFontSize": "50%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "content": "----", - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 13 - }, - "id": 51, - "links": [], - "mode": "html", - "scopedVars": { - "service": { - "selected": false, - "text": "api-gateway", - "value": "api-gateway" - } - }, - "title": "", - "transparent": true, - "type": "text" - }, - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 14 - }, - "id": 52, - "panels": [], - "repeat": null, - "repeatIteration": 1587549200544, - "repeatPanelId": 7, - "scopedVars": { - "service": { - "selected": false, - "text": "config-server", - "value": "config-server" - } - }, - "title": "$service", - "type": "row" - }, - { - "aliasColors": { - "process_cpu_usage ": "#badff4", - "system_cpu_usage ": "#1f78c1" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalInflux", - "fill": 2, - "gridPos": { - "h": 6, - "w": 7, - "x": 0, - "y": 15 - }, - "id": 53, - "interval": "5s", - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1587549200544, - "repeatPanelId": 11, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "config-server", - "value": "config-server" - } - }, - "seriesOverrides": [ - { - "alias": "System CPU Usage", - "color": "#1f78c1" - }, - { - "alias": "JVM CPU Usage", - "color": "#70dbed" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "System CPU Usage", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "linear" - ], - "type": "fill" - } - ], - "measurement": "system_cpu_usage", - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"process_cpu_usage\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "JVM CPU Usage", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "linear" - ], - "type": "fill" - } - ], - "measurement": "process_cpu_usage", - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"system_cpu_usage\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n", - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "CPU Usage", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": null, - "format": "percentunit", - "label": null, - "logBase": 1, - "max": "1.05", - "min": "0", - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalInflux", - "fill": 10, - "gridPos": { - "h": 6, - "w": 6, - "x": 7, - "y": 15 - }, - "id": 54, - "interval": "1s", - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1587549200544, - "repeatPanelId": 39, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "config-server", - "value": "config-server" - } - }, - "seriesOverrides": [ - { - "alias": "used", - "color": "#82b5d8" - }, - { - "alias": "committed", - "color": "#447ebc" - }, - { - "alias": "max", - "color": "#bf1b00", - "fill": 0, - "linewidth": 4 - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "max", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "jvm_memory_max", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(val) FROM (SELECT mean(value) AS val FROM jvm_memory_max WHERE $timeFilter AND area = 'heap' AND service =~ /^$service/ GROUP BY time($__interval),*) GROUP BY time($__interval) fill(linear)", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "heap" - } - ] - }, - { - "alias": "committed", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "jvm_memory_committed", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(val) FROM (SELECT mean(value) AS val FROM jvm_memory_committed WHERE $timeFilter AND area = 'heap' AND service =~ /^$service/ GROUP BY time($__interval),*) GROUP BY time($__interval) fill(linear)", - "rawQuery": true, - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "heap" - } - ] - }, - { - "alias": "used", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "jvm_memory_used", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(val) FROM (SELECT mean(value) AS val FROM jvm_memory_used WHERE $timeFilter AND area = 'heap' AND service =~ /^$service/ GROUP BY time($__interval),*) GROUP BY time($__interval) fill(linear)", - "rawQuery": true, - "refId": "C", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "heap" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Memory - Heap", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "decbytes", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": { - "daemon ": "#0a50a1", - "live-non-daemon ": "#82b5d8", - "non-daemon ": "#82b5d8", - "peak ": "#bf1b00" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalInflux", - "fill": 4, - "gridPos": { - "h": 6, - "w": 6, - "x": 13, - "y": 15 - }, - "id": 55, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 2, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1587549200544, - "repeatPanelId": 42, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "config-server", - "value": "config-server" - } - }, - "seriesOverrides": [ - { - "alias": "peak live since JVM start", - "color": "#bf1b00", - "fill": 0, - "linewidth": 3 - }, - { - "alias": "total live" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "total live", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "previous" - ], - "type": "fill" - } - ], - "measurement": "jvm_threads_live", - "orderByTime": "ASC", - "policy": "default", - "query": "stackedPeak = () => {\npeak = from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_peak\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n\nlive = from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_live\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n \n\n \nreturn join(tables:{live:live, peak:peak},on:[\"_time\",\"_stop\",\"_start\", \"host\"])\n |> map(fn:(r) => ({\n _time: r._time,\n _value: (r._value_peak - r._value_live),\n _measurement: \"peak\"\n }))\n}\n\nstackedPeak()", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "live daemons", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "previous" - ], - "type": "fill" - } - ], - "measurement": "jvm_threads_daemon", - "orderByTime": "ASC", - "policy": "default", - "query": "stackedPeak = () => {\npeak = from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_peak\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n\nlive = from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_live\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n \n\n \nreturn join(tables:{live:live, peak:peak},on:[\"_time\",\"_stop\",\"_start\", \"host\"])\n |> map(fn:(r) => ({\n _time: r._time,\n _value: (r._value_peak - r._value_live),\n _measurement: \"peak\"\n }))\n}\n\nstackedPeak()", - "refId": "C", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "peak live since JVM start", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "previous" - ], - "type": "fill" - } - ], - "measurement": "jvm_threads_peak", - "orderByTime": "ASC", - "policy": "default", - "query": "stackedPeak = () => {\npeak = from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_peak\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n\nlive = from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_live\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n \n\n \nreturn join(tables:{live:live, peak:peak},on:[\"_time\",\"_stop\",\"_start\", \"host\"])\n |> map(fn:(r) => ({\n _time: r._time,\n _value: (r._value_peak - r._value_live),\n _measurement: \"peak\"\n }))\n}\n\nstackedPeak()", - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "max" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [ - { - "colorMode": "background6", - "fill": true, - "line": false, - "op": "time" - } - ], - "timeShift": null, - "title": "# Live Threads", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": 0, - "format": "none", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalInflux", - "fill": 1, - "gridPos": { - "h": 6, - "w": 5, - "x": 19, - "y": 15 - }, - "id": 56, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1587549200544, - "repeatPanelId": 46, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "config-server", - "value": "config-server" - } - }, - "seriesOverrides": [ - { - "alias": "Allocated Memory", - "bars": true, - "color": "#ef843c", - "lines": false - }, - { - "alias": "Promoted Memory", - "bars": true, - "color": "#629e51", - "lines": false - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "Live Data Size", - "groupBy": [ - { - "params": [ - "1s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "hide": false, - "measurement": "jvm_gc_live_data_size", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT \"gauge\" FROM \"jvm_gc_live_data_size\" WHERE (\"service\" =~ /^$service$/) ", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "Max Data Size", - "groupBy": [ - { - "params": [ - "1s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "hide": false, - "measurement": "jvm_gc_max_data_size", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT \"gauge\" FROM \"jvm_gc_live_data_size\" WHERE (\"service\" =~ /^$service$/) ", - "rawQuery": false, - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "Allocated Memory", - "groupBy": [ - { - "params": [ - "1s" - ], - "type": "time" - } - ], - "hide": false, - "measurement": "jvm_gc_memory_allocated", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(\"counter\") FROM \"jvm_gc_memory_allocated\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time($__interval)", - "rawQuery": true, - "refId": "D", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "counter" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - }, - { - "params": [], - "type": "non_negative_difference" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "Promoted Memory", - "groupBy": [ - { - "params": [ - "1s" - ], - "type": "time" - } - ], - "hide": false, - "measurement": "jvm_gc_memory_promoted", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(\"counter\") FROM \"jvm_gc_memory_promoted\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time($__interval)", - "rawQuery": true, - "refId": "F", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "counter" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - }, - { - "params": [], - "type": "non_negative_difference" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Garbage Collection Memory", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "decbytes", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "ms", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalInflux", - "format": "percentunit", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": true, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 6, - "w": 4, - "x": 0, - "y": 21 - }, - "id": 57, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1587549200544, - "repeatPanelId": 49, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "config-server", - "value": "config-server" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [], - "measurement": "process_cpu_usage", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": "0.8,0.9", - "title": "Current CPU Usage", - "type": "singlestat", - "valueFontSize": "70%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalInflux", - "format": "none", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 3, - "w": 3, - "x": 4, - "y": 21 - }, - "id": 58, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeat": null, - "repeatDirection": "h", - "repeatIteration": 1587549200544, - "repeatPanelId": 4, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "config-server", - "value": "config-server" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [], - "measurement": "jvm_classes_loaded", - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n |> range(start: -1m)\n |> filter(fn: (r) =>\n r._measurement == \"jvm_classes_loaded\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"service\"])\n |> last()\n", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": "0.9,0.95", - "title": "Loaded Classes", - "type": "singlestat", - "valueFontSize": "50%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalInflux", - "fill": 10, - "gridPos": { - "h": 6, - "w": 6, - "x": 7, - "y": 21 - }, - "id": 59, - "interval": "1s", - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1587549200544, - "repeatPanelId": 40, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "config-server", - "value": "config-server" - } - }, - "seriesOverrides": [ - { - "alias": "used", - "color": "#82b5d8" - }, - { - "alias": "committed", - "color": "#447ebc" - }, - { - "alias": "max", - "color": "#bf1b00", - "fill": 0, - "linewidth": 4 - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "max", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "jvm_memory_max", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(val) FROM (SELECT mean(value) AS val FROM jvm_memory_max WHERE $timeFilter AND area = 'nonheap' AND service =~ /^$service/ GROUP BY time($__interval),*) GROUP BY time($__interval) fill(previous)", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "nonheap" - } - ] - }, - { - "alias": "committed", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "jvm_memory_committed", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(val) FROM (SELECT mean(value) AS val FROM jvm_memory_committed WHERE $timeFilter AND area = 'nonheap' AND service =~ /^$service/ GROUP BY time($__interval),*) GROUP BY time($__interval) fill(previous)", - "rawQuery": true, - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "nonheap" - } - ] - }, - { - "alias": "used", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "jvm_memory_used", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(val) FROM (SELECT mean(value) AS val FROM jvm_memory_used WHERE $timeFilter AND area = 'nonheap' AND service =~ /^$service/ GROUP BY time($__interval),*) GROUP BY time($__interval) fill(previous)", - "rawQuery": true, - "refId": "C", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "nonheap" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Memory - Non-Heap", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "decbytes", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalInflux", - "fill": 4, - "gridPos": { - "h": 6, - "w": 6, - "x": 13, - "y": 21 - }, - "id": 60, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1587549200544, - "repeatPanelId": 41, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "config-server", - "value": "config-server" - } - }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "alias": "$tag_state", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "state" - ], - "type": "tag" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "jvm_threads_states", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"gauge\") FROM \"jvm_memory_max\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time(1m) fill(null)", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "# Threads by States", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": 0, - "format": "none", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": { - "Major GC": "#bf1b00" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalInflux", - "fill": 1, - "gridPos": { - "h": 6, - "w": 5, - "x": 19, - "y": 21 - }, - "id": 61, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": false, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 3, - "points": true, - "renderer": "flot", - "repeatIteration": 1587549200544, - "repeatPanelId": 47, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "config-server", - "value": "config-server" - } - }, - "seriesOverrides": [ - { - "alias": "Minor GC" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "Minor GC", - "groupBy": [ - { - "params": [ - "1s" - ], - "type": "time" - } - ], - "hide": false, - "measurement": "jvm_gc_pause", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(\"counter\") FROM \"jvm_gc_pause\" WHERE (\"service\" =~ /^$service$/ AND \"action\" = 'end of minor GC') AND $timeFilter GROUP BY time($__interval) fill(none)", - "rawQuery": true, - "refId": "C", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "counter" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - }, - { - "params": [], - "type": "non_negative_difference" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "action", - "operator": "=", - "value": "end of minor GC" - } - ] - }, - { - "alias": "Major GC", - "groupBy": [ - { - "params": [ - "1s" - ], - "type": "time" - } - ], - "hide": false, - "measurement": "jvm_gc_pause", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(\"counter\") FROM \"jvm_gc_pause\" WHERE (\"service\" =~ /^$service$/ AND \"action\" = 'end of major GC') AND $timeFilter GROUP BY time($__interval) fill(none)", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "counter" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - }, - { - "params": [], - "type": "non_negative_difference" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "action", - "operator": "=", - "value": "end of major GC" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Garbage Collection Pauses", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "ms", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalInflux", - "format": "none", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 3, - "w": 3, - "x": 4, - "y": 24 - }, - "id": 62, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatDirection": "h", - "repeatIteration": 1587549200544, - "repeatPanelId": 12, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "config-server", - "value": "config-server" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [], - "measurement": "jvm_classes_unloaded", - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n |> range(start: -1m)\n |> filter(fn: (r) =>\n r._measurement == \"jvm_classes_unloaded\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"service\"])\n |> last()\n", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": "0.9,0.95", - "title": "Unloaded Classes", - "type": "singlestat", - "valueFontSize": "50%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "content": "----", - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 27 - }, - "id": 63, - "links": [], - "mode": "html", - "repeatIteration": 1587549200544, - "repeatPanelId": 51, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "config-server", - "value": "config-server" - } - }, - "title": "", - "transparent": true, - "type": "text" - }, - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 28 - }, - "id": 64, - "panels": [], - "repeat": null, - "repeatIteration": 1587549200544, - "repeatPanelId": 7, - "scopedVars": { - "service": { - "selected": false, - "text": "customers-service", - "value": "customers-service" - } - }, - "title": "$service", - "type": "row" - }, - { - "aliasColors": { - "process_cpu_usage ": "#badff4", - "system_cpu_usage ": "#1f78c1" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalInflux", - "fill": 2, - "gridPos": { - "h": 6, - "w": 7, - "x": 0, - "y": 29 - }, - "id": 65, - "interval": "5s", - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1587549200544, - "repeatPanelId": 11, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "customers-service", - "value": "customers-service" - } - }, - "seriesOverrides": [ - { - "alias": "System CPU Usage", - "color": "#1f78c1" - }, - { - "alias": "JVM CPU Usage", - "color": "#70dbed" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "System CPU Usage", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "linear" - ], - "type": "fill" - } - ], - "measurement": "system_cpu_usage", - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"process_cpu_usage\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "JVM CPU Usage", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "linear" - ], - "type": "fill" - } - ], - "measurement": "process_cpu_usage", - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"system_cpu_usage\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n", - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "CPU Usage", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": null, - "format": "percentunit", - "label": null, - "logBase": 1, - "max": "1.05", - "min": "0", - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalInflux", - "fill": 10, - "gridPos": { - "h": 6, - "w": 6, - "x": 7, - "y": 29 - }, - "id": 66, - "interval": "1s", - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1587549200544, - "repeatPanelId": 39, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "customers-service", - "value": "customers-service" - } - }, - "seriesOverrides": [ - { - "alias": "used", - "color": "#82b5d8" - }, - { - "alias": "committed", - "color": "#447ebc" - }, - { - "alias": "max", - "color": "#bf1b00", - "fill": 0, - "linewidth": 4 - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "max", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "jvm_memory_max", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(val) FROM (SELECT mean(value) AS val FROM jvm_memory_max WHERE $timeFilter AND area = 'heap' AND service =~ /^$service/ GROUP BY time($__interval),*) GROUP BY time($__interval) fill(linear)", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "heap" - } - ] - }, - { - "alias": "committed", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "jvm_memory_committed", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(val) FROM (SELECT mean(value) AS val FROM jvm_memory_committed WHERE $timeFilter AND area = 'heap' AND service =~ /^$service/ GROUP BY time($__interval),*) GROUP BY time($__interval) fill(linear)", - "rawQuery": true, - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "heap" - } - ] - }, - { - "alias": "used", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "jvm_memory_used", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(val) FROM (SELECT mean(value) AS val FROM jvm_memory_used WHERE $timeFilter AND area = 'heap' AND service =~ /^$service/ GROUP BY time($__interval),*) GROUP BY time($__interval) fill(linear)", - "rawQuery": true, - "refId": "C", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "heap" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Memory - Heap", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "decbytes", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": { - "daemon ": "#0a50a1", - "live-non-daemon ": "#82b5d8", - "non-daemon ": "#82b5d8", - "peak ": "#bf1b00" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalInflux", - "fill": 4, - "gridPos": { - "h": 6, - "w": 6, - "x": 13, - "y": 29 - }, - "id": 67, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 2, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1587549200544, - "repeatPanelId": 42, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "customers-service", - "value": "customers-service" - } - }, - "seriesOverrides": [ - { - "alias": "peak live since JVM start", - "color": "#bf1b00", - "fill": 0, - "linewidth": 3 - }, - { - "alias": "total live" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "total live", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "previous" - ], - "type": "fill" - } - ], - "measurement": "jvm_threads_live", - "orderByTime": "ASC", - "policy": "default", - "query": "stackedPeak = () => {\npeak = from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_peak\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n\nlive = from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_live\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n \n\n \nreturn join(tables:{live:live, peak:peak},on:[\"_time\",\"_stop\",\"_start\", \"host\"])\n |> map(fn:(r) => ({\n _time: r._time,\n _value: (r._value_peak - r._value_live),\n _measurement: \"peak\"\n }))\n}\n\nstackedPeak()", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "live daemons", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "previous" - ], - "type": "fill" - } - ], - "measurement": "jvm_threads_daemon", - "orderByTime": "ASC", - "policy": "default", - "query": "stackedPeak = () => {\npeak = from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_peak\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n\nlive = from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_live\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n \n\n \nreturn join(tables:{live:live, peak:peak},on:[\"_time\",\"_stop\",\"_start\", \"host\"])\n |> map(fn:(r) => ({\n _time: r._time,\n _value: (r._value_peak - r._value_live),\n _measurement: \"peak\"\n }))\n}\n\nstackedPeak()", - "refId": "C", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "peak live since JVM start", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "previous" - ], - "type": "fill" - } - ], - "measurement": "jvm_threads_peak", - "orderByTime": "ASC", - "policy": "default", - "query": "stackedPeak = () => {\npeak = from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_peak\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n\nlive = from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_live\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n \n\n \nreturn join(tables:{live:live, peak:peak},on:[\"_time\",\"_stop\",\"_start\", \"host\"])\n |> map(fn:(r) => ({\n _time: r._time,\n _value: (r._value_peak - r._value_live),\n _measurement: \"peak\"\n }))\n}\n\nstackedPeak()", - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "max" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [ - { - "colorMode": "background6", - "fill": true, - "line": false, - "op": "time" - } - ], - "timeShift": null, - "title": "# Live Threads", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": 0, - "format": "none", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalInflux", - "fill": 1, - "gridPos": { - "h": 6, - "w": 5, - "x": 19, - "y": 29 - }, - "id": 68, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1587549200544, - "repeatPanelId": 46, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "customers-service", - "value": "customers-service" - } - }, - "seriesOverrides": [ - { - "alias": "Allocated Memory", - "bars": true, - "color": "#ef843c", - "lines": false - }, - { - "alias": "Promoted Memory", - "bars": true, - "color": "#629e51", - "lines": false - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "Live Data Size", - "groupBy": [ - { - "params": [ - "1s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "hide": false, - "measurement": "jvm_gc_live_data_size", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT \"gauge\" FROM \"jvm_gc_live_data_size\" WHERE (\"service\" =~ /^$service$/) ", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "Max Data Size", - "groupBy": [ - { - "params": [ - "1s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "hide": false, - "measurement": "jvm_gc_max_data_size", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT \"gauge\" FROM \"jvm_gc_live_data_size\" WHERE (\"service\" =~ /^$service$/) ", - "rawQuery": false, - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "Allocated Memory", - "groupBy": [ - { - "params": [ - "1s" - ], - "type": "time" - } - ], - "hide": false, - "measurement": "jvm_gc_memory_allocated", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(\"counter\") FROM \"jvm_gc_memory_allocated\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time($__interval)", - "rawQuery": true, - "refId": "D", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "counter" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - }, - { - "params": [], - "type": "non_negative_difference" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "Promoted Memory", - "groupBy": [ - { - "params": [ - "1s" - ], - "type": "time" - } - ], - "hide": false, - "measurement": "jvm_gc_memory_promoted", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(\"counter\") FROM \"jvm_gc_memory_promoted\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time($__interval)", - "rawQuery": true, - "refId": "F", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "counter" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - }, - { - "params": [], - "type": "non_negative_difference" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Garbage Collection Memory", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "decbytes", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "ms", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalInflux", - "format": "percentunit", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": true, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 6, - "w": 4, - "x": 0, - "y": 35 - }, - "id": 69, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1587549200544, - "repeatPanelId": 49, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "customers-service", - "value": "customers-service" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [], - "measurement": "process_cpu_usage", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": "0.8,0.9", - "title": "Current CPU Usage", - "type": "singlestat", - "valueFontSize": "70%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalInflux", - "format": "none", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 3, - "w": 3, - "x": 4, - "y": 35 - }, - "id": 70, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeat": null, - "repeatDirection": "h", - "repeatIteration": 1587549200544, - "repeatPanelId": 4, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "customers-service", - "value": "customers-service" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [], - "measurement": "jvm_classes_loaded", - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n |> range(start: -1m)\n |> filter(fn: (r) =>\n r._measurement == \"jvm_classes_loaded\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"service\"])\n |> last()\n", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": "0.9,0.95", - "title": "Loaded Classes", - "type": "singlestat", - "valueFontSize": "50%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalInflux", - "fill": 10, - "gridPos": { - "h": 6, - "w": 6, - "x": 7, - "y": 35 - }, - "id": 71, - "interval": "1s", - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1587549200544, - "repeatPanelId": 40, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "customers-service", - "value": "customers-service" - } - }, - "seriesOverrides": [ - { - "alias": "used", - "color": "#82b5d8" - }, - { - "alias": "committed", - "color": "#447ebc" - }, - { - "alias": "max", - "color": "#bf1b00", - "fill": 0, - "linewidth": 4 - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "max", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "jvm_memory_max", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(val) FROM (SELECT mean(value) AS val FROM jvm_memory_max WHERE $timeFilter AND area = 'nonheap' AND service =~ /^$service/ GROUP BY time($__interval),*) GROUP BY time($__interval) fill(previous)", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "nonheap" - } - ] - }, - { - "alias": "committed", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "jvm_memory_committed", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(val) FROM (SELECT mean(value) AS val FROM jvm_memory_committed WHERE $timeFilter AND area = 'nonheap' AND service =~ /^$service/ GROUP BY time($__interval),*) GROUP BY time($__interval) fill(previous)", - "rawQuery": true, - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "nonheap" - } - ] - }, - { - "alias": "used", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "jvm_memory_used", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(val) FROM (SELECT mean(value) AS val FROM jvm_memory_used WHERE $timeFilter AND area = 'nonheap' AND service =~ /^$service/ GROUP BY time($__interval),*) GROUP BY time($__interval) fill(previous)", - "rawQuery": true, - "refId": "C", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "nonheap" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Memory - Non-Heap", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "decbytes", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalInflux", - "fill": 4, - "gridPos": { - "h": 6, - "w": 6, - "x": 13, - "y": 35 - }, - "id": 72, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1587549200544, - "repeatPanelId": 41, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "customers-service", - "value": "customers-service" - } - }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "alias": "$tag_state", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "state" - ], - "type": "tag" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "jvm_threads_states", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"gauge\") FROM \"jvm_memory_max\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time(1m) fill(null)", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "# Threads by States", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": 0, - "format": "none", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": { - "Major GC": "#bf1b00" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalInflux", - "fill": 1, - "gridPos": { - "h": 6, - "w": 5, - "x": 19, - "y": 35 - }, - "id": 73, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": false, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 3, - "points": true, - "renderer": "flot", - "repeatIteration": 1587549200544, - "repeatPanelId": 47, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "customers-service", - "value": "customers-service" - } - }, - "seriesOverrides": [ - { - "alias": "Minor GC" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "Minor GC", - "groupBy": [ - { - "params": [ - "1s" - ], - "type": "time" - } - ], - "hide": false, - "measurement": "jvm_gc_pause", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(\"counter\") FROM \"jvm_gc_pause\" WHERE (\"service\" =~ /^$service$/ AND \"action\" = 'end of minor GC') AND $timeFilter GROUP BY time($__interval) fill(none)", - "rawQuery": true, - "refId": "C", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "counter" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - }, - { - "params": [], - "type": "non_negative_difference" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "action", - "operator": "=", - "value": "end of minor GC" - } - ] - }, - { - "alias": "Major GC", - "groupBy": [ - { - "params": [ - "1s" - ], - "type": "time" - } - ], - "hide": false, - "measurement": "jvm_gc_pause", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(\"counter\") FROM \"jvm_gc_pause\" WHERE (\"service\" =~ /^$service$/ AND \"action\" = 'end of major GC') AND $timeFilter GROUP BY time($__interval) fill(none)", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "counter" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - }, - { - "params": [], - "type": "non_negative_difference" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "action", - "operator": "=", - "value": "end of major GC" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Garbage Collection Pauses", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "ms", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalInflux", - "format": "none", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 3, - "w": 3, - "x": 4, - "y": 38 - }, - "id": 74, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatDirection": "h", - "repeatIteration": 1587549200544, - "repeatPanelId": 12, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "customers-service", - "value": "customers-service" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [], - "measurement": "jvm_classes_unloaded", - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n |> range(start: -1m)\n |> filter(fn: (r) =>\n r._measurement == \"jvm_classes_unloaded\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"service\"])\n |> last()\n", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": "0.9,0.95", - "title": "Unloaded Classes", - "type": "singlestat", - "valueFontSize": "50%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "content": "----", - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 41 - }, - "id": 75, - "links": [], - "mode": "html", - "repeatIteration": 1587549200544, - "repeatPanelId": 51, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "customers-service", - "value": "customers-service" - } - }, - "title": "", - "transparent": true, - "type": "text" - }, - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 42 - }, - "id": 76, - "panels": [], - "repeat": null, - "repeatIteration": 1587549200544, - "repeatPanelId": 7, - "scopedVars": { - "service": { - "selected": false, - "text": "discovery-server", - "value": "discovery-server" - } - }, - "title": "$service", - "type": "row" - }, - { - "aliasColors": { - "process_cpu_usage ": "#badff4", - "system_cpu_usage ": "#1f78c1" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalInflux", - "fill": 2, - "gridPos": { - "h": 6, - "w": 7, - "x": 0, - "y": 43 - }, - "id": 77, - "interval": "5s", - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1587549200544, - "repeatPanelId": 11, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "discovery-server", - "value": "discovery-server" - } - }, - "seriesOverrides": [ - { - "alias": "System CPU Usage", - "color": "#1f78c1" - }, - { - "alias": "JVM CPU Usage", - "color": "#70dbed" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "System CPU Usage", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "linear" - ], - "type": "fill" - } - ], - "measurement": "system_cpu_usage", - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"process_cpu_usage\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "JVM CPU Usage", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "linear" - ], - "type": "fill" - } - ], - "measurement": "process_cpu_usage", - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"system_cpu_usage\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n", - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "CPU Usage", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": null, - "format": "percentunit", - "label": null, - "logBase": 1, - "max": "1.05", - "min": "0", - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalInflux", - "fill": 10, - "gridPos": { - "h": 6, - "w": 6, - "x": 7, - "y": 43 - }, - "id": 78, - "interval": "1s", - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1587549200544, - "repeatPanelId": 39, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "discovery-server", - "value": "discovery-server" - } - }, - "seriesOverrides": [ - { - "alias": "used", - "color": "#82b5d8" - }, - { - "alias": "committed", - "color": "#447ebc" - }, - { - "alias": "max", - "color": "#bf1b00", - "fill": 0, - "linewidth": 4 - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "max", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "jvm_memory_max", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(val) FROM (SELECT mean(value) AS val FROM jvm_memory_max WHERE $timeFilter AND area = 'heap' AND service =~ /^$service/ GROUP BY time($__interval),*) GROUP BY time($__interval) fill(linear)", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "heap" - } - ] - }, - { - "alias": "committed", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "jvm_memory_committed", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(val) FROM (SELECT mean(value) AS val FROM jvm_memory_committed WHERE $timeFilter AND area = 'heap' AND service =~ /^$service/ GROUP BY time($__interval),*) GROUP BY time($__interval) fill(linear)", - "rawQuery": true, - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "heap" - } - ] - }, - { - "alias": "used", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "jvm_memory_used", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(val) FROM (SELECT mean(value) AS val FROM jvm_memory_used WHERE $timeFilter AND area = 'heap' AND service =~ /^$service/ GROUP BY time($__interval),*) GROUP BY time($__interval) fill(linear)", - "rawQuery": true, - "refId": "C", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "heap" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Memory - Heap", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "decbytes", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": { - "daemon ": "#0a50a1", - "live-non-daemon ": "#82b5d8", - "non-daemon ": "#82b5d8", - "peak ": "#bf1b00" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalInflux", - "fill": 4, - "gridPos": { - "h": 6, - "w": 6, - "x": 13, - "y": 43 - }, - "id": 79, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 2, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1587549200544, - "repeatPanelId": 42, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "discovery-server", - "value": "discovery-server" - } - }, - "seriesOverrides": [ - { - "alias": "peak live since JVM start", - "color": "#bf1b00", - "fill": 0, - "linewidth": 3 - }, - { - "alias": "total live" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "total live", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "previous" - ], - "type": "fill" - } - ], - "measurement": "jvm_threads_live", - "orderByTime": "ASC", - "policy": "default", - "query": "stackedPeak = () => {\npeak = from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_peak\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n\nlive = from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_live\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n \n\n \nreturn join(tables:{live:live, peak:peak},on:[\"_time\",\"_stop\",\"_start\", \"host\"])\n |> map(fn:(r) => ({\n _time: r._time,\n _value: (r._value_peak - r._value_live),\n _measurement: \"peak\"\n }))\n}\n\nstackedPeak()", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "live daemons", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "previous" - ], - "type": "fill" - } - ], - "measurement": "jvm_threads_daemon", - "orderByTime": "ASC", - "policy": "default", - "query": "stackedPeak = () => {\npeak = from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_peak\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n\nlive = from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_live\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n \n\n \nreturn join(tables:{live:live, peak:peak},on:[\"_time\",\"_stop\",\"_start\", \"host\"])\n |> map(fn:(r) => ({\n _time: r._time,\n _value: (r._value_peak - r._value_live),\n _measurement: \"peak\"\n }))\n}\n\nstackedPeak()", - "refId": "C", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "peak live since JVM start", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "previous" - ], - "type": "fill" - } - ], - "measurement": "jvm_threads_peak", - "orderByTime": "ASC", - "policy": "default", - "query": "stackedPeak = () => {\npeak = from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_peak\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n\nlive = from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_live\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n \n\n \nreturn join(tables:{live:live, peak:peak},on:[\"_time\",\"_stop\",\"_start\", \"host\"])\n |> map(fn:(r) => ({\n _time: r._time,\n _value: (r._value_peak - r._value_live),\n _measurement: \"peak\"\n }))\n}\n\nstackedPeak()", - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "max" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [ - { - "colorMode": "background6", - "fill": true, - "line": false, - "op": "time" - } - ], - "timeShift": null, - "title": "# Live Threads", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": 0, - "format": "none", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalInflux", - "fill": 1, - "gridPos": { - "h": 6, - "w": 5, - "x": 19, - "y": 43 - }, - "id": 80, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1587549200544, - "repeatPanelId": 46, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "discovery-server", - "value": "discovery-server" - } - }, - "seriesOverrides": [ - { - "alias": "Allocated Memory", - "bars": true, - "color": "#ef843c", - "lines": false - }, - { - "alias": "Promoted Memory", - "bars": true, - "color": "#629e51", - "lines": false - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "Live Data Size", - "groupBy": [ - { - "params": [ - "1s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "hide": false, - "measurement": "jvm_gc_live_data_size", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT \"gauge\" FROM \"jvm_gc_live_data_size\" WHERE (\"service\" =~ /^$service$/) ", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "Max Data Size", - "groupBy": [ - { - "params": [ - "1s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "hide": false, - "measurement": "jvm_gc_max_data_size", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT \"gauge\" FROM \"jvm_gc_live_data_size\" WHERE (\"service\" =~ /^$service$/) ", - "rawQuery": false, - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "Allocated Memory", - "groupBy": [ - { - "params": [ - "1s" - ], - "type": "time" - } - ], - "hide": false, - "measurement": "jvm_gc_memory_allocated", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(\"counter\") FROM \"jvm_gc_memory_allocated\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time($__interval)", - "rawQuery": true, - "refId": "D", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "counter" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - }, - { - "params": [], - "type": "non_negative_difference" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "Promoted Memory", - "groupBy": [ - { - "params": [ - "1s" - ], - "type": "time" - } - ], - "hide": false, - "measurement": "jvm_gc_memory_promoted", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(\"counter\") FROM \"jvm_gc_memory_promoted\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time($__interval)", - "rawQuery": true, - "refId": "F", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "counter" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - }, - { - "params": [], - "type": "non_negative_difference" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Garbage Collection Memory", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "decbytes", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "ms", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalInflux", - "format": "percentunit", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": true, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 6, - "w": 4, - "x": 0, - "y": 49 - }, - "id": 81, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1587549200544, - "repeatPanelId": 49, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "discovery-server", - "value": "discovery-server" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [], - "measurement": "process_cpu_usage", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": "0.8,0.9", - "title": "Current CPU Usage", - "type": "singlestat", - "valueFontSize": "70%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalInflux", - "format": "none", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 3, - "w": 3, - "x": 4, - "y": 49 - }, - "id": 82, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeat": null, - "repeatDirection": "h", - "repeatIteration": 1587549200544, - "repeatPanelId": 4, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "discovery-server", - "value": "discovery-server" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [], - "measurement": "jvm_classes_loaded", - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n |> range(start: -1m)\n |> filter(fn: (r) =>\n r._measurement == \"jvm_classes_loaded\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"service\"])\n |> last()\n", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": "0.9,0.95", - "title": "Loaded Classes", - "type": "singlestat", - "valueFontSize": "50%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalInflux", - "fill": 10, - "gridPos": { - "h": 6, - "w": 6, - "x": 7, - "y": 49 - }, - "id": 83, - "interval": "1s", - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1587549200544, - "repeatPanelId": 40, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "discovery-server", - "value": "discovery-server" - } - }, - "seriesOverrides": [ - { - "alias": "used", - "color": "#82b5d8" - }, - { - "alias": "committed", - "color": "#447ebc" - }, - { - "alias": "max", - "color": "#bf1b00", - "fill": 0, - "linewidth": 4 - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "max", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "jvm_memory_max", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(val) FROM (SELECT mean(value) AS val FROM jvm_memory_max WHERE $timeFilter AND area = 'nonheap' AND service =~ /^$service/ GROUP BY time($__interval),*) GROUP BY time($__interval) fill(previous)", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "nonheap" - } - ] - }, - { - "alias": "committed", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "jvm_memory_committed", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(val) FROM (SELECT mean(value) AS val FROM jvm_memory_committed WHERE $timeFilter AND area = 'nonheap' AND service =~ /^$service/ GROUP BY time($__interval),*) GROUP BY time($__interval) fill(previous)", - "rawQuery": true, - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "nonheap" - } - ] - }, - { - "alias": "used", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "jvm_memory_used", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(val) FROM (SELECT mean(value) AS val FROM jvm_memory_used WHERE $timeFilter AND area = 'nonheap' AND service =~ /^$service/ GROUP BY time($__interval),*) GROUP BY time($__interval) fill(previous)", - "rawQuery": true, - "refId": "C", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "nonheap" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Memory - Non-Heap", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "decbytes", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalInflux", - "fill": 4, - "gridPos": { - "h": 6, - "w": 6, - "x": 13, - "y": 49 - }, - "id": 84, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1587549200544, - "repeatPanelId": 41, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "discovery-server", - "value": "discovery-server" - } - }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "alias": "$tag_state", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "state" - ], - "type": "tag" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "jvm_threads_states", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"gauge\") FROM \"jvm_memory_max\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time(1m) fill(null)", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "# Threads by States", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": 0, - "format": "none", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": { - "Major GC": "#bf1b00" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalInflux", - "fill": 1, - "gridPos": { - "h": 6, - "w": 5, - "x": 19, - "y": 49 - }, - "id": 85, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": false, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 3, - "points": true, - "renderer": "flot", - "repeatIteration": 1587549200544, - "repeatPanelId": 47, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "discovery-server", - "value": "discovery-server" - } - }, - "seriesOverrides": [ - { - "alias": "Minor GC" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "Minor GC", - "groupBy": [ - { - "params": [ - "1s" - ], - "type": "time" - } - ], - "hide": false, - "measurement": "jvm_gc_pause", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(\"counter\") FROM \"jvm_gc_pause\" WHERE (\"service\" =~ /^$service$/ AND \"action\" = 'end of minor GC') AND $timeFilter GROUP BY time($__interval) fill(none)", - "rawQuery": true, - "refId": "C", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "counter" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - }, - { - "params": [], - "type": "non_negative_difference" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "action", - "operator": "=", - "value": "end of minor GC" - } - ] - }, - { - "alias": "Major GC", - "groupBy": [ - { - "params": [ - "1s" - ], - "type": "time" - } - ], - "hide": false, - "measurement": "jvm_gc_pause", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(\"counter\") FROM \"jvm_gc_pause\" WHERE (\"service\" =~ /^$service$/ AND \"action\" = 'end of major GC') AND $timeFilter GROUP BY time($__interval) fill(none)", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "counter" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - }, - { - "params": [], - "type": "non_negative_difference" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "action", - "operator": "=", - "value": "end of major GC" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Garbage Collection Pauses", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "ms", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalInflux", - "format": "none", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 3, - "w": 3, - "x": 4, - "y": 52 - }, - "id": 86, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatDirection": "h", - "repeatIteration": 1587549200544, - "repeatPanelId": 12, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "discovery-server", - "value": "discovery-server" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [], - "measurement": "jvm_classes_unloaded", - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n |> range(start: -1m)\n |> filter(fn: (r) =>\n r._measurement == \"jvm_classes_unloaded\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"service\"])\n |> last()\n", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": "0.9,0.95", - "title": "Unloaded Classes", - "type": "singlestat", - "valueFontSize": "50%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "content": "----", - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 55 - }, - "id": 87, - "links": [], - "mode": "html", - "repeatIteration": 1587549200544, - "repeatPanelId": 51, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "discovery-server", - "value": "discovery-server" - } - }, - "title": "", - "transparent": true, - "type": "text" - }, - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 56 - }, - "id": 88, - "panels": [], - "repeat": null, - "repeatIteration": 1587549200544, - "repeatPanelId": 7, - "scopedVars": { - "service": { - "selected": false, - "text": "vets-service", - "value": "vets-service" - } - }, - "title": "$service", - "type": "row" - }, - { - "aliasColors": { - "process_cpu_usage ": "#badff4", - "system_cpu_usage ": "#1f78c1" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalInflux", - "fill": 2, - "gridPos": { - "h": 6, - "w": 7, - "x": 0, - "y": 57 - }, - "id": 89, - "interval": "5s", - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1587549200544, - "repeatPanelId": 11, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "vets-service", - "value": "vets-service" - } - }, - "seriesOverrides": [ - { - "alias": "System CPU Usage", - "color": "#1f78c1" - }, - { - "alias": "JVM CPU Usage", - "color": "#70dbed" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "System CPU Usage", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "linear" - ], - "type": "fill" - } - ], - "measurement": "system_cpu_usage", - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"process_cpu_usage\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "JVM CPU Usage", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "linear" - ], - "type": "fill" - } - ], - "measurement": "process_cpu_usage", - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"system_cpu_usage\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n", - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "CPU Usage", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": null, - "format": "percentunit", - "label": null, - "logBase": 1, - "max": "1.05", - "min": "0", - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalInflux", - "fill": 10, - "gridPos": { - "h": 6, - "w": 6, - "x": 7, - "y": 57 - }, - "id": 90, - "interval": "1s", - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1587549200544, - "repeatPanelId": 39, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "vets-service", - "value": "vets-service" - } - }, - "seriesOverrides": [ - { - "alias": "used", - "color": "#82b5d8" - }, - { - "alias": "committed", - "color": "#447ebc" - }, - { - "alias": "max", - "color": "#bf1b00", - "fill": 0, - "linewidth": 4 - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "max", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "jvm_memory_max", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(val) FROM (SELECT mean(value) AS val FROM jvm_memory_max WHERE $timeFilter AND area = 'heap' AND service =~ /^$service/ GROUP BY time($__interval),*) GROUP BY time($__interval) fill(linear)", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "heap" - } - ] - }, - { - "alias": "committed", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "jvm_memory_committed", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(val) FROM (SELECT mean(value) AS val FROM jvm_memory_committed WHERE $timeFilter AND area = 'heap' AND service =~ /^$service/ GROUP BY time($__interval),*) GROUP BY time($__interval) fill(linear)", - "rawQuery": true, - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "heap" - } - ] - }, - { - "alias": "used", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "jvm_memory_used", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(val) FROM (SELECT mean(value) AS val FROM jvm_memory_used WHERE $timeFilter AND area = 'heap' AND service =~ /^$service/ GROUP BY time($__interval),*) GROUP BY time($__interval) fill(linear)", - "rawQuery": true, - "refId": "C", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "heap" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Memory - Heap", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "decbytes", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": { - "daemon ": "#0a50a1", - "live-non-daemon ": "#82b5d8", - "non-daemon ": "#82b5d8", - "peak ": "#bf1b00" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalInflux", - "fill": 4, - "gridPos": { - "h": 6, - "w": 6, - "x": 13, - "y": 57 - }, - "id": 91, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 2, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1587549200544, - "repeatPanelId": 42, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "vets-service", - "value": "vets-service" - } - }, - "seriesOverrides": [ - { - "alias": "peak live since JVM start", - "color": "#bf1b00", - "fill": 0, - "linewidth": 3 - }, - { - "alias": "total live" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "total live", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "previous" - ], - "type": "fill" - } - ], - "measurement": "jvm_threads_live", - "orderByTime": "ASC", - "policy": "default", - "query": "stackedPeak = () => {\npeak = from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_peak\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n\nlive = from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_live\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n \n\n \nreturn join(tables:{live:live, peak:peak},on:[\"_time\",\"_stop\",\"_start\", \"host\"])\n |> map(fn:(r) => ({\n _time: r._time,\n _value: (r._value_peak - r._value_live),\n _measurement: \"peak\"\n }))\n}\n\nstackedPeak()", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "live daemons", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "previous" - ], - "type": "fill" - } - ], - "measurement": "jvm_threads_daemon", - "orderByTime": "ASC", - "policy": "default", - "query": "stackedPeak = () => {\npeak = from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_peak\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n\nlive = from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_live\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n \n\n \nreturn join(tables:{live:live, peak:peak},on:[\"_time\",\"_stop\",\"_start\", \"host\"])\n |> map(fn:(r) => ({\n _time: r._time,\n _value: (r._value_peak - r._value_live),\n _measurement: \"peak\"\n }))\n}\n\nstackedPeak()", - "refId": "C", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "peak live since JVM start", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "previous" - ], - "type": "fill" - } - ], - "measurement": "jvm_threads_peak", - "orderByTime": "ASC", - "policy": "default", - "query": "stackedPeak = () => {\npeak = from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_peak\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n\nlive = from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_live\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n \n\n \nreturn join(tables:{live:live, peak:peak},on:[\"_time\",\"_stop\",\"_start\", \"host\"])\n |> map(fn:(r) => ({\n _time: r._time,\n _value: (r._value_peak - r._value_live),\n _measurement: \"peak\"\n }))\n}\n\nstackedPeak()", - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "max" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [ - { - "colorMode": "background6", - "fill": true, - "line": false, - "op": "time" - } - ], - "timeShift": null, - "title": "# Live Threads", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": 0, - "format": "none", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalInflux", - "fill": 1, - "gridPos": { - "h": 6, - "w": 5, - "x": 19, - "y": 57 - }, - "id": 92, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1587549200544, - "repeatPanelId": 46, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "vets-service", - "value": "vets-service" - } - }, - "seriesOverrides": [ - { - "alias": "Allocated Memory", - "bars": true, - "color": "#ef843c", - "lines": false - }, - { - "alias": "Promoted Memory", - "bars": true, - "color": "#629e51", - "lines": false - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "Live Data Size", - "groupBy": [ - { - "params": [ - "1s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "hide": false, - "measurement": "jvm_gc_live_data_size", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT \"gauge\" FROM \"jvm_gc_live_data_size\" WHERE (\"service\" =~ /^$service$/) ", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "Max Data Size", - "groupBy": [ - { - "params": [ - "1s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "hide": false, - "measurement": "jvm_gc_max_data_size", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT \"gauge\" FROM \"jvm_gc_live_data_size\" WHERE (\"service\" =~ /^$service$/) ", - "rawQuery": false, - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "Allocated Memory", - "groupBy": [ - { - "params": [ - "1s" - ], - "type": "time" - } - ], - "hide": false, - "measurement": "jvm_gc_memory_allocated", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(\"counter\") FROM \"jvm_gc_memory_allocated\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time($__interval)", - "rawQuery": true, - "refId": "D", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "counter" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - }, - { - "params": [], - "type": "non_negative_difference" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "Promoted Memory", - "groupBy": [ - { - "params": [ - "1s" - ], - "type": "time" - } - ], - "hide": false, - "measurement": "jvm_gc_memory_promoted", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(\"counter\") FROM \"jvm_gc_memory_promoted\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time($__interval)", - "rawQuery": true, - "refId": "F", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "counter" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - }, - { - "params": [], - "type": "non_negative_difference" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Garbage Collection Memory", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "decbytes", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "ms", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalInflux", - "format": "percentunit", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": true, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 6, - "w": 4, - "x": 0, - "y": 63 - }, - "id": 93, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1587549200544, - "repeatPanelId": 49, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "vets-service", - "value": "vets-service" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [], - "measurement": "process_cpu_usage", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": "0.8,0.9", - "title": "Current CPU Usage", - "type": "singlestat", - "valueFontSize": "70%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalInflux", - "format": "none", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 3, - "w": 3, - "x": 4, - "y": 63 - }, - "id": 94, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeat": null, - "repeatDirection": "h", - "repeatIteration": 1587549200544, - "repeatPanelId": 4, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "vets-service", - "value": "vets-service" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [], - "measurement": "jvm_classes_loaded", - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n |> range(start: -1m)\n |> filter(fn: (r) =>\n r._measurement == \"jvm_classes_loaded\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"service\"])\n |> last()\n", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": "0.9,0.95", - "title": "Loaded Classes", - "type": "singlestat", - "valueFontSize": "50%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalInflux", - "fill": 10, - "gridPos": { - "h": 6, - "w": 6, - "x": 7, - "y": 63 - }, - "id": 95, - "interval": "1s", - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1587549200544, - "repeatPanelId": 40, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "vets-service", - "value": "vets-service" - } - }, - "seriesOverrides": [ - { - "alias": "used", - "color": "#82b5d8" - }, - { - "alias": "committed", - "color": "#447ebc" - }, - { - "alias": "max", - "color": "#bf1b00", - "fill": 0, - "linewidth": 4 - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "max", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "jvm_memory_max", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(val) FROM (SELECT mean(value) AS val FROM jvm_memory_max WHERE $timeFilter AND area = 'nonheap' AND service =~ /^$service/ GROUP BY time($__interval),*) GROUP BY time($__interval) fill(previous)", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "nonheap" - } - ] - }, - { - "alias": "committed", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "jvm_memory_committed", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(val) FROM (SELECT mean(value) AS val FROM jvm_memory_committed WHERE $timeFilter AND area = 'nonheap' AND service =~ /^$service/ GROUP BY time($__interval),*) GROUP BY time($__interval) fill(previous)", - "rawQuery": true, - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "nonheap" - } - ] - }, - { - "alias": "used", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "jvm_memory_used", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(val) FROM (SELECT mean(value) AS val FROM jvm_memory_used WHERE $timeFilter AND area = 'nonheap' AND service =~ /^$service/ GROUP BY time($__interval),*) GROUP BY time($__interval) fill(previous)", - "rawQuery": true, - "refId": "C", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "nonheap" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Memory - Non-Heap", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "decbytes", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalInflux", - "fill": 4, - "gridPos": { - "h": 6, - "w": 6, - "x": 13, - "y": 63 - }, - "id": 96, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1587549200544, - "repeatPanelId": 41, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "vets-service", - "value": "vets-service" - } - }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "alias": "$tag_state", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "state" - ], - "type": "tag" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "jvm_threads_states", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"gauge\") FROM \"jvm_memory_max\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time(1m) fill(null)", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "# Threads by States", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": 0, - "format": "none", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": { - "Major GC": "#bf1b00" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalInflux", - "fill": 1, - "gridPos": { - "h": 6, - "w": 5, - "x": 19, - "y": 63 - }, - "id": 97, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": false, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 3, - "points": true, - "renderer": "flot", - "repeatIteration": 1587549200544, - "repeatPanelId": 47, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "vets-service", - "value": "vets-service" - } - }, - "seriesOverrides": [ - { - "alias": "Minor GC" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "Minor GC", - "groupBy": [ - { - "params": [ - "1s" - ], - "type": "time" - } - ], - "hide": false, - "measurement": "jvm_gc_pause", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(\"counter\") FROM \"jvm_gc_pause\" WHERE (\"service\" =~ /^$service$/ AND \"action\" = 'end of minor GC') AND $timeFilter GROUP BY time($__interval) fill(none)", - "rawQuery": true, - "refId": "C", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "counter" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - }, - { - "params": [], - "type": "non_negative_difference" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "action", - "operator": "=", - "value": "end of minor GC" - } - ] - }, - { - "alias": "Major GC", - "groupBy": [ - { - "params": [ - "1s" - ], - "type": "time" - } - ], - "hide": false, - "measurement": "jvm_gc_pause", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(\"counter\") FROM \"jvm_gc_pause\" WHERE (\"service\" =~ /^$service$/ AND \"action\" = 'end of major GC') AND $timeFilter GROUP BY time($__interval) fill(none)", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "counter" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - }, - { - "params": [], - "type": "non_negative_difference" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "action", - "operator": "=", - "value": "end of major GC" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Garbage Collection Pauses", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "ms", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalInflux", - "format": "none", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 3, - "w": 3, - "x": 4, - "y": 66 - }, - "id": 98, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatDirection": "h", - "repeatIteration": 1587549200544, - "repeatPanelId": 12, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "vets-service", - "value": "vets-service" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [], - "measurement": "jvm_classes_unloaded", - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n |> range(start: -1m)\n |> filter(fn: (r) =>\n r._measurement == \"jvm_classes_unloaded\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"service\"])\n |> last()\n", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": "0.9,0.95", - "title": "Unloaded Classes", - "type": "singlestat", - "valueFontSize": "50%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "content": "----", - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 69 - }, - "id": 99, - "links": [], - "mode": "html", - "repeatIteration": 1587549200544, - "repeatPanelId": 51, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "vets-service", - "value": "vets-service" - } - }, - "title": "", - "transparent": true, - "type": "text" - }, - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 70 - }, - "id": 100, - "panels": [], - "repeat": null, - "repeatIteration": 1587549200544, - "repeatPanelId": 7, - "scopedVars": { - "service": { - "selected": false, - "text": "visits-service", - "value": "visits-service" - } - }, - "title": "$service", - "type": "row" - }, - { - "aliasColors": { - "process_cpu_usage ": "#badff4", - "system_cpu_usage ": "#1f78c1" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalInflux", - "fill": 2, - "gridPos": { - "h": 6, - "w": 7, - "x": 0, - "y": 71 - }, - "id": 101, - "interval": "5s", - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1587549200544, - "repeatPanelId": 11, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "visits-service", - "value": "visits-service" - } - }, - "seriesOverrides": [ - { - "alias": "System CPU Usage", - "color": "#1f78c1" - }, - { - "alias": "JVM CPU Usage", - "color": "#70dbed" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "System CPU Usage", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "linear" - ], - "type": "fill" - } - ], - "measurement": "system_cpu_usage", - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"process_cpu_usage\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "JVM CPU Usage", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "linear" - ], - "type": "fill" - } - ], - "measurement": "process_cpu_usage", - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"system_cpu_usage\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n", - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "CPU Usage", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": null, - "format": "percentunit", - "label": null, - "logBase": 1, - "max": "1.05", - "min": "0", - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalInflux", - "fill": 10, - "gridPos": { - "h": 6, - "w": 6, - "x": 7, - "y": 71 - }, - "id": 102, - "interval": "1s", - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1587549200544, - "repeatPanelId": 39, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "visits-service", - "value": "visits-service" - } - }, - "seriesOverrides": [ - { - "alias": "used", - "color": "#82b5d8" - }, - { - "alias": "committed", - "color": "#447ebc" - }, - { - "alias": "max", - "color": "#bf1b00", - "fill": 0, - "linewidth": 4 - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "max", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "jvm_memory_max", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(val) FROM (SELECT mean(value) AS val FROM jvm_memory_max WHERE $timeFilter AND area = 'heap' AND service =~ /^$service/ GROUP BY time($__interval),*) GROUP BY time($__interval) fill(linear)", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "heap" - } - ] - }, - { - "alias": "committed", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "jvm_memory_committed", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(val) FROM (SELECT mean(value) AS val FROM jvm_memory_committed WHERE $timeFilter AND area = 'heap' AND service =~ /^$service/ GROUP BY time($__interval),*) GROUP BY time($__interval) fill(linear)", - "rawQuery": true, - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "heap" - } - ] - }, - { - "alias": "used", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "jvm_memory_used", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(val) FROM (SELECT mean(value) AS val FROM jvm_memory_used WHERE $timeFilter AND area = 'heap' AND service =~ /^$service/ GROUP BY time($__interval),*) GROUP BY time($__interval) fill(linear)", - "rawQuery": true, - "refId": "C", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "heap" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Memory - Heap", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "decbytes", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": { - "daemon ": "#0a50a1", - "live-non-daemon ": "#82b5d8", - "non-daemon ": "#82b5d8", - "peak ": "#bf1b00" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalInflux", - "fill": 4, - "gridPos": { - "h": 6, - "w": 6, - "x": 13, - "y": 71 - }, - "id": 103, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 2, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1587549200544, - "repeatPanelId": 42, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "visits-service", - "value": "visits-service" - } - }, - "seriesOverrides": [ - { - "alias": "peak live since JVM start", - "color": "#bf1b00", - "fill": 0, - "linewidth": 3 - }, - { - "alias": "total live" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "total live", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "previous" - ], - "type": "fill" - } - ], - "measurement": "jvm_threads_live", - "orderByTime": "ASC", - "policy": "default", - "query": "stackedPeak = () => {\npeak = from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_peak\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n\nlive = from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_live\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n \n\n \nreturn join(tables:{live:live, peak:peak},on:[\"_time\",\"_stop\",\"_start\", \"host\"])\n |> map(fn:(r) => ({\n _time: r._time,\n _value: (r._value_peak - r._value_live),\n _measurement: \"peak\"\n }))\n}\n\nstackedPeak()", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "live daemons", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "previous" - ], - "type": "fill" - } - ], - "measurement": "jvm_threads_daemon", - "orderByTime": "ASC", - "policy": "default", - "query": "stackedPeak = () => {\npeak = from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_peak\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n\nlive = from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_live\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n \n\n \nreturn join(tables:{live:live, peak:peak},on:[\"_time\",\"_stop\",\"_start\", \"host\"])\n |> map(fn:(r) => ({\n _time: r._time,\n _value: (r._value_peak - r._value_live),\n _measurement: \"peak\"\n }))\n}\n\nstackedPeak()", - "refId": "C", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "peak live since JVM start", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "previous" - ], - "type": "fill" - } - ], - "measurement": "jvm_threads_peak", - "orderByTime": "ASC", - "policy": "default", - "query": "stackedPeak = () => {\npeak = from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_peak\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n\nlive = from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_live\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n \n\n \nreturn join(tables:{live:live, peak:peak},on:[\"_time\",\"_stop\",\"_start\", \"host\"])\n |> map(fn:(r) => ({\n _time: r._time,\n _value: (r._value_peak - r._value_live),\n _measurement: \"peak\"\n }))\n}\n\nstackedPeak()", - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "max" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [ - { - "colorMode": "background6", - "fill": true, - "line": false, - "op": "time" - } - ], - "timeShift": null, - "title": "# Live Threads", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": 0, - "format": "none", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalInflux", - "fill": 1, - "gridPos": { - "h": 6, - "w": 5, - "x": 19, - "y": 71 - }, - "id": 104, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1587549200544, - "repeatPanelId": 46, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "visits-service", - "value": "visits-service" - } - }, - "seriesOverrides": [ - { - "alias": "Allocated Memory", - "bars": true, - "color": "#ef843c", - "lines": false - }, - { - "alias": "Promoted Memory", - "bars": true, - "color": "#629e51", - "lines": false - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "Live Data Size", - "groupBy": [ - { - "params": [ - "1s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "hide": false, - "measurement": "jvm_gc_live_data_size", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT \"gauge\" FROM \"jvm_gc_live_data_size\" WHERE (\"service\" =~ /^$service$/) ", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "Max Data Size", - "groupBy": [ - { - "params": [ - "1s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "hide": false, - "measurement": "jvm_gc_max_data_size", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT \"gauge\" FROM \"jvm_gc_live_data_size\" WHERE (\"service\" =~ /^$service$/) ", - "rawQuery": false, - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "Allocated Memory", - "groupBy": [ - { - "params": [ - "1s" - ], - "type": "time" - } - ], - "hide": false, - "measurement": "jvm_gc_memory_allocated", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(\"counter\") FROM \"jvm_gc_memory_allocated\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time($__interval)", - "rawQuery": true, - "refId": "D", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "counter" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - }, - { - "params": [], - "type": "non_negative_difference" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "Promoted Memory", - "groupBy": [ - { - "params": [ - "1s" - ], - "type": "time" - } - ], - "hide": false, - "measurement": "jvm_gc_memory_promoted", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(\"counter\") FROM \"jvm_gc_memory_promoted\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time($__interval)", - "rawQuery": true, - "refId": "F", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "counter" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - }, - { - "params": [], - "type": "non_negative_difference" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Garbage Collection Memory", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "decbytes", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "ms", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalInflux", - "format": "percentunit", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": true, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 6, - "w": 4, - "x": 0, - "y": 77 - }, - "id": 105, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1587549200544, - "repeatPanelId": 49, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "visits-service", - "value": "visits-service" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [], - "measurement": "process_cpu_usage", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": "0.8,0.9", - "title": "Current CPU Usage", - "type": "singlestat", - "valueFontSize": "70%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalInflux", - "format": "none", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 3, - "w": 3, - "x": 4, - "y": 77 - }, - "id": 106, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeat": null, - "repeatDirection": "h", - "repeatIteration": 1587549200544, - "repeatPanelId": 4, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "visits-service", - "value": "visits-service" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [], - "measurement": "jvm_classes_loaded", - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n |> range(start: -1m)\n |> filter(fn: (r) =>\n r._measurement == \"jvm_classes_loaded\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"service\"])\n |> last()\n", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": "0.9,0.95", - "title": "Loaded Classes", - "type": "singlestat", - "valueFontSize": "50%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalInflux", - "fill": 10, - "gridPos": { - "h": 6, - "w": 6, - "x": 7, - "y": 77 - }, - "id": 107, - "interval": "1s", - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1587549200544, - "repeatPanelId": 40, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "visits-service", - "value": "visits-service" - } - }, - "seriesOverrides": [ - { - "alias": "used", - "color": "#82b5d8" - }, - { - "alias": "committed", - "color": "#447ebc" - }, - { - "alias": "max", - "color": "#bf1b00", - "fill": 0, - "linewidth": 4 - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "max", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "jvm_memory_max", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(val) FROM (SELECT mean(value) AS val FROM jvm_memory_max WHERE $timeFilter AND area = 'nonheap' AND service =~ /^$service/ GROUP BY time($__interval),*) GROUP BY time($__interval) fill(previous)", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "nonheap" - } - ] - }, - { - "alias": "committed", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "jvm_memory_committed", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(val) FROM (SELECT mean(value) AS val FROM jvm_memory_committed WHERE $timeFilter AND area = 'nonheap' AND service =~ /^$service/ GROUP BY time($__interval),*) GROUP BY time($__interval) fill(previous)", - "rawQuery": true, - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "nonheap" - } - ] - }, - { - "alias": "used", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "jvm_memory_used", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(val) FROM (SELECT mean(value) AS val FROM jvm_memory_used WHERE $timeFilter AND area = 'nonheap' AND service =~ /^$service/ GROUP BY time($__interval),*) GROUP BY time($__interval) fill(previous)", - "rawQuery": true, - "refId": "C", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "nonheap" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Memory - Non-Heap", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "decbytes", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalInflux", - "fill": 4, - "gridPos": { - "h": 6, - "w": 6, - "x": 13, - "y": 77 - }, - "id": 108, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1587549200544, - "repeatPanelId": 41, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "visits-service", - "value": "visits-service" - } - }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "alias": "$tag_state", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "state" - ], - "type": "tag" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "jvm_threads_states", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"gauge\") FROM \"jvm_memory_max\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time(1m) fill(null)", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "# Threads by States", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": 0, - "format": "none", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": { - "Major GC": "#bf1b00" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalInflux", - "fill": 1, - "gridPos": { - "h": 6, - "w": 5, - "x": 19, - "y": 77 - }, - "id": 109, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": false, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 3, - "points": true, - "renderer": "flot", - "repeatIteration": 1587549200544, - "repeatPanelId": 47, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "visits-service", - "value": "visits-service" - } - }, - "seriesOverrides": [ - { - "alias": "Minor GC" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "Minor GC", - "groupBy": [ - { - "params": [ - "1s" - ], - "type": "time" - } - ], - "hide": false, - "measurement": "jvm_gc_pause", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(\"counter\") FROM \"jvm_gc_pause\" WHERE (\"service\" =~ /^$service$/ AND \"action\" = 'end of minor GC') AND $timeFilter GROUP BY time($__interval) fill(none)", - "rawQuery": true, - "refId": "C", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "counter" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - }, - { - "params": [], - "type": "non_negative_difference" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "action", - "operator": "=", - "value": "end of minor GC" - } - ] - }, - { - "alias": "Major GC", - "groupBy": [ - { - "params": [ - "1s" - ], - "type": "time" - } - ], - "hide": false, - "measurement": "jvm_gc_pause", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(\"counter\") FROM \"jvm_gc_pause\" WHERE (\"service\" =~ /^$service$/ AND \"action\" = 'end of major GC') AND $timeFilter GROUP BY time($__interval) fill(none)", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "counter" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - }, - { - "params": [], - "type": "non_negative_difference" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "action", - "operator": "=", - "value": "end of major GC" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Garbage Collection Pauses", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "ms", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalInflux", - "format": "none", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 3, - "w": 3, - "x": 4, - "y": 80 - }, - "id": 110, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatDirection": "h", - "repeatIteration": 1587549200544, - "repeatPanelId": 12, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "visits-service", - "value": "visits-service" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [], - "measurement": "jvm_classes_unloaded", - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n |> range(start: -1m)\n |> filter(fn: (r) =>\n r._measurement == \"jvm_classes_unloaded\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"service\"])\n |> last()\n", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": "0.9,0.95", - "title": "Unloaded Classes", - "type": "singlestat", - "valueFontSize": "50%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "content": "----", - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 83 - }, - "id": 111, - "links": [], - "mode": "html", - "repeatIteration": 1587549200544, - "repeatPanelId": 51, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "visits-service", - "value": "visits-service" - } - }, - "title": "", - "transparent": true, - "type": "text" - } - ], - "refresh": "30s", - "schemaVersion": 16, - "style": "dark", - "tags": [], - "templating": { - "list": [ - { - "allValue": null, - "current": { - "tags": [], - "text": "All", - "value": [ - "$__all" - ] - }, - "datasource": "LocalInflux", - "definition": "SHOW TAG VALUES WITH KEY=\"service\"", - "hide": 0, - "includeAll": true, - "label": null, - "multi": true, - "name": "service", - "options": [], - "query": "SHOW TAG VALUES WITH KEY=\"service\"", - "refresh": 2, - "regex": "", - "skipUrlSync": false, - "sort": 0, - "tagValuesQuery": "", - "tags": [], - "tagsQuery": "", - "type": "query", - "useTags": false - } - ] - }, - "time": { - "from": "now-1h", - "to": "now" - }, - "timepicker": { - "refresh_intervals": [ - "5s", - "10s", - "30s", - "1m", - "5m", - "15m", - "30m", - "1h", - "2h", - "1d" - ], - "time_options": [ - "5m", - "15m", - "1h", - "6h", - "12h", - "24h", - "2d", - "7d", - "30d" - ] - }, - "timezone": "", - "title": "JVM Metrics", - "uid": "jaEIHn8ik", - "version": 1 -} \ No newline at end of file diff --git a/inspectit-ocelot-demo/grafana/provisioning/influxdb/dashboards/agent/self-monitoring.json b/inspectit-ocelot-demo/grafana/provisioning/influxdb/dashboards/agent/self-monitoring.json deleted file mode 100644 index 508defe277..0000000000 --- a/inspectit-ocelot-demo/grafana/provisioning/influxdb/dashboards/agent/self-monitoring.json +++ /dev/null @@ -1,7068 +0,0 @@ -{ - "annotations": { - "list": [ - { - "$$hashKey": "object:10", - "builtIn": 1, - "datasource": "-- Grafana --", - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "type": "dashboard" - } - ] - }, - "editable": true, - "gnetId": null, - "graphTooltip": 0, - "id": 6, - "iteration": 1588836303607, - "links": [], - "panels": [ - { - "collapsed": false, - "datasource": null, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 0 - }, - "id": 2, - "panels": [], - "repeat": "service", - "scopedVars": { - "service": { - "selected": false, - "text": "api-gateway", - "value": "api-gateway" - } - }, - "title": "$service", - "type": "row" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalInflux", - "decimals": 3, - "format": "percentunit", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": true, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 6, - "w": 3, - "x": 0, - "y": 1 - }, - "id": 4, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "scopedVars": { - "service": { - "selected": false, - "text": "api-gateway", - "value": "api-gateway" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT LAST(\"instrumented\")/LAST(\"loaded\") FROM instrumentation_state WHERE $timeFilter AND service =~ /^$service/", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": "10,30", - "title": "Instr. Scope", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "columns": [], - "datasource": "LocalInflux", - "fontSize": "120%", - "gridPos": { - "h": 6, - "w": 6, - "x": 3, - "y": 1 - }, - "id": 47, - "links": [], - "pageSize": null, - "scopedVars": { - "service": { - "selected": false, - "text": "api-gateway", - "value": "api-gateway" - } - }, - "scroll": true, - "showHeader": true, - "sort": { - "col": 1, - "desc": false - }, - "styles": [ - { - "alias": "Time", - "align": "auto", - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "pattern": "Time", - "type": "hidden" - }, - { - "alias": "Description", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "Metric", - "thresholds": [], - "type": "string", - "unit": "short" - }, - { - "alias": "Count", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 0, - "mappingType": 1, - "pattern": "Value", - "thresholds": [], - "type": "number", - "unit": "none" - }, - { - "alias": "", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "decimals": 2, - "pattern": "/.*/", - "thresholds": [], - "type": "number", - "unit": "short" - } - ], - "targets": [ - { - "alias": "# classes loaded by JVM", - "groupBy": [], - "measurement": "jvm_classes_loaded", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "# instrumented classes", - "groupBy": [], - "measurement": "inspectit_self_instrumented_classes", - "orderByTime": "ASC", - "policy": "default", - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "# classes pending for analysis", - "groupBy": [], - "measurement": "inspectit_self_instrumentation_queue_size", - "orderByTime": "ASC", - "policy": "default", - "refId": "C", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "title": "Instrumentation State", - "transform": "timeseries_to_rows", - "type": "table" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#d44a3a", - "rgba(237, 129, 40, 0.89)", - "#299c46" - ], - "datasource": "LocalInflux", - "format": "percentunit", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": true, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 6, - "w": 3, - "x": 9, - "y": 1 - }, - "id": 23, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "scopedVars": { - "service": { - "selected": false, - "text": "api-gateway", - "value": "api-gateway" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "hide": false, - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT 1 - LAST(\"queuesize\")/LAST(\"loaded\") FROM instrumentation_state WHERE $timeFilter AND service =~ /^$service/", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": "0.33,0.66", - "title": "Analysis Progress", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "cacheTimeout": null, - "colorBackground": true, - "colorValue": false, - "colors": [ - "rgb(33,33,36)", - "#890f02", - "#d44a3a" - ], - "datasource": "LocalInflux", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 12, - "y": 1 - }, - "id": 76, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "$$hashKey": "object:380", - "name": "value to text", - "value": 1 - }, - { - "$$hashKey": "object:381", - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "scopedVars": { - "service": { - "selected": false, - "text": "api-gateway", - "value": "api-gateway" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "inspectit_self_logs", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(\"counter\") FROM \"inspectit_self_logs\" WHERE (\"service\" =~ /^$service$/ AND \"level\" =~ /^ERROR$/ ) AND $timeFilter", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "counter" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - }, - { - "params": [], - "type": "non_negative_difference" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "level", - "operator": "=", - "value": "ERROR" - } - ] - } - ], - "thresholds": "1", - "title": "Errors", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "$$hashKey": "object:383", - "op": "=", - "text": "0", - "value": "null" - } - ], - "valueName": "current" - }, - { - "aliasColors": { - "classes pending for hook": "#99440a" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalInflux", - "fill": 5, - "fillGradient": 0, - "gridPos": { - "h": 6, - "w": 10, - "x": 14, - "y": 1 - }, - "hiddenSeries": false, - "id": 49, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "scopedVars": { - "service": { - "selected": false, - "text": "api-gateway", - "value": "api-gateway" - } - }, - "seriesOverrides": [ - { - "alias": "instrumented classes", - "color": "#629e51", - "fill": 5, - "zindex": 3 - }, - { - "alias": "classes pending for analysis", - "color": "#eab839", - "zindex": 0 - }, - { - "alias": "loaded classes", - "color": "#82b5d8", - "zindex": -3 - }, - { - "alias": "JVM CPU Utilization", - "color": "#bf1b00", - "fill": 0, - "linewidth": 2, - "yaxis": 2, - "zindex": 3 - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "loaded classes", - "groupBy": [ - { - "params": [ - "1m" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "jvm_classes_loaded", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "instrumented classes", - "groupBy": [ - { - "params": [ - "1m" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "inspectit_self_instrumented_classes", - "orderByTime": "ASC", - "policy": "default", - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "classes pending for analysis", - "groupBy": [ - { - "params": [ - "1m" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "inspectit_self_instrumentation_queue_size", - "orderByTime": "ASC", - "policy": "default", - "refId": "C", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "JVM CPU Utilization", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "process_cpu_usage", - "orderByTime": "ASC", - "policy": "default", - "refId": "D", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Instrumentation State over time (Logarithmic Scale)", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": "# Classes", - "logBase": 10, - "max": null, - "min": "0", - "show": true - }, - { - "format": "percentunit", - "label": null, - "logBase": 1, - "max": "1", - "min": "0", - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": true, - "colorValue": false, - "colors": [ - "rgb(33,33,36)", - "#967302", - "#d44a3a" - ], - "datasource": "LocalInflux", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 12, - "y": 3 - }, - "id": 107, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "$$hashKey": "object:421", - "name": "value to text", - "value": 1 - }, - { - "$$hashKey": "object:422", - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "scopedVars": { - "service": { - "selected": false, - "text": "api-gateway", - "value": "api-gateway" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "inspectit_self_logs", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(\"counter\") FROM \"inspectit_self_logs\" WHERE (\"service\" =~ /^$service$/ AND \"level\" =~ /^WARN$/ ) AND $timeFilter", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "counter" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - }, - { - "params": [], - "type": "non_negative_difference" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "level", - "operator": "=", - "value": "ERROR" - } - ] - } - ], - "thresholds": "1", - "title": "Warnings", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "$$hashKey": "object:424", - "op": "=", - "text": "0", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "rgb(33,33,36)", - "#967302", - "#d44a3a" - ], - "datasource": "LocalInflux", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 12, - "y": 5 - }, - "id": 108, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "$$hashKey": "object:462", - "name": "value to text", - "value": 1 - }, - { - "$$hashKey": "object:463", - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "scopedVars": { - "service": { - "selected": false, - "text": "api-gateway", - "value": "api-gateway" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "inspectit_self_logs", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(\"counter\") FROM \"inspectit_self_logs\" WHERE (\"service\" =~ /^$service$/ AND \"level\" =~ /^INFO|DEBUG|TRACE$/ ) AND $timeFilter", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "counter" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - }, - { - "params": [], - "type": "non_negative_difference" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "level", - "operator": "=", - "value": "ERROR" - } - ] - } - ], - "thresholds": "1", - "title": "Other Logs", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "$$hashKey": "object:465", - "op": "=", - "text": "0", - "value": "null" - } - ], - "valueName": "current" - }, - { - "collapsed": false, - "datasource": null, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 7 - }, - "id": 109, - "panels": [], - "repeat": null, - "repeatIteration": 1588836303607, - "repeatPanelId": 2, - "scopedVars": { - "service": { - "selected": false, - "text": "config-server", - "value": "config-server" - } - }, - "title": "$service", - "type": "row" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalInflux", - "decimals": 3, - "format": "percentunit", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": true, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 6, - "w": 3, - "x": 0, - "y": 8 - }, - "id": 110, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1588836303607, - "repeatPanelId": 4, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "config-server", - "value": "config-server" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT LAST(\"instrumented\")/LAST(\"loaded\") FROM instrumentation_state WHERE $timeFilter AND service =~ /^$service/", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": "10,30", - "title": "Instr. Scope", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "columns": [], - "datasource": "LocalInflux", - "fontSize": "120%", - "gridPos": { - "h": 6, - "w": 6, - "x": 3, - "y": 8 - }, - "id": 111, - "links": [], - "pageSize": null, - "repeatIteration": 1588836303607, - "repeatPanelId": 47, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "config-server", - "value": "config-server" - } - }, - "scroll": true, - "showHeader": true, - "sort": { - "col": 1, - "desc": false - }, - "styles": [ - { - "alias": "Time", - "align": "auto", - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "pattern": "Time", - "type": "hidden" - }, - { - "alias": "Description", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "Metric", - "thresholds": [], - "type": "string", - "unit": "short" - }, - { - "alias": "Count", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 0, - "mappingType": 1, - "pattern": "Value", - "thresholds": [], - "type": "number", - "unit": "none" - }, - { - "alias": "", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "decimals": 2, - "pattern": "/.*/", - "thresholds": [], - "type": "number", - "unit": "short" - } - ], - "targets": [ - { - "alias": "# classes loaded by JVM", - "groupBy": [], - "measurement": "jvm_classes_loaded", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "# instrumented classes", - "groupBy": [], - "measurement": "inspectit_self_instrumented_classes", - "orderByTime": "ASC", - "policy": "default", - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "# classes pending for analysis", - "groupBy": [], - "measurement": "inspectit_self_instrumentation_queue_size", - "orderByTime": "ASC", - "policy": "default", - "refId": "C", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "title": "Instrumentation State", - "transform": "timeseries_to_rows", - "type": "table" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#d44a3a", - "rgba(237, 129, 40, 0.89)", - "#299c46" - ], - "datasource": "LocalInflux", - "format": "percentunit", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": true, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 6, - "w": 3, - "x": 9, - "y": 8 - }, - "id": 112, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1588836303607, - "repeatPanelId": 23, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "config-server", - "value": "config-server" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "hide": false, - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT 1 - LAST(\"queuesize\")/LAST(\"loaded\") FROM instrumentation_state WHERE $timeFilter AND service =~ /^$service/", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": "0.33,0.66", - "title": "Analysis Progress", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "cacheTimeout": null, - "colorBackground": true, - "colorValue": false, - "colors": [ - "rgb(33,33,36)", - "#890f02", - "#d44a3a" - ], - "datasource": "LocalInflux", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 12, - "y": 8 - }, - "id": 113, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "$$hashKey": "object:380", - "name": "value to text", - "value": 1 - }, - { - "$$hashKey": "object:381", - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1588836303607, - "repeatPanelId": 76, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "config-server", - "value": "config-server" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "inspectit_self_logs", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(\"counter\") FROM \"inspectit_self_logs\" WHERE (\"service\" =~ /^$service$/ AND \"level\" =~ /^ERROR$/ ) AND $timeFilter", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "counter" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - }, - { - "params": [], - "type": "non_negative_difference" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "level", - "operator": "=", - "value": "ERROR" - } - ] - } - ], - "thresholds": "1", - "title": "Errors", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "$$hashKey": "object:383", - "op": "=", - "text": "0", - "value": "null" - } - ], - "valueName": "current" - }, - { - "aliasColors": { - "classes pending for hook": "#99440a" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalInflux", - "fill": 5, - "fillGradient": 0, - "gridPos": { - "h": 6, - "w": 10, - "x": 14, - "y": 8 - }, - "hiddenSeries": false, - "id": 114, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1588836303607, - "repeatPanelId": 49, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "config-server", - "value": "config-server" - } - }, - "seriesOverrides": [ - { - "alias": "instrumented classes", - "color": "#629e51", - "fill": 5, - "zindex": 3 - }, - { - "alias": "classes pending for analysis", - "color": "#eab839", - "zindex": 0 - }, - { - "alias": "loaded classes", - "color": "#82b5d8", - "zindex": -3 - }, - { - "alias": "JVM CPU Utilization", - "color": "#bf1b00", - "fill": 0, - "linewidth": 2, - "yaxis": 2, - "zindex": 3 - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "loaded classes", - "groupBy": [ - { - "params": [ - "1m" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "jvm_classes_loaded", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "instrumented classes", - "groupBy": [ - { - "params": [ - "1m" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "inspectit_self_instrumented_classes", - "orderByTime": "ASC", - "policy": "default", - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "classes pending for analysis", - "groupBy": [ - { - "params": [ - "1m" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "inspectit_self_instrumentation_queue_size", - "orderByTime": "ASC", - "policy": "default", - "refId": "C", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "JVM CPU Utilization", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "process_cpu_usage", - "orderByTime": "ASC", - "policy": "default", - "refId": "D", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Instrumentation State over time (Logarithmic Scale)", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": "# Classes", - "logBase": 10, - "max": null, - "min": "0", - "show": true - }, - { - "format": "percentunit", - "label": null, - "logBase": 1, - "max": "1", - "min": "0", - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": true, - "colorValue": false, - "colors": [ - "rgb(33,33,36)", - "#967302", - "#d44a3a" - ], - "datasource": "LocalInflux", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 12, - "y": 10 - }, - "id": 115, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "$$hashKey": "object:421", - "name": "value to text", - "value": 1 - }, - { - "$$hashKey": "object:422", - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1588836303607, - "repeatPanelId": 107, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "config-server", - "value": "config-server" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "inspectit_self_logs", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(\"counter\") FROM \"inspectit_self_logs\" WHERE (\"service\" =~ /^$service$/ AND \"level\" =~ /^WARN$/ ) AND $timeFilter", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "counter" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - }, - { - "params": [], - "type": "non_negative_difference" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "level", - "operator": "=", - "value": "ERROR" - } - ] - } - ], - "thresholds": "1", - "title": "Warnings", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "$$hashKey": "object:424", - "op": "=", - "text": "0", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "rgb(33,33,36)", - "#967302", - "#d44a3a" - ], - "datasource": "LocalInflux", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 12, - "y": 12 - }, - "id": 116, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "$$hashKey": "object:462", - "name": "value to text", - "value": 1 - }, - { - "$$hashKey": "object:463", - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1588836303607, - "repeatPanelId": 108, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "config-server", - "value": "config-server" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "inspectit_self_logs", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(\"counter\") FROM \"inspectit_self_logs\" WHERE (\"service\" =~ /^$service$/ AND \"level\" =~ /^INFO|DEBUG|TRACE$/ ) AND $timeFilter", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "counter" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - }, - { - "params": [], - "type": "non_negative_difference" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "level", - "operator": "=", - "value": "ERROR" - } - ] - } - ], - "thresholds": "1", - "title": "Other Logs", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "$$hashKey": "object:465", - "op": "=", - "text": "0", - "value": "null" - } - ], - "valueName": "current" - }, - { - "collapsed": false, - "datasource": null, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 14 - }, - "id": 117, - "panels": [], - "repeat": null, - "repeatIteration": 1588836303607, - "repeatPanelId": 2, - "scopedVars": { - "service": { - "selected": false, - "text": "customers-service", - "value": "customers-service" - } - }, - "title": "$service", - "type": "row" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalInflux", - "decimals": 3, - "format": "percentunit", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": true, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 6, - "w": 3, - "x": 0, - "y": 15 - }, - "id": 118, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1588836303607, - "repeatPanelId": 4, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "customers-service", - "value": "customers-service" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT LAST(\"instrumented\")/LAST(\"loaded\") FROM instrumentation_state WHERE $timeFilter AND service =~ /^$service/", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": "10,30", - "title": "Instr. Scope", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "columns": [], - "datasource": "LocalInflux", - "fontSize": "120%", - "gridPos": { - "h": 6, - "w": 6, - "x": 3, - "y": 15 - }, - "id": 119, - "links": [], - "pageSize": null, - "repeatIteration": 1588836303607, - "repeatPanelId": 47, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "customers-service", - "value": "customers-service" - } - }, - "scroll": true, - "showHeader": true, - "sort": { - "col": 1, - "desc": false - }, - "styles": [ - { - "alias": "Time", - "align": "auto", - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "pattern": "Time", - "type": "hidden" - }, - { - "alias": "Description", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "Metric", - "thresholds": [], - "type": "string", - "unit": "short" - }, - { - "alias": "Count", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 0, - "mappingType": 1, - "pattern": "Value", - "thresholds": [], - "type": "number", - "unit": "none" - }, - { - "alias": "", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "decimals": 2, - "pattern": "/.*/", - "thresholds": [], - "type": "number", - "unit": "short" - } - ], - "targets": [ - { - "alias": "# classes loaded by JVM", - "groupBy": [], - "measurement": "jvm_classes_loaded", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "# instrumented classes", - "groupBy": [], - "measurement": "inspectit_self_instrumented_classes", - "orderByTime": "ASC", - "policy": "default", - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "# classes pending for analysis", - "groupBy": [], - "measurement": "inspectit_self_instrumentation_queue_size", - "orderByTime": "ASC", - "policy": "default", - "refId": "C", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "title": "Instrumentation State", - "transform": "timeseries_to_rows", - "type": "table" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#d44a3a", - "rgba(237, 129, 40, 0.89)", - "#299c46" - ], - "datasource": "LocalInflux", - "format": "percentunit", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": true, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 6, - "w": 3, - "x": 9, - "y": 15 - }, - "id": 120, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1588836303607, - "repeatPanelId": 23, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "customers-service", - "value": "customers-service" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "hide": false, - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT 1 - LAST(\"queuesize\")/LAST(\"loaded\") FROM instrumentation_state WHERE $timeFilter AND service =~ /^$service/", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": "0.33,0.66", - "title": "Analysis Progress", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "cacheTimeout": null, - "colorBackground": true, - "colorValue": false, - "colors": [ - "rgb(33,33,36)", - "#890f02", - "#d44a3a" - ], - "datasource": "LocalInflux", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 12, - "y": 15 - }, - "id": 121, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "$$hashKey": "object:380", - "name": "value to text", - "value": 1 - }, - { - "$$hashKey": "object:381", - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1588836303607, - "repeatPanelId": 76, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "customers-service", - "value": "customers-service" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "inspectit_self_logs", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(\"counter\") FROM \"inspectit_self_logs\" WHERE (\"service\" =~ /^$service$/ AND \"level\" =~ /^ERROR$/ ) AND $timeFilter", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "counter" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - }, - { - "params": [], - "type": "non_negative_difference" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "level", - "operator": "=", - "value": "ERROR" - } - ] - } - ], - "thresholds": "1", - "title": "Errors", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "$$hashKey": "object:383", - "op": "=", - "text": "0", - "value": "null" - } - ], - "valueName": "current" - }, - { - "aliasColors": { - "classes pending for hook": "#99440a" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalInflux", - "fill": 5, - "fillGradient": 0, - "gridPos": { - "h": 6, - "w": 10, - "x": 14, - "y": 15 - }, - "hiddenSeries": false, - "id": 122, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1588836303607, - "repeatPanelId": 49, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "customers-service", - "value": "customers-service" - } - }, - "seriesOverrides": [ - { - "alias": "instrumented classes", - "color": "#629e51", - "fill": 5, - "zindex": 3 - }, - { - "alias": "classes pending for analysis", - "color": "#eab839", - "zindex": 0 - }, - { - "alias": "loaded classes", - "color": "#82b5d8", - "zindex": -3 - }, - { - "alias": "JVM CPU Utilization", - "color": "#bf1b00", - "fill": 0, - "linewidth": 2, - "yaxis": 2, - "zindex": 3 - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "loaded classes", - "groupBy": [ - { - "params": [ - "1m" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "jvm_classes_loaded", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "instrumented classes", - "groupBy": [ - { - "params": [ - "1m" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "inspectit_self_instrumented_classes", - "orderByTime": "ASC", - "policy": "default", - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "classes pending for analysis", - "groupBy": [ - { - "params": [ - "1m" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "inspectit_self_instrumentation_queue_size", - "orderByTime": "ASC", - "policy": "default", - "refId": "C", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "JVM CPU Utilization", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "process_cpu_usage", - "orderByTime": "ASC", - "policy": "default", - "refId": "D", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Instrumentation State over time (Logarithmic Scale)", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": "# Classes", - "logBase": 10, - "max": null, - "min": "0", - "show": true - }, - { - "format": "percentunit", - "label": null, - "logBase": 1, - "max": "1", - "min": "0", - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": true, - "colorValue": false, - "colors": [ - "rgb(33,33,36)", - "#967302", - "#d44a3a" - ], - "datasource": "LocalInflux", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 12, - "y": 17 - }, - "id": 123, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "$$hashKey": "object:421", - "name": "value to text", - "value": 1 - }, - { - "$$hashKey": "object:422", - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1588836303607, - "repeatPanelId": 107, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "customers-service", - "value": "customers-service" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "inspectit_self_logs", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(\"counter\") FROM \"inspectit_self_logs\" WHERE (\"service\" =~ /^$service$/ AND \"level\" =~ /^WARN$/ ) AND $timeFilter", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "counter" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - }, - { - "params": [], - "type": "non_negative_difference" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "level", - "operator": "=", - "value": "ERROR" - } - ] - } - ], - "thresholds": "1", - "title": "Warnings", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "$$hashKey": "object:424", - "op": "=", - "text": "0", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "rgb(33,33,36)", - "#967302", - "#d44a3a" - ], - "datasource": "LocalInflux", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 12, - "y": 19 - }, - "id": 124, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "$$hashKey": "object:462", - "name": "value to text", - "value": 1 - }, - { - "$$hashKey": "object:463", - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1588836303607, - "repeatPanelId": 108, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "customers-service", - "value": "customers-service" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "inspectit_self_logs", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(\"counter\") FROM \"inspectit_self_logs\" WHERE (\"service\" =~ /^$service$/ AND \"level\" =~ /^INFO|DEBUG|TRACE$/ ) AND $timeFilter", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "counter" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - }, - { - "params": [], - "type": "non_negative_difference" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "level", - "operator": "=", - "value": "ERROR" - } - ] - } - ], - "thresholds": "1", - "title": "Other Logs", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "$$hashKey": "object:465", - "op": "=", - "text": "0", - "value": "null" - } - ], - "valueName": "current" - }, - { - "collapsed": false, - "datasource": null, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 21 - }, - "id": 125, - "panels": [], - "repeat": null, - "repeatIteration": 1588836303607, - "repeatPanelId": 2, - "scopedVars": { - "service": { - "selected": false, - "text": "discovery-server", - "value": "discovery-server" - } - }, - "title": "$service", - "type": "row" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalInflux", - "decimals": 3, - "format": "percentunit", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": true, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 6, - "w": 3, - "x": 0, - "y": 22 - }, - "id": 126, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1588836303607, - "repeatPanelId": 4, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "discovery-server", - "value": "discovery-server" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT LAST(\"instrumented\")/LAST(\"loaded\") FROM instrumentation_state WHERE $timeFilter AND service =~ /^$service/", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": "10,30", - "title": "Instr. Scope", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "columns": [], - "datasource": "LocalInflux", - "fontSize": "120%", - "gridPos": { - "h": 6, - "w": 6, - "x": 3, - "y": 22 - }, - "id": 127, - "links": [], - "pageSize": null, - "repeatIteration": 1588836303607, - "repeatPanelId": 47, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "discovery-server", - "value": "discovery-server" - } - }, - "scroll": true, - "showHeader": true, - "sort": { - "col": 1, - "desc": false - }, - "styles": [ - { - "alias": "Time", - "align": "auto", - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "pattern": "Time", - "type": "hidden" - }, - { - "alias": "Description", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "Metric", - "thresholds": [], - "type": "string", - "unit": "short" - }, - { - "alias": "Count", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 0, - "mappingType": 1, - "pattern": "Value", - "thresholds": [], - "type": "number", - "unit": "none" - }, - { - "alias": "", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "decimals": 2, - "pattern": "/.*/", - "thresholds": [], - "type": "number", - "unit": "short" - } - ], - "targets": [ - { - "alias": "# classes loaded by JVM", - "groupBy": [], - "measurement": "jvm_classes_loaded", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "# instrumented classes", - "groupBy": [], - "measurement": "inspectit_self_instrumented_classes", - "orderByTime": "ASC", - "policy": "default", - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "# classes pending for analysis", - "groupBy": [], - "measurement": "inspectit_self_instrumentation_queue_size", - "orderByTime": "ASC", - "policy": "default", - "refId": "C", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "title": "Instrumentation State", - "transform": "timeseries_to_rows", - "type": "table" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#d44a3a", - "rgba(237, 129, 40, 0.89)", - "#299c46" - ], - "datasource": "LocalInflux", - "format": "percentunit", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": true, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 6, - "w": 3, - "x": 9, - "y": 22 - }, - "id": 128, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1588836303607, - "repeatPanelId": 23, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "discovery-server", - "value": "discovery-server" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "hide": false, - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT 1 - LAST(\"queuesize\")/LAST(\"loaded\") FROM instrumentation_state WHERE $timeFilter AND service =~ /^$service/", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": "0.33,0.66", - "title": "Analysis Progress", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "cacheTimeout": null, - "colorBackground": true, - "colorValue": false, - "colors": [ - "rgb(33,33,36)", - "#890f02", - "#d44a3a" - ], - "datasource": "LocalInflux", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 12, - "y": 22 - }, - "id": 129, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "$$hashKey": "object:380", - "name": "value to text", - "value": 1 - }, - { - "$$hashKey": "object:381", - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1588836303607, - "repeatPanelId": 76, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "discovery-server", - "value": "discovery-server" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "inspectit_self_logs", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(\"counter\") FROM \"inspectit_self_logs\" WHERE (\"service\" =~ /^$service$/ AND \"level\" =~ /^ERROR$/ ) AND $timeFilter", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "counter" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - }, - { - "params": [], - "type": "non_negative_difference" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "level", - "operator": "=", - "value": "ERROR" - } - ] - } - ], - "thresholds": "1", - "title": "Errors", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "$$hashKey": "object:383", - "op": "=", - "text": "0", - "value": "null" - } - ], - "valueName": "current" - }, - { - "aliasColors": { - "classes pending for hook": "#99440a" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalInflux", - "fill": 5, - "fillGradient": 0, - "gridPos": { - "h": 6, - "w": 10, - "x": 14, - "y": 22 - }, - "hiddenSeries": false, - "id": 130, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1588836303607, - "repeatPanelId": 49, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "discovery-server", - "value": "discovery-server" - } - }, - "seriesOverrides": [ - { - "alias": "instrumented classes", - "color": "#629e51", - "fill": 5, - "zindex": 3 - }, - { - "alias": "classes pending for analysis", - "color": "#eab839", - "zindex": 0 - }, - { - "alias": "loaded classes", - "color": "#82b5d8", - "zindex": -3 - }, - { - "alias": "JVM CPU Utilization", - "color": "#bf1b00", - "fill": 0, - "linewidth": 2, - "yaxis": 2, - "zindex": 3 - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "loaded classes", - "groupBy": [ - { - "params": [ - "1m" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "jvm_classes_loaded", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "instrumented classes", - "groupBy": [ - { - "params": [ - "1m" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "inspectit_self_instrumented_classes", - "orderByTime": "ASC", - "policy": "default", - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "classes pending for analysis", - "groupBy": [ - { - "params": [ - "1m" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "inspectit_self_instrumentation_queue_size", - "orderByTime": "ASC", - "policy": "default", - "refId": "C", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "JVM CPU Utilization", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "process_cpu_usage", - "orderByTime": "ASC", - "policy": "default", - "refId": "D", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Instrumentation State over time (Logarithmic Scale)", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": "# Classes", - "logBase": 10, - "max": null, - "min": "0", - "show": true - }, - { - "format": "percentunit", - "label": null, - "logBase": 1, - "max": "1", - "min": "0", - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": true, - "colorValue": false, - "colors": [ - "rgb(33,33,36)", - "#967302", - "#d44a3a" - ], - "datasource": "LocalInflux", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 12, - "y": 24 - }, - "id": 131, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "$$hashKey": "object:421", - "name": "value to text", - "value": 1 - }, - { - "$$hashKey": "object:422", - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1588836303607, - "repeatPanelId": 107, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "discovery-server", - "value": "discovery-server" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "inspectit_self_logs", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(\"counter\") FROM \"inspectit_self_logs\" WHERE (\"service\" =~ /^$service$/ AND \"level\" =~ /^WARN$/ ) AND $timeFilter", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "counter" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - }, - { - "params": [], - "type": "non_negative_difference" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "level", - "operator": "=", - "value": "ERROR" - } - ] - } - ], - "thresholds": "1", - "title": "Warnings", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "$$hashKey": "object:424", - "op": "=", - "text": "0", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "rgb(33,33,36)", - "#967302", - "#d44a3a" - ], - "datasource": "LocalInflux", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 12, - "y": 26 - }, - "id": 132, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "$$hashKey": "object:462", - "name": "value to text", - "value": 1 - }, - { - "$$hashKey": "object:463", - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1588836303607, - "repeatPanelId": 108, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "discovery-server", - "value": "discovery-server" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "inspectit_self_logs", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(\"counter\") FROM \"inspectit_self_logs\" WHERE (\"service\" =~ /^$service$/ AND \"level\" =~ /^INFO|DEBUG|TRACE$/ ) AND $timeFilter", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "counter" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - }, - { - "params": [], - "type": "non_negative_difference" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "level", - "operator": "=", - "value": "ERROR" - } - ] - } - ], - "thresholds": "1", - "title": "Other Logs", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "$$hashKey": "object:465", - "op": "=", - "text": "0", - "value": "null" - } - ], - "valueName": "current" - }, - { - "collapsed": false, - "datasource": null, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 28 - }, - "id": 133, - "panels": [], - "repeat": null, - "repeatIteration": 1588836303607, - "repeatPanelId": 2, - "scopedVars": { - "service": { - "selected": false, - "text": "vets-service", - "value": "vets-service" - } - }, - "title": "$service", - "type": "row" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalInflux", - "decimals": 3, - "format": "percentunit", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": true, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 6, - "w": 3, - "x": 0, - "y": 29 - }, - "id": 134, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1588836303607, - "repeatPanelId": 4, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "vets-service", - "value": "vets-service" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT LAST(\"instrumented\")/LAST(\"loaded\") FROM instrumentation_state WHERE $timeFilter AND service =~ /^$service/", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": "10,30", - "title": "Instr. Scope", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "columns": [], - "datasource": "LocalInflux", - "fontSize": "120%", - "gridPos": { - "h": 6, - "w": 6, - "x": 3, - "y": 29 - }, - "id": 135, - "links": [], - "pageSize": null, - "repeatIteration": 1588836303607, - "repeatPanelId": 47, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "vets-service", - "value": "vets-service" - } - }, - "scroll": true, - "showHeader": true, - "sort": { - "col": 1, - "desc": false - }, - "styles": [ - { - "alias": "Time", - "align": "auto", - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "pattern": "Time", - "type": "hidden" - }, - { - "alias": "Description", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "Metric", - "thresholds": [], - "type": "string", - "unit": "short" - }, - { - "alias": "Count", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 0, - "mappingType": 1, - "pattern": "Value", - "thresholds": [], - "type": "number", - "unit": "none" - }, - { - "alias": "", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "decimals": 2, - "pattern": "/.*/", - "thresholds": [], - "type": "number", - "unit": "short" - } - ], - "targets": [ - { - "alias": "# classes loaded by JVM", - "groupBy": [], - "measurement": "jvm_classes_loaded", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "# instrumented classes", - "groupBy": [], - "measurement": "inspectit_self_instrumented_classes", - "orderByTime": "ASC", - "policy": "default", - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "# classes pending for analysis", - "groupBy": [], - "measurement": "inspectit_self_instrumentation_queue_size", - "orderByTime": "ASC", - "policy": "default", - "refId": "C", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "title": "Instrumentation State", - "transform": "timeseries_to_rows", - "type": "table" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#d44a3a", - "rgba(237, 129, 40, 0.89)", - "#299c46" - ], - "datasource": "LocalInflux", - "format": "percentunit", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": true, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 6, - "w": 3, - "x": 9, - "y": 29 - }, - "id": 136, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1588836303607, - "repeatPanelId": 23, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "vets-service", - "value": "vets-service" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "hide": false, - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT 1 - LAST(\"queuesize\")/LAST(\"loaded\") FROM instrumentation_state WHERE $timeFilter AND service =~ /^$service/", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": "0.33,0.66", - "title": "Analysis Progress", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "cacheTimeout": null, - "colorBackground": true, - "colorValue": false, - "colors": [ - "rgb(33,33,36)", - "#890f02", - "#d44a3a" - ], - "datasource": "LocalInflux", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 12, - "y": 29 - }, - "id": 137, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "$$hashKey": "object:380", - "name": "value to text", - "value": 1 - }, - { - "$$hashKey": "object:381", - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1588836303607, - "repeatPanelId": 76, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "vets-service", - "value": "vets-service" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "inspectit_self_logs", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(\"counter\") FROM \"inspectit_self_logs\" WHERE (\"service\" =~ /^$service$/ AND \"level\" =~ /^ERROR$/ ) AND $timeFilter", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "counter" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - }, - { - "params": [], - "type": "non_negative_difference" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "level", - "operator": "=", - "value": "ERROR" - } - ] - } - ], - "thresholds": "1", - "title": "Errors", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "$$hashKey": "object:383", - "op": "=", - "text": "0", - "value": "null" - } - ], - "valueName": "current" - }, - { - "aliasColors": { - "classes pending for hook": "#99440a" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalInflux", - "fill": 5, - "fillGradient": 0, - "gridPos": { - "h": 6, - "w": 10, - "x": 14, - "y": 29 - }, - "hiddenSeries": false, - "id": 138, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1588836303607, - "repeatPanelId": 49, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "vets-service", - "value": "vets-service" - } - }, - "seriesOverrides": [ - { - "alias": "instrumented classes", - "color": "#629e51", - "fill": 5, - "zindex": 3 - }, - { - "alias": "classes pending for analysis", - "color": "#eab839", - "zindex": 0 - }, - { - "alias": "loaded classes", - "color": "#82b5d8", - "zindex": -3 - }, - { - "alias": "JVM CPU Utilization", - "color": "#bf1b00", - "fill": 0, - "linewidth": 2, - "yaxis": 2, - "zindex": 3 - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "loaded classes", - "groupBy": [ - { - "params": [ - "1m" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "jvm_classes_loaded", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "instrumented classes", - "groupBy": [ - { - "params": [ - "1m" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "inspectit_self_instrumented_classes", - "orderByTime": "ASC", - "policy": "default", - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "classes pending for analysis", - "groupBy": [ - { - "params": [ - "1m" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "inspectit_self_instrumentation_queue_size", - "orderByTime": "ASC", - "policy": "default", - "refId": "C", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "JVM CPU Utilization", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "process_cpu_usage", - "orderByTime": "ASC", - "policy": "default", - "refId": "D", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Instrumentation State over time (Logarithmic Scale)", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": "# Classes", - "logBase": 10, - "max": null, - "min": "0", - "show": true - }, - { - "format": "percentunit", - "label": null, - "logBase": 1, - "max": "1", - "min": "0", - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": true, - "colorValue": false, - "colors": [ - "rgb(33,33,36)", - "#967302", - "#d44a3a" - ], - "datasource": "LocalInflux", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 12, - "y": 31 - }, - "id": 139, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "$$hashKey": "object:421", - "name": "value to text", - "value": 1 - }, - { - "$$hashKey": "object:422", - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1588836303607, - "repeatPanelId": 107, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "vets-service", - "value": "vets-service" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "inspectit_self_logs", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(\"counter\") FROM \"inspectit_self_logs\" WHERE (\"service\" =~ /^$service$/ AND \"level\" =~ /^WARN$/ ) AND $timeFilter", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "counter" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - }, - { - "params": [], - "type": "non_negative_difference" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "level", - "operator": "=", - "value": "ERROR" - } - ] - } - ], - "thresholds": "1", - "title": "Warnings", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "$$hashKey": "object:424", - "op": "=", - "text": "0", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "rgb(33,33,36)", - "#967302", - "#d44a3a" - ], - "datasource": "LocalInflux", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 12, - "y": 33 - }, - "id": 140, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "$$hashKey": "object:462", - "name": "value to text", - "value": 1 - }, - { - "$$hashKey": "object:463", - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1588836303607, - "repeatPanelId": 108, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "vets-service", - "value": "vets-service" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "inspectit_self_logs", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(\"counter\") FROM \"inspectit_self_logs\" WHERE (\"service\" =~ /^$service$/ AND \"level\" =~ /^INFO|DEBUG|TRACE$/ ) AND $timeFilter", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "counter" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - }, - { - "params": [], - "type": "non_negative_difference" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "level", - "operator": "=", - "value": "ERROR" - } - ] - } - ], - "thresholds": "1", - "title": "Other Logs", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "$$hashKey": "object:465", - "op": "=", - "text": "0", - "value": "null" - } - ], - "valueName": "current" - }, - { - "collapsed": false, - "datasource": null, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 35 - }, - "id": 141, - "panels": [], - "repeat": null, - "repeatIteration": 1588836303607, - "repeatPanelId": 2, - "scopedVars": { - "service": { - "selected": false, - "text": "visits-service", - "value": "visits-service" - } - }, - "title": "$service", - "type": "row" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalInflux", - "decimals": 3, - "format": "percentunit", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": true, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 6, - "w": 3, - "x": 0, - "y": 36 - }, - "id": 142, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1588836303607, - "repeatPanelId": 4, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "visits-service", - "value": "visits-service" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT LAST(\"instrumented\")/LAST(\"loaded\") FROM instrumentation_state WHERE $timeFilter AND service =~ /^$service/", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": "10,30", - "title": "Instr. Scope", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "columns": [], - "datasource": "LocalInflux", - "fontSize": "120%", - "gridPos": { - "h": 6, - "w": 6, - "x": 3, - "y": 36 - }, - "id": 143, - "links": [], - "pageSize": null, - "repeatIteration": 1588836303607, - "repeatPanelId": 47, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "visits-service", - "value": "visits-service" - } - }, - "scroll": true, - "showHeader": true, - "sort": { - "col": 1, - "desc": false - }, - "styles": [ - { - "alias": "Time", - "align": "auto", - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "pattern": "Time", - "type": "hidden" - }, - { - "alias": "Description", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "Metric", - "thresholds": [], - "type": "string", - "unit": "short" - }, - { - "alias": "Count", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 0, - "mappingType": 1, - "pattern": "Value", - "thresholds": [], - "type": "number", - "unit": "none" - }, - { - "alias": "", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "decimals": 2, - "pattern": "/.*/", - "thresholds": [], - "type": "number", - "unit": "short" - } - ], - "targets": [ - { - "alias": "# classes loaded by JVM", - "groupBy": [], - "measurement": "jvm_classes_loaded", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "# instrumented classes", - "groupBy": [], - "measurement": "inspectit_self_instrumented_classes", - "orderByTime": "ASC", - "policy": "default", - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "# classes pending for analysis", - "groupBy": [], - "measurement": "inspectit_self_instrumentation_queue_size", - "orderByTime": "ASC", - "policy": "default", - "refId": "C", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "title": "Instrumentation State", - "transform": "timeseries_to_rows", - "type": "table" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#d44a3a", - "rgba(237, 129, 40, 0.89)", - "#299c46" - ], - "datasource": "LocalInflux", - "format": "percentunit", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": true, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 6, - "w": 3, - "x": 9, - "y": 36 - }, - "id": 144, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1588836303607, - "repeatPanelId": 23, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "visits-service", - "value": "visits-service" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "hide": false, - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT 1 - LAST(\"queuesize\")/LAST(\"loaded\") FROM instrumentation_state WHERE $timeFilter AND service =~ /^$service/", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": "0.33,0.66", - "title": "Analysis Progress", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "cacheTimeout": null, - "colorBackground": true, - "colorValue": false, - "colors": [ - "rgb(33,33,36)", - "#890f02", - "#d44a3a" - ], - "datasource": "LocalInflux", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 12, - "y": 36 - }, - "id": 145, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "$$hashKey": "object:380", - "name": "value to text", - "value": 1 - }, - { - "$$hashKey": "object:381", - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1588836303607, - "repeatPanelId": 76, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "visits-service", - "value": "visits-service" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "inspectit_self_logs", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(\"counter\") FROM \"inspectit_self_logs\" WHERE (\"service\" =~ /^$service$/ AND \"level\" =~ /^ERROR$/ ) AND $timeFilter", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "counter" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - }, - { - "params": [], - "type": "non_negative_difference" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "level", - "operator": "=", - "value": "ERROR" - } - ] - } - ], - "thresholds": "1", - "title": "Errors", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "$$hashKey": "object:383", - "op": "=", - "text": "0", - "value": "null" - } - ], - "valueName": "current" - }, - { - "aliasColors": { - "classes pending for hook": "#99440a" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalInflux", - "fill": 5, - "fillGradient": 0, - "gridPos": { - "h": 6, - "w": 10, - "x": 14, - "y": 36 - }, - "hiddenSeries": false, - "id": 146, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1588836303607, - "repeatPanelId": 49, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "visits-service", - "value": "visits-service" - } - }, - "seriesOverrides": [ - { - "alias": "instrumented classes", - "color": "#629e51", - "fill": 5, - "zindex": 3 - }, - { - "alias": "classes pending for analysis", - "color": "#eab839", - "zindex": 0 - }, - { - "alias": "loaded classes", - "color": "#82b5d8", - "zindex": -3 - }, - { - "alias": "JVM CPU Utilization", - "color": "#bf1b00", - "fill": 0, - "linewidth": 2, - "yaxis": 2, - "zindex": 3 - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "loaded classes", - "groupBy": [ - { - "params": [ - "1m" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "jvm_classes_loaded", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "instrumented classes", - "groupBy": [ - { - "params": [ - "1m" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "inspectit_self_instrumented_classes", - "orderByTime": "ASC", - "policy": "default", - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "classes pending for analysis", - "groupBy": [ - { - "params": [ - "1m" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "inspectit_self_instrumentation_queue_size", - "orderByTime": "ASC", - "policy": "default", - "refId": "C", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "JVM CPU Utilization", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "process_cpu_usage", - "orderByTime": "ASC", - "policy": "default", - "refId": "D", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Instrumentation State over time (Logarithmic Scale)", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": "# Classes", - "logBase": 10, - "max": null, - "min": "0", - "show": true - }, - { - "format": "percentunit", - "label": null, - "logBase": 1, - "max": "1", - "min": "0", - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": true, - "colorValue": false, - "colors": [ - "rgb(33,33,36)", - "#967302", - "#d44a3a" - ], - "datasource": "LocalInflux", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 12, - "y": 38 - }, - "id": 147, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "$$hashKey": "object:421", - "name": "value to text", - "value": 1 - }, - { - "$$hashKey": "object:422", - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1588836303607, - "repeatPanelId": 107, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "visits-service", - "value": "visits-service" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "inspectit_self_logs", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(\"counter\") FROM \"inspectit_self_logs\" WHERE (\"service\" =~ /^$service$/ AND \"level\" =~ /^WARN$/ ) AND $timeFilter", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "counter" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - }, - { - "params": [], - "type": "non_negative_difference" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "level", - "operator": "=", - "value": "ERROR" - } - ] - } - ], - "thresholds": "1", - "title": "Warnings", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "$$hashKey": "object:424", - "op": "=", - "text": "0", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "rgb(33,33,36)", - "#967302", - "#d44a3a" - ], - "datasource": "LocalInflux", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 12, - "y": 40 - }, - "id": 148, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "$$hashKey": "object:462", - "name": "value to text", - "value": 1 - }, - { - "$$hashKey": "object:463", - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1588836303607, - "repeatPanelId": 108, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "visits-service", - "value": "visits-service" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "inspectit_self_logs", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(\"counter\") FROM \"inspectit_self_logs\" WHERE (\"service\" =~ /^$service$/ AND \"level\" =~ /^INFO|DEBUG|TRACE$/ ) AND $timeFilter", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "counter" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - }, - { - "params": [], - "type": "non_negative_difference" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "level", - "operator": "=", - "value": "ERROR" - } - ] - } - ], - "thresholds": "1", - "title": "Other Logs", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "$$hashKey": "object:465", - "op": "=", - "text": "0", - "value": "null" - } - ], - "valueName": "current" - } - ], - "refresh": "30s", - "schemaVersion": 22, - "style": "dark", - "tags": [], - "templating": { - "list": [ - { - "allValue": null, - "current": { - "selected": false, - "text": "All", - "value": "$__all" - }, - "datasource": "LocalInflux", - "definition": "SHOW TAG VALUES WITH KEY = \"service\"", - "hide": 0, - "includeAll": true, - "index": -1, - "label": null, - "multi": true, - "name": "service", - "options": [], - "query": "SHOW TAG VALUES WITH KEY = \"service\"", - "refresh": 2, - "regex": "", - "skipUrlSync": false, - "sort": 0, - "tagValuesQuery": "", - "tags": [], - "tagsQuery": "", - "type": "query", - "useTags": false - } - ] - }, - "time": { - "from": "now-1h", - "to": "now" - }, - "timepicker": { - "refresh_intervals": [ - "5s", - "10s", - "30s", - "1m", - "5m", - "15m", - "30m", - "1h", - "2h", - "1d" - ], - "time_options": [ - "5m", - "15m", - "1h", - "6h", - "12h", - "24h", - "2d", - "7d", - "30d" - ] - }, - "timezone": "", - "title": "inspectIT Agent Self-Monitoring", - "uid": "D-EaVt_ik", - "variables": { - "list": [] - }, - "version": 1 -} \ No newline at end of file diff --git a/inspectit-ocelot-demo/grafana/provisioning/influxdb/dashboards/agent/service-graph-influxql.json b/inspectit-ocelot-demo/grafana/provisioning/influxdb/dashboards/agent/service-graph-influxql.json deleted file mode 100644 index 7045de8907..0000000000 --- a/inspectit-ocelot-demo/grafana/provisioning/influxdb/dashboards/agent/service-graph-influxql.json +++ /dev/null @@ -1,485 +0,0 @@ -{ - "annotations": { - "list": [ - { - "$$hashKey": "object:728", - "builtIn": 1, - "datasource": "-- Grafana --", - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "type": "dashboard" - } - ] - }, - "editable": true, - "gnetId": null, - "graphTooltip": 0, - "iteration": 1629379201350, - "links": [], - "panels": [ - { - "datasource": "LocalInflux", - "gridPos": { - "h": 20, - "w": 22, - "x": 0, - "y": 0 - }, - "id": 4, - "links": [], - "options": { - "aggregationType": "service", - "baselineRtUpper": "threshold", - "dataMapping": { - "aggregationType": "service", - "baselineRtUpper": "threshold", - "errorRateColumn": "error_in", - "errorRateOutgoingColumn": "error_out", - "extOrigin": "", - "extTarget": "", - "requestRateColumn": "in_count", - "requestRateOutgoingColumn": "out_count", - "responseTimeColumn": "in_timesum", - "responseTimeOutgoingColumn": "out_timesum", - "showDummyData": false, - "sourceColumn": "origin_service", - "targetColumn": "target_service", - "type": "" - }, - "drillDownLink": "", - "dummyDataSwitch": { - "aggregationType": "service", - "baselineRtUpper": "threshold", - "errorRateColumn": "error-rate", - "errorRateOutgoingColumn": "error-rate-out", - "extOrigin": "external_origin", - "extTarget": "external_target", - "requestRateColumn": "request-rate", - "requestRateOutgoingColumn": "request-rate-out", - "responseTimeColumn": "response-time", - "responseTimeOutgoingColumn": "response-time-out", - "showDummyData": false, - "sourceColumn": "origin_service", - "targetColumn": "target_service", - "type": "type" - }, - "errorRateColumn": "error-rate", - "errorRateOutgoingColumn": "error-rate-out", - "externalIconMapping": [ - { - "filename": "web", - "pattern": "web" - }, - { - "filename": "message", - "pattern": "jms" - }, - { - "filename": "database", - "pattern": "jdbc" - }, - { - "filename": "http", - "pattern": "http" - } - ], - "externalIcons": [ - { - "filename": "web", - "pattern": "web" - }, - { - "filename": "message", - "pattern": "jms" - }, - { - "filename": "database", - "pattern": "jdbc" - }, - { - "filename": "http", - "pattern": "http" - } - ], - "externalOrigin": "external_origin", - "externalTarget": "external_target", - "filterEmptyConnections": true, - "iconMapping": [ - { - "filename": "java", - "pattern": "java" - }, - { - "filename": "star_trek", - "pattern": "spok|star trek" - } - ], - "icons": [ - { - "filename": "java", - "pattern": "java" - }, - { - "filename": "star_trek", - "pattern": "spok|star trek" - } - ], - "requestRateColumn": "request-rate", - "requestRateOutgoingColumn": "request-rate-out", - "responseTime": "response-time", - "responseTimeOutgoingColumn": "response-time-out", - "showBaselines": false, - "showConnectionStats": true, - "showDebugInformation": false, - "sourceComponentPrefix": "origin_service", - "style": { - "dangerColor": "rgb(196, 22, 42)", - "healthyColor": "rgb(87, 148, 242)", - "noDataColor": "rgb(123, 123, 138)" - }, - "sumTimings": true, - "targetComponentPrefix": "target_service", - "timeFormat": "m", - "type": "type" - }, - "pluginVersion": "4.0.2", - "targets": [ - { - "alias": "in_count", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "hide": false, - "measurement": "service_in_count", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(\"count\") AS \"in_count\" FROM \"autogen\".\"service_in_responsetime\" \nWHERE (\"service\" =~ /^$service$/ OR \"origin_service\" =~ /^$service$/) AND $timeFilter\nGROUP BY \"service\", \"origin_service\", \"target_external\", \"protocol\"", - "rawQuery": true, - "refId": "A", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "spread" - } - ] - ], - "tags": [] - }, - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "hide": false, - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(\"count\") AS \"out_count\" FROM \"autogen\".\"service_out_responsetime\" \nWHERE (\"service\" =~ /^$service$/ OR \"target_service\" =~ /^$service$/) AND $timeFilter\nGROUP BY \"service\", \"target_service\", \"target_external\", \"protocol\"", - "rawQuery": true, - "refId": "B", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - }, - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "hide": false, - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(\"sum\")/SUM(\"count\") AS \"in_responsetime\" FROM \"autogen\".\"service_in_responsetime\" \nWHERE (\"service\" =~ /^$service$/ OR \"origin_service\" =~ /^$service$/) AND $timeFilter\nGROUP BY \"service\", \"origin_service\", \"target_external\", \"protocol\"", - "rawQuery": true, - "refId": "C", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - }, - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "hide": false, - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(\"sum\")/SUM(\"count\") AS \"out_responsetime\" FROM \"autogen\".\"service_out_responsetime\" \nWHERE (\"service\" =~ /^$service$/ OR \"target_service\" =~ /^$service$/) AND $timeFilter\nGROUP BY \"service\", \"target_service\", \"target_external\", \"protocol\"", - "rawQuery": true, - "refId": "D", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - }, - { - "alias": "in_count", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "hide": false, - "measurement": "service_in_count", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(\"count\") AS \"in_errors\" FROM \"autogen\".\"service_in_responsetime\" \nWHERE (\"service\" =~ /^$service$/ OR \"origin_service\" =~ /^$service$/) AND \"error\"='true' AND $timeFilter\nGROUP BY \"service\", \"origin_service\", \"target_external\", \"protocol\"", - "rawQuery": true, - "refId": "E", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "spread" - } - ] - ], - "tags": [] - }, - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "hide": false, - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(\"count\") AS \"out_errors\" FROM \"autogen\".\"service_out_responsetime\" \nWHERE (\"service\" =~ /^$service$/ OR \"target_service\" =~ /^$service$/) AND \"error\"='true' AND $timeFilter\nGROUP BY \"service\", \"target_service\", \"target_external\", \"protocol\"", - "rawQuery": true, - "refId": "F", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "title": "Service Graph", - "type": "novatec-sdg-panel" - } - ], - "refresh": "30s", - "schemaVersion": 30, - "style": "dark", - "tags": [ - "agent" - ], - "templating": { - "list": [ - { - "allValue": null, - "current": { - "selected": true, - "text": "service", - "value": "service" - }, - "description": null, - "error": null, - "hide": 2, - "includeAll": false, - "label": "", - "multi": false, - "name": "aggregationType", - "options": [ - { - "selected": true, - "text": "service", - "value": "service" - } - ], - "query": "service", - "skipUrlSync": false, - "type": "custom" - }, - { - "allValue": ".*", - "current": { - "selected": true, - "text": [ - "All" - ], - "value": [ - "$__all" - ] - }, - "datasource": "LocalInflux", - "definition": "SHOW TAG VALUES WITH KEY=\"service\"", - "description": null, - "error": null, - "hide": 0, - "includeAll": true, - "label": "Service", - "multi": true, - "name": "service", - "options": [], - "query": "SHOW TAG VALUES WITH KEY=\"service\"", - "refresh": 2, - "regex": "", - "skipUrlSync": false, - "sort": 1, - "tagValuesQuery": "", - "tagsQuery": "", - "type": "query", - "useTags": false - } - ] - }, - "time": { - "from": "now-5m", - "to": "now" - }, - "timepicker": { - "refresh_intervals": [ - "5s", - "10s", - "30s", - "1m", - "5m", - "15m", - "30m", - "1h", - "2h", - "1d" - ], - "time_options": [ - "5m", - "15m", - "1h", - "6h", - "12h", - "24h", - "2d", - "7d", - "30d" - ] - }, - "timezone": "", - "title": "Service Graph", - "uid": "Kx4wbZRZk", - "version": 1 -} \ No newline at end of file diff --git a/inspectit-ocelot-demo/grafana/provisioning/influxdb/dashboards/agent/system-metrics.json b/inspectit-ocelot-demo/grafana/provisioning/influxdb/dashboards/agent/system-metrics.json deleted file mode 100644 index 4a20669243..0000000000 --- a/inspectit-ocelot-demo/grafana/provisioning/influxdb/dashboards/agent/system-metrics.json +++ /dev/null @@ -1,5279 +0,0 @@ -{ - "annotations": { - "list": [ - { - "builtIn": 1, - "datasource": "-- Grafana --", - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "type": "dashboard" - } - ] - }, - "editable": true, - "gnetId": null, - "graphTooltip": 0, - "id": 2, - "iteration": 1580729039212, - "links": [], - "panels": [ - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 0 - }, - "id": 7, - "panels": [], - "repeat": "host", - "scopedVars": { - "host": { - "selected": false, - "text": "1bfe532f5646", - "value": "1bfe532f5646" - } - }, - "title": "$host", - "type": "row" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#bf1b00" - ], - "datasource": "LocalInflux", - "format": "percentunit", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": true, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 0, - "y": 1 - }, - "id": 5, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatDirection": "h", - "scopedVars": { - "host": { - "selected": false, - "text": "1bfe532f5646", - "value": "1bfe532f5646" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "last", - "targets": [ - { - "groupBy": [], - "measurement": "system_cpu_usage", - "orderByTime": "ASC", - "policy": "default", - "query": "", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$host$/" - } - ] - } - ], - "thresholds": "0.9,0.95", - "title": "CPU Usage", - "transparent": false, - "type": "singlestat", - "valueFontSize": "50%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "aliasColors": { - "CPU Utilization": "#82b5d8", - "Load Average": "#bf1b00" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalInflux", - "fill": 2, - "gridPos": { - "h": 6, - "w": 8, - "x": 3, - "y": 1 - }, - "id": 11, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 3, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "scopedVars": { - "host": { - "selected": false, - "text": "1bfe532f5646", - "value": "1bfe532f5646" - } - }, - "seriesOverrides": [ - { - "alias": "Load Average", - "fill": 0, - "linewidth": 3, - "yaxis": 2 - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "CPU Utilization", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "system_cpu_usage", - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"system_cpu_usage\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\"])", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$host$/" - } - ] - }, - { - "alias": "Load Average", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "system_load_average_1m", - "orderByTime": "ASC", - "policy": "default", - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$host$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "CPU Usage", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": null, - "format": "percentunit", - "label": null, - "logBase": 1, - "max": "1.05", - "min": "0", - "show": true - }, - { - "format": "none", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalInflux", - "format": "percentunit", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": true, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 12, - "y": 1 - }, - "id": 4, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeat": null, - "repeatDirection": "h", - "scopedVars": { - "host": { - "selected": false, - "text": "1bfe532f5646", - "value": "1bfe532f5646" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "disk_usage", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT 1 - last(\"free\") / last(\"total\") FROM \"disk_usage\" WHERE (\"host\" =~ /^$host$/) AND $timeFilter", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$host$/" - } - ] - } - ], - "thresholds": "0.9,0.95", - "title": "Disk Usage", - "type": "singlestat", - "valueFontSize": "50%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "aliasColors": { - "disk_free ": "#629e51", - "disk_used ": "#1f78c1" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalInflux", - "fill": 7, - "gridPos": { - "h": 6, - "w": 9, - "x": 15, - "y": 1 - }, - "id": 13, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "scopedVars": { - "host": { - "selected": false, - "text": "1bfe532f5646", - "value": "1bfe532f5646" - } - }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "total capacity", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "linear" - ], - "type": "fill" - } - ], - "measurement": "disk_total", - "orderByTime": "ASC", - "policy": "default", - "query": "usedPerc = () => {\ntotal = from(bucket: \"telegraf\")\n |> range($range)\n |> filter(fn: (r) =>\n r._measurement == \"disk_total\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n \nfree = from(bucket: \"telegraf\")\n |> range($range)\n |> filter(fn: (r) =>\n r._measurement == \"disk_free\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n \nreturn join(tables:{total:total, free:free},on:[\"_time\",\"_stop\",\"_start\"])\n |> map(fn:(r) => ({\n _time: r._time,\n _value: (r._value_total - r._value_free),\n _measurement: \"disk_used\"\n }))\n}\n\nusedPerc()", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$host$/" - } - ] - }, - { - "alias": "used", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "disk_usage", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"total\")- mean(free) FROM \"disk_usage\" WHERE (\"host\" =~ /^$host$/) AND $timeFilter GROUP BY time($__interval) fill(linear)", - "rawQuery": true, - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "total" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$host$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Disk Usage", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": null, - "format": "decbytes", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalInflux", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 3, - "x": 0, - "y": 5 - }, - "id": 9, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "scopedVars": { - "host": { - "selected": false, - "text": "1bfe532f5646", - "value": "1bfe532f5646" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [], - "measurement": "system_cpu_count", - "orderByTime": "ASC", - "policy": "autogen", - "query": "from(bucket: \"telegraf\")\n|> range(start: -1m)\n|> filter(fn: (r) =>\n r._measurement == \"system_cpu_count\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\"])\n|> last()", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$host$/" - } - ] - } - ], - "thresholds": "", - "title": "# CPUs", - "transparent": false, - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#d44a3a", - "rgba(237, 129, 40, 0.89)", - "#299c46" - ], - "datasource": "LocalInflux", - "decimals": null, - "format": "decbytes", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 3, - "x": 12, - "y": 5 - }, - "id": 12, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "scopedVars": { - "host": { - "selected": false, - "text": "1bfe532f5646", - "value": "1bfe532f5646" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [], - "measurement": "disk_free", - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n |> range(start: -1m)\n |> filter(fn: (r) =>\n r._measurement == \"disk_free\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\"])\n |> last()", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$host$/" - } - ] - } - ], - "thresholds": "500000,200000", - "title": "Disk Free", - "transparent": false, - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 7 - }, - "id": 14, - "panels": [], - "repeat": null, - "repeatIteration": 1580729039212, - "repeatPanelId": 7, - "scopedVars": { - "host": { - "selected": false, - "text": "5c848976289b", - "value": "5c848976289b" - } - }, - "title": "$host", - "type": "row" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#bf1b00" - ], - "datasource": "LocalInflux", - "format": "percentunit", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": true, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 0, - "y": 8 - }, - "id": 15, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatDirection": "h", - "repeatIteration": 1580729039212, - "repeatPanelId": 5, - "repeatedByRow": true, - "scopedVars": { - "host": { - "selected": false, - "text": "5c848976289b", - "value": "5c848976289b" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "last", - "targets": [ - { - "groupBy": [], - "measurement": "system_cpu_usage", - "orderByTime": "ASC", - "policy": "default", - "query": "", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$host$/" - } - ] - } - ], - "thresholds": "0.9,0.95", - "title": "CPU Usage", - "transparent": false, - "type": "singlestat", - "valueFontSize": "50%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "aliasColors": { - "CPU Utilization": "#82b5d8", - "Load Average": "#bf1b00" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalInflux", - "fill": 2, - "gridPos": { - "h": 6, - "w": 8, - "x": 3, - "y": 8 - }, - "id": 16, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 3, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1580729039212, - "repeatPanelId": 11, - "repeatedByRow": true, - "scopedVars": { - "host": { - "selected": false, - "text": "5c848976289b", - "value": "5c848976289b" - } - }, - "seriesOverrides": [ - { - "alias": "Load Average", - "fill": 0, - "linewidth": 3, - "yaxis": 2 - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "CPU Utilization", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "system_cpu_usage", - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"system_cpu_usage\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\"])", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$host$/" - } - ] - }, - { - "alias": "Load Average", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "system_load_average_1m", - "orderByTime": "ASC", - "policy": "default", - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$host$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "CPU Usage", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": null, - "format": "percentunit", - "label": null, - "logBase": 1, - "max": "1.05", - "min": "0", - "show": true - }, - { - "format": "none", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalInflux", - "format": "percentunit", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": true, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 12, - "y": 8 - }, - "id": 17, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeat": null, - "repeatDirection": "h", - "repeatIteration": 1580729039212, - "repeatPanelId": 4, - "repeatedByRow": true, - "scopedVars": { - "host": { - "selected": false, - "text": "5c848976289b", - "value": "5c848976289b" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "disk_usage", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT 1 - last(\"free\") / last(\"total\") FROM \"disk_usage\" WHERE (\"host\" =~ /^$host$/) AND $timeFilter", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$host$/" - } - ] - } - ], - "thresholds": "0.9,0.95", - "title": "Disk Usage", - "type": "singlestat", - "valueFontSize": "50%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "aliasColors": { - "disk_free ": "#629e51", - "disk_used ": "#1f78c1" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalInflux", - "fill": 7, - "gridPos": { - "h": 6, - "w": 9, - "x": 15, - "y": 8 - }, - "id": 18, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1580729039212, - "repeatPanelId": 13, - "repeatedByRow": true, - "scopedVars": { - "host": { - "selected": false, - "text": "5c848976289b", - "value": "5c848976289b" - } - }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "total capacity", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "linear" - ], - "type": "fill" - } - ], - "measurement": "disk_total", - "orderByTime": "ASC", - "policy": "default", - "query": "usedPerc = () => {\ntotal = from(bucket: \"telegraf\")\n |> range($range)\n |> filter(fn: (r) =>\n r._measurement == \"disk_total\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n \nfree = from(bucket: \"telegraf\")\n |> range($range)\n |> filter(fn: (r) =>\n r._measurement == \"disk_free\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n \nreturn join(tables:{total:total, free:free},on:[\"_time\",\"_stop\",\"_start\"])\n |> map(fn:(r) => ({\n _time: r._time,\n _value: (r._value_total - r._value_free),\n _measurement: \"disk_used\"\n }))\n}\n\nusedPerc()", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$host$/" - } - ] - }, - { - "alias": "used", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "disk_usage", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"total\")- mean(free) FROM \"disk_usage\" WHERE (\"host\" =~ /^$host$/) AND $timeFilter GROUP BY time($__interval) fill(linear)", - "rawQuery": true, - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "total" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$host$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Disk Usage", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": null, - "format": "decbytes", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalInflux", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 3, - "x": 0, - "y": 12 - }, - "id": 19, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1580729039212, - "repeatPanelId": 9, - "repeatedByRow": true, - "scopedVars": { - "host": { - "selected": false, - "text": "5c848976289b", - "value": "5c848976289b" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [], - "measurement": "system_cpu_count", - "orderByTime": "ASC", - "policy": "autogen", - "query": "from(bucket: \"telegraf\")\n|> range(start: -1m)\n|> filter(fn: (r) =>\n r._measurement == \"system_cpu_count\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\"])\n|> last()", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$host$/" - } - ] - } - ], - "thresholds": "", - "title": "# CPUs", - "transparent": false, - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#d44a3a", - "rgba(237, 129, 40, 0.89)", - "#299c46" - ], - "datasource": "LocalInflux", - "decimals": null, - "format": "decbytes", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 3, - "x": 12, - "y": 12 - }, - "id": 20, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1580729039212, - "repeatPanelId": 12, - "repeatedByRow": true, - "scopedVars": { - "host": { - "selected": false, - "text": "5c848976289b", - "value": "5c848976289b" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [], - "measurement": "disk_free", - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n |> range(start: -1m)\n |> filter(fn: (r) =>\n r._measurement == \"disk_free\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\"])\n |> last()", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$host$/" - } - ] - } - ], - "thresholds": "500000,200000", - "title": "Disk Free", - "transparent": false, - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 14 - }, - "id": 21, - "panels": [], - "repeat": null, - "repeatIteration": 1580729039212, - "repeatPanelId": 7, - "scopedVars": { - "host": { - "selected": false, - "text": "843e55a2f995", - "value": "843e55a2f995" - } - }, - "title": "$host", - "type": "row" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#bf1b00" - ], - "datasource": "LocalInflux", - "format": "percentunit", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": true, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 0, - "y": 15 - }, - "id": 22, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatDirection": "h", - "repeatIteration": 1580729039212, - "repeatPanelId": 5, - "repeatedByRow": true, - "scopedVars": { - "host": { - "selected": false, - "text": "843e55a2f995", - "value": "843e55a2f995" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "last", - "targets": [ - { - "groupBy": [], - "measurement": "system_cpu_usage", - "orderByTime": "ASC", - "policy": "default", - "query": "", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$host$/" - } - ] - } - ], - "thresholds": "0.9,0.95", - "title": "CPU Usage", - "transparent": false, - "type": "singlestat", - "valueFontSize": "50%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "aliasColors": { - "CPU Utilization": "#82b5d8", - "Load Average": "#bf1b00" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalInflux", - "fill": 2, - "gridPos": { - "h": 6, - "w": 8, - "x": 3, - "y": 15 - }, - "id": 23, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 3, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1580729039212, - "repeatPanelId": 11, - "repeatedByRow": true, - "scopedVars": { - "host": { - "selected": false, - "text": "843e55a2f995", - "value": "843e55a2f995" - } - }, - "seriesOverrides": [ - { - "alias": "Load Average", - "fill": 0, - "linewidth": 3, - "yaxis": 2 - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "CPU Utilization", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "system_cpu_usage", - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"system_cpu_usage\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\"])", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$host$/" - } - ] - }, - { - "alias": "Load Average", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "system_load_average_1m", - "orderByTime": "ASC", - "policy": "default", - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$host$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "CPU Usage", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": null, - "format": "percentunit", - "label": null, - "logBase": 1, - "max": "1.05", - "min": "0", - "show": true - }, - { - "format": "none", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalInflux", - "format": "percentunit", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": true, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 12, - "y": 15 - }, - "id": 24, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeat": null, - "repeatDirection": "h", - "repeatIteration": 1580729039212, - "repeatPanelId": 4, - "repeatedByRow": true, - "scopedVars": { - "host": { - "selected": false, - "text": "843e55a2f995", - "value": "843e55a2f995" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "disk_usage", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT 1 - last(\"free\") / last(\"total\") FROM \"disk_usage\" WHERE (\"host\" =~ /^$host$/) AND $timeFilter", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$host$/" - } - ] - } - ], - "thresholds": "0.9,0.95", - "title": "Disk Usage", - "type": "singlestat", - "valueFontSize": "50%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "aliasColors": { - "disk_free ": "#629e51", - "disk_used ": "#1f78c1" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalInflux", - "fill": 7, - "gridPos": { - "h": 6, - "w": 9, - "x": 15, - "y": 15 - }, - "id": 25, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1580729039212, - "repeatPanelId": 13, - "repeatedByRow": true, - "scopedVars": { - "host": { - "selected": false, - "text": "843e55a2f995", - "value": "843e55a2f995" - } - }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "total capacity", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "linear" - ], - "type": "fill" - } - ], - "measurement": "disk_total", - "orderByTime": "ASC", - "policy": "default", - "query": "usedPerc = () => {\ntotal = from(bucket: \"telegraf\")\n |> range($range)\n |> filter(fn: (r) =>\n r._measurement == \"disk_total\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n \nfree = from(bucket: \"telegraf\")\n |> range($range)\n |> filter(fn: (r) =>\n r._measurement == \"disk_free\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n \nreturn join(tables:{total:total, free:free},on:[\"_time\",\"_stop\",\"_start\"])\n |> map(fn:(r) => ({\n _time: r._time,\n _value: (r._value_total - r._value_free),\n _measurement: \"disk_used\"\n }))\n}\n\nusedPerc()", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$host$/" - } - ] - }, - { - "alias": "used", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "disk_usage", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"total\")- mean(free) FROM \"disk_usage\" WHERE (\"host\" =~ /^$host$/) AND $timeFilter GROUP BY time($__interval) fill(linear)", - "rawQuery": true, - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "total" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$host$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Disk Usage", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": null, - "format": "decbytes", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalInflux", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 3, - "x": 0, - "y": 19 - }, - "id": 26, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1580729039212, - "repeatPanelId": 9, - "repeatedByRow": true, - "scopedVars": { - "host": { - "selected": false, - "text": "843e55a2f995", - "value": "843e55a2f995" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [], - "measurement": "system_cpu_count", - "orderByTime": "ASC", - "policy": "autogen", - "query": "from(bucket: \"telegraf\")\n|> range(start: -1m)\n|> filter(fn: (r) =>\n r._measurement == \"system_cpu_count\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\"])\n|> last()", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$host$/" - } - ] - } - ], - "thresholds": "", - "title": "# CPUs", - "transparent": false, - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#d44a3a", - "rgba(237, 129, 40, 0.89)", - "#299c46" - ], - "datasource": "LocalInflux", - "decimals": null, - "format": "decbytes", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 3, - "x": 12, - "y": 19 - }, - "id": 27, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1580729039212, - "repeatPanelId": 12, - "repeatedByRow": true, - "scopedVars": { - "host": { - "selected": false, - "text": "843e55a2f995", - "value": "843e55a2f995" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [], - "measurement": "disk_free", - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n |> range(start: -1m)\n |> filter(fn: (r) =>\n r._measurement == \"disk_free\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\"])\n |> last()", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$host$/" - } - ] - } - ], - "thresholds": "500000,200000", - "title": "Disk Free", - "transparent": false, - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 21 - }, - "id": 28, - "panels": [], - "repeat": null, - "repeatIteration": 1580729039212, - "repeatPanelId": 7, - "scopedVars": { - "host": { - "selected": false, - "text": "891bdc889c77", - "value": "891bdc889c77" - } - }, - "title": "$host", - "type": "row" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#bf1b00" - ], - "datasource": "LocalInflux", - "format": "percentunit", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": true, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 0, - "y": 22 - }, - "id": 29, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatDirection": "h", - "repeatIteration": 1580729039212, - "repeatPanelId": 5, - "repeatedByRow": true, - "scopedVars": { - "host": { - "selected": false, - "text": "891bdc889c77", - "value": "891bdc889c77" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "last", - "targets": [ - { - "groupBy": [], - "measurement": "system_cpu_usage", - "orderByTime": "ASC", - "policy": "default", - "query": "", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$host$/" - } - ] - } - ], - "thresholds": "0.9,0.95", - "title": "CPU Usage", - "transparent": false, - "type": "singlestat", - "valueFontSize": "50%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "aliasColors": { - "CPU Utilization": "#82b5d8", - "Load Average": "#bf1b00" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalInflux", - "fill": 2, - "gridPos": { - "h": 6, - "w": 8, - "x": 3, - "y": 22 - }, - "id": 30, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 3, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1580729039212, - "repeatPanelId": 11, - "repeatedByRow": true, - "scopedVars": { - "host": { - "selected": false, - "text": "891bdc889c77", - "value": "891bdc889c77" - } - }, - "seriesOverrides": [ - { - "alias": "Load Average", - "fill": 0, - "linewidth": 3, - "yaxis": 2 - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "CPU Utilization", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "system_cpu_usage", - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"system_cpu_usage\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\"])", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$host$/" - } - ] - }, - { - "alias": "Load Average", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "system_load_average_1m", - "orderByTime": "ASC", - "policy": "default", - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$host$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "CPU Usage", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": null, - "format": "percentunit", - "label": null, - "logBase": 1, - "max": "1.05", - "min": "0", - "show": true - }, - { - "format": "none", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalInflux", - "format": "percentunit", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": true, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 12, - "y": 22 - }, - "id": 31, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeat": null, - "repeatDirection": "h", - "repeatIteration": 1580729039212, - "repeatPanelId": 4, - "repeatedByRow": true, - "scopedVars": { - "host": { - "selected": false, - "text": "891bdc889c77", - "value": "891bdc889c77" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "disk_usage", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT 1 - last(\"free\") / last(\"total\") FROM \"disk_usage\" WHERE (\"host\" =~ /^$host$/) AND $timeFilter", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$host$/" - } - ] - } - ], - "thresholds": "0.9,0.95", - "title": "Disk Usage", - "type": "singlestat", - "valueFontSize": "50%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "aliasColors": { - "disk_free ": "#629e51", - "disk_used ": "#1f78c1" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalInflux", - "fill": 7, - "gridPos": { - "h": 6, - "w": 9, - "x": 15, - "y": 22 - }, - "id": 32, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1580729039212, - "repeatPanelId": 13, - "repeatedByRow": true, - "scopedVars": { - "host": { - "selected": false, - "text": "891bdc889c77", - "value": "891bdc889c77" - } - }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "total capacity", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "linear" - ], - "type": "fill" - } - ], - "measurement": "disk_total", - "orderByTime": "ASC", - "policy": "default", - "query": "usedPerc = () => {\ntotal = from(bucket: \"telegraf\")\n |> range($range)\n |> filter(fn: (r) =>\n r._measurement == \"disk_total\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n \nfree = from(bucket: \"telegraf\")\n |> range($range)\n |> filter(fn: (r) =>\n r._measurement == \"disk_free\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n \nreturn join(tables:{total:total, free:free},on:[\"_time\",\"_stop\",\"_start\"])\n |> map(fn:(r) => ({\n _time: r._time,\n _value: (r._value_total - r._value_free),\n _measurement: \"disk_used\"\n }))\n}\n\nusedPerc()", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$host$/" - } - ] - }, - { - "alias": "used", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "disk_usage", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"total\")- mean(free) FROM \"disk_usage\" WHERE (\"host\" =~ /^$host$/) AND $timeFilter GROUP BY time($__interval) fill(linear)", - "rawQuery": true, - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "total" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$host$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Disk Usage", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": null, - "format": "decbytes", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalInflux", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 3, - "x": 0, - "y": 26 - }, - "id": 33, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1580729039212, - "repeatPanelId": 9, - "repeatedByRow": true, - "scopedVars": { - "host": { - "selected": false, - "text": "891bdc889c77", - "value": "891bdc889c77" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [], - "measurement": "system_cpu_count", - "orderByTime": "ASC", - "policy": "autogen", - "query": "from(bucket: \"telegraf\")\n|> range(start: -1m)\n|> filter(fn: (r) =>\n r._measurement == \"system_cpu_count\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\"])\n|> last()", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$host$/" - } - ] - } - ], - "thresholds": "", - "title": "# CPUs", - "transparent": false, - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#d44a3a", - "rgba(237, 129, 40, 0.89)", - "#299c46" - ], - "datasource": "LocalInflux", - "decimals": null, - "format": "decbytes", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 3, - "x": 12, - "y": 26 - }, - "id": 34, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1580729039212, - "repeatPanelId": 12, - "repeatedByRow": true, - "scopedVars": { - "host": { - "selected": false, - "text": "891bdc889c77", - "value": "891bdc889c77" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [], - "measurement": "disk_free", - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n |> range(start: -1m)\n |> filter(fn: (r) =>\n r._measurement == \"disk_free\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\"])\n |> last()", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$host$/" - } - ] - } - ], - "thresholds": "500000,200000", - "title": "Disk Free", - "transparent": false, - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 28 - }, - "id": 35, - "panels": [], - "repeat": null, - "repeatIteration": 1580729039212, - "repeatPanelId": 7, - "scopedVars": { - "host": { - "selected": false, - "text": "a54468c29b5f", - "value": "a54468c29b5f" - } - }, - "title": "$host", - "type": "row" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#bf1b00" - ], - "datasource": "LocalInflux", - "format": "percentunit", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": true, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 0, - "y": 29 - }, - "id": 36, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatDirection": "h", - "repeatIteration": 1580729039212, - "repeatPanelId": 5, - "repeatedByRow": true, - "scopedVars": { - "host": { - "selected": false, - "text": "a54468c29b5f", - "value": "a54468c29b5f" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "last", - "targets": [ - { - "groupBy": [], - "measurement": "system_cpu_usage", - "orderByTime": "ASC", - "policy": "default", - "query": "", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$host$/" - } - ] - } - ], - "thresholds": "0.9,0.95", - "title": "CPU Usage", - "transparent": false, - "type": "singlestat", - "valueFontSize": "50%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "aliasColors": { - "CPU Utilization": "#82b5d8", - "Load Average": "#bf1b00" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalInflux", - "fill": 2, - "gridPos": { - "h": 6, - "w": 8, - "x": 3, - "y": 29 - }, - "id": 37, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 3, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1580729039212, - "repeatPanelId": 11, - "repeatedByRow": true, - "scopedVars": { - "host": { - "selected": false, - "text": "a54468c29b5f", - "value": "a54468c29b5f" - } - }, - "seriesOverrides": [ - { - "alias": "Load Average", - "fill": 0, - "linewidth": 3, - "yaxis": 2 - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "CPU Utilization", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "system_cpu_usage", - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"system_cpu_usage\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\"])", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$host$/" - } - ] - }, - { - "alias": "Load Average", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "system_load_average_1m", - "orderByTime": "ASC", - "policy": "default", - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$host$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "CPU Usage", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": null, - "format": "percentunit", - "label": null, - "logBase": 1, - "max": "1.05", - "min": "0", - "show": true - }, - { - "format": "none", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalInflux", - "format": "percentunit", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": true, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 12, - "y": 29 - }, - "id": 38, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeat": null, - "repeatDirection": "h", - "repeatIteration": 1580729039212, - "repeatPanelId": 4, - "repeatedByRow": true, - "scopedVars": { - "host": { - "selected": false, - "text": "a54468c29b5f", - "value": "a54468c29b5f" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "disk_usage", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT 1 - last(\"free\") / last(\"total\") FROM \"disk_usage\" WHERE (\"host\" =~ /^$host$/) AND $timeFilter", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$host$/" - } - ] - } - ], - "thresholds": "0.9,0.95", - "title": "Disk Usage", - "type": "singlestat", - "valueFontSize": "50%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "aliasColors": { - "disk_free ": "#629e51", - "disk_used ": "#1f78c1" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalInflux", - "fill": 7, - "gridPos": { - "h": 6, - "w": 9, - "x": 15, - "y": 29 - }, - "id": 39, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1580729039212, - "repeatPanelId": 13, - "repeatedByRow": true, - "scopedVars": { - "host": { - "selected": false, - "text": "a54468c29b5f", - "value": "a54468c29b5f" - } - }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "total capacity", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "linear" - ], - "type": "fill" - } - ], - "measurement": "disk_total", - "orderByTime": "ASC", - "policy": "default", - "query": "usedPerc = () => {\ntotal = from(bucket: \"telegraf\")\n |> range($range)\n |> filter(fn: (r) =>\n r._measurement == \"disk_total\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n \nfree = from(bucket: \"telegraf\")\n |> range($range)\n |> filter(fn: (r) =>\n r._measurement == \"disk_free\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n \nreturn join(tables:{total:total, free:free},on:[\"_time\",\"_stop\",\"_start\"])\n |> map(fn:(r) => ({\n _time: r._time,\n _value: (r._value_total - r._value_free),\n _measurement: \"disk_used\"\n }))\n}\n\nusedPerc()", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$host$/" - } - ] - }, - { - "alias": "used", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "disk_usage", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"total\")- mean(free) FROM \"disk_usage\" WHERE (\"host\" =~ /^$host$/) AND $timeFilter GROUP BY time($__interval) fill(linear)", - "rawQuery": true, - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "total" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$host$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Disk Usage", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": null, - "format": "decbytes", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalInflux", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 3, - "x": 0, - "y": 33 - }, - "id": 40, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1580729039212, - "repeatPanelId": 9, - "repeatedByRow": true, - "scopedVars": { - "host": { - "selected": false, - "text": "a54468c29b5f", - "value": "a54468c29b5f" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [], - "measurement": "system_cpu_count", - "orderByTime": "ASC", - "policy": "autogen", - "query": "from(bucket: \"telegraf\")\n|> range(start: -1m)\n|> filter(fn: (r) =>\n r._measurement == \"system_cpu_count\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\"])\n|> last()", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$host$/" - } - ] - } - ], - "thresholds": "", - "title": "# CPUs", - "transparent": false, - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#d44a3a", - "rgba(237, 129, 40, 0.89)", - "#299c46" - ], - "datasource": "LocalInflux", - "decimals": null, - "format": "decbytes", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 3, - "x": 12, - "y": 33 - }, - "id": 41, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1580729039212, - "repeatPanelId": 12, - "repeatedByRow": true, - "scopedVars": { - "host": { - "selected": false, - "text": "a54468c29b5f", - "value": "a54468c29b5f" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [], - "measurement": "disk_free", - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n |> range(start: -1m)\n |> filter(fn: (r) =>\n r._measurement == \"disk_free\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\"])\n |> last()", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$host$/" - } - ] - } - ], - "thresholds": "500000,200000", - "title": "Disk Free", - "transparent": false, - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 35 - }, - "id": 42, - "panels": [], - "repeat": null, - "repeatIteration": 1580729039212, - "repeatPanelId": 7, - "scopedVars": { - "host": { - "selected": false, - "text": "f009585a9a12", - "value": "f009585a9a12" - } - }, - "title": "$host", - "type": "row" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#bf1b00" - ], - "datasource": "LocalInflux", - "format": "percentunit", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": true, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 0, - "y": 36 - }, - "id": 43, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatDirection": "h", - "repeatIteration": 1580729039212, - "repeatPanelId": 5, - "repeatedByRow": true, - "scopedVars": { - "host": { - "selected": false, - "text": "f009585a9a12", - "value": "f009585a9a12" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "last", - "targets": [ - { - "groupBy": [], - "measurement": "system_cpu_usage", - "orderByTime": "ASC", - "policy": "default", - "query": "", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$host$/" - } - ] - } - ], - "thresholds": "0.9,0.95", - "title": "CPU Usage", - "transparent": false, - "type": "singlestat", - "valueFontSize": "50%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "aliasColors": { - "CPU Utilization": "#82b5d8", - "Load Average": "#bf1b00" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalInflux", - "fill": 2, - "gridPos": { - "h": 6, - "w": 8, - "x": 3, - "y": 36 - }, - "id": 44, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 3, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1580729039212, - "repeatPanelId": 11, - "repeatedByRow": true, - "scopedVars": { - "host": { - "selected": false, - "text": "f009585a9a12", - "value": "f009585a9a12" - } - }, - "seriesOverrides": [ - { - "alias": "Load Average", - "fill": 0, - "linewidth": 3, - "yaxis": 2 - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "CPU Utilization", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "system_cpu_usage", - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"system_cpu_usage\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\"])", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$host$/" - } - ] - }, - { - "alias": "Load Average", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "system_load_average_1m", - "orderByTime": "ASC", - "policy": "default", - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$host$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "CPU Usage", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": null, - "format": "percentunit", - "label": null, - "logBase": 1, - "max": "1.05", - "min": "0", - "show": true - }, - { - "format": "none", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalInflux", - "format": "percentunit", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": true, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 12, - "y": 36 - }, - "id": 45, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeat": null, - "repeatDirection": "h", - "repeatIteration": 1580729039212, - "repeatPanelId": 4, - "repeatedByRow": true, - "scopedVars": { - "host": { - "selected": false, - "text": "f009585a9a12", - "value": "f009585a9a12" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "disk_usage", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT 1 - last(\"free\") / last(\"total\") FROM \"disk_usage\" WHERE (\"host\" =~ /^$host$/) AND $timeFilter", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$host$/" - } - ] - } - ], - "thresholds": "0.9,0.95", - "title": "Disk Usage", - "type": "singlestat", - "valueFontSize": "50%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "aliasColors": { - "disk_free ": "#629e51", - "disk_used ": "#1f78c1" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalInflux", - "fill": 7, - "gridPos": { - "h": 6, - "w": 9, - "x": 15, - "y": 36 - }, - "id": 46, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1580729039212, - "repeatPanelId": 13, - "repeatedByRow": true, - "scopedVars": { - "host": { - "selected": false, - "text": "f009585a9a12", - "value": "f009585a9a12" - } - }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "total capacity", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "linear" - ], - "type": "fill" - } - ], - "measurement": "disk_total", - "orderByTime": "ASC", - "policy": "default", - "query": "usedPerc = () => {\ntotal = from(bucket: \"telegraf\")\n |> range($range)\n |> filter(fn: (r) =>\n r._measurement == \"disk_total\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n \nfree = from(bucket: \"telegraf\")\n |> range($range)\n |> filter(fn: (r) =>\n r._measurement == \"disk_free\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n \nreturn join(tables:{total:total, free:free},on:[\"_time\",\"_stop\",\"_start\"])\n |> map(fn:(r) => ({\n _time: r._time,\n _value: (r._value_total - r._value_free),\n _measurement: \"disk_used\"\n }))\n}\n\nusedPerc()", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$host$/" - } - ] - }, - { - "alias": "used", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "disk_usage", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"total\")- mean(free) FROM \"disk_usage\" WHERE (\"host\" =~ /^$host$/) AND $timeFilter GROUP BY time($__interval) fill(linear)", - "rawQuery": true, - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "total" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$host$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Disk Usage", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": null, - "format": "decbytes", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalInflux", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 3, - "x": 0, - "y": 40 - }, - "id": 47, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1580729039212, - "repeatPanelId": 9, - "repeatedByRow": true, - "scopedVars": { - "host": { - "selected": false, - "text": "f009585a9a12", - "value": "f009585a9a12" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [], - "measurement": "system_cpu_count", - "orderByTime": "ASC", - "policy": "autogen", - "query": "from(bucket: \"telegraf\")\n|> range(start: -1m)\n|> filter(fn: (r) =>\n r._measurement == \"system_cpu_count\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\"])\n|> last()", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$host$/" - } - ] - } - ], - "thresholds": "", - "title": "# CPUs", - "transparent": false, - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#d44a3a", - "rgba(237, 129, 40, 0.89)", - "#299c46" - ], - "datasource": "LocalInflux", - "decimals": null, - "format": "decbytes", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 3, - "x": 12, - "y": 40 - }, - "id": 48, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1580729039212, - "repeatPanelId": 12, - "repeatedByRow": true, - "scopedVars": { - "host": { - "selected": false, - "text": "f009585a9a12", - "value": "f009585a9a12" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [], - "measurement": "disk_free", - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n |> range(start: -1m)\n |> filter(fn: (r) =>\n r._measurement == \"disk_free\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\"])\n |> last()", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$host$/" - } - ] - } - ], - "thresholds": "500000,200000", - "title": "Disk Free", - "transparent": false, - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - } - ], - "refresh": "30s", - "schemaVersion": 16, - "style": "dark", - "tags": [], - "templating": { - "list": [ - { - "allValue": null, - "current": { - "text": "All", - "value": [ - "$__all" - ] - }, - "datasource": "LocalInflux", - "definition": "SHOW TAG VALUES WITH KEY = \"host\"", - "hide": 0, - "includeAll": true, - "label": null, - "multi": true, - "name": "host", - "options": [], - "query": "SHOW TAG VALUES WITH KEY = \"host\"", - "refresh": 2, - "regex": "", - "skipUrlSync": false, - "sort": 0, - "tagValuesQuery": "", - "tags": [], - "tagsQuery": "", - "type": "query", - "useTags": false - } - ] - }, - "time": { - "from": "now-1h", - "to": "now" - }, - "timepicker": { - "refresh_intervals": [ - "5s", - "10s", - "30s", - "1m", - "5m", - "15m", - "30m", - "1h", - "2h", - "1d" - ], - "time_options": [ - "5m", - "15m", - "1h", - "6h", - "12h", - "24h", - "2d", - "7d", - "30d" - ] - }, - "timezone": "", - "title": "System Metrics", - "uid": "system-metrics", - "version": 1 -} \ No newline at end of file diff --git a/inspectit-ocelot-demo/grafana/provisioning/influxdb/dashboards/dashboards.yml b/inspectit-ocelot-demo/grafana/provisioning/influxdb/dashboards/dashboards.yml deleted file mode 100644 index 128dda5c8a..0000000000 --- a/inspectit-ocelot-demo/grafana/provisioning/influxdb/dashboards/dashboards.yml +++ /dev/null @@ -1,27 +0,0 @@ -apiVersion: 1 - -providers: -- name: 'default' - orgId: 1 - folder: '' - type: file - disableDeletion: false - updateIntervalSeconds: 10 #how often Grafana will scan for changed dashboards - options: - path: /usr/share/grafana/custom/dashboards/ -- name: 'agent' - orgId: 1 - folder: 'agent' - type: file - disableDeletion: false - updateIntervalSeconds: 10 #how often Grafana will scan for changed dashboards - options: - path: /usr/share/grafana/custom/dashboards/agent -- name: 'eum-server' - orgId: 1 - folder: 'eum-server' - type: file - disableDeletion: false - updateIntervalSeconds: 10 #how often Grafana will scan for changed dashboards - options: - path: /usr/share/grafana/custom/dashboards/eum-server diff --git a/inspectit-ocelot-demo/grafana/provisioning/influxdb/dashboards/eum-server/Beacons.json b/inspectit-ocelot-demo/grafana/provisioning/influxdb/dashboards/eum-server/Beacons.json deleted file mode 100644 index ea6d1407f6..0000000000 --- a/inspectit-ocelot-demo/grafana/provisioning/influxdb/dashboards/eum-server/Beacons.json +++ /dev/null @@ -1,479 +0,0 @@ -{ - "annotations": { - "list": [ - { - "builtIn": 1, - "datasource": "-- Grafana --", - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "type": "dashboard" - } - ] - }, - "editable": true, - "gnetId": null, - "graphTooltip": 0, - "links": [], - "panels": [ - { - "datasource": "InfluxDB-EUM", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 7, - "w": 12, - "x": 0, - "y": 0 - }, - "id": 16, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "sum" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "8.0.6", - "targets": [ - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "none" - ], - "type": "fill" - } - ], - "measurement": "inspectit_eum_self_beacons_received", - "orderByTime": "ASC", - "policy": "autogen", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "count" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [] - } - ], - "timeFrom": null, - "timeShift": null, - "title": "All Beacon Count", - "type": "stat" - }, - { - "datasource": "InfluxDB-EUM", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "ms" - }, - "overrides": [] - }, - "gridPos": { - "h": 7, - "w": 12, - "x": 12, - "y": 0 - }, - "id": 8, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "8.0.6", - "targets": [ - { - "groupBy": [ - { - "params": [ - "beacon_processor" - ], - "type": "tag" - } - ], - "hide": false, - "measurement": "inspectit_eum_self_beacons_processor", - "orderByTime": "ASC", - "policy": "autogen", - "query": "SELECT sum(\"duration_sum\")/sum(\"count\") FROM \"autogen\".\"inspectit_eum_self_beacons_processor\" WHERE $timeFilter GROUP BY \"beacon_processor\"", - "rawQuery": true, - "refId": "B", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "duration_sum" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [] - } - ], - "timeFrom": null, - "timeShift": null, - "title": "Avg duration of all beacons", - "transformations": [ - { - "id": "reduce", - "options": { - "includeTimeField": false, - "mode": "reduceFields", - "reducers": [ - "mean" - ] - } - } - ], - "type": "stat" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "InfluxDB-EUM", - "fieldConfig": { - "defaults": { - "unit": "ms" - }, - "overrides": [] - }, - "fill": 7, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 7 - }, - "hiddenSeries": false, - "id": 6, - "legend": { - "alignAsTable": false, - "avg": false, - "current": false, - "max": false, - "min": false, - "rightSide": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 0, - "nullPointMode": "null as zero", - "options": { - "alertThreshold": false - }, - "percentage": false, - "pluginVersion": "8.0.6", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "alias": "$tag_beacon_processor", - "groupBy": [ - { - "params": [ - "$interval" - ], - "type": "time" - }, - { - "params": [ - "beacon_processor" - ], - "type": "tag" - }, - { - "params": [ - "none" - ], - "type": "fill" - } - ], - "measurement": "inspectit_eum_self_beacons_processor", - "orderByTime": "ASC", - "policy": "autogen", - "query": "SELECT sum(\"duration_sum\")/sum(\"count\") FROM \"autogen\".\"inspectit_eum_self_beacons_processor\" WHERE $timeFilter GROUP BY time($interval), \"beacon_processor\" fill(none)", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "duration_sum" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Avg Duration", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:63", - "format": "ms", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "$$hashKey": "object:64", - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "datasource": "InfluxDB-EUM", - "fieldConfig": { - "defaults": { - "color": { - "mode": "fixed" - }, - "custom": { - "align": "left", - "displayMode": "auto", - "filterable": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "ms" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "beacon_processor" - }, - "properties": [ - { - "id": "custom.width", - "value": 287 - } - ] - } - ] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 7 - }, - "id": 10, - "options": { - "frameIndex": 1, - "showHeader": true, - "sortBy": [] - }, - "pluginVersion": "8.0.6", - "targets": [ - { - "alias": "Duration", - "groupBy": [ - { - "params": [ - "beacon_processor" - ], - "type": "tag" - } - ], - "hide": false, - "measurement": "inspectit_eum_self_beacons_processor", - "orderByTime": "ASC", - "policy": "autogen", - "query": "SELECT sum(\"duration_sum\")/sum(\"count\") FROM \"autogen\".\"inspectit_eum_self_beacons_processor\" WHERE $timeFilter GROUP BY \"beacon_processor\"", - "rawQuery": true, - "refId": "A", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "duration_sum" - ], - "type": "field" - } - ] - ], - "tags": [] - } - ], - "title": "Beacon Table", - "transformations": [ - { - "id": "seriesToColumns", - "options": { - "byField": "beacon_processor" - } - }, - { - "id": "organize", - "options": { - "excludeByName": { - "Time": true, - "Time 1": true, - "Time 2": true, - "sum": true - }, - "indexByName": {}, - "renameByName": { - "Time 1": "", - "beacon_processor": "Beacon Processor", - "sum_sum": "Average Duration" - } - } - } - ], - "type": "table" - } - ], - "refresh": "5s", - "schemaVersion": 30, - "style": "dark", - "tags": [], - "templating": { - "list": [] - }, - "time": { - "from": "now-30m", - "to": "now" - }, - "timepicker": {}, - "timezone": "", - "title": "Beacons", - "uid": "f6YQCSqGk", - "version": 1 -} diff --git a/inspectit-ocelot-demo/grafana/provisioning/influxdb/dashboards/eum-server/Traces.json b/inspectit-ocelot-demo/grafana/provisioning/influxdb/dashboards/eum-server/Traces.json deleted file mode 100644 index 658ca74635..0000000000 --- a/inspectit-ocelot-demo/grafana/provisioning/influxdb/dashboards/eum-server/Traces.json +++ /dev/null @@ -1,805 +0,0 @@ -{ - "annotations": { - "list": [ - { - "builtIn": 1, - "datasource": "-- Grafana --", - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "type": "dashboard" - } - ] - }, - "editable": true, - "gnetId": null, - "graphTooltip": 0, - "links": [], - "panels": [ - { - "datasource": "InfluxDB-EUM", - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 8, - "x": 0, - "y": 0 - }, - "id": 16, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "sum" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "8.0.6", - "targets": [ - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "none" - ], - "type": "fill" - } - ], - "measurement": "inspectit_eum_self_traces_received", - "orderByTime": "ASC", - "policy": "autogen", - "query": "SELECT sum(\"count\") FROM \"autogen\".\"inspectit_eum_self_traces_received_duration\" WHERE $timeFilter GROUP BY time($__interval) fill(none)", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "count" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [] - } - ], - "timeFrom": null, - "timeShift": null, - "title": "Received Traces", - "type": "stat" - }, - { - "datasource": "InfluxDB-EUM", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "ms" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 8, - "x": 8, - "y": 0 - }, - "id": 8, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "8.0.6", - "targets": [ - { - "alias": "", - "groupBy": [], - "measurement": "inspectit_eum_self_traces_received", - "orderByTime": "ASC", - "policy": "autogen", - "query": "SELECT sum(\"duration_sum\")/sum(\"count\") FROM \"autogen\".\"inspectit_eum_self_traces_received\" WHERE $timeFilter", - "rawQuery": true, - "refId": "A", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "duration_sum" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [] - } - ], - "timeFrom": null, - "timeShift": null, - "title": "Average Processing Time", - "transformations": [], - "type": "stat" - }, - { - "datasource": "InfluxDB-EUM", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "max": 1, - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 8, - "x": 16, - "y": 0 - }, - "id": 18, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "8.0.6", - "targets": [ - { - "alias": "All Traces", - "groupBy": [ - { - "params": [ - "$interval" - ], - "type": "time" - }, - { - "params": [ - "none" - ], - "type": "fill" - } - ], - "hide": false, - "measurement": "inspectit_eum_self_traces_received", - "orderByTime": "ASC", - "policy": "autogen", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "count" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [] - }, - { - "alias": "Error Traces", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "none" - ], - "type": "fill" - } - ], - "hide": false, - "measurement": "inspectit_eum_self_traces_received", - "orderByTime": "ASC", - "policy": "autogen", - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "count" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "is_error", - "operator": "=", - "value": "true" - } - ] - } - ], - "title": "Processing Errors", - "transformations": [ - { - "id": "calculateField", - "options": { - "alias": "All Error Traces", - "binary": { - "left": "Error Traces", - "operator": "/", - "reducer": "sum", - "right": "All Traces" - }, - "mode": "reduceRow", - "reduce": { - "include": [ - "Error Traces" - ], - "reducer": "count" - }, - "replaceFields": false - } - }, - { - "id": "calculateField", - "options": { - "alias": "Error Rate", - "binary": { - "left": "All Error Traces", - "operator": "/", - "reducer": "sum", - "right": "All Traces" - }, - "mode": "binary", - "reduce": { - "reducer": "sum" - }, - "replaceFields": true - } - } - ], - "type": "stat" - }, - { - "aliasColors": {}, - "bars": true, - "dashLength": 10, - "dashes": false, - "datasource": "InfluxDB-EUM", - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 10, - "w": 8, - "x": 0, - "y": 6 - }, - "hiddenSeries": false, - "id": 22, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": false, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "8.0.6", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "alias": "Successful Traces", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "none" - ], - "type": "fill" - } - ], - "measurement": "inspectit_eum_self_traces_received", - "orderByTime": "ASC", - "policy": "autogen", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "count" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "is_error", - "operator": "=", - "value": "false" - } - ] - }, - { - "alias": "Errors", - "groupBy": [ - { - "params": [ - "$interval" - ], - "type": "time" - }, - { - "params": [ - "none" - ], - "type": "fill" - } - ], - "hide": false, - "measurement": "inspectit_eum_self_traces_received", - "orderByTime": "ASC", - "policy": "autogen", - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "count" - ], - "type": "field" - }, - { - "params": [], - "type": "count" - } - ] - ], - "tags": [ - { - "key": "is_error", - "operator": "=", - "value": "true" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Received Traces and Error Count", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "transformations": [], - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:335", - "decimals": null, - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "$$hashKey": "object:336", - "decimals": null, - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "InfluxDB-EUM", - "fieldConfig": { - "defaults": { - "unit": "ms" - }, - "overrides": [] - }, - "fill": 8, - "fillGradient": 0, - "gridPos": { - "h": 10, - "w": 8, - "x": 8, - "y": 6 - }, - "hiddenSeries": false, - "id": 6, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 0, - "nullPointMode": "connected", - "options": { - "alertThreshold": false - }, - "percentage": false, - "pluginVersion": "8.0.6", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "alias": "Avg Duration", - "groupBy": [ - { - "params": [ - "$interval" - ], - "type": "time" - } - ], - "measurement": "inspectit_eum_self_traces_received", - "orderByTime": "ASC", - "policy": "autogen", - "query": "SELECT sum(\"duration_sum\")/sum(\"count\") FROM \"autogen\".\"inspectit_eum_self_traces_received\" WHERE $timeFilter GROUP BY time($interval)", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "duration_sum" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Average Duration of Traces", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:231", - "format": "ms", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "$$hashKey": "object:232", - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": true, - "dashLength": 10, - "dashes": false, - "datasource": "InfluxDB-EUM", - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 10, - "w": 8, - "x": 16, - "y": 6 - }, - "hiddenSeries": false, - "id": 20, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": false, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": false - }, - "percentage": false, - "pluginVersion": "8.0.6", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "Span Size", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "none" - ], - "type": "fill" - } - ], - "measurement": "inspectit_eum_self_traces_span_size", - "orderByTime": "ASC", - "policy": "autogen", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "sum" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Spans per Request", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:89", - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "$$hashKey": "object:90", - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - } - ], - "refresh": "5s", - "schemaVersion": 30, - "style": "dark", - "tags": [], - "templating": { - "list": [] - }, - "time": { - "from": "now-1h", - "to": "now" - }, - "timepicker": {}, - "timezone": "", - "title": "Trace Controller", - "uid": "-Lqc_TRnk", - "version": 2 -} diff --git a/inspectit-ocelot-demo/grafana/provisioning/influxdb/datasources/influxdb.yml b/inspectit-ocelot-demo/grafana/provisioning/influxdb/datasources/influxdb.yml deleted file mode 100644 index 501beae345..0000000000 --- a/inspectit-ocelot-demo/grafana/provisioning/influxdb/datasources/influxdb.yml +++ /dev/null @@ -1,84 +0,0 @@ -# config file version -apiVersion: 1 - -# list of datasources to insert/update depending -# what's available in the database -datasources: - # name of the datasource. Required -- name: LocalInflux - # datasource type. Required - type: influxdb - # access mode. proxy or direct (Server or Browser in the UI). Required - access: proxy - # org id. will default to orgId 1 if not specified - orgId: 1 - # url - url: http://influxdb:8086 - # database password, if used - password: - # database user, if used - user: - # database name, if used - database: inspectit - # enable/disable basic auth - basicAuth: - # basic auth username - basicAuthUser: - # basic auth password - basicAuthPassword: - # enable/disable with credentials headers - withCredentials: - # mark as default datasource. Max one per org - isDefault: - # fields that will be converted to json and stored in jsonData - #jsonData: - # graphiteVersion: "1.1" - # tlsAuth: true - # tlsAuthWithCACert: true - # json object of data that will be encrypted. - secureJsonData: - tlsCACert: "..." - tlsClientCert: "..." - tlsClientKey: "..." - version: 1 - # allow users to edit datasources from the UI. - editable: false - -- name: InfluxDB-EUM - # datasource type. Required - type: influxdb - # access mode. proxy or direct (Server or Browser in the UI). Required - access: proxy - # org id. will default to orgId 1 if not specified - orgId: 1 - # url - url: http://influxdb:8086 - # database password, if used - password: - # database user, if used - user: - # database name, if used - database: inspectit_eum - # enable/disable basic auth - basicAuth: - # basic auth username - basicAuthUser: - # basic auth password - basicAuthPassword: - # enable/disable with credentials headers - withCredentials: - # mark as default datasource. Max one per org - isDefault: - # fields that will be converted to json and stored in jsonData - #jsonData: - # graphiteVersion: "1.1" - # tlsAuth: true - # tlsAuthWithCACert: true - # json object of data that will be encrypted. - secureJsonData: - tlsCACert: "..." - tlsClientCert: "..." - tlsClientKey: "..." - version: 1 - # allow users to edit datasources from the UI. - editable: false diff --git a/inspectit-ocelot-demo/grafana/provisioning/prometheus/dashboards/agent/http-overview.json b/inspectit-ocelot-demo/grafana/provisioning/prometheus/dashboards/agent/http-overview.json deleted file mode 100644 index 6781f24985..0000000000 --- a/inspectit-ocelot-demo/grafana/provisioning/prometheus/dashboards/agent/http-overview.json +++ /dev/null @@ -1,5918 +0,0 @@ -{ - "annotations": { - "list": [ - { - "$$hashKey": "object:1734", - "builtIn": 1, - "datasource": "-- Grafana --", - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "type": "dashboard" - } - ] - }, - "editable": true, - "gnetId": null, - "graphTooltip": 0, - "id": 2, - "iteration": 1588834567592, - "links": [], - "panels": [ - { - "collapsed": false, - "datasource": null, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 0 - }, - "id": 4, - "panels": [], - "repeat": "service", - "scopedVars": { - "service": { - "selected": false, - "text": "api-gateway", - "value": "api-gateway" - } - }, - "title": "$service", - "type": "row" - }, - { - "columns": [], - "datasource": "LocalPrometheus", - "fontSize": "100%", - "gridPos": { - "h": 5, - "w": 11, - "x": 0, - "y": 1 - }, - "id": 2, - "links": [], - "pageSize": null, - "repeat": null, - "repeatDirection": "h", - "scopedVars": { - "service": { - "selected": false, - "text": "api-gateway", - "value": "api-gateway" - } - }, - "scroll": true, - "showHeader": true, - "sort": { - "col": 1, - "desc": true - }, - "styles": [ - { - "alias": "", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "Time", - "thresholds": [], - "type": "hidden", - "unit": "short" - }, - { - "alias": "Requests", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 0, - "mappingType": 1, - "pattern": "Value #A", - "thresholds": [], - "type": "number", - "unit": "none" - }, - { - "alias": "Avg. Response Time", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "link": false, - "mappingType": 1, - "pattern": "Value #B", - "thresholds": [], - "type": "number", - "unit": "ms" - }, - { - "alias": "HTTP Path", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "http_path", - "thresholds": [], - "type": "number", - "unit": "short" - }, - { - "alias": "Error Rate", - "align": "auto", - "colorMode": "cell", - "colors": [ - "rgba(50, 172, 45, 0.97)", - "rgba(237, 129, 40, 0.89)", - "rgba(245, 54, 54, 0.9)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "Value #C", - "thresholds": [ - "0.0001", - "0.3" - ], - "type": "number", - "unit": "percentunit" - } - ], - "targets": [ - { - "expr": "sum(increase(http_in_count{service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_path) > 0", - "format": "table", - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A" - }, - { - "expr": "sum(increase(http_in_responsetime_sum{service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_path) \n/ sum(increase(http_in_count{service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_path) > 0", - "format": "table", - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "B" - }, - { - "expr": "(sum(increase(http_in_count{http_status!~\"(1|2|3)\\\\d\\\\d\",service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_path) \n/ sum(increase(http_in_count{service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_path)) >= 0\nor (sum(increase(http_in_count{service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_path) > 0) * 0", - "format": "table", - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "C" - } - ], - "title": "Incoming Requests", - "transform": "table", - "type": "table" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalPrometheus", - "description": "", - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 5, - "w": 9, - "x": 11, - "y": 1 - }, - "hiddenSeries": false, - "id": 23, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": false, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "scopedVars": { - "service": { - "selected": false, - "text": "api-gateway", - "value": "api-gateway" - } - }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "(sum(increase(http_in_responsetime_sum{service=\"$service\",http_path=~\"$path\"}[$__interval])) by (http_path)\n/ sum(increase(http_in_count{service=\"$service\",http_path=~\"$path\"}[$__interval])) by (http_path)) >= 0", - "format": "time_series", - "instant": false, - "interval": "", - "intervalFactor": 1, - "legendFormat": "{{http_path}}", - "refId": "A" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Incoming Avg. Response Time", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "ms", - "label": "", - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "ms", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalPrometheus", - "decimals": 2, - "description": "Incoming HTTP Requests per second for the selected endpoints and applications", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 5, - "w": 2, - "x": 20, - "y": 1 - }, - "hideTimeOverride": true, - "id": 6, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "scopedVars": { - "service": { - "selected": false, - "text": "api-gateway", - "value": "api-gateway" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "expr": "sum(rate(http_in_count{service=\"$service\",http_path=~\"$path\"}[$__interval]))", - "format": "time_series", - "instant": false, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A" - } - ], - "thresholds": "", - "timeShift": "15s", - "title": "In Req / Sec", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorPostfix": false, - "colorPrefix": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalPrometheus", - "decimals": 2, - "description": "The error rate of incoming http requests for the selected endpoints and applications", - "format": "percentunit", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 5, - "w": 2, - "x": 22, - "y": 1 - }, - "hideTimeOverride": true, - "id": 44, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "scopedVars": { - "service": { - "selected": false, - "text": "api-gateway", - "value": "api-gateway" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "expr": "(sum(increase(http_in_count{http_status!~\"(1|2|3)\\\\d\\\\d\",service=\"$service\",http_path=~\"$path\"}[$__range]))\n/ sum(increase(http_in_count{service=\"$service\",http_path=~\"$path\"}[$__range])) >= 0)\nor (sum(increase(http_in_count{service=\"$service\",http_path=~\"$path\"}[$__range])) > 0) * 0", - "format": "time_series", - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A" - } - ], - "thresholds": "0.01,0.1", - "timeFrom": null, - "timeShift": "15s", - "title": "In Error Rate", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "columns": [], - "datasource": "LocalPrometheus", - "fontSize": "100%", - "gridPos": { - "h": 5, - "w": 11, - "x": 0, - "y": 6 - }, - "id": 45, - "links": [], - "pageSize": null, - "repeatDirection": "h", - "scopedVars": { - "service": { - "selected": false, - "text": "api-gateway", - "value": "api-gateway" - } - }, - "scroll": true, - "showHeader": true, - "sort": { - "col": 6, - "desc": true - }, - "styles": [ - { - "alias": "", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "Time", - "thresholds": [], - "type": "hidden", - "unit": "short" - }, - { - "alias": "Requests", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 0, - "mappingType": 1, - "pattern": "Value #A", - "thresholds": [], - "type": "number", - "unit": "none" - }, - { - "alias": "Avg. Response Time", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "link": false, - "mappingType": 1, - "pattern": "Value #B", - "thresholds": [], - "type": "number", - "unit": "ms" - }, - { - "alias": "HTTP Path", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "http_path", - "preserveFormat": false, - "thresholds": [], - "type": "hidden", - "unit": "short" - }, - { - "alias": "Error Rate", - "align": "auto", - "colorMode": "cell", - "colors": [ - "rgba(50, 172, 45, 0.97)", - "rgba(237, 129, 40, 0.89)", - "rgba(245, 54, 54, 0.9)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "Value #C", - "thresholds": [ - "0.0001", - "0.3" - ], - "type": "number", - "unit": "percentunit" - }, - { - "alias": "Target Host", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "http_host", - "thresholds": [], - "type": "hidden", - "unit": "short" - }, - { - "alias": "Http URL", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "http_url", - "thresholds": [], - "type": "string", - "unit": "short" - } - ], - "targets": [ - { - "expr": "sum(label_join(increase(http_out_count{service=\"$service\",http_path=~\"$path\"}[$__range]), \"http_url\", \"\", \"http_host\", \"http_path\")) by (http_url) > 0", - "format": "table", - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A" - }, - { - "expr": "label_join(sum(increase(http_out_responsetime_sum{service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_host,http_path) \n/ sum(increase(http_out_count{service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_host,http_path) > 0, \"http_url\", \"\", \"http_host\", \"http_path\")", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "B" - }, - { - "expr": "label_join((sum(increase(http_out_count{http_status!~\"(1|2|3)\\\\d\\\\d\",service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_path) \n/ sum(increase(http_out_count{service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_host,http_path)) >= 0\nor (sum(increase(http_out_count{service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_host,http_path) > 0) * 0 , \"http_url\", \"\", \"http_host\", \"http_path\")", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "C" - } - ], - "title": "Outgoing Requests", - "transform": "table", - "type": "table" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalPrometheus", - "description": "", - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 5, - "w": 9, - "x": 11, - "y": 6 - }, - "hiddenSeries": false, - "id": 76, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": false, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "scopedVars": { - "service": { - "selected": false, - "text": "api-gateway", - "value": "api-gateway" - } - }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "(sum(increase(http_out_responsetime_sum{service=\"$service\",http_path=~\"$path\"}[$__interval])) by (http_host,http_path)\n/ sum(increase(http_out_count{service=\"$service\",http_path=~\"$path\"}[$__interval])) by (http_host,http_path)) >= 0", - "format": "time_series", - "instant": false, - "interval": "", - "intervalFactor": 1, - "legendFormat": "{{http_host}}{{http_path}}", - "refId": "A" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Outgoing Avg. Response Time", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "ms", - "label": "", - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "ms", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalPrometheus", - "decimals": 2, - "description": "Outgoing HTTP Requests per second issued towards the selected endpoints from the given application", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 5, - "w": 2, - "x": 20, - "y": 6 - }, - "hideTimeOverride": true, - "id": 112, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "scopedVars": { - "service": { - "selected": false, - "text": "api-gateway", - "value": "api-gateway" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "expr": "sum(rate(http_out_count{service=\"$service\",http_path=~\"$path\"}[$__interval]))", - "format": "time_series", - "instant": false, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A" - } - ], - "thresholds": "", - "timeShift": "15s", - "title": "Out Req / Sec", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorPostfix": false, - "colorPrefix": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalPrometheus", - "decimals": 2, - "description": "The error rate of outgoing http requests issued towards the selected endpoints of the selected application", - "format": "percentunit", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 5, - "w": 2, - "x": 22, - "y": 6 - }, - "hideTimeOverride": true, - "id": 153, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "scopedVars": { - "service": { - "selected": false, - "text": "api-gateway", - "value": "api-gateway" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "expr": "(sum(increase(http_out_count{http_status!~\"(1|2|3)\\\\d\\\\d\",service=\"$service\",http_path=~\"$path\"}[$__range]))\n/ sum(increase(http_out_count{service=\"$service\",http_path=~\"$path\"}[$__range])) >= 0)\nor (sum(increase(http_out_count{service=\"$service\",http_path=~\"$path\"}[$__range])) > 0) * 0", - "format": "time_series", - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A" - } - ], - "thresholds": "0.01,0.1", - "timeFrom": null, - "timeShift": "15s", - "title": "Out Error Rate", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "collapsed": false, - "datasource": null, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 11 - }, - "id": 154, - "panels": [], - "repeat": null, - "repeatIteration": 1588834567592, - "repeatPanelId": 4, - "scopedVars": { - "service": { - "selected": false, - "text": "config-server", - "value": "config-server" - } - }, - "title": "$service", - "type": "row" - }, - { - "columns": [], - "datasource": "LocalPrometheus", - "fontSize": "100%", - "gridPos": { - "h": 5, - "w": 11, - "x": 0, - "y": 12 - }, - "id": 155, - "links": [], - "pageSize": null, - "repeat": null, - "repeatDirection": "h", - "repeatIteration": 1588834567592, - "repeatPanelId": 2, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "config-server", - "value": "config-server" - } - }, - "scroll": true, - "showHeader": true, - "sort": { - "col": 1, - "desc": true - }, - "styles": [ - { - "alias": "", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "Time", - "thresholds": [], - "type": "hidden", - "unit": "short" - }, - { - "alias": "Requests", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 0, - "mappingType": 1, - "pattern": "Value #A", - "thresholds": [], - "type": "number", - "unit": "none" - }, - { - "alias": "Avg. Response Time", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "link": false, - "mappingType": 1, - "pattern": "Value #B", - "thresholds": [], - "type": "number", - "unit": "ms" - }, - { - "alias": "HTTP Path", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "http_path", - "thresholds": [], - "type": "number", - "unit": "short" - }, - { - "alias": "Error Rate", - "align": "auto", - "colorMode": "cell", - "colors": [ - "rgba(50, 172, 45, 0.97)", - "rgba(237, 129, 40, 0.89)", - "rgba(245, 54, 54, 0.9)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "Value #C", - "thresholds": [ - "0.0001", - "0.3" - ], - "type": "number", - "unit": "percentunit" - } - ], - "targets": [ - { - "expr": "sum(increase(http_in_count{service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_path) > 0", - "format": "table", - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A" - }, - { - "expr": "sum(increase(http_in_responsetime_sum{service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_path) \n/ sum(increase(http_in_count{service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_path) > 0", - "format": "table", - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "B" - }, - { - "expr": "(sum(increase(http_in_count{http_status!~\"(1|2|3)\\\\d\\\\d\",service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_path) \n/ sum(increase(http_in_count{service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_path)) >= 0\nor (sum(increase(http_in_count{service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_path) > 0) * 0", - "format": "table", - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "C" - } - ], - "title": "Incoming Requests", - "transform": "table", - "type": "table" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalPrometheus", - "description": "", - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 5, - "w": 9, - "x": 11, - "y": 12 - }, - "hiddenSeries": false, - "id": 156, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": false, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1588834567592, - "repeatPanelId": 23, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "config-server", - "value": "config-server" - } - }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "(sum(increase(http_in_responsetime_sum{service=\"$service\",http_path=~\"$path\"}[$__interval])) by (http_path)\n/ sum(increase(http_in_count{service=\"$service\",http_path=~\"$path\"}[$__interval])) by (http_path)) >= 0", - "format": "time_series", - "instant": false, - "interval": "", - "intervalFactor": 1, - "legendFormat": "{{http_path}}", - "refId": "A" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Incoming Avg. Response Time", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "ms", - "label": "", - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "ms", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalPrometheus", - "decimals": 2, - "description": "Incoming HTTP Requests per second for the selected endpoints and applications", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 5, - "w": 2, - "x": 20, - "y": 12 - }, - "hideTimeOverride": true, - "id": 157, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1588834567592, - "repeatPanelId": 6, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "config-server", - "value": "config-server" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "expr": "sum(rate(http_in_count{service=\"$service\",http_path=~\"$path\"}[$__interval]))", - "format": "time_series", - "instant": false, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A" - } - ], - "thresholds": "", - "timeShift": "15s", - "title": "In Req / Sec", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorPostfix": false, - "colorPrefix": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalPrometheus", - "decimals": 2, - "description": "The error rate of incoming http requests for the selected endpoints and applications", - "format": "percentunit", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 5, - "w": 2, - "x": 22, - "y": 12 - }, - "hideTimeOverride": true, - "id": 158, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1588834567592, - "repeatPanelId": 44, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "config-server", - "value": "config-server" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "expr": "(sum(increase(http_in_count{http_status!~\"(1|2|3)\\\\d\\\\d\",service=\"$service\",http_path=~\"$path\"}[$__range]))\n/ sum(increase(http_in_count{service=\"$service\",http_path=~\"$path\"}[$__range])) >= 0)\nor (sum(increase(http_in_count{service=\"$service\",http_path=~\"$path\"}[$__range])) > 0) * 0", - "format": "time_series", - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A" - } - ], - "thresholds": "0.01,0.1", - "timeFrom": null, - "timeShift": "15s", - "title": "In Error Rate", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "columns": [], - "datasource": "LocalPrometheus", - "fontSize": "100%", - "gridPos": { - "h": 5, - "w": 11, - "x": 0, - "y": 17 - }, - "id": 159, - "links": [], - "pageSize": null, - "repeatDirection": "h", - "repeatIteration": 1588834567592, - "repeatPanelId": 45, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "config-server", - "value": "config-server" - } - }, - "scroll": true, - "showHeader": true, - "sort": { - "col": 6, - "desc": true - }, - "styles": [ - { - "alias": "", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "Time", - "thresholds": [], - "type": "hidden", - "unit": "short" - }, - { - "alias": "Requests", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 0, - "mappingType": 1, - "pattern": "Value #A", - "thresholds": [], - "type": "number", - "unit": "none" - }, - { - "alias": "Avg. Response Time", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "link": false, - "mappingType": 1, - "pattern": "Value #B", - "thresholds": [], - "type": "number", - "unit": "ms" - }, - { - "alias": "HTTP Path", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "http_path", - "preserveFormat": false, - "thresholds": [], - "type": "hidden", - "unit": "short" - }, - { - "alias": "Error Rate", - "align": "auto", - "colorMode": "cell", - "colors": [ - "rgba(50, 172, 45, 0.97)", - "rgba(237, 129, 40, 0.89)", - "rgba(245, 54, 54, 0.9)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "Value #C", - "thresholds": [ - "0.0001", - "0.3" - ], - "type": "number", - "unit": "percentunit" - }, - { - "alias": "Target Host", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "http_host", - "thresholds": [], - "type": "hidden", - "unit": "short" - }, - { - "alias": "Http URL", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "http_url", - "thresholds": [], - "type": "string", - "unit": "short" - } - ], - "targets": [ - { - "expr": "sum(label_join(increase(http_out_count{service=\"$service\",http_path=~\"$path\"}[$__range]), \"http_url\", \"\", \"http_host\", \"http_path\")) by (http_url) > 0", - "format": "table", - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A" - }, - { - "expr": "label_join(sum(increase(http_out_responsetime_sum{service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_host,http_path) \n/ sum(increase(http_out_count{service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_host,http_path) > 0, \"http_url\", \"\", \"http_host\", \"http_path\")", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "B" - }, - { - "expr": "label_join((sum(increase(http_out_count{http_status!~\"(1|2|3)\\\\d\\\\d\",service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_path) \n/ sum(increase(http_out_count{service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_host,http_path)) >= 0\nor (sum(increase(http_out_count{service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_host,http_path) > 0) * 0 , \"http_url\", \"\", \"http_host\", \"http_path\")", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "C" - } - ], - "title": "Outgoing Requests", - "transform": "table", - "type": "table" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalPrometheus", - "description": "", - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 5, - "w": 9, - "x": 11, - "y": 17 - }, - "hiddenSeries": false, - "id": 160, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": false, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1588834567592, - "repeatPanelId": 76, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "config-server", - "value": "config-server" - } - }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "(sum(increase(http_out_responsetime_sum{service=\"$service\",http_path=~\"$path\"}[$__interval])) by (http_host,http_path)\n/ sum(increase(http_out_count{service=\"$service\",http_path=~\"$path\"}[$__interval])) by (http_host,http_path)) >= 0", - "format": "time_series", - "instant": false, - "interval": "", - "intervalFactor": 1, - "legendFormat": "{{http_host}}{{http_path}}", - "refId": "A" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Outgoing Avg. Response Time", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "ms", - "label": "", - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "ms", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalPrometheus", - "decimals": 2, - "description": "Outgoing HTTP Requests per second issued towards the selected endpoints from the given application", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 5, - "w": 2, - "x": 20, - "y": 17 - }, - "hideTimeOverride": true, - "id": 161, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1588834567592, - "repeatPanelId": 112, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "config-server", - "value": "config-server" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "expr": "sum(rate(http_out_count{service=\"$service\",http_path=~\"$path\"}[$__interval]))", - "format": "time_series", - "instant": false, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A" - } - ], - "thresholds": "", - "timeShift": "15s", - "title": "Out Req / Sec", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorPostfix": false, - "colorPrefix": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalPrometheus", - "decimals": 2, - "description": "The error rate of outgoing http requests issued towards the selected endpoints of the selected application", - "format": "percentunit", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 5, - "w": 2, - "x": 22, - "y": 17 - }, - "hideTimeOverride": true, - "id": 162, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1588834567592, - "repeatPanelId": 153, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "config-server", - "value": "config-server" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "expr": "(sum(increase(http_out_count{http_status!~\"(1|2|3)\\\\d\\\\d\",service=\"$service\",http_path=~\"$path\"}[$__range]))\n/ sum(increase(http_out_count{service=\"$service\",http_path=~\"$path\"}[$__range])) >= 0)\nor (sum(increase(http_out_count{service=\"$service\",http_path=~\"$path\"}[$__range])) > 0) * 0", - "format": "time_series", - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A" - } - ], - "thresholds": "0.01,0.1", - "timeFrom": null, - "timeShift": "15s", - "title": "Out Error Rate", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "collapsed": false, - "datasource": null, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 22 - }, - "id": 163, - "panels": [], - "repeat": null, - "repeatIteration": 1588834567592, - "repeatPanelId": 4, - "scopedVars": { - "service": { - "selected": false, - "text": "customers-service", - "value": "customers-service" - } - }, - "title": "$service", - "type": "row" - }, - { - "columns": [], - "datasource": "LocalPrometheus", - "fontSize": "100%", - "gridPos": { - "h": 5, - "w": 11, - "x": 0, - "y": 23 - }, - "id": 164, - "links": [], - "pageSize": null, - "repeat": null, - "repeatDirection": "h", - "repeatIteration": 1588834567592, - "repeatPanelId": 2, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "customers-service", - "value": "customers-service" - } - }, - "scroll": true, - "showHeader": true, - "sort": { - "col": 1, - "desc": true - }, - "styles": [ - { - "alias": "", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "Time", - "thresholds": [], - "type": "hidden", - "unit": "short" - }, - { - "alias": "Requests", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 0, - "mappingType": 1, - "pattern": "Value #A", - "thresholds": [], - "type": "number", - "unit": "none" - }, - { - "alias": "Avg. Response Time", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "link": false, - "mappingType": 1, - "pattern": "Value #B", - "thresholds": [], - "type": "number", - "unit": "ms" - }, - { - "alias": "HTTP Path", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "http_path", - "thresholds": [], - "type": "number", - "unit": "short" - }, - { - "alias": "Error Rate", - "align": "auto", - "colorMode": "cell", - "colors": [ - "rgba(50, 172, 45, 0.97)", - "rgba(237, 129, 40, 0.89)", - "rgba(245, 54, 54, 0.9)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "Value #C", - "thresholds": [ - "0.0001", - "0.3" - ], - "type": "number", - "unit": "percentunit" - } - ], - "targets": [ - { - "expr": "sum(increase(http_in_count{service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_path) > 0", - "format": "table", - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A" - }, - { - "expr": "sum(increase(http_in_responsetime_sum{service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_path) \n/ sum(increase(http_in_count{service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_path) > 0", - "format": "table", - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "B" - }, - { - "expr": "(sum(increase(http_in_count{http_status!~\"(1|2|3)\\\\d\\\\d\",service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_path) \n/ sum(increase(http_in_count{service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_path)) >= 0\nor (sum(increase(http_in_count{service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_path) > 0) * 0", - "format": "table", - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "C" - } - ], - "title": "Incoming Requests", - "transform": "table", - "type": "table" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalPrometheus", - "description": "", - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 5, - "w": 9, - "x": 11, - "y": 23 - }, - "hiddenSeries": false, - "id": 165, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": false, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1588834567592, - "repeatPanelId": 23, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "customers-service", - "value": "customers-service" - } - }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "(sum(increase(http_in_responsetime_sum{service=\"$service\",http_path=~\"$path\"}[$__interval])) by (http_path)\n/ sum(increase(http_in_count{service=\"$service\",http_path=~\"$path\"}[$__interval])) by (http_path)) >= 0", - "format": "time_series", - "instant": false, - "interval": "", - "intervalFactor": 1, - "legendFormat": "{{http_path}}", - "refId": "A" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Incoming Avg. Response Time", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "ms", - "label": "", - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "ms", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalPrometheus", - "decimals": 2, - "description": "Incoming HTTP Requests per second for the selected endpoints and applications", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 5, - "w": 2, - "x": 20, - "y": 23 - }, - "hideTimeOverride": true, - "id": 166, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1588834567592, - "repeatPanelId": 6, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "customers-service", - "value": "customers-service" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "expr": "sum(rate(http_in_count{service=\"$service\",http_path=~\"$path\"}[$__interval]))", - "format": "time_series", - "instant": false, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A" - } - ], - "thresholds": "", - "timeShift": "15s", - "title": "In Req / Sec", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorPostfix": false, - "colorPrefix": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalPrometheus", - "decimals": 2, - "description": "The error rate of incoming http requests for the selected endpoints and applications", - "format": "percentunit", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 5, - "w": 2, - "x": 22, - "y": 23 - }, - "hideTimeOverride": true, - "id": 167, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1588834567592, - "repeatPanelId": 44, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "customers-service", - "value": "customers-service" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "expr": "(sum(increase(http_in_count{http_status!~\"(1|2|3)\\\\d\\\\d\",service=\"$service\",http_path=~\"$path\"}[$__range]))\n/ sum(increase(http_in_count{service=\"$service\",http_path=~\"$path\"}[$__range])) >= 0)\nor (sum(increase(http_in_count{service=\"$service\",http_path=~\"$path\"}[$__range])) > 0) * 0", - "format": "time_series", - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A" - } - ], - "thresholds": "0.01,0.1", - "timeFrom": null, - "timeShift": "15s", - "title": "In Error Rate", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "columns": [], - "datasource": "LocalPrometheus", - "fontSize": "100%", - "gridPos": { - "h": 5, - "w": 11, - "x": 0, - "y": 28 - }, - "id": 168, - "links": [], - "pageSize": null, - "repeatDirection": "h", - "repeatIteration": 1588834567592, - "repeatPanelId": 45, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "customers-service", - "value": "customers-service" - } - }, - "scroll": true, - "showHeader": true, - "sort": { - "col": 6, - "desc": true - }, - "styles": [ - { - "alias": "", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "Time", - "thresholds": [], - "type": "hidden", - "unit": "short" - }, - { - "alias": "Requests", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 0, - "mappingType": 1, - "pattern": "Value #A", - "thresholds": [], - "type": "number", - "unit": "none" - }, - { - "alias": "Avg. Response Time", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "link": false, - "mappingType": 1, - "pattern": "Value #B", - "thresholds": [], - "type": "number", - "unit": "ms" - }, - { - "alias": "HTTP Path", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "http_path", - "preserveFormat": false, - "thresholds": [], - "type": "hidden", - "unit": "short" - }, - { - "alias": "Error Rate", - "align": "auto", - "colorMode": "cell", - "colors": [ - "rgba(50, 172, 45, 0.97)", - "rgba(237, 129, 40, 0.89)", - "rgba(245, 54, 54, 0.9)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "Value #C", - "thresholds": [ - "0.0001", - "0.3" - ], - "type": "number", - "unit": "percentunit" - }, - { - "alias": "Target Host", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "http_host", - "thresholds": [], - "type": "hidden", - "unit": "short" - }, - { - "alias": "Http URL", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "http_url", - "thresholds": [], - "type": "string", - "unit": "short" - } - ], - "targets": [ - { - "expr": "sum(label_join(increase(http_out_count{service=\"$service\",http_path=~\"$path\"}[$__range]), \"http_url\", \"\", \"http_host\", \"http_path\")) by (http_url) > 0", - "format": "table", - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A" - }, - { - "expr": "label_join(sum(increase(http_out_responsetime_sum{service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_host,http_path) \n/ sum(increase(http_out_count{service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_host,http_path) > 0, \"http_url\", \"\", \"http_host\", \"http_path\")", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "B" - }, - { - "expr": "label_join((sum(increase(http_out_count{http_status!~\"(1|2|3)\\\\d\\\\d\",service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_path) \n/ sum(increase(http_out_count{service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_host,http_path)) >= 0\nor (sum(increase(http_out_count{service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_host,http_path) > 0) * 0 , \"http_url\", \"\", \"http_host\", \"http_path\")", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "C" - } - ], - "title": "Outgoing Requests", - "transform": "table", - "type": "table" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalPrometheus", - "description": "", - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 5, - "w": 9, - "x": 11, - "y": 28 - }, - "hiddenSeries": false, - "id": 169, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": false, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1588834567592, - "repeatPanelId": 76, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "customers-service", - "value": "customers-service" - } - }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "(sum(increase(http_out_responsetime_sum{service=\"$service\",http_path=~\"$path\"}[$__interval])) by (http_host,http_path)\n/ sum(increase(http_out_count{service=\"$service\",http_path=~\"$path\"}[$__interval])) by (http_host,http_path)) >= 0", - "format": "time_series", - "instant": false, - "interval": "", - "intervalFactor": 1, - "legendFormat": "{{http_host}}{{http_path}}", - "refId": "A" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Outgoing Avg. Response Time", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "ms", - "label": "", - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "ms", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalPrometheus", - "decimals": 2, - "description": "Outgoing HTTP Requests per second issued towards the selected endpoints from the given application", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 5, - "w": 2, - "x": 20, - "y": 28 - }, - "hideTimeOverride": true, - "id": 170, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1588834567592, - "repeatPanelId": 112, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "customers-service", - "value": "customers-service" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "expr": "sum(rate(http_out_count{service=\"$service\",http_path=~\"$path\"}[$__interval]))", - "format": "time_series", - "instant": false, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A" - } - ], - "thresholds": "", - "timeShift": "15s", - "title": "Out Req / Sec", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorPostfix": false, - "colorPrefix": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalPrometheus", - "decimals": 2, - "description": "The error rate of outgoing http requests issued towards the selected endpoints of the selected application", - "format": "percentunit", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 5, - "w": 2, - "x": 22, - "y": 28 - }, - "hideTimeOverride": true, - "id": 171, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1588834567592, - "repeatPanelId": 153, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "customers-service", - "value": "customers-service" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "expr": "(sum(increase(http_out_count{http_status!~\"(1|2|3)\\\\d\\\\d\",service=\"$service\",http_path=~\"$path\"}[$__range]))\n/ sum(increase(http_out_count{service=\"$service\",http_path=~\"$path\"}[$__range])) >= 0)\nor (sum(increase(http_out_count{service=\"$service\",http_path=~\"$path\"}[$__range])) > 0) * 0", - "format": "time_series", - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A" - } - ], - "thresholds": "0.01,0.1", - "timeFrom": null, - "timeShift": "15s", - "title": "Out Error Rate", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "collapsed": false, - "datasource": null, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 33 - }, - "id": 172, - "panels": [], - "repeat": null, - "repeatIteration": 1588834567592, - "repeatPanelId": 4, - "scopedVars": { - "service": { - "selected": false, - "text": "discovery-server", - "value": "discovery-server" - } - }, - "title": "$service", - "type": "row" - }, - { - "columns": [], - "datasource": "LocalPrometheus", - "fontSize": "100%", - "gridPos": { - "h": 5, - "w": 11, - "x": 0, - "y": 34 - }, - "id": 173, - "links": [], - "pageSize": null, - "repeat": null, - "repeatDirection": "h", - "repeatIteration": 1588834567592, - "repeatPanelId": 2, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "discovery-server", - "value": "discovery-server" - } - }, - "scroll": true, - "showHeader": true, - "sort": { - "col": 1, - "desc": true - }, - "styles": [ - { - "alias": "", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "Time", - "thresholds": [], - "type": "hidden", - "unit": "short" - }, - { - "alias": "Requests", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 0, - "mappingType": 1, - "pattern": "Value #A", - "thresholds": [], - "type": "number", - "unit": "none" - }, - { - "alias": "Avg. Response Time", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "link": false, - "mappingType": 1, - "pattern": "Value #B", - "thresholds": [], - "type": "number", - "unit": "ms" - }, - { - "alias": "HTTP Path", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "http_path", - "thresholds": [], - "type": "number", - "unit": "short" - }, - { - "alias": "Error Rate", - "align": "auto", - "colorMode": "cell", - "colors": [ - "rgba(50, 172, 45, 0.97)", - "rgba(237, 129, 40, 0.89)", - "rgba(245, 54, 54, 0.9)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "Value #C", - "thresholds": [ - "0.0001", - "0.3" - ], - "type": "number", - "unit": "percentunit" - } - ], - "targets": [ - { - "expr": "sum(increase(http_in_count{service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_path) > 0", - "format": "table", - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A" - }, - { - "expr": "sum(increase(http_in_responsetime_sum{service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_path) \n/ sum(increase(http_in_count{service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_path) > 0", - "format": "table", - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "B" - }, - { - "expr": "(sum(increase(http_in_count{http_status!~\"(1|2|3)\\\\d\\\\d\",service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_path) \n/ sum(increase(http_in_count{service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_path)) >= 0\nor (sum(increase(http_in_count{service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_path) > 0) * 0", - "format": "table", - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "C" - } - ], - "title": "Incoming Requests", - "transform": "table", - "type": "table" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalPrometheus", - "description": "", - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 5, - "w": 9, - "x": 11, - "y": 34 - }, - "hiddenSeries": false, - "id": 174, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": false, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1588834567592, - "repeatPanelId": 23, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "discovery-server", - "value": "discovery-server" - } - }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "(sum(increase(http_in_responsetime_sum{service=\"$service\",http_path=~\"$path\"}[$__interval])) by (http_path)\n/ sum(increase(http_in_count{service=\"$service\",http_path=~\"$path\"}[$__interval])) by (http_path)) >= 0", - "format": "time_series", - "instant": false, - "interval": "", - "intervalFactor": 1, - "legendFormat": "{{http_path}}", - "refId": "A" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Incoming Avg. Response Time", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "ms", - "label": "", - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "ms", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalPrometheus", - "decimals": 2, - "description": "Incoming HTTP Requests per second for the selected endpoints and applications", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 5, - "w": 2, - "x": 20, - "y": 34 - }, - "hideTimeOverride": true, - "id": 175, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1588834567592, - "repeatPanelId": 6, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "discovery-server", - "value": "discovery-server" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "expr": "sum(rate(http_in_count{service=\"$service\",http_path=~\"$path\"}[$__interval]))", - "format": "time_series", - "instant": false, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A" - } - ], - "thresholds": "", - "timeShift": "15s", - "title": "In Req / Sec", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorPostfix": false, - "colorPrefix": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalPrometheus", - "decimals": 2, - "description": "The error rate of incoming http requests for the selected endpoints and applications", - "format": "percentunit", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 5, - "w": 2, - "x": 22, - "y": 34 - }, - "hideTimeOverride": true, - "id": 176, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1588834567592, - "repeatPanelId": 44, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "discovery-server", - "value": "discovery-server" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "expr": "(sum(increase(http_in_count{http_status!~\"(1|2|3)\\\\d\\\\d\",service=\"$service\",http_path=~\"$path\"}[$__range]))\n/ sum(increase(http_in_count{service=\"$service\",http_path=~\"$path\"}[$__range])) >= 0)\nor (sum(increase(http_in_count{service=\"$service\",http_path=~\"$path\"}[$__range])) > 0) * 0", - "format": "time_series", - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A" - } - ], - "thresholds": "0.01,0.1", - "timeFrom": null, - "timeShift": "15s", - "title": "In Error Rate", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "columns": [], - "datasource": "LocalPrometheus", - "fontSize": "100%", - "gridPos": { - "h": 5, - "w": 11, - "x": 0, - "y": 39 - }, - "id": 177, - "links": [], - "pageSize": null, - "repeatDirection": "h", - "repeatIteration": 1588834567592, - "repeatPanelId": 45, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "discovery-server", - "value": "discovery-server" - } - }, - "scroll": true, - "showHeader": true, - "sort": { - "col": 6, - "desc": true - }, - "styles": [ - { - "alias": "", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "Time", - "thresholds": [], - "type": "hidden", - "unit": "short" - }, - { - "alias": "Requests", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 0, - "mappingType": 1, - "pattern": "Value #A", - "thresholds": [], - "type": "number", - "unit": "none" - }, - { - "alias": "Avg. Response Time", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "link": false, - "mappingType": 1, - "pattern": "Value #B", - "thresholds": [], - "type": "number", - "unit": "ms" - }, - { - "alias": "HTTP Path", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "http_path", - "preserveFormat": false, - "thresholds": [], - "type": "hidden", - "unit": "short" - }, - { - "alias": "Error Rate", - "align": "auto", - "colorMode": "cell", - "colors": [ - "rgba(50, 172, 45, 0.97)", - "rgba(237, 129, 40, 0.89)", - "rgba(245, 54, 54, 0.9)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "Value #C", - "thresholds": [ - "0.0001", - "0.3" - ], - "type": "number", - "unit": "percentunit" - }, - { - "alias": "Target Host", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "http_host", - "thresholds": [], - "type": "hidden", - "unit": "short" - }, - { - "alias": "Http URL", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "http_url", - "thresholds": [], - "type": "string", - "unit": "short" - } - ], - "targets": [ - { - "expr": "sum(label_join(increase(http_out_count{service=\"$service\",http_path=~\"$path\"}[$__range]), \"http_url\", \"\", \"http_host\", \"http_path\")) by (http_url) > 0", - "format": "table", - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A" - }, - { - "expr": "label_join(sum(increase(http_out_responsetime_sum{service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_host,http_path) \n/ sum(increase(http_out_count{service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_host,http_path) > 0, \"http_url\", \"\", \"http_host\", \"http_path\")", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "B" - }, - { - "expr": "label_join((sum(increase(http_out_count{http_status!~\"(1|2|3)\\\\d\\\\d\",service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_path) \n/ sum(increase(http_out_count{service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_host,http_path)) >= 0\nor (sum(increase(http_out_count{service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_host,http_path) > 0) * 0 , \"http_url\", \"\", \"http_host\", \"http_path\")", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "C" - } - ], - "title": "Outgoing Requests", - "transform": "table", - "type": "table" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalPrometheus", - "description": "", - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 5, - "w": 9, - "x": 11, - "y": 39 - }, - "hiddenSeries": false, - "id": 178, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": false, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1588834567592, - "repeatPanelId": 76, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "discovery-server", - "value": "discovery-server" - } - }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "(sum(increase(http_out_responsetime_sum{service=\"$service\",http_path=~\"$path\"}[$__interval])) by (http_host,http_path)\n/ sum(increase(http_out_count{service=\"$service\",http_path=~\"$path\"}[$__interval])) by (http_host,http_path)) >= 0", - "format": "time_series", - "instant": false, - "interval": "", - "intervalFactor": 1, - "legendFormat": "{{http_host}}{{http_path}}", - "refId": "A" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Outgoing Avg. Response Time", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "ms", - "label": "", - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "ms", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalPrometheus", - "decimals": 2, - "description": "Outgoing HTTP Requests per second issued towards the selected endpoints from the given application", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 5, - "w": 2, - "x": 20, - "y": 39 - }, - "hideTimeOverride": true, - "id": 179, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1588834567592, - "repeatPanelId": 112, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "discovery-server", - "value": "discovery-server" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "expr": "sum(rate(http_out_count{service=\"$service\",http_path=~\"$path\"}[$__interval]))", - "format": "time_series", - "instant": false, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A" - } - ], - "thresholds": "", - "timeShift": "15s", - "title": "Out Req / Sec", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorPostfix": false, - "colorPrefix": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalPrometheus", - "decimals": 2, - "description": "The error rate of outgoing http requests issued towards the selected endpoints of the selected application", - "format": "percentunit", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 5, - "w": 2, - "x": 22, - "y": 39 - }, - "hideTimeOverride": true, - "id": 180, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1588834567592, - "repeatPanelId": 153, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "discovery-server", - "value": "discovery-server" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "expr": "(sum(increase(http_out_count{http_status!~\"(1|2|3)\\\\d\\\\d\",service=\"$service\",http_path=~\"$path\"}[$__range]))\n/ sum(increase(http_out_count{service=\"$service\",http_path=~\"$path\"}[$__range])) >= 0)\nor (sum(increase(http_out_count{service=\"$service\",http_path=~\"$path\"}[$__range])) > 0) * 0", - "format": "time_series", - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A" - } - ], - "thresholds": "0.01,0.1", - "timeFrom": null, - "timeShift": "15s", - "title": "Out Error Rate", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "collapsed": false, - "datasource": null, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 44 - }, - "id": 181, - "panels": [], - "repeat": null, - "repeatIteration": 1588834567592, - "repeatPanelId": 4, - "scopedVars": { - "service": { - "selected": false, - "text": "vets-service", - "value": "vets-service" - } - }, - "title": "$service", - "type": "row" - }, - { - "columns": [], - "datasource": "LocalPrometheus", - "fontSize": "100%", - "gridPos": { - "h": 5, - "w": 11, - "x": 0, - "y": 45 - }, - "id": 182, - "links": [], - "pageSize": null, - "repeat": null, - "repeatDirection": "h", - "repeatIteration": 1588834567592, - "repeatPanelId": 2, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "vets-service", - "value": "vets-service" - } - }, - "scroll": true, - "showHeader": true, - "sort": { - "col": 1, - "desc": true - }, - "styles": [ - { - "alias": "", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "Time", - "thresholds": [], - "type": "hidden", - "unit": "short" - }, - { - "alias": "Requests", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 0, - "mappingType": 1, - "pattern": "Value #A", - "thresholds": [], - "type": "number", - "unit": "none" - }, - { - "alias": "Avg. Response Time", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "link": false, - "mappingType": 1, - "pattern": "Value #B", - "thresholds": [], - "type": "number", - "unit": "ms" - }, - { - "alias": "HTTP Path", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "http_path", - "thresholds": [], - "type": "number", - "unit": "short" - }, - { - "alias": "Error Rate", - "align": "auto", - "colorMode": "cell", - "colors": [ - "rgba(50, 172, 45, 0.97)", - "rgba(237, 129, 40, 0.89)", - "rgba(245, 54, 54, 0.9)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "Value #C", - "thresholds": [ - "0.0001", - "0.3" - ], - "type": "number", - "unit": "percentunit" - } - ], - "targets": [ - { - "expr": "sum(increase(http_in_count{service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_path) > 0", - "format": "table", - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A" - }, - { - "expr": "sum(increase(http_in_responsetime_sum{service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_path) \n/ sum(increase(http_in_count{service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_path) > 0", - "format": "table", - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "B" - }, - { - "expr": "(sum(increase(http_in_count{http_status!~\"(1|2|3)\\\\d\\\\d\",service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_path) \n/ sum(increase(http_in_count{service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_path)) >= 0\nor (sum(increase(http_in_count{service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_path) > 0) * 0", - "format": "table", - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "C" - } - ], - "title": "Incoming Requests", - "transform": "table", - "type": "table" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalPrometheus", - "description": "", - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 5, - "w": 9, - "x": 11, - "y": 45 - }, - "hiddenSeries": false, - "id": 183, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": false, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1588834567592, - "repeatPanelId": 23, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "vets-service", - "value": "vets-service" - } - }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "(sum(increase(http_in_responsetime_sum{service=\"$service\",http_path=~\"$path\"}[$__interval])) by (http_path)\n/ sum(increase(http_in_count{service=\"$service\",http_path=~\"$path\"}[$__interval])) by (http_path)) >= 0", - "format": "time_series", - "instant": false, - "interval": "", - "intervalFactor": 1, - "legendFormat": "{{http_path}}", - "refId": "A" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Incoming Avg. Response Time", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "ms", - "label": "", - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "ms", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalPrometheus", - "decimals": 2, - "description": "Incoming HTTP Requests per second for the selected endpoints and applications", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 5, - "w": 2, - "x": 20, - "y": 45 - }, - "hideTimeOverride": true, - "id": 184, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1588834567592, - "repeatPanelId": 6, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "vets-service", - "value": "vets-service" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "expr": "sum(rate(http_in_count{service=\"$service\",http_path=~\"$path\"}[$__interval]))", - "format": "time_series", - "instant": false, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A" - } - ], - "thresholds": "", - "timeShift": "15s", - "title": "In Req / Sec", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorPostfix": false, - "colorPrefix": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalPrometheus", - "decimals": 2, - "description": "The error rate of incoming http requests for the selected endpoints and applications", - "format": "percentunit", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 5, - "w": 2, - "x": 22, - "y": 45 - }, - "hideTimeOverride": true, - "id": 185, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1588834567592, - "repeatPanelId": 44, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "vets-service", - "value": "vets-service" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "expr": "(sum(increase(http_in_count{http_status!~\"(1|2|3)\\\\d\\\\d\",service=\"$service\",http_path=~\"$path\"}[$__range]))\n/ sum(increase(http_in_count{service=\"$service\",http_path=~\"$path\"}[$__range])) >= 0)\nor (sum(increase(http_in_count{service=\"$service\",http_path=~\"$path\"}[$__range])) > 0) * 0", - "format": "time_series", - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A" - } - ], - "thresholds": "0.01,0.1", - "timeFrom": null, - "timeShift": "15s", - "title": "In Error Rate", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "columns": [], - "datasource": "LocalPrometheus", - "fontSize": "100%", - "gridPos": { - "h": 5, - "w": 11, - "x": 0, - "y": 50 - }, - "id": 186, - "links": [], - "pageSize": null, - "repeatDirection": "h", - "repeatIteration": 1588834567592, - "repeatPanelId": 45, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "vets-service", - "value": "vets-service" - } - }, - "scroll": true, - "showHeader": true, - "sort": { - "col": 6, - "desc": true - }, - "styles": [ - { - "alias": "", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "Time", - "thresholds": [], - "type": "hidden", - "unit": "short" - }, - { - "alias": "Requests", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 0, - "mappingType": 1, - "pattern": "Value #A", - "thresholds": [], - "type": "number", - "unit": "none" - }, - { - "alias": "Avg. Response Time", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "link": false, - "mappingType": 1, - "pattern": "Value #B", - "thresholds": [], - "type": "number", - "unit": "ms" - }, - { - "alias": "HTTP Path", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "http_path", - "preserveFormat": false, - "thresholds": [], - "type": "hidden", - "unit": "short" - }, - { - "alias": "Error Rate", - "align": "auto", - "colorMode": "cell", - "colors": [ - "rgba(50, 172, 45, 0.97)", - "rgba(237, 129, 40, 0.89)", - "rgba(245, 54, 54, 0.9)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "Value #C", - "thresholds": [ - "0.0001", - "0.3" - ], - "type": "number", - "unit": "percentunit" - }, - { - "alias": "Target Host", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "http_host", - "thresholds": [], - "type": "hidden", - "unit": "short" - }, - { - "alias": "Http URL", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "http_url", - "thresholds": [], - "type": "string", - "unit": "short" - } - ], - "targets": [ - { - "expr": "sum(label_join(increase(http_out_count{service=\"$service\",http_path=~\"$path\"}[$__range]), \"http_url\", \"\", \"http_host\", \"http_path\")) by (http_url) > 0", - "format": "table", - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A" - }, - { - "expr": "label_join(sum(increase(http_out_responsetime_sum{service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_host,http_path) \n/ sum(increase(http_out_count{service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_host,http_path) > 0, \"http_url\", \"\", \"http_host\", \"http_path\")", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "B" - }, - { - "expr": "label_join((sum(increase(http_out_count{http_status!~\"(1|2|3)\\\\d\\\\d\",service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_path) \n/ sum(increase(http_out_count{service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_host,http_path)) >= 0\nor (sum(increase(http_out_count{service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_host,http_path) > 0) * 0 , \"http_url\", \"\", \"http_host\", \"http_path\")", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "C" - } - ], - "title": "Outgoing Requests", - "transform": "table", - "type": "table" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalPrometheus", - "description": "", - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 5, - "w": 9, - "x": 11, - "y": 50 - }, - "hiddenSeries": false, - "id": 187, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": false, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1588834567592, - "repeatPanelId": 76, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "vets-service", - "value": "vets-service" - } - }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "(sum(increase(http_out_responsetime_sum{service=\"$service\",http_path=~\"$path\"}[$__interval])) by (http_host,http_path)\n/ sum(increase(http_out_count{service=\"$service\",http_path=~\"$path\"}[$__interval])) by (http_host,http_path)) >= 0", - "format": "time_series", - "instant": false, - "interval": "", - "intervalFactor": 1, - "legendFormat": "{{http_host}}{{http_path}}", - "refId": "A" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Outgoing Avg. Response Time", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "ms", - "label": "", - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "ms", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalPrometheus", - "decimals": 2, - "description": "Outgoing HTTP Requests per second issued towards the selected endpoints from the given application", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 5, - "w": 2, - "x": 20, - "y": 50 - }, - "hideTimeOverride": true, - "id": 188, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1588834567592, - "repeatPanelId": 112, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "vets-service", - "value": "vets-service" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "expr": "sum(rate(http_out_count{service=\"$service\",http_path=~\"$path\"}[$__interval]))", - "format": "time_series", - "instant": false, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A" - } - ], - "thresholds": "", - "timeShift": "15s", - "title": "Out Req / Sec", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorPostfix": false, - "colorPrefix": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalPrometheus", - "decimals": 2, - "description": "The error rate of outgoing http requests issued towards the selected endpoints of the selected application", - "format": "percentunit", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 5, - "w": 2, - "x": 22, - "y": 50 - }, - "hideTimeOverride": true, - "id": 189, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1588834567592, - "repeatPanelId": 153, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "vets-service", - "value": "vets-service" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "expr": "(sum(increase(http_out_count{http_status!~\"(1|2|3)\\\\d\\\\d\",service=\"$service\",http_path=~\"$path\"}[$__range]))\n/ sum(increase(http_out_count{service=\"$service\",http_path=~\"$path\"}[$__range])) >= 0)\nor (sum(increase(http_out_count{service=\"$service\",http_path=~\"$path\"}[$__range])) > 0) * 0", - "format": "time_series", - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A" - } - ], - "thresholds": "0.01,0.1", - "timeFrom": null, - "timeShift": "15s", - "title": "Out Error Rate", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "collapsed": false, - "datasource": null, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 55 - }, - "id": 190, - "panels": [], - "repeat": null, - "repeatIteration": 1588834567592, - "repeatPanelId": 4, - "scopedVars": { - "service": { - "selected": false, - "text": "visits-service", - "value": "visits-service" - } - }, - "title": "$service", - "type": "row" - }, - { - "columns": [], - "datasource": "LocalPrometheus", - "fontSize": "100%", - "gridPos": { - "h": 5, - "w": 11, - "x": 0, - "y": 56 - }, - "id": 191, - "links": [], - "pageSize": null, - "repeat": null, - "repeatDirection": "h", - "repeatIteration": 1588834567592, - "repeatPanelId": 2, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "visits-service", - "value": "visits-service" - } - }, - "scroll": true, - "showHeader": true, - "sort": { - "col": 1, - "desc": true - }, - "styles": [ - { - "alias": "", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "Time", - "thresholds": [], - "type": "hidden", - "unit": "short" - }, - { - "alias": "Requests", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 0, - "mappingType": 1, - "pattern": "Value #A", - "thresholds": [], - "type": "number", - "unit": "none" - }, - { - "alias": "Avg. Response Time", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "link": false, - "mappingType": 1, - "pattern": "Value #B", - "thresholds": [], - "type": "number", - "unit": "ms" - }, - { - "alias": "HTTP Path", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "http_path", - "thresholds": [], - "type": "number", - "unit": "short" - }, - { - "alias": "Error Rate", - "align": "auto", - "colorMode": "cell", - "colors": [ - "rgba(50, 172, 45, 0.97)", - "rgba(237, 129, 40, 0.89)", - "rgba(245, 54, 54, 0.9)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "Value #C", - "thresholds": [ - "0.0001", - "0.3" - ], - "type": "number", - "unit": "percentunit" - } - ], - "targets": [ - { - "expr": "sum(increase(http_in_count{service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_path) > 0", - "format": "table", - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A" - }, - { - "expr": "sum(increase(http_in_responsetime_sum{service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_path) \n/ sum(increase(http_in_count{service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_path) > 0", - "format": "table", - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "B" - }, - { - "expr": "(sum(increase(http_in_count{http_status!~\"(1|2|3)\\\\d\\\\d\",service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_path) \n/ sum(increase(http_in_count{service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_path)) >= 0\nor (sum(increase(http_in_count{service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_path) > 0) * 0", - "format": "table", - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "C" - } - ], - "title": "Incoming Requests", - "transform": "table", - "type": "table" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalPrometheus", - "description": "", - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 5, - "w": 9, - "x": 11, - "y": 56 - }, - "hiddenSeries": false, - "id": 192, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": false, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1588834567592, - "repeatPanelId": 23, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "visits-service", - "value": "visits-service" - } - }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "(sum(increase(http_in_responsetime_sum{service=\"$service\",http_path=~\"$path\"}[$__interval])) by (http_path)\n/ sum(increase(http_in_count{service=\"$service\",http_path=~\"$path\"}[$__interval])) by (http_path)) >= 0", - "format": "time_series", - "instant": false, - "interval": "", - "intervalFactor": 1, - "legendFormat": "{{http_path}}", - "refId": "A" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Incoming Avg. Response Time", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "ms", - "label": "", - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "ms", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalPrometheus", - "decimals": 2, - "description": "Incoming HTTP Requests per second for the selected endpoints and applications", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 5, - "w": 2, - "x": 20, - "y": 56 - }, - "hideTimeOverride": true, - "id": 193, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1588834567592, - "repeatPanelId": 6, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "visits-service", - "value": "visits-service" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "expr": "sum(rate(http_in_count{service=\"$service\",http_path=~\"$path\"}[$__interval]))", - "format": "time_series", - "instant": false, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A" - } - ], - "thresholds": "", - "timeShift": "15s", - "title": "In Req / Sec", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorPostfix": false, - "colorPrefix": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalPrometheus", - "decimals": 2, - "description": "The error rate of incoming http requests for the selected endpoints and applications", - "format": "percentunit", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 5, - "w": 2, - "x": 22, - "y": 56 - }, - "hideTimeOverride": true, - "id": 194, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1588834567592, - "repeatPanelId": 44, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "visits-service", - "value": "visits-service" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "expr": "(sum(increase(http_in_count{http_status!~\"(1|2|3)\\\\d\\\\d\",service=\"$service\",http_path=~\"$path\"}[$__range]))\n/ sum(increase(http_in_count{service=\"$service\",http_path=~\"$path\"}[$__range])) >= 0)\nor (sum(increase(http_in_count{service=\"$service\",http_path=~\"$path\"}[$__range])) > 0) * 0", - "format": "time_series", - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A" - } - ], - "thresholds": "0.01,0.1", - "timeFrom": null, - "timeShift": "15s", - "title": "In Error Rate", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "columns": [], - "datasource": "LocalPrometheus", - "fontSize": "100%", - "gridPos": { - "h": 5, - "w": 11, - "x": 0, - "y": 61 - }, - "id": 195, - "links": [], - "pageSize": null, - "repeatDirection": "h", - "repeatIteration": 1588834567592, - "repeatPanelId": 45, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "visits-service", - "value": "visits-service" - } - }, - "scroll": true, - "showHeader": true, - "sort": { - "col": 6, - "desc": true - }, - "styles": [ - { - "alias": "", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "Time", - "thresholds": [], - "type": "hidden", - "unit": "short" - }, - { - "alias": "Requests", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 0, - "mappingType": 1, - "pattern": "Value #A", - "thresholds": [], - "type": "number", - "unit": "none" - }, - { - "alias": "Avg. Response Time", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "link": false, - "mappingType": 1, - "pattern": "Value #B", - "thresholds": [], - "type": "number", - "unit": "ms" - }, - { - "alias": "HTTP Path", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "http_path", - "preserveFormat": false, - "thresholds": [], - "type": "hidden", - "unit": "short" - }, - { - "alias": "Error Rate", - "align": "auto", - "colorMode": "cell", - "colors": [ - "rgba(50, 172, 45, 0.97)", - "rgba(237, 129, 40, 0.89)", - "rgba(245, 54, 54, 0.9)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "Value #C", - "thresholds": [ - "0.0001", - "0.3" - ], - "type": "number", - "unit": "percentunit" - }, - { - "alias": "Target Host", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "http_host", - "thresholds": [], - "type": "hidden", - "unit": "short" - }, - { - "alias": "Http URL", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "http_url", - "thresholds": [], - "type": "string", - "unit": "short" - } - ], - "targets": [ - { - "expr": "sum(label_join(increase(http_out_count{service=\"$service\",http_path=~\"$path\"}[$__range]), \"http_url\", \"\", \"http_host\", \"http_path\")) by (http_url) > 0", - "format": "table", - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A" - }, - { - "expr": "label_join(sum(increase(http_out_responsetime_sum{service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_host,http_path) \n/ sum(increase(http_out_count{service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_host,http_path) > 0, \"http_url\", \"\", \"http_host\", \"http_path\")", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "B" - }, - { - "expr": "label_join((sum(increase(http_out_count{http_status!~\"(1|2|3)\\\\d\\\\d\",service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_path) \n/ sum(increase(http_out_count{service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_host,http_path)) >= 0\nor (sum(increase(http_out_count{service=\"$service\",http_path=~\"$path\"}[$__range])) by (http_host,http_path) > 0) * 0 , \"http_url\", \"\", \"http_host\", \"http_path\")", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "C" - } - ], - "title": "Outgoing Requests", - "transform": "table", - "type": "table" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalPrometheus", - "description": "", - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 5, - "w": 9, - "x": 11, - "y": 61 - }, - "hiddenSeries": false, - "id": 196, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": false, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1588834567592, - "repeatPanelId": 76, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "visits-service", - "value": "visits-service" - } - }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "(sum(increase(http_out_responsetime_sum{service=\"$service\",http_path=~\"$path\"}[$__interval])) by (http_host,http_path)\n/ sum(increase(http_out_count{service=\"$service\",http_path=~\"$path\"}[$__interval])) by (http_host,http_path)) >= 0", - "format": "time_series", - "instant": false, - "interval": "", - "intervalFactor": 1, - "legendFormat": "{{http_host}}{{http_path}}", - "refId": "A" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Outgoing Avg. Response Time", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "ms", - "label": "", - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "ms", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalPrometheus", - "decimals": 2, - "description": "Outgoing HTTP Requests per second issued towards the selected endpoints from the given application", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 5, - "w": 2, - "x": 20, - "y": 61 - }, - "hideTimeOverride": true, - "id": 197, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1588834567592, - "repeatPanelId": 112, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "visits-service", - "value": "visits-service" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "expr": "sum(rate(http_out_count{service=\"$service\",http_path=~\"$path\"}[$__interval]))", - "format": "time_series", - "instant": false, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A" - } - ], - "thresholds": "", - "timeShift": "15s", - "title": "Out Req / Sec", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorPostfix": false, - "colorPrefix": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalPrometheus", - "decimals": 2, - "description": "The error rate of outgoing http requests issued towards the selected endpoints of the selected application", - "format": "percentunit", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 5, - "w": 2, - "x": 22, - "y": 61 - }, - "hideTimeOverride": true, - "id": 198, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1588834567592, - "repeatPanelId": 153, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "visits-service", - "value": "visits-service" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "expr": "(sum(increase(http_out_count{http_status!~\"(1|2|3)\\\\d\\\\d\",service=\"$service\",http_path=~\"$path\"}[$__range]))\n/ sum(increase(http_out_count{service=\"$service\",http_path=~\"$path\"}[$__range])) >= 0)\nor (sum(increase(http_out_count{service=\"$service\",http_path=~\"$path\"}[$__range])) > 0) * 0", - "format": "time_series", - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A" - } - ], - "thresholds": "0.01,0.1", - "timeFrom": null, - "timeShift": "15s", - "title": "Out Error Rate", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - } - ], - "refresh": "30s", - "schemaVersion": 22, - "style": "dark", - "tags": [], - "templating": { - "list": [ - { - "allValue": null, - "current": { - "text": "All", - "value": [ - "$__all" - ] - }, - "datasource": "LocalPrometheus", - "definition": "label_values(service)", - "hide": 0, - "includeAll": true, - "index": -1, - "label": "Service", - "multi": true, - "name": "service", - "options": [], - "query": "label_values(service)", - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 1, - "tagValuesQuery": "", - "tags": [], - "tagsQuery": "", - "type": "query", - "useTags": false - }, - { - "allValue": ".*", - "current": { - "text": "All", - "value": [ - "$__all" - ] - }, - "datasource": "LocalPrometheus", - "definition": "label_values(http_path)", - "hide": 0, - "includeAll": true, - "index": -1, - "label": "Endpoint", - "multi": true, - "name": "path", - "options": [], - "query": "label_values(http_path)", - "refresh": 2, - "regex": "", - "skipUrlSync": false, - "sort": 0, - "tagValuesQuery": "", - "tags": [], - "tagsQuery": "", - "type": "query", - "useTags": false - } - ] - }, - "time": { - "from": "now-5m", - "to": "now" - }, - "timepicker": { - "refresh_intervals": [ - "5s", - "10s", - "30s", - "1m", - "5m", - "15m", - "30m", - "1h", - "2h", - "1d" - ], - "time_options": [ - "5m", - "15m", - "1h", - "6h", - "12h", - "24h", - "2d", - "7d", - "30d" - ] - }, - "timezone": "", - "title": "HTTP Overview", - "uid": "523wqxqmz", - "variables": { - "list": [] - }, - "version": 1 -} \ No newline at end of file diff --git a/inspectit-ocelot-demo/grafana/provisioning/prometheus/dashboards/agent/jvm-metrics.json b/inspectit-ocelot-demo/grafana/provisioning/prometheus/dashboards/agent/jvm-metrics.json deleted file mode 100644 index 70f8bcbe81..0000000000 --- a/inspectit-ocelot-demo/grafana/provisioning/prometheus/dashboards/agent/jvm-metrics.json +++ /dev/null @@ -1,10773 +0,0 @@ -{ - "annotations": { - "list": [ - { - "builtIn": 1, - "datasource": "-- Grafana --", - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "type": "dashboard" - } - ] - }, - "editable": true, - "gnetId": null, - "graphTooltip": 0, - "id": 3, - "iteration": 1546606940131, - "links": [], - "panels": [ - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 0 - }, - "id": 7, - "panels": [], - "repeat": "service", - "scopedVars": { - "service": { - "selected": false, - "text": "api-gateway", - "value": "api-gateway" - } - }, - "title": "$service", - "type": "row" - }, - { - "aliasColors": { - "process_cpu_usage": "#badff4", - "process_cpu_usage ": "#badff4", - "system_cpu_usage": "#1f78c1", - "system_cpu_usage ": "#1f78c1" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalPrometheus", - "fill": 2, - "gridPos": { - "h": 6, - "w": 7, - "x": 0, - "y": 1 - }, - "id": 11, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "scopedVars": { - "service": { - "selected": false, - "text": "api-gateway", - "value": "api-gateway" - } - }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "process_cpu_usage{service=\"$service\"}", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "process_cpu_usage", - "query": "from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"process_cpu_usage\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])", - "refId": "A", - "resultFormat": "time_series" - }, - { - "expr": "system_cpu_usage{service=\"$service\"}", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "system_cpu_usage", - "query": "from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"system_cpu_usage\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n", - "refId": "B", - "resultFormat": "time_series" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "CPU Usage", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": null, - "format": "percentunit", - "label": null, - "logBase": 1, - "max": "1.05", - "min": "0", - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalPrometheus", - "fill": 10, - "gridPos": { - "h": 6, - "w": 6, - "x": 7, - "y": 1 - }, - "id": 39, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "scopedVars": { - "service": { - "selected": false, - "text": "api-gateway", - "value": "api-gateway" - } - }, - "seriesOverrides": [ - { - "alias": "used", - "color": "#82b5d8" - }, - { - "alias": "committed", - "color": "#447ebc" - }, - { - "alias": "max", - "color": "#bf1b00", - "fill": 0, - "linewidth": 4 - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "max", - "expr": "sum(jvm_memory_max{service=\"$service\", area=\"heap\"})", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "interval": "", - "intervalFactor": 1, - "legendFormat": "max", - "measurement": "jvm_memory_max", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"gauge\") FROM \"jvm_memory_max\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time(1m) fill(null)", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "heap" - } - ] - }, - { - "alias": "committed", - "expr": "sum(jvm_memory_committed{service=\"$service\", area=\"heap\"})", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "hide": false, - "intervalFactor": 1, - "legendFormat": "committed", - "measurement": "jvm_memory_committed", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"gauge\") FROM \"jvm_memory_max\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time(1m) fill(null)", - "rawQuery": false, - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "heap" - } - ] - }, - { - "alias": "used", - "expr": "sum(jvm_memory_used{service=\"$service\", area=\"heap\"})", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "hide": false, - "intervalFactor": 1, - "legendFormat": "used", - "measurement": "jvm_memory_used", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"gauge\") FROM \"jvm_memory_max\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time(1m) fill(null)", - "rawQuery": false, - "refId": "C", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "heap" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Memory - Heap", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "decbytes", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": { - "daemon": "#0a50a1", - "daemon ": "#0a50a1", - "live-non-daemon ": "#82b5d8", - "non-daemon ": "#82b5d8", - "non-deamon": "#82b5d8", - "peak": "#bf1b00", - "peak ": "#bf1b00" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalPrometheus", - "fill": 4, - "gridPos": { - "h": 6, - "w": 6, - "x": 13, - "y": 1 - }, - "id": 42, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 2, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "scopedVars": { - "service": { - "selected": false, - "text": "api-gateway", - "value": "api-gateway" - } - }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "expr": "jvm_threads_daemon{service=\"$service\"}", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "daemon", - "query": "from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_daemon\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> map(fn:(r) => ({\n _time: r._time,\n _value: r._value,\n _measurement: \"daemon\"\n }))\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])", - "refId": "B" - }, - { - "alias": "$tag_state", - "expr": "jvm_threads_live{service=\"$service\"} - jvm_threads_daemon{service=\"$service\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "state" - ], - "type": "tag" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "intervalFactor": 1, - "legendFormat": "non-deamon", - "measurement": "jvm_threads_states", - "orderByTime": "ASC", - "policy": "default", - "query": "lnd = () => {\nlive = from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_live\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n \ndaemon = from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_daemon\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n \nreturn join(tables:{live:live, daemon:daemon},on:[\"_time\",\"_stop\",\"_start\", \"host\"])\n |> map(fn:(r) => ({\n _time: r._time,\n _value: (r._value_live - r._value_daemon),\n _measurement: \"non-daemon\"\n }))\n}\n\nlnd()", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "expr": "jvm_threads_peak{service=\"$service\"} - jvm_threads_live{service=\"$service\"}", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "peak", - "query": "stackedPeak = () => {\npeak = from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_peak\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n\nlive = from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_live\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n \n\n \nreturn join(tables:{live:live, peak:peak},on:[\"_time\",\"_stop\",\"_start\", \"host\"])\n |> map(fn:(r) => ({\n _time: r._time,\n _value: (r._value_peak - r._value_live),\n _measurement: \"peak\"\n }))\n}\n\nstackedPeak()", - "refId": "C" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [ - { - "colorMode": "background6", - "fill": true, - "line": false, - "op": "time" - } - ], - "timeShift": null, - "title": "# Live Threads", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": 0, - "format": "none", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalPrometheus", - "fill": 1, - "gridPos": { - "h": 6, - "w": 5, - "x": 19, - "y": 1 - }, - "id": 46, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "scopedVars": { - "service": { - "selected": false, - "text": "api-gateway", - "value": "api-gateway" - } - }, - "seriesOverrides": [ - { - "alias": "Allocated Memory", - "bars": true, - "color": "#ef843c", - "lines": false - }, - { - "alias": "Promoted Memory", - "bars": true, - "color": "#629e51", - "lines": false - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "Live Data Size", - "expr": "jvm_gc_live_data_size{service=\"$service\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "hide": false, - "intervalFactor": 1, - "legendFormat": "Live Data Size", - "measurement": "jvm_gc_live_data_size", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT \"gauge\" FROM \"jvm_gc_live_data_size\" WHERE (\"service\" =~ /^$service$/) ", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "Max Data Size", - "expr": "jvm_gc_max_data_size{service=\"$service\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "hide": false, - "intervalFactor": 1, - "legendFormat": "Max Data Size", - "measurement": "jvm_gc_max_data_size", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT \"gauge\" FROM \"jvm_gc_live_data_size\" WHERE (\"service\" =~ /^$service$/) ", - "rawQuery": false, - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "Allocated Memory", - "expr": "idelta(jvm_gc_memory_allocated{service=\"$service\"}[$__range])", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - } - ], - "intervalFactor": 1, - "legendFormat": "Allocated Memory", - "measurement": "jvm_gc_memory_allocated", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT difference(sum(\"counter\")) FROM \"jvm_gc_memory_allocated\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time(15s)", - "rawQuery": false, - "refId": "D", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "counter" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - }, - { - "params": [], - "type": "non_negative_difference" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "Promoted Memory", - "expr": "idelta(jvm_gc_memory_promoted{service=\"$service\"}[$__range])", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - } - ], - "intervalFactor": 1, - "legendFormat": "Promoted Memory", - "measurement": "jvm_gc_memory_promoted", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT difference(sum(\"counter\")) FROM \"jvm_gc_memory_allocated\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time(15s)", - "rawQuery": false, - "refId": "F", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "counter" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - }, - { - "params": [], - "type": "non_negative_difference" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Garbage Collection Memory", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "decbytes", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "ms", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalPrometheus", - "format": "percentunit", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": true, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 6, - "w": 4, - "x": 0, - "y": 7 - }, - "id": 49, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "scopedVars": { - "service": { - "selected": false, - "text": "api-gateway", - "value": "api-gateway" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "expr": "process_cpu_usage{service=\"$service\"}", - "format": "time_series", - "groupBy": [], - "instant": true, - "interval": "", - "intervalFactor": 1, - "measurement": "process_cpu_usage", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": "0.8,0.9", - "title": "Current CPU Usage", - "type": "singlestat", - "valueFontSize": "70%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalPrometheus", - "format": "none", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 3, - "w": 3, - "x": 4, - "y": 7 - }, - "id": 4, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeat": null, - "repeatDirection": "h", - "scopedVars": { - "service": { - "selected": false, - "text": "api-gateway", - "value": "api-gateway" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "expr": "jvm_classes_loaded{service=\"$service\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": true, - "intervalFactor": 1, - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n |> range(start: -1m)\n |> filter(fn: (r) =>\n r._measurement == \"jvm_classes_loaded\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"service\"])\n |> last()\n", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": "0.9,0.95", - "title": "Loaded Classes", - "type": "singlestat", - "valueFontSize": "50%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalPrometheus", - "fill": 10, - "gridPos": { - "h": 6, - "w": 6, - "x": 7, - "y": 7 - }, - "id": 40, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "scopedVars": { - "service": { - "selected": false, - "text": "api-gateway", - "value": "api-gateway" - } - }, - "seriesOverrides": [ - { - "alias": "used", - "color": "#82b5d8" - }, - { - "alias": "committed", - "color": "#447ebc" - }, - { - "alias": "max", - "color": "#bf1b00", - "fill": 0, - "linewidth": 4 - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "max", - "expr": "sum(jvm_memory_max{service=\"$service\", area=\"nonheap\"})", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "intervalFactor": 1, - "legendFormat": "max", - "measurement": "jvm_memory_max", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"gauge\") FROM \"jvm_memory_max\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time(1m) fill(null)", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "nonheap" - } - ] - }, - { - "alias": "committed", - "expr": "sum(jvm_memory_committed{service=\"$service\", area=\"nonheap\"})", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "intervalFactor": 1, - "legendFormat": "committed", - "measurement": "jvm_memory_committed", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"gauge\") FROM \"jvm_memory_max\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time(1m) fill(null)", - "rawQuery": false, - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "nonheap" - } - ] - }, - { - "alias": "used", - "expr": "sum(jvm_memory_used{service=\"$service\", area=\"nonheap\"})", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "intervalFactor": 1, - "legendFormat": "used", - "measurement": "jvm_memory_used", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"gauge\") FROM \"jvm_memory_max\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time(1m) fill(null)", - "rawQuery": false, - "refId": "C", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "nonheap" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Memory - Non-Heap", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "decbytes", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalPrometheus", - "fill": 4, - "gridPos": { - "h": 6, - "w": 6, - "x": 13, - "y": 7 - }, - "id": 41, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "scopedVars": { - "service": { - "selected": false, - "text": "api-gateway", - "value": "api-gateway" - } - }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "alias": "$tag_state", - "expr": "jvm_threads_states{service=\"$service\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "state" - ], - "type": "tag" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "intervalFactor": 1, - "legendFormat": "{{state}}", - "measurement": "jvm_threads_states", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"gauge\") FROM \"jvm_memory_max\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time(1m) fill(null)", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "# Threads by States", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": 0, - "format": "none", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": { - "Major GC": "#bf1b00" - }, - "bars": true, - "dashLength": 10, - "dashes": false, - "datasource": "LocalPrometheus", - "fill": 1, - "gridPos": { - "h": 6, - "w": 5, - "x": 19, - "y": 7 - }, - "id": 47, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": false, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "scopedVars": { - "service": { - "selected": false, - "text": "api-gateway", - "value": "api-gateway" - } - }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "expr": "sum(idelta(jvm_gc_pause{service=\"$service\", action=\"end of minor GC\"}[$__range]))", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "Minor GC", - "refId": "A" - }, - { - "expr": "idelta(jvm_gc_pause{service=\"$service\", action=\"end of major GC\"}[$__range])", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "Major GC", - "refId": "B" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Garbage Collection Pauses", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "ms", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalPrometheus", - "format": "none", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 3, - "w": 3, - "x": 4, - "y": 10 - }, - "id": 12, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatDirection": "h", - "scopedVars": { - "service": { - "selected": false, - "text": "api-gateway", - "value": "api-gateway" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "expr": "jvm_classes_unloaded{service=\"$service\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": true, - "intervalFactor": 1, - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n |> range(start: -1m)\n |> filter(fn: (r) =>\n r._measurement == \"jvm_classes_unloaded\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"service\"])\n |> last()\n", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": "0.9,0.95", - "title": "Unloaded Classes", - "type": "singlestat", - "valueFontSize": "50%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "content": "----", - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 13 - }, - "id": 51, - "links": [], - "mode": "html", - "scopedVars": { - "service": { - "selected": false, - "text": "api-gateway", - "value": "api-gateway" - } - }, - "title": "", - "transparent": true, - "type": "text" - }, - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 14 - }, - "id": 52, - "panels": [], - "repeat": null, - "repeatIteration": 1546606940131, - "repeatPanelId": 7, - "scopedVars": { - "service": { - "selected": false, - "text": "config-server", - "value": "config-server" - } - }, - "title": "$service", - "type": "row" - }, - { - "aliasColors": { - "process_cpu_usage": "#badff4", - "process_cpu_usage ": "#badff4", - "system_cpu_usage": "#1f78c1", - "system_cpu_usage ": "#1f78c1" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalPrometheus", - "fill": 2, - "gridPos": { - "h": 6, - "w": 7, - "x": 0, - "y": 15 - }, - "id": 53, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1546606940131, - "repeatPanelId": 11, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "config-server", - "value": "config-server" - } - }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "process_cpu_usage{service=\"$service\"}", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "process_cpu_usage", - "query": "from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"process_cpu_usage\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])", - "refId": "A", - "resultFormat": "time_series" - }, - { - "expr": "system_cpu_usage{service=\"$service\"}", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "system_cpu_usage", - "query": "from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"system_cpu_usage\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n", - "refId": "B", - "resultFormat": "time_series" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "CPU Usage", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": null, - "format": "percentunit", - "label": null, - "logBase": 1, - "max": "1.05", - "min": "0", - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalPrometheus", - "fill": 10, - "gridPos": { - "h": 6, - "w": 6, - "x": 7, - "y": 15 - }, - "id": 54, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1546606940131, - "repeatPanelId": 39, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "config-server", - "value": "config-server" - } - }, - "seriesOverrides": [ - { - "alias": "used", - "color": "#82b5d8" - }, - { - "alias": "committed", - "color": "#447ebc" - }, - { - "alias": "max", - "color": "#bf1b00", - "fill": 0, - "linewidth": 4 - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "max", - "expr": "sum(jvm_memory_max{service=\"$service\", area=\"heap\"})", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "interval": "", - "intervalFactor": 1, - "legendFormat": "max", - "measurement": "jvm_memory_max", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"gauge\") FROM \"jvm_memory_max\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time(1m) fill(null)", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "heap" - } - ] - }, - { - "alias": "committed", - "expr": "sum(jvm_memory_committed{service=\"$service\", area=\"heap\"})", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "hide": false, - "intervalFactor": 1, - "legendFormat": "committed", - "measurement": "jvm_memory_committed", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"gauge\") FROM \"jvm_memory_max\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time(1m) fill(null)", - "rawQuery": false, - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "heap" - } - ] - }, - { - "alias": "used", - "expr": "sum(jvm_memory_used{service=\"$service\", area=\"heap\"})", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "hide": false, - "intervalFactor": 1, - "legendFormat": "used", - "measurement": "jvm_memory_used", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"gauge\") FROM \"jvm_memory_max\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time(1m) fill(null)", - "rawQuery": false, - "refId": "C", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "heap" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Memory - Heap", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "decbytes", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": { - "daemon": "#0a50a1", - "daemon ": "#0a50a1", - "live-non-daemon ": "#82b5d8", - "non-daemon ": "#82b5d8", - "non-deamon": "#82b5d8", - "peak": "#bf1b00", - "peak ": "#bf1b00" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalPrometheus", - "fill": 4, - "gridPos": { - "h": 6, - "w": 6, - "x": 13, - "y": 15 - }, - "id": 55, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 2, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1546606940131, - "repeatPanelId": 42, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "config-server", - "value": "config-server" - } - }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "expr": "jvm_threads_daemon{service=\"$service\"}", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "daemon", - "query": "from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_daemon\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> map(fn:(r) => ({\n _time: r._time,\n _value: r._value,\n _measurement: \"daemon\"\n }))\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])", - "refId": "B" - }, - { - "alias": "$tag_state", - "expr": "jvm_threads_live{service=\"$service\"} - jvm_threads_daemon{service=\"$service\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "state" - ], - "type": "tag" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "intervalFactor": 1, - "legendFormat": "non-deamon", - "measurement": "jvm_threads_states", - "orderByTime": "ASC", - "policy": "default", - "query": "lnd = () => {\nlive = from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_live\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n \ndaemon = from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_daemon\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n \nreturn join(tables:{live:live, daemon:daemon},on:[\"_time\",\"_stop\",\"_start\", \"host\"])\n |> map(fn:(r) => ({\n _time: r._time,\n _value: (r._value_live - r._value_daemon),\n _measurement: \"non-daemon\"\n }))\n}\n\nlnd()", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "expr": "jvm_threads_peak{service=\"$service\"} - jvm_threads_live{service=\"$service\"}", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "peak", - "query": "stackedPeak = () => {\npeak = from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_peak\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n\nlive = from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_live\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n \n\n \nreturn join(tables:{live:live, peak:peak},on:[\"_time\",\"_stop\",\"_start\", \"host\"])\n |> map(fn:(r) => ({\n _time: r._time,\n _value: (r._value_peak - r._value_live),\n _measurement: \"peak\"\n }))\n}\n\nstackedPeak()", - "refId": "C" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [ - { - "colorMode": "background6", - "fill": true, - "line": false, - "op": "time" - } - ], - "timeShift": null, - "title": "# Live Threads", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": 0, - "format": "none", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalPrometheus", - "fill": 1, - "gridPos": { - "h": 6, - "w": 5, - "x": 19, - "y": 15 - }, - "id": 56, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1546606940131, - "repeatPanelId": 46, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "config-server", - "value": "config-server" - } - }, - "seriesOverrides": [ - { - "alias": "Allocated Memory", - "bars": true, - "color": "#ef843c", - "lines": false - }, - { - "alias": "Promoted Memory", - "bars": true, - "color": "#629e51", - "lines": false - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "Live Data Size", - "expr": "jvm_gc_live_data_size{service=\"$service\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "hide": false, - "intervalFactor": 1, - "legendFormat": "Live Data Size", - "measurement": "jvm_gc_live_data_size", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT \"gauge\" FROM \"jvm_gc_live_data_size\" WHERE (\"service\" =~ /^$service$/) ", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "Max Data Size", - "expr": "jvm_gc_max_data_size{service=\"$service\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "hide": false, - "intervalFactor": 1, - "legendFormat": "Max Data Size", - "measurement": "jvm_gc_max_data_size", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT \"gauge\" FROM \"jvm_gc_live_data_size\" WHERE (\"service\" =~ /^$service$/) ", - "rawQuery": false, - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "Allocated Memory", - "expr": "idelta(jvm_gc_memory_allocated{service=\"$service\"}[$__range])", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - } - ], - "intervalFactor": 1, - "legendFormat": "Allocated Memory", - "measurement": "jvm_gc_memory_allocated", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT difference(sum(\"counter\")) FROM \"jvm_gc_memory_allocated\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time(15s)", - "rawQuery": false, - "refId": "D", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "counter" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - }, - { - "params": [], - "type": "non_negative_difference" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "Promoted Memory", - "expr": "idelta(jvm_gc_memory_promoted{service=\"$service\"}[$__range])", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - } - ], - "intervalFactor": 1, - "legendFormat": "Promoted Memory", - "measurement": "jvm_gc_memory_promoted", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT difference(sum(\"counter\")) FROM \"jvm_gc_memory_allocated\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time(15s)", - "rawQuery": false, - "refId": "F", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "counter" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - }, - { - "params": [], - "type": "non_negative_difference" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Garbage Collection Memory", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "decbytes", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "ms", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalPrometheus", - "format": "percentunit", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": true, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 6, - "w": 4, - "x": 0, - "y": 21 - }, - "id": 57, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1546606940131, - "repeatPanelId": 49, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "config-server", - "value": "config-server" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "expr": "process_cpu_usage{service=\"$service\"}", - "format": "time_series", - "groupBy": [], - "instant": true, - "interval": "", - "intervalFactor": 1, - "measurement": "process_cpu_usage", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": "0.8,0.9", - "title": "Current CPU Usage", - "type": "singlestat", - "valueFontSize": "70%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalPrometheus", - "format": "none", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 3, - "w": 3, - "x": 4, - "y": 21 - }, - "id": 58, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeat": null, - "repeatDirection": "h", - "repeatIteration": 1546606940131, - "repeatPanelId": 4, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "config-server", - "value": "config-server" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "expr": "jvm_classes_loaded{service=\"$service\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": true, - "intervalFactor": 1, - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n |> range(start: -1m)\n |> filter(fn: (r) =>\n r._measurement == \"jvm_classes_loaded\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"service\"])\n |> last()\n", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": "0.9,0.95", - "title": "Loaded Classes", - "type": "singlestat", - "valueFontSize": "50%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalPrometheus", - "fill": 10, - "gridPos": { - "h": 6, - "w": 6, - "x": 7, - "y": 21 - }, - "id": 59, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1546606940131, - "repeatPanelId": 40, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "config-server", - "value": "config-server" - } - }, - "seriesOverrides": [ - { - "alias": "used", - "color": "#82b5d8" - }, - { - "alias": "committed", - "color": "#447ebc" - }, - { - "alias": "max", - "color": "#bf1b00", - "fill": 0, - "linewidth": 4 - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "max", - "expr": "sum(jvm_memory_max{service=\"$service\", area=\"nonheap\"})", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "intervalFactor": 1, - "legendFormat": "max", - "measurement": "jvm_memory_max", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"gauge\") FROM \"jvm_memory_max\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time(1m) fill(null)", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "nonheap" - } - ] - }, - { - "alias": "committed", - "expr": "sum(jvm_memory_committed{service=\"$service\", area=\"nonheap\"})", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "intervalFactor": 1, - "legendFormat": "committed", - "measurement": "jvm_memory_committed", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"gauge\") FROM \"jvm_memory_max\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time(1m) fill(null)", - "rawQuery": false, - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "nonheap" - } - ] - }, - { - "alias": "used", - "expr": "sum(jvm_memory_used{service=\"$service\", area=\"nonheap\"})", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "intervalFactor": 1, - "legendFormat": "used", - "measurement": "jvm_memory_used", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"gauge\") FROM \"jvm_memory_max\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time(1m) fill(null)", - "rawQuery": false, - "refId": "C", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "nonheap" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Memory - Non-Heap", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "decbytes", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalPrometheus", - "fill": 4, - "gridPos": { - "h": 6, - "w": 6, - "x": 13, - "y": 21 - }, - "id": 60, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1546606940131, - "repeatPanelId": 41, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "config-server", - "value": "config-server" - } - }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "alias": "$tag_state", - "expr": "jvm_threads_states{service=\"$service\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "state" - ], - "type": "tag" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "intervalFactor": 1, - "legendFormat": "{{state}}", - "measurement": "jvm_threads_states", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"gauge\") FROM \"jvm_memory_max\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time(1m) fill(null)", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "# Threads by States", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": 0, - "format": "none", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": { - "Major GC": "#bf1b00" - }, - "bars": true, - "dashLength": 10, - "dashes": false, - "datasource": "LocalPrometheus", - "fill": 1, - "gridPos": { - "h": 6, - "w": 5, - "x": 19, - "y": 21 - }, - "id": 61, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": false, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1546606940131, - "repeatPanelId": 47, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "config-server", - "value": "config-server" - } - }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "expr": "sum(idelta(jvm_gc_pause{service=\"$service\", action=\"end of minor GC\"}[$__range]))", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "Minor GC", - "refId": "A" - }, - { - "expr": "idelta(jvm_gc_pause{service=\"$service\", action=\"end of major GC\"}[$__range])", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "Major GC", - "refId": "B" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Garbage Collection Pauses", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "ms", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalPrometheus", - "format": "none", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 3, - "w": 3, - "x": 4, - "y": 24 - }, - "id": 62, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatDirection": "h", - "repeatIteration": 1546606940131, - "repeatPanelId": 12, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "config-server", - "value": "config-server" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "expr": "jvm_classes_unloaded{service=\"$service\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": true, - "intervalFactor": 1, - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n |> range(start: -1m)\n |> filter(fn: (r) =>\n r._measurement == \"jvm_classes_unloaded\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"service\"])\n |> last()\n", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": "0.9,0.95", - "title": "Unloaded Classes", - "type": "singlestat", - "valueFontSize": "50%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "content": "----", - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 27 - }, - "id": 63, - "links": [], - "mode": "html", - "repeatIteration": 1546606940131, - "repeatPanelId": 51, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "config-server", - "value": "config-server" - } - }, - "title": "", - "transparent": true, - "type": "text" - }, - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 28 - }, - "id": 64, - "panels": [], - "repeat": null, - "repeatIteration": 1546606940131, - "repeatPanelId": 7, - "scopedVars": { - "service": { - "selected": false, - "text": "customers-service", - "value": "customers-service" - } - }, - "title": "$service", - "type": "row" - }, - { - "aliasColors": { - "process_cpu_usage": "#badff4", - "process_cpu_usage ": "#badff4", - "system_cpu_usage": "#1f78c1", - "system_cpu_usage ": "#1f78c1" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalPrometheus", - "fill": 2, - "gridPos": { - "h": 6, - "w": 7, - "x": 0, - "y": 29 - }, - "id": 65, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1546606940131, - "repeatPanelId": 11, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "customers-service", - "value": "customers-service" - } - }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "process_cpu_usage{service=\"$service\"}", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "process_cpu_usage", - "query": "from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"process_cpu_usage\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])", - "refId": "A", - "resultFormat": "time_series" - }, - { - "expr": "system_cpu_usage{service=\"$service\"}", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "system_cpu_usage", - "query": "from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"system_cpu_usage\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n", - "refId": "B", - "resultFormat": "time_series" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "CPU Usage", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": null, - "format": "percentunit", - "label": null, - "logBase": 1, - "max": "1.05", - "min": "0", - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalPrometheus", - "fill": 10, - "gridPos": { - "h": 6, - "w": 6, - "x": 7, - "y": 29 - }, - "id": 66, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1546606940131, - "repeatPanelId": 39, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "customers-service", - "value": "customers-service" - } - }, - "seriesOverrides": [ - { - "alias": "used", - "color": "#82b5d8" - }, - { - "alias": "committed", - "color": "#447ebc" - }, - { - "alias": "max", - "color": "#bf1b00", - "fill": 0, - "linewidth": 4 - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "max", - "expr": "sum(jvm_memory_max{service=\"$service\", area=\"heap\"})", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "interval": "", - "intervalFactor": 1, - "legendFormat": "max", - "measurement": "jvm_memory_max", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"gauge\") FROM \"jvm_memory_max\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time(1m) fill(null)", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "heap" - } - ] - }, - { - "alias": "committed", - "expr": "sum(jvm_memory_committed{service=\"$service\", area=\"heap\"})", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "hide": false, - "intervalFactor": 1, - "legendFormat": "committed", - "measurement": "jvm_memory_committed", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"gauge\") FROM \"jvm_memory_max\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time(1m) fill(null)", - "rawQuery": false, - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "heap" - } - ] - }, - { - "alias": "used", - "expr": "sum(jvm_memory_used{service=\"$service\", area=\"heap\"})", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "hide": false, - "intervalFactor": 1, - "legendFormat": "used", - "measurement": "jvm_memory_used", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"gauge\") FROM \"jvm_memory_max\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time(1m) fill(null)", - "rawQuery": false, - "refId": "C", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "heap" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Memory - Heap", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "decbytes", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": { - "daemon": "#0a50a1", - "daemon ": "#0a50a1", - "live-non-daemon ": "#82b5d8", - "non-daemon ": "#82b5d8", - "non-deamon": "#82b5d8", - "peak": "#bf1b00", - "peak ": "#bf1b00" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalPrometheus", - "fill": 4, - "gridPos": { - "h": 6, - "w": 6, - "x": 13, - "y": 29 - }, - "id": 67, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 2, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1546606940131, - "repeatPanelId": 42, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "customers-service", - "value": "customers-service" - } - }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "expr": "jvm_threads_daemon{service=\"$service\"}", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "daemon", - "query": "from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_daemon\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> map(fn:(r) => ({\n _time: r._time,\n _value: r._value,\n _measurement: \"daemon\"\n }))\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])", - "refId": "B" - }, - { - "alias": "$tag_state", - "expr": "jvm_threads_live{service=\"$service\"} - jvm_threads_daemon{service=\"$service\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "state" - ], - "type": "tag" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "intervalFactor": 1, - "legendFormat": "non-deamon", - "measurement": "jvm_threads_states", - "orderByTime": "ASC", - "policy": "default", - "query": "lnd = () => {\nlive = from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_live\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n \ndaemon = from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_daemon\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n \nreturn join(tables:{live:live, daemon:daemon},on:[\"_time\",\"_stop\",\"_start\", \"host\"])\n |> map(fn:(r) => ({\n _time: r._time,\n _value: (r._value_live - r._value_daemon),\n _measurement: \"non-daemon\"\n }))\n}\n\nlnd()", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "expr": "jvm_threads_peak{service=\"$service\"} - jvm_threads_live{service=\"$service\"}", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "peak", - "query": "stackedPeak = () => {\npeak = from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_peak\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n\nlive = from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_live\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n \n\n \nreturn join(tables:{live:live, peak:peak},on:[\"_time\",\"_stop\",\"_start\", \"host\"])\n |> map(fn:(r) => ({\n _time: r._time,\n _value: (r._value_peak - r._value_live),\n _measurement: \"peak\"\n }))\n}\n\nstackedPeak()", - "refId": "C" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [ - { - "colorMode": "background6", - "fill": true, - "line": false, - "op": "time" - } - ], - "timeShift": null, - "title": "# Live Threads", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": 0, - "format": "none", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalPrometheus", - "fill": 1, - "gridPos": { - "h": 6, - "w": 5, - "x": 19, - "y": 29 - }, - "id": 68, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1546606940131, - "repeatPanelId": 46, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "customers-service", - "value": "customers-service" - } - }, - "seriesOverrides": [ - { - "alias": "Allocated Memory", - "bars": true, - "color": "#ef843c", - "lines": false - }, - { - "alias": "Promoted Memory", - "bars": true, - "color": "#629e51", - "lines": false - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "Live Data Size", - "expr": "jvm_gc_live_data_size{service=\"$service\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "hide": false, - "intervalFactor": 1, - "legendFormat": "Live Data Size", - "measurement": "jvm_gc_live_data_size", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT \"gauge\" FROM \"jvm_gc_live_data_size\" WHERE (\"service\" =~ /^$service$/) ", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "Max Data Size", - "expr": "jvm_gc_max_data_size{service=\"$service\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "hide": false, - "intervalFactor": 1, - "legendFormat": "Max Data Size", - "measurement": "jvm_gc_max_data_size", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT \"gauge\" FROM \"jvm_gc_live_data_size\" WHERE (\"service\" =~ /^$service$/) ", - "rawQuery": false, - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "Allocated Memory", - "expr": "idelta(jvm_gc_memory_allocated{service=\"$service\"}[$__range])", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - } - ], - "intervalFactor": 1, - "legendFormat": "Allocated Memory", - "measurement": "jvm_gc_memory_allocated", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT difference(sum(\"counter\")) FROM \"jvm_gc_memory_allocated\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time(15s)", - "rawQuery": false, - "refId": "D", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "counter" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - }, - { - "params": [], - "type": "non_negative_difference" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "Promoted Memory", - "expr": "idelta(jvm_gc_memory_promoted{service=\"$service\"}[$__range])", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - } - ], - "intervalFactor": 1, - "legendFormat": "Promoted Memory", - "measurement": "jvm_gc_memory_promoted", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT difference(sum(\"counter\")) FROM \"jvm_gc_memory_allocated\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time(15s)", - "rawQuery": false, - "refId": "F", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "counter" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - }, - { - "params": [], - "type": "non_negative_difference" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Garbage Collection Memory", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "decbytes", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "ms", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalPrometheus", - "format": "percentunit", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": true, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 6, - "w": 4, - "x": 0, - "y": 35 - }, - "id": 69, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1546606940131, - "repeatPanelId": 49, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "customers-service", - "value": "customers-service" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "expr": "process_cpu_usage{service=\"$service\"}", - "format": "time_series", - "groupBy": [], - "instant": true, - "interval": "", - "intervalFactor": 1, - "measurement": "process_cpu_usage", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": "0.8,0.9", - "title": "Current CPU Usage", - "type": "singlestat", - "valueFontSize": "70%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalPrometheus", - "format": "none", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 3, - "w": 3, - "x": 4, - "y": 35 - }, - "id": 70, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeat": null, - "repeatDirection": "h", - "repeatIteration": 1546606940131, - "repeatPanelId": 4, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "customers-service", - "value": "customers-service" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "expr": "jvm_classes_loaded{service=\"$service\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": true, - "intervalFactor": 1, - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n |> range(start: -1m)\n |> filter(fn: (r) =>\n r._measurement == \"jvm_classes_loaded\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"service\"])\n |> last()\n", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": "0.9,0.95", - "title": "Loaded Classes", - "type": "singlestat", - "valueFontSize": "50%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalPrometheus", - "fill": 10, - "gridPos": { - "h": 6, - "w": 6, - "x": 7, - "y": 35 - }, - "id": 71, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1546606940131, - "repeatPanelId": 40, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "customers-service", - "value": "customers-service" - } - }, - "seriesOverrides": [ - { - "alias": "used", - "color": "#82b5d8" - }, - { - "alias": "committed", - "color": "#447ebc" - }, - { - "alias": "max", - "color": "#bf1b00", - "fill": 0, - "linewidth": 4 - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "max", - "expr": "sum(jvm_memory_max{service=\"$service\", area=\"nonheap\"})", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "intervalFactor": 1, - "legendFormat": "max", - "measurement": "jvm_memory_max", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"gauge\") FROM \"jvm_memory_max\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time(1m) fill(null)", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "nonheap" - } - ] - }, - { - "alias": "committed", - "expr": "sum(jvm_memory_committed{service=\"$service\", area=\"nonheap\"})", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "intervalFactor": 1, - "legendFormat": "committed", - "measurement": "jvm_memory_committed", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"gauge\") FROM \"jvm_memory_max\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time(1m) fill(null)", - "rawQuery": false, - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "nonheap" - } - ] - }, - { - "alias": "used", - "expr": "sum(jvm_memory_used{service=\"$service\", area=\"nonheap\"})", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "intervalFactor": 1, - "legendFormat": "used", - "measurement": "jvm_memory_used", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"gauge\") FROM \"jvm_memory_max\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time(1m) fill(null)", - "rawQuery": false, - "refId": "C", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "nonheap" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Memory - Non-Heap", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "decbytes", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalPrometheus", - "fill": 4, - "gridPos": { - "h": 6, - "w": 6, - "x": 13, - "y": 35 - }, - "id": 72, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1546606940131, - "repeatPanelId": 41, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "customers-service", - "value": "customers-service" - } - }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "alias": "$tag_state", - "expr": "jvm_threads_states{service=\"$service\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "state" - ], - "type": "tag" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "intervalFactor": 1, - "legendFormat": "{{state}}", - "measurement": "jvm_threads_states", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"gauge\") FROM \"jvm_memory_max\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time(1m) fill(null)", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "# Threads by States", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": 0, - "format": "none", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": { - "Major GC": "#bf1b00" - }, - "bars": true, - "dashLength": 10, - "dashes": false, - "datasource": "LocalPrometheus", - "fill": 1, - "gridPos": { - "h": 6, - "w": 5, - "x": 19, - "y": 35 - }, - "id": 73, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": false, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1546606940131, - "repeatPanelId": 47, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "customers-service", - "value": "customers-service" - } - }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "expr": "sum(idelta(jvm_gc_pause{service=\"$service\", action=\"end of minor GC\"}[$__range]))", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "Minor GC", - "refId": "A" - }, - { - "expr": "idelta(jvm_gc_pause{service=\"$service\", action=\"end of major GC\"}[$__range])", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "Major GC", - "refId": "B" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Garbage Collection Pauses", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "ms", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalPrometheus", - "format": "none", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 3, - "w": 3, - "x": 4, - "y": 38 - }, - "id": 74, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatDirection": "h", - "repeatIteration": 1546606940131, - "repeatPanelId": 12, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "customers-service", - "value": "customers-service" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "expr": "jvm_classes_unloaded{service=\"$service\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": true, - "intervalFactor": 1, - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n |> range(start: -1m)\n |> filter(fn: (r) =>\n r._measurement == \"jvm_classes_unloaded\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"service\"])\n |> last()\n", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": "0.9,0.95", - "title": "Unloaded Classes", - "type": "singlestat", - "valueFontSize": "50%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "content": "----", - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 41 - }, - "id": 75, - "links": [], - "mode": "html", - "repeatIteration": 1546606940131, - "repeatPanelId": 51, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "customers-service", - "value": "customers-service" - } - }, - "title": "", - "transparent": true, - "type": "text" - }, - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 42 - }, - "id": 76, - "panels": [], - "repeat": null, - "repeatIteration": 1546606940131, - "repeatPanelId": 7, - "scopedVars": { - "service": { - "selected": false, - "text": "discovery-server", - "value": "discovery-server" - } - }, - "title": "$service", - "type": "row" - }, - { - "aliasColors": { - "process_cpu_usage": "#badff4", - "process_cpu_usage ": "#badff4", - "system_cpu_usage": "#1f78c1", - "system_cpu_usage ": "#1f78c1" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalPrometheus", - "fill": 2, - "gridPos": { - "h": 6, - "w": 7, - "x": 0, - "y": 43 - }, - "id": 77, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1546606940131, - "repeatPanelId": 11, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "discovery-server", - "value": "discovery-server" - } - }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "process_cpu_usage{service=\"$service\"}", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "process_cpu_usage", - "query": "from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"process_cpu_usage\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])", - "refId": "A", - "resultFormat": "time_series" - }, - { - "expr": "system_cpu_usage{service=\"$service\"}", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "system_cpu_usage", - "query": "from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"system_cpu_usage\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n", - "refId": "B", - "resultFormat": "time_series" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "CPU Usage", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": null, - "format": "percentunit", - "label": null, - "logBase": 1, - "max": "1.05", - "min": "0", - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalPrometheus", - "fill": 10, - "gridPos": { - "h": 6, - "w": 6, - "x": 7, - "y": 43 - }, - "id": 78, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1546606940131, - "repeatPanelId": 39, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "discovery-server", - "value": "discovery-server" - } - }, - "seriesOverrides": [ - { - "alias": "used", - "color": "#82b5d8" - }, - { - "alias": "committed", - "color": "#447ebc" - }, - { - "alias": "max", - "color": "#bf1b00", - "fill": 0, - "linewidth": 4 - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "max", - "expr": "sum(jvm_memory_max{service=\"$service\", area=\"heap\"})", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "interval": "", - "intervalFactor": 1, - "legendFormat": "max", - "measurement": "jvm_memory_max", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"gauge\") FROM \"jvm_memory_max\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time(1m) fill(null)", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "heap" - } - ] - }, - { - "alias": "committed", - "expr": "sum(jvm_memory_committed{service=\"$service\", area=\"heap\"})", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "hide": false, - "intervalFactor": 1, - "legendFormat": "committed", - "measurement": "jvm_memory_committed", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"gauge\") FROM \"jvm_memory_max\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time(1m) fill(null)", - "rawQuery": false, - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "heap" - } - ] - }, - { - "alias": "used", - "expr": "sum(jvm_memory_used{service=\"$service\", area=\"heap\"})", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "hide": false, - "intervalFactor": 1, - "legendFormat": "used", - "measurement": "jvm_memory_used", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"gauge\") FROM \"jvm_memory_max\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time(1m) fill(null)", - "rawQuery": false, - "refId": "C", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "heap" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Memory - Heap", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "decbytes", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": { - "daemon": "#0a50a1", - "daemon ": "#0a50a1", - "live-non-daemon ": "#82b5d8", - "non-daemon ": "#82b5d8", - "non-deamon": "#82b5d8", - "peak": "#bf1b00", - "peak ": "#bf1b00" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalPrometheus", - "fill": 4, - "gridPos": { - "h": 6, - "w": 6, - "x": 13, - "y": 43 - }, - "id": 79, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 2, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1546606940131, - "repeatPanelId": 42, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "discovery-server", - "value": "discovery-server" - } - }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "expr": "jvm_threads_daemon{service=\"$service\"}", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "daemon", - "query": "from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_daemon\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> map(fn:(r) => ({\n _time: r._time,\n _value: r._value,\n _measurement: \"daemon\"\n }))\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])", - "refId": "B" - }, - { - "alias": "$tag_state", - "expr": "jvm_threads_live{service=\"$service\"} - jvm_threads_daemon{service=\"$service\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "state" - ], - "type": "tag" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "intervalFactor": 1, - "legendFormat": "non-deamon", - "measurement": "jvm_threads_states", - "orderByTime": "ASC", - "policy": "default", - "query": "lnd = () => {\nlive = from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_live\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n \ndaemon = from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_daemon\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n \nreturn join(tables:{live:live, daemon:daemon},on:[\"_time\",\"_stop\",\"_start\", \"host\"])\n |> map(fn:(r) => ({\n _time: r._time,\n _value: (r._value_live - r._value_daemon),\n _measurement: \"non-daemon\"\n }))\n}\n\nlnd()", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "expr": "jvm_threads_peak{service=\"$service\"} - jvm_threads_live{service=\"$service\"}", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "peak", - "query": "stackedPeak = () => {\npeak = from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_peak\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n\nlive = from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_live\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n \n\n \nreturn join(tables:{live:live, peak:peak},on:[\"_time\",\"_stop\",\"_start\", \"host\"])\n |> map(fn:(r) => ({\n _time: r._time,\n _value: (r._value_peak - r._value_live),\n _measurement: \"peak\"\n }))\n}\n\nstackedPeak()", - "refId": "C" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [ - { - "colorMode": "background6", - "fill": true, - "line": false, - "op": "time" - } - ], - "timeShift": null, - "title": "# Live Threads", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": 0, - "format": "none", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalPrometheus", - "fill": 1, - "gridPos": { - "h": 6, - "w": 5, - "x": 19, - "y": 43 - }, - "id": 80, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1546606940131, - "repeatPanelId": 46, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "discovery-server", - "value": "discovery-server" - } - }, - "seriesOverrides": [ - { - "alias": "Allocated Memory", - "bars": true, - "color": "#ef843c", - "lines": false - }, - { - "alias": "Promoted Memory", - "bars": true, - "color": "#629e51", - "lines": false - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "Live Data Size", - "expr": "jvm_gc_live_data_size{service=\"$service\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "hide": false, - "intervalFactor": 1, - "legendFormat": "Live Data Size", - "measurement": "jvm_gc_live_data_size", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT \"gauge\" FROM \"jvm_gc_live_data_size\" WHERE (\"service\" =~ /^$service$/) ", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "Max Data Size", - "expr": "jvm_gc_max_data_size{service=\"$service\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "hide": false, - "intervalFactor": 1, - "legendFormat": "Max Data Size", - "measurement": "jvm_gc_max_data_size", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT \"gauge\" FROM \"jvm_gc_live_data_size\" WHERE (\"service\" =~ /^$service$/) ", - "rawQuery": false, - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "Allocated Memory", - "expr": "idelta(jvm_gc_memory_allocated{service=\"$service\"}[$__range])", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - } - ], - "intervalFactor": 1, - "legendFormat": "Allocated Memory", - "measurement": "jvm_gc_memory_allocated", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT difference(sum(\"counter\")) FROM \"jvm_gc_memory_allocated\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time(15s)", - "rawQuery": false, - "refId": "D", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "counter" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - }, - { - "params": [], - "type": "non_negative_difference" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "Promoted Memory", - "expr": "idelta(jvm_gc_memory_promoted{service=\"$service\"}[$__range])", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - } - ], - "intervalFactor": 1, - "legendFormat": "Promoted Memory", - "measurement": "jvm_gc_memory_promoted", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT difference(sum(\"counter\")) FROM \"jvm_gc_memory_allocated\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time(15s)", - "rawQuery": false, - "refId": "F", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "counter" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - }, - { - "params": [], - "type": "non_negative_difference" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Garbage Collection Memory", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "decbytes", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "ms", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalPrometheus", - "format": "percentunit", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": true, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 6, - "w": 4, - "x": 0, - "y": 49 - }, - "id": 81, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1546606940131, - "repeatPanelId": 49, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "discovery-server", - "value": "discovery-server" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "expr": "process_cpu_usage{service=\"$service\"}", - "format": "time_series", - "groupBy": [], - "instant": true, - "interval": "", - "intervalFactor": 1, - "measurement": "process_cpu_usage", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": "0.8,0.9", - "title": "Current CPU Usage", - "type": "singlestat", - "valueFontSize": "70%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalPrometheus", - "format": "none", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 3, - "w": 3, - "x": 4, - "y": 49 - }, - "id": 82, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeat": null, - "repeatDirection": "h", - "repeatIteration": 1546606940131, - "repeatPanelId": 4, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "discovery-server", - "value": "discovery-server" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "expr": "jvm_classes_loaded{service=\"$service\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": true, - "intervalFactor": 1, - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n |> range(start: -1m)\n |> filter(fn: (r) =>\n r._measurement == \"jvm_classes_loaded\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"service\"])\n |> last()\n", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": "0.9,0.95", - "title": "Loaded Classes", - "type": "singlestat", - "valueFontSize": "50%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalPrometheus", - "fill": 10, - "gridPos": { - "h": 6, - "w": 6, - "x": 7, - "y": 49 - }, - "id": 83, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1546606940131, - "repeatPanelId": 40, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "discovery-server", - "value": "discovery-server" - } - }, - "seriesOverrides": [ - { - "alias": "used", - "color": "#82b5d8" - }, - { - "alias": "committed", - "color": "#447ebc" - }, - { - "alias": "max", - "color": "#bf1b00", - "fill": 0, - "linewidth": 4 - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "max", - "expr": "sum(jvm_memory_max{service=\"$service\", area=\"nonheap\"})", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "intervalFactor": 1, - "legendFormat": "max", - "measurement": "jvm_memory_max", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"gauge\") FROM \"jvm_memory_max\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time(1m) fill(null)", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "nonheap" - } - ] - }, - { - "alias": "committed", - "expr": "sum(jvm_memory_committed{service=\"$service\", area=\"nonheap\"})", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "intervalFactor": 1, - "legendFormat": "committed", - "measurement": "jvm_memory_committed", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"gauge\") FROM \"jvm_memory_max\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time(1m) fill(null)", - "rawQuery": false, - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "nonheap" - } - ] - }, - { - "alias": "used", - "expr": "sum(jvm_memory_used{service=\"$service\", area=\"nonheap\"})", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "intervalFactor": 1, - "legendFormat": "used", - "measurement": "jvm_memory_used", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"gauge\") FROM \"jvm_memory_max\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time(1m) fill(null)", - "rawQuery": false, - "refId": "C", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "nonheap" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Memory - Non-Heap", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "decbytes", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalPrometheus", - "fill": 4, - "gridPos": { - "h": 6, - "w": 6, - "x": 13, - "y": 49 - }, - "id": 84, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1546606940131, - "repeatPanelId": 41, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "discovery-server", - "value": "discovery-server" - } - }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "alias": "$tag_state", - "expr": "jvm_threads_states{service=\"$service\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "state" - ], - "type": "tag" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "intervalFactor": 1, - "legendFormat": "{{state}}", - "measurement": "jvm_threads_states", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"gauge\") FROM \"jvm_memory_max\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time(1m) fill(null)", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "# Threads by States", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": 0, - "format": "none", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": { - "Major GC": "#bf1b00" - }, - "bars": true, - "dashLength": 10, - "dashes": false, - "datasource": "LocalPrometheus", - "fill": 1, - "gridPos": { - "h": 6, - "w": 5, - "x": 19, - "y": 49 - }, - "id": 85, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": false, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1546606940131, - "repeatPanelId": 47, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "discovery-server", - "value": "discovery-server" - } - }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "expr": "sum(idelta(jvm_gc_pause{service=\"$service\", action=\"end of minor GC\"}[$__range]))", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "Minor GC", - "refId": "A" - }, - { - "expr": "idelta(jvm_gc_pause{service=\"$service\", action=\"end of major GC\"}[$__range])", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "Major GC", - "refId": "B" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Garbage Collection Pauses", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "ms", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalPrometheus", - "format": "none", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 3, - "w": 3, - "x": 4, - "y": 52 - }, - "id": 86, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatDirection": "h", - "repeatIteration": 1546606940131, - "repeatPanelId": 12, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "discovery-server", - "value": "discovery-server" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "expr": "jvm_classes_unloaded{service=\"$service\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": true, - "intervalFactor": 1, - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n |> range(start: -1m)\n |> filter(fn: (r) =>\n r._measurement == \"jvm_classes_unloaded\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"service\"])\n |> last()\n", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": "0.9,0.95", - "title": "Unloaded Classes", - "type": "singlestat", - "valueFontSize": "50%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "content": "----", - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 55 - }, - "id": 87, - "links": [], - "mode": "html", - "repeatIteration": 1546606940131, - "repeatPanelId": 51, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "discovery-server", - "value": "discovery-server" - } - }, - "title": "", - "transparent": true, - "type": "text" - }, - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 56 - }, - "id": 88, - "panels": [], - "repeat": null, - "repeatIteration": 1546606940131, - "repeatPanelId": 7, - "scopedVars": { - "service": { - "selected": false, - "text": "vets-service", - "value": "vets-service" - } - }, - "title": "$service", - "type": "row" - }, - { - "aliasColors": { - "process_cpu_usage": "#badff4", - "process_cpu_usage ": "#badff4", - "system_cpu_usage": "#1f78c1", - "system_cpu_usage ": "#1f78c1" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalPrometheus", - "fill": 2, - "gridPos": { - "h": 6, - "w": 7, - "x": 0, - "y": 57 - }, - "id": 89, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1546606940131, - "repeatPanelId": 11, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "vets-service", - "value": "vets-service" - } - }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "process_cpu_usage{service=\"$service\"}", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "process_cpu_usage", - "query": "from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"process_cpu_usage\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])", - "refId": "A", - "resultFormat": "time_series" - }, - { - "expr": "system_cpu_usage{service=\"$service\"}", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "system_cpu_usage", - "query": "from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"system_cpu_usage\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n", - "refId": "B", - "resultFormat": "time_series" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "CPU Usage", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": null, - "format": "percentunit", - "label": null, - "logBase": 1, - "max": "1.05", - "min": "0", - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalPrometheus", - "fill": 10, - "gridPos": { - "h": 6, - "w": 6, - "x": 7, - "y": 57 - }, - "id": 90, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1546606940131, - "repeatPanelId": 39, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "vets-service", - "value": "vets-service" - } - }, - "seriesOverrides": [ - { - "alias": "used", - "color": "#82b5d8" - }, - { - "alias": "committed", - "color": "#447ebc" - }, - { - "alias": "max", - "color": "#bf1b00", - "fill": 0, - "linewidth": 4 - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "max", - "expr": "sum(jvm_memory_max{service=\"$service\", area=\"heap\"})", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "interval": "", - "intervalFactor": 1, - "legendFormat": "max", - "measurement": "jvm_memory_max", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"gauge\") FROM \"jvm_memory_max\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time(1m) fill(null)", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "heap" - } - ] - }, - { - "alias": "committed", - "expr": "sum(jvm_memory_committed{service=\"$service\", area=\"heap\"})", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "hide": false, - "intervalFactor": 1, - "legendFormat": "committed", - "measurement": "jvm_memory_committed", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"gauge\") FROM \"jvm_memory_max\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time(1m) fill(null)", - "rawQuery": false, - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "heap" - } - ] - }, - { - "alias": "used", - "expr": "sum(jvm_memory_used{service=\"$service\", area=\"heap\"})", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "hide": false, - "intervalFactor": 1, - "legendFormat": "used", - "measurement": "jvm_memory_used", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"gauge\") FROM \"jvm_memory_max\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time(1m) fill(null)", - "rawQuery": false, - "refId": "C", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "heap" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Memory - Heap", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "decbytes", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": { - "daemon": "#0a50a1", - "daemon ": "#0a50a1", - "live-non-daemon ": "#82b5d8", - "non-daemon ": "#82b5d8", - "non-deamon": "#82b5d8", - "peak": "#bf1b00", - "peak ": "#bf1b00" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalPrometheus", - "fill": 4, - "gridPos": { - "h": 6, - "w": 6, - "x": 13, - "y": 57 - }, - "id": 91, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 2, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1546606940131, - "repeatPanelId": 42, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "vets-service", - "value": "vets-service" - } - }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "expr": "jvm_threads_daemon{service=\"$service\"}", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "daemon", - "query": "from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_daemon\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> map(fn:(r) => ({\n _time: r._time,\n _value: r._value,\n _measurement: \"daemon\"\n }))\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])", - "refId": "B" - }, - { - "alias": "$tag_state", - "expr": "jvm_threads_live{service=\"$service\"} - jvm_threads_daemon{service=\"$service\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "state" - ], - "type": "tag" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "intervalFactor": 1, - "legendFormat": "non-deamon", - "measurement": "jvm_threads_states", - "orderByTime": "ASC", - "policy": "default", - "query": "lnd = () => {\nlive = from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_live\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n \ndaemon = from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_daemon\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n \nreturn join(tables:{live:live, daemon:daemon},on:[\"_time\",\"_stop\",\"_start\", \"host\"])\n |> map(fn:(r) => ({\n _time: r._time,\n _value: (r._value_live - r._value_daemon),\n _measurement: \"non-daemon\"\n }))\n}\n\nlnd()", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "expr": "jvm_threads_peak{service=\"$service\"} - jvm_threads_live{service=\"$service\"}", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "peak", - "query": "stackedPeak = () => {\npeak = from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_peak\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n\nlive = from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_live\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n \n\n \nreturn join(tables:{live:live, peak:peak},on:[\"_time\",\"_stop\",\"_start\", \"host\"])\n |> map(fn:(r) => ({\n _time: r._time,\n _value: (r._value_peak - r._value_live),\n _measurement: \"peak\"\n }))\n}\n\nstackedPeak()", - "refId": "C" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [ - { - "colorMode": "background6", - "fill": true, - "line": false, - "op": "time" - } - ], - "timeShift": null, - "title": "# Live Threads", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": 0, - "format": "none", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalPrometheus", - "fill": 1, - "gridPos": { - "h": 6, - "w": 5, - "x": 19, - "y": 57 - }, - "id": 92, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1546606940131, - "repeatPanelId": 46, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "vets-service", - "value": "vets-service" - } - }, - "seriesOverrides": [ - { - "alias": "Allocated Memory", - "bars": true, - "color": "#ef843c", - "lines": false - }, - { - "alias": "Promoted Memory", - "bars": true, - "color": "#629e51", - "lines": false - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "Live Data Size", - "expr": "jvm_gc_live_data_size{service=\"$service\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "hide": false, - "intervalFactor": 1, - "legendFormat": "Live Data Size", - "measurement": "jvm_gc_live_data_size", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT \"gauge\" FROM \"jvm_gc_live_data_size\" WHERE (\"service\" =~ /^$service$/) ", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "Max Data Size", - "expr": "jvm_gc_max_data_size{service=\"$service\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "hide": false, - "intervalFactor": 1, - "legendFormat": "Max Data Size", - "measurement": "jvm_gc_max_data_size", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT \"gauge\" FROM \"jvm_gc_live_data_size\" WHERE (\"service\" =~ /^$service$/) ", - "rawQuery": false, - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "Allocated Memory", - "expr": "idelta(jvm_gc_memory_allocated{service=\"$service\"}[$__range])", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - } - ], - "intervalFactor": 1, - "legendFormat": "Allocated Memory", - "measurement": "jvm_gc_memory_allocated", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT difference(sum(\"counter\")) FROM \"jvm_gc_memory_allocated\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time(15s)", - "rawQuery": false, - "refId": "D", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "counter" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - }, - { - "params": [], - "type": "non_negative_difference" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "Promoted Memory", - "expr": "idelta(jvm_gc_memory_promoted{service=\"$service\"}[$__range])", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - } - ], - "intervalFactor": 1, - "legendFormat": "Promoted Memory", - "measurement": "jvm_gc_memory_promoted", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT difference(sum(\"counter\")) FROM \"jvm_gc_memory_allocated\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time(15s)", - "rawQuery": false, - "refId": "F", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "counter" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - }, - { - "params": [], - "type": "non_negative_difference" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Garbage Collection Memory", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "decbytes", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "ms", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalPrometheus", - "format": "percentunit", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": true, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 6, - "w": 4, - "x": 0, - "y": 63 - }, - "id": 93, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1546606940131, - "repeatPanelId": 49, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "vets-service", - "value": "vets-service" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "expr": "process_cpu_usage{service=\"$service\"}", - "format": "time_series", - "groupBy": [], - "instant": true, - "interval": "", - "intervalFactor": 1, - "measurement": "process_cpu_usage", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": "0.8,0.9", - "title": "Current CPU Usage", - "type": "singlestat", - "valueFontSize": "70%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalPrometheus", - "format": "none", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 3, - "w": 3, - "x": 4, - "y": 63 - }, - "id": 94, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeat": null, - "repeatDirection": "h", - "repeatIteration": 1546606940131, - "repeatPanelId": 4, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "vets-service", - "value": "vets-service" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "expr": "jvm_classes_loaded{service=\"$service\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": true, - "intervalFactor": 1, - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n |> range(start: -1m)\n |> filter(fn: (r) =>\n r._measurement == \"jvm_classes_loaded\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"service\"])\n |> last()\n", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": "0.9,0.95", - "title": "Loaded Classes", - "type": "singlestat", - "valueFontSize": "50%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalPrometheus", - "fill": 10, - "gridPos": { - "h": 6, - "w": 6, - "x": 7, - "y": 63 - }, - "id": 95, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1546606940131, - "repeatPanelId": 40, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "vets-service", - "value": "vets-service" - } - }, - "seriesOverrides": [ - { - "alias": "used", - "color": "#82b5d8" - }, - { - "alias": "committed", - "color": "#447ebc" - }, - { - "alias": "max", - "color": "#bf1b00", - "fill": 0, - "linewidth": 4 - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "max", - "expr": "sum(jvm_memory_max{service=\"$service\", area=\"nonheap\"})", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "intervalFactor": 1, - "legendFormat": "max", - "measurement": "jvm_memory_max", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"gauge\") FROM \"jvm_memory_max\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time(1m) fill(null)", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "nonheap" - } - ] - }, - { - "alias": "committed", - "expr": "sum(jvm_memory_committed{service=\"$service\", area=\"nonheap\"})", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "intervalFactor": 1, - "legendFormat": "committed", - "measurement": "jvm_memory_committed", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"gauge\") FROM \"jvm_memory_max\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time(1m) fill(null)", - "rawQuery": false, - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "nonheap" - } - ] - }, - { - "alias": "used", - "expr": "sum(jvm_memory_used{service=\"$service\", area=\"nonheap\"})", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "intervalFactor": 1, - "legendFormat": "used", - "measurement": "jvm_memory_used", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"gauge\") FROM \"jvm_memory_max\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time(1m) fill(null)", - "rawQuery": false, - "refId": "C", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "nonheap" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Memory - Non-Heap", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "decbytes", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalPrometheus", - "fill": 4, - "gridPos": { - "h": 6, - "w": 6, - "x": 13, - "y": 63 - }, - "id": 96, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1546606940131, - "repeatPanelId": 41, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "vets-service", - "value": "vets-service" - } - }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "alias": "$tag_state", - "expr": "jvm_threads_states{service=\"$service\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "state" - ], - "type": "tag" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "intervalFactor": 1, - "legendFormat": "{{state}}", - "measurement": "jvm_threads_states", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"gauge\") FROM \"jvm_memory_max\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time(1m) fill(null)", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "# Threads by States", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": 0, - "format": "none", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": { - "Major GC": "#bf1b00" - }, - "bars": true, - "dashLength": 10, - "dashes": false, - "datasource": "LocalPrometheus", - "fill": 1, - "gridPos": { - "h": 6, - "w": 5, - "x": 19, - "y": 63 - }, - "id": 97, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": false, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1546606940131, - "repeatPanelId": 47, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "vets-service", - "value": "vets-service" - } - }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "expr": "sum(idelta(jvm_gc_pause{service=\"$service\", action=\"end of minor GC\"}[$__range]))", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "Minor GC", - "refId": "A" - }, - { - "expr": "idelta(jvm_gc_pause{service=\"$service\", action=\"end of major GC\"}[$__range])", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "Major GC", - "refId": "B" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Garbage Collection Pauses", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "ms", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalPrometheus", - "format": "none", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 3, - "w": 3, - "x": 4, - "y": 66 - }, - "id": 98, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatDirection": "h", - "repeatIteration": 1546606940131, - "repeatPanelId": 12, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "vets-service", - "value": "vets-service" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "expr": "jvm_classes_unloaded{service=\"$service\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": true, - "intervalFactor": 1, - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n |> range(start: -1m)\n |> filter(fn: (r) =>\n r._measurement == \"jvm_classes_unloaded\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"service\"])\n |> last()\n", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": "0.9,0.95", - "title": "Unloaded Classes", - "type": "singlestat", - "valueFontSize": "50%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "content": "----", - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 69 - }, - "id": 99, - "links": [], - "mode": "html", - "repeatIteration": 1546606940131, - "repeatPanelId": 51, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "vets-service", - "value": "vets-service" - } - }, - "title": "", - "transparent": true, - "type": "text" - }, - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 70 - }, - "id": 100, - "panels": [], - "repeat": null, - "repeatIteration": 1546606940131, - "repeatPanelId": 7, - "scopedVars": { - "service": { - "selected": false, - "text": "visits-service", - "value": "visits-service" - } - }, - "title": "$service", - "type": "row" - }, - { - "aliasColors": { - "process_cpu_usage": "#badff4", - "process_cpu_usage ": "#badff4", - "system_cpu_usage": "#1f78c1", - "system_cpu_usage ": "#1f78c1" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalPrometheus", - "fill": 2, - "gridPos": { - "h": 6, - "w": 7, - "x": 0, - "y": 71 - }, - "id": 101, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1546606940131, - "repeatPanelId": 11, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "visits-service", - "value": "visits-service" - } - }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "process_cpu_usage{service=\"$service\"}", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "process_cpu_usage", - "query": "from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"process_cpu_usage\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])", - "refId": "A", - "resultFormat": "time_series" - }, - { - "expr": "system_cpu_usage{service=\"$service\"}", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "system_cpu_usage", - "query": "from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"system_cpu_usage\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n", - "refId": "B", - "resultFormat": "time_series" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "CPU Usage", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": null, - "format": "percentunit", - "label": null, - "logBase": 1, - "max": "1.05", - "min": "0", - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalPrometheus", - "fill": 10, - "gridPos": { - "h": 6, - "w": 6, - "x": 7, - "y": 71 - }, - "id": 102, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1546606940131, - "repeatPanelId": 39, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "visits-service", - "value": "visits-service" - } - }, - "seriesOverrides": [ - { - "alias": "used", - "color": "#82b5d8" - }, - { - "alias": "committed", - "color": "#447ebc" - }, - { - "alias": "max", - "color": "#bf1b00", - "fill": 0, - "linewidth": 4 - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "max", - "expr": "sum(jvm_memory_max{service=\"$service\", area=\"heap\"})", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "interval": "", - "intervalFactor": 1, - "legendFormat": "max", - "measurement": "jvm_memory_max", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"gauge\") FROM \"jvm_memory_max\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time(1m) fill(null)", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "heap" - } - ] - }, - { - "alias": "committed", - "expr": "sum(jvm_memory_committed{service=\"$service\", area=\"heap\"})", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "hide": false, - "intervalFactor": 1, - "legendFormat": "committed", - "measurement": "jvm_memory_committed", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"gauge\") FROM \"jvm_memory_max\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time(1m) fill(null)", - "rawQuery": false, - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "heap" - } - ] - }, - { - "alias": "used", - "expr": "sum(jvm_memory_used{service=\"$service\", area=\"heap\"})", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "hide": false, - "intervalFactor": 1, - "legendFormat": "used", - "measurement": "jvm_memory_used", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"gauge\") FROM \"jvm_memory_max\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time(1m) fill(null)", - "rawQuery": false, - "refId": "C", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "heap" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Memory - Heap", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "decbytes", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": { - "daemon": "#0a50a1", - "daemon ": "#0a50a1", - "live-non-daemon ": "#82b5d8", - "non-daemon ": "#82b5d8", - "non-deamon": "#82b5d8", - "peak": "#bf1b00", - "peak ": "#bf1b00" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalPrometheus", - "fill": 4, - "gridPos": { - "h": 6, - "w": 6, - "x": 13, - "y": 71 - }, - "id": 103, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 2, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1546606940131, - "repeatPanelId": 42, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "visits-service", - "value": "visits-service" - } - }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "expr": "jvm_threads_daemon{service=\"$service\"}", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "daemon", - "query": "from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_daemon\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> map(fn:(r) => ({\n _time: r._time,\n _value: r._value,\n _measurement: \"daemon\"\n }))\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])", - "refId": "B" - }, - { - "alias": "$tag_state", - "expr": "jvm_threads_live{service=\"$service\"} - jvm_threads_daemon{service=\"$service\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "state" - ], - "type": "tag" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "intervalFactor": 1, - "legendFormat": "non-deamon", - "measurement": "jvm_threads_states", - "orderByTime": "ASC", - "policy": "default", - "query": "lnd = () => {\nlive = from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_live\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n \ndaemon = from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_daemon\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n \nreturn join(tables:{live:live, daemon:daemon},on:[\"_time\",\"_stop\",\"_start\", \"host\"])\n |> map(fn:(r) => ({\n _time: r._time,\n _value: (r._value_live - r._value_daemon),\n _measurement: \"non-daemon\"\n }))\n}\n\nlnd()", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "expr": "jvm_threads_peak{service=\"$service\"} - jvm_threads_live{service=\"$service\"}", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "peak", - "query": "stackedPeak = () => {\npeak = from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_peak\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n\nlive = from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"jvm_threads_live\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n \n\n \nreturn join(tables:{live:live, peak:peak},on:[\"_time\",\"_stop\",\"_start\", \"host\"])\n |> map(fn:(r) => ({\n _time: r._time,\n _value: (r._value_peak - r._value_live),\n _measurement: \"peak\"\n }))\n}\n\nstackedPeak()", - "refId": "C" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [ - { - "colorMode": "background6", - "fill": true, - "line": false, - "op": "time" - } - ], - "timeShift": null, - "title": "# Live Threads", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": 0, - "format": "none", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalPrometheus", - "fill": 1, - "gridPos": { - "h": 6, - "w": 5, - "x": 19, - "y": 71 - }, - "id": 104, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1546606940131, - "repeatPanelId": 46, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "visits-service", - "value": "visits-service" - } - }, - "seriesOverrides": [ - { - "alias": "Allocated Memory", - "bars": true, - "color": "#ef843c", - "lines": false - }, - { - "alias": "Promoted Memory", - "bars": true, - "color": "#629e51", - "lines": false - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "Live Data Size", - "expr": "jvm_gc_live_data_size{service=\"$service\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "hide": false, - "intervalFactor": 1, - "legendFormat": "Live Data Size", - "measurement": "jvm_gc_live_data_size", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT \"gauge\" FROM \"jvm_gc_live_data_size\" WHERE (\"service\" =~ /^$service$/) ", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "Max Data Size", - "expr": "jvm_gc_max_data_size{service=\"$service\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "hide": false, - "intervalFactor": 1, - "legendFormat": "Max Data Size", - "measurement": "jvm_gc_max_data_size", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT \"gauge\" FROM \"jvm_gc_live_data_size\" WHERE (\"service\" =~ /^$service$/) ", - "rawQuery": false, - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "Allocated Memory", - "expr": "idelta(jvm_gc_memory_allocated{service=\"$service\"}[$__range])", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - } - ], - "intervalFactor": 1, - "legendFormat": "Allocated Memory", - "measurement": "jvm_gc_memory_allocated", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT difference(sum(\"counter\")) FROM \"jvm_gc_memory_allocated\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time(15s)", - "rawQuery": false, - "refId": "D", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "counter" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - }, - { - "params": [], - "type": "non_negative_difference" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "Promoted Memory", - "expr": "idelta(jvm_gc_memory_promoted{service=\"$service\"}[$__range])", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - } - ], - "intervalFactor": 1, - "legendFormat": "Promoted Memory", - "measurement": "jvm_gc_memory_promoted", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT difference(sum(\"counter\")) FROM \"jvm_gc_memory_allocated\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time(15s)", - "rawQuery": false, - "refId": "F", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "counter" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - }, - { - "params": [], - "type": "non_negative_difference" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Garbage Collection Memory", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "decbytes", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "ms", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalPrometheus", - "format": "percentunit", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": true, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 6, - "w": 4, - "x": 0, - "y": 77 - }, - "id": 105, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1546606940131, - "repeatPanelId": 49, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "visits-service", - "value": "visits-service" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "expr": "process_cpu_usage{service=\"$service\"}", - "format": "time_series", - "groupBy": [], - "instant": true, - "interval": "", - "intervalFactor": 1, - "measurement": "process_cpu_usage", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": "0.8,0.9", - "title": "Current CPU Usage", - "type": "singlestat", - "valueFontSize": "70%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalPrometheus", - "format": "none", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 3, - "w": 3, - "x": 4, - "y": 77 - }, - "id": 106, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeat": null, - "repeatDirection": "h", - "repeatIteration": 1546606940131, - "repeatPanelId": 4, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "visits-service", - "value": "visits-service" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "expr": "jvm_classes_loaded{service=\"$service\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": true, - "intervalFactor": 1, - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n |> range(start: -1m)\n |> filter(fn: (r) =>\n r._measurement == \"jvm_classes_loaded\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"service\"])\n |> last()\n", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": "0.9,0.95", - "title": "Loaded Classes", - "type": "singlestat", - "valueFontSize": "50%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalPrometheus", - "fill": 10, - "gridPos": { - "h": 6, - "w": 6, - "x": 7, - "y": 77 - }, - "id": 107, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1546606940131, - "repeatPanelId": 40, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "visits-service", - "value": "visits-service" - } - }, - "seriesOverrides": [ - { - "alias": "used", - "color": "#82b5d8" - }, - { - "alias": "committed", - "color": "#447ebc" - }, - { - "alias": "max", - "color": "#bf1b00", - "fill": 0, - "linewidth": 4 - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "max", - "expr": "sum(jvm_memory_max{service=\"$service\", area=\"nonheap\"})", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "intervalFactor": 1, - "legendFormat": "max", - "measurement": "jvm_memory_max", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"gauge\") FROM \"jvm_memory_max\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time(1m) fill(null)", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "nonheap" - } - ] - }, - { - "alias": "committed", - "expr": "sum(jvm_memory_committed{service=\"$service\", area=\"nonheap\"})", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "intervalFactor": 1, - "legendFormat": "committed", - "measurement": "jvm_memory_committed", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"gauge\") FROM \"jvm_memory_max\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time(1m) fill(null)", - "rawQuery": false, - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "nonheap" - } - ] - }, - { - "alias": "used", - "expr": "sum(jvm_memory_used{service=\"$service\", area=\"nonheap\"})", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "intervalFactor": 1, - "legendFormat": "used", - "measurement": "jvm_memory_used", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"gauge\") FROM \"jvm_memory_max\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time(1m) fill(null)", - "rawQuery": false, - "refId": "C", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - }, - { - "condition": "AND", - "key": "area", - "operator": "=", - "value": "nonheap" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Memory - Non-Heap", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "decbytes", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalPrometheus", - "fill": 4, - "gridPos": { - "h": 6, - "w": 6, - "x": 13, - "y": 77 - }, - "id": 108, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1546606940131, - "repeatPanelId": 41, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "visits-service", - "value": "visits-service" - } - }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "alias": "$tag_state", - "expr": "jvm_threads_states{service=\"$service\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "state" - ], - "type": "tag" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "intervalFactor": 1, - "legendFormat": "{{state}}", - "measurement": "jvm_threads_states", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"gauge\") FROM \"jvm_memory_max\" WHERE (\"service\" =~ /^$service$/) AND $timeFilter GROUP BY time(1m) fill(null)", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "# Threads by States", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": 0, - "format": "none", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": { - "Major GC": "#bf1b00" - }, - "bars": true, - "dashLength": 10, - "dashes": false, - "datasource": "LocalPrometheus", - "fill": 1, - "gridPos": { - "h": 6, - "w": 5, - "x": 19, - "y": 77 - }, - "id": 109, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": false, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1546606940131, - "repeatPanelId": 47, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "visits-service", - "value": "visits-service" - } - }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "expr": "sum(idelta(jvm_gc_pause{service=\"$service\", action=\"end of minor GC\"}[$__range]))", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "Minor GC", - "refId": "A" - }, - { - "expr": "idelta(jvm_gc_pause{service=\"$service\", action=\"end of major GC\"}[$__range])", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "Major GC", - "refId": "B" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Garbage Collection Pauses", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "ms", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalPrometheus", - "format": "none", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 3, - "w": 3, - "x": 4, - "y": 80 - }, - "id": 110, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatDirection": "h", - "repeatIteration": 1546606940131, - "repeatPanelId": 12, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "visits-service", - "value": "visits-service" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "expr": "jvm_classes_unloaded{service=\"$service\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": true, - "intervalFactor": 1, - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n |> range(start: -1m)\n |> filter(fn: (r) =>\n r._measurement == \"jvm_classes_unloaded\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"service\"])\n |> last()\n", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": "0.9,0.95", - "title": "Unloaded Classes", - "type": "singlestat", - "valueFontSize": "50%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "content": "----", - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 83 - }, - "id": 111, - "links": [], - "mode": "html", - "repeatIteration": 1546606940131, - "repeatPanelId": 51, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "visits-service", - "value": "visits-service" - } - }, - "title": "", - "transparent": true, - "type": "text" - } - ], - "refresh": "30s", - "schemaVersion": 16, - "style": "dark", - "tags": [], - "templating": { - "list": [ - { - "allValue": null, - "current": { - "tags": [], - "text": "All", - "value": [ - "$__all" - ] - }, - "datasource": "LocalPrometheus", - "definition": "label_values(service)", - "hide": 0, - "includeAll": true, - "label": null, - "multi": true, - "name": "service", - "options": [], - "query": "label_values(service)", - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 0, - "tagValuesQuery": "", - "tags": [], - "tagsQuery": "", - "type": "query", - "useTags": false - } - ] - }, - "time": { - "from": "now-1h", - "to": "now" - }, - "timepicker": { - "refresh_intervals": [ - "5s", - "10s", - "30s", - "1m", - "5m", - "15m", - "30m", - "1h", - "2h", - "1d" - ], - "time_options": [ - "5m", - "15m", - "1h", - "6h", - "12h", - "24h", - "2d", - "7d", - "30d" - ] - }, - "timezone": "", - "title": "JVM Metrics", - "uid": "D65bST8iz", - "version": 1 -} \ No newline at end of file diff --git a/inspectit-ocelot-demo/grafana/provisioning/prometheus/dashboards/agent/self-monitoring.json b/inspectit-ocelot-demo/grafana/provisioning/prometheus/dashboards/agent/self-monitoring.json deleted file mode 100644 index ace8a263d4..0000000000 --- a/inspectit-ocelot-demo/grafana/provisioning/prometheus/dashboards/agent/self-monitoring.json +++ /dev/null @@ -1,2001 +0,0 @@ -{ - "annotations": { - "list": [ - { - "$$hashKey": "object:181", - "builtIn": 1, - "datasource": "-- Grafana --", - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "type": "dashboard" - } - ] - }, - "editable": true, - "gnetId": null, - "graphTooltip": 0, - "id": 3, - "iteration": 1588836480547, - "links": [], - "panels": [ - { - "collapsed": false, - "datasource": null, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 0 - }, - "id": 2, - "panels": [], - "repeat": "service", - "scopedVars": { - "service": { - "selected": false, - "text": "config-server", - "value": "config-server" - } - }, - "title": "$service", - "type": "row" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalPrometheus", - "decimals": 3, - "format": "percentunit", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": true, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 6, - "w": 3, - "x": 0, - "y": 1 - }, - "id": 4, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "scopedVars": { - "service": { - "selected": false, - "text": "config-server", - "value": "config-server" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "expr": "inspectit_self_instrumented_classes{service=\"$service\"} / jvm_classes_loaded{service=\"$service\"}", - "format": "time_series", - "instant": true, - "intervalFactor": 1, - "query": "perc = () => {\ninstrumented = from(bucket: \"telegraf\")\n|> range(start:-1h)\n|> filter(fn: (r) => \nr._measurement == \"inspectit_self_instrumented_classes\" AND \nr.service == \"$service\" AND \nr._field == \"gauge\")\n|> keep(columns: [\"_time\",\"_value\"])\n\n\nloaded = from(bucket: \"telegraf\")\n|> range(start:-1h)\n|> filter(fn: (r) => \nr._measurement == \"jvm_classes_loaded\" AND \nr.service == \"$service\" AND \nr._field == \"gauge\")\n|> keep(columns: [\"_time\",\"_value\"])\n\n\nreturn join(tables:{instrumented:instrumented, loaded:loaded},on:[\"_time\"])\n|> map(fn:(r) => ({\n_time: r._time,\n_value: (r._value_instrumented / r._value_loaded),\n_measurement: \"perc-instrumented\" }))\n|> last()\n}\n\nperc()", - "refId": "A", - "resultFormat": "time_series" - } - ], - "thresholds": "10,30", - "title": "Instr. Scope", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "columns": [], - "datasource": "LocalPrometheus", - "fontSize": "120%", - "gridPos": { - "h": 6, - "w": 7, - "x": 3, - "y": 1 - }, - "id": 47, - "links": [], - "pageSize": null, - "scopedVars": { - "service": { - "selected": false, - "text": "config-server", - "value": "config-server" - } - }, - "scroll": true, - "showHeader": true, - "sort": { - "col": 2, - "desc": true - }, - "styles": [ - { - "alias": "Time", - "align": "auto", - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "pattern": "Time", - "type": "hidden" - }, - { - "alias": "Description", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "Metric", - "thresholds": [], - "type": "string", - "unit": "short" - }, - { - "alias": "Count", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 0, - "mappingType": 1, - "pattern": "Value", - "thresholds": [], - "type": "number", - "unit": "none" - }, - { - "alias": "", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "decimals": 2, - "pattern": "/.*/", - "thresholds": [], - "type": "number", - "unit": "short" - } - ], - "targets": [ - { - "alias": "# classes loaded by JVM", - "expr": "jvm_classes_loaded{service=\"$service\"}", - "format": "time_series", - "groupBy": [], - "instant": true, - "intervalFactor": 1, - "legendFormat": "# classes loaded by JVM", - "measurement": "jvm_classes_loaded", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "# instrumented classes", - "expr": "inspectit_self_instrumentation_queue_size{service=\"$service\"}", - "format": "time_series", - "groupBy": [], - "instant": true, - "intervalFactor": 1, - "legendFormat": "# classes pending for analysis", - "measurement": "inspectit_self_instrumented_classes", - "orderByTime": "ASC", - "policy": "default", - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "# classes pending for analysis", - "expr": "inspectit_self_instrumented_classes{service=\"$service\"}", - "format": "time_series", - "groupBy": [], - "instant": true, - "intervalFactor": 1, - "legendFormat": "# instrumented classes", - "measurement": "inspectit_self_instrumentation_analysis_queue_size", - "orderByTime": "ASC", - "policy": "default", - "refId": "C", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "expr": "inspectit_self_logs{service=\"$service\",level=\"ERROR\"}", - "format": "time_series", - "instant": true, - "intervalFactor": 1, - "legendFormat": "# errors since startup", - "refId": "D" - }, - { - "expr": "inspectit_self_logs{service=\"$service\",level=\"WARN\"}", - "format": "time_series", - "instant": true, - "intervalFactor": 1, - "legendFormat": "# warnings since startup", - "refId": "E" - } - ], - "title": "Instrumentation State", - "transform": "timeseries_to_rows", - "type": "table" - }, - { - "cacheTimeout": null, - "colorBackground": true, - "colorPostfix": false, - "colorValue": false, - "colors": [ - "rgb(33, 33, 36)", - "#890f02", - "#299c46" - ], - "datasource": "LocalPrometheus", - "decimals": 0, - "description": "Number of newly logged errors. This metric can display too low numbers in case the agent just restarted!", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 10, - "y": 1 - }, - "id": 76, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "$$hashKey": "object:291", - "name": "value to text", - "value": 1 - }, - { - "$$hashKey": "object:292", - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": " ", - "postfixFontSize": "30%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "scopedVars": { - "service": { - "selected": false, - "text": "config-server", - "value": "config-server" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "expr": "sum(increase(inspectit_self_logs{service=~\"$service\",level=~\"FATAL|ERROR\"}[$__range]))", - "format": "time_series", - "instant": true, - "intervalFactor": 1, - "refId": "A" - } - ], - "thresholds": "1", - "title": "Errors", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "$$hashKey": "object:294", - "op": "=", - "text": "0", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#d44a3a", - "rgba(237, 129, 40, 0.89)", - "#299c46" - ], - "datasource": "LocalPrometheus", - "format": "percentunit", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": true, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 6, - "w": 3, - "x": 12, - "y": 1 - }, - "id": 23, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "scopedVars": { - "service": { - "selected": false, - "text": "config-server", - "value": "config-server" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "expr": "1 - (inspectit_self_instrumentation_queue_size{service=\"$service\"}/jvm_classes_loaded{service=\"$service\"})", - "format": "time_series", - "instant": true, - "intervalFactor": 1, - "query": "perc = () => {\ninstrumented = from(bucket: \"telegraf\")\n|> range(start:-1h)\n|> filter(fn: (r) => \nr._measurement == \"inspectit_self_instrumentation_analysis_queue_size\" AND \nr.service == \"$service\" AND \nr._field == \"gauge\")\n|> keep(columns: [\"_time\",\"_value\"])\n\n\nloaded = from(bucket: \"telegraf\")\n|> range(start:-1h)\n|> filter(fn: (r) => \nr._measurement == \"jvm_classes_loaded\" AND \nr.service == \"$service\" AND \nr._field == \"gauge\")\n|> keep(columns: [\"_time\",\"_value\"])\n\n\nreturn join(tables:{instrumented:instrumented, loaded:loaded},on:[\"_time\"])\n|> map(fn:(r) => ({\n_time: r._time,\n_value: 1.0 - (r._value_instrumented / r._value_loaded),\n_measurement: \"progress\" }))\n|> last()\n}\n\nperc()", - "refId": "A", - "resultFormat": "time_series" - } - ], - "thresholds": "0.33,0.66", - "title": "Instrumentation Progress", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "aliasColors": { - "classes pending for hook": "#99440a" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalPrometheus", - "fill": 5, - "fillGradient": 0, - "gridPos": { - "h": 6, - "w": 9, - "x": 15, - "y": 1 - }, - "hiddenSeries": false, - "id": 49, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "scopedVars": { - "service": { - "selected": false, - "text": "config-server", - "value": "config-server" - } - }, - "seriesOverrides": [ - { - "alias": "instrumented classes", - "color": "#629e51", - "fill": 5, - "zindex": 3 - }, - { - "alias": "classes pending for analysis", - "color": "#eab839", - "zindex": 0 - }, - { - "alias": "loaded classes", - "color": "#82b5d8", - "zindex": -3 - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "loaded classes", - "expr": "inspectit_self_instrumented_classes{service=\"$service\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "1m" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "intervalFactor": 1, - "legendFormat": "instrumented classes", - "measurement": "jvm_classes_loaded", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "instrumented classes", - "expr": "inspectit_self_instrumentation_queue_size{service=\"$service\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "1m" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "intervalFactor": 1, - "legendFormat": "classes pending for analysis", - "measurement": "inspectit_self_instrumented_classes", - "orderByTime": "ASC", - "policy": "default", - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "classes pending for analysis", - "expr": "jvm_classes_loaded{service=\"$service\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "1m" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "intervalFactor": 1, - "legendFormat": "loaded classes", - "measurement": "inspectit_self_instrumentation_analysis_queue_size", - "orderByTime": "ASC", - "policy": "default", - "refId": "C", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Instrumentation State over time (Logarithmic Scale)", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": "# Classes", - "logBase": 10, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": true, - "colorPostfix": false, - "colorValue": false, - "colors": [ - "rgba(33, 33, 36, 1)", - "#967302", - "#299c46" - ], - "datasource": "LocalPrometheus", - "decimals": 0, - "description": "Number of newly logged warnings. This metric can display too low numbers in case the agent just restarted!", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 10, - "y": 3 - }, - "id": 107, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "$$hashKey": "object:397", - "name": "value to text", - "value": 1 - }, - { - "$$hashKey": "object:398", - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "30%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "scopedVars": { - "service": { - "selected": false, - "text": "config-server", - "value": "config-server" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "expr": "increase(inspectit_self_logs{service=~\"$service\",level=~\"WARN\"}[$__range])", - "format": "time_series", - "instant": true, - "intervalFactor": 1, - "refId": "A" - } - ], - "thresholds": "1", - "title": "Warnings", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "$$hashKey": "object:400", - "op": "=", - "text": "0", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorPostfix": false, - "colorValue": false, - "colors": [ - "rgba(28, 26, 25, 0)", - "#eab839", - "#299c46" - ], - "datasource": "LocalPrometheus", - "decimals": 0, - "description": "Number of newly logged infos. This metric can display too low numbers in case the agent just restarted!", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 10, - "y": 5 - }, - "id": 143, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "$$hashKey": "object:431", - "name": "value to text", - "value": 1 - }, - { - "$$hashKey": "object:432", - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "30%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "scopedVars": { - "service": { - "selected": false, - "text": "config-server", - "value": "config-server" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "expr": "SUM(increase(inspectit_self_logs{service=~\"$service\",level=~\"INFO|DEBUG|TRACE\"}[$__range]))", - "format": "time_series", - "instant": true, - "intervalFactor": 1, - "refId": "A" - } - ], - "thresholds": "", - "title": "Other Logs", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "$$hashKey": "object:434", - "op": "=", - "text": "0", - "value": "null" - } - ], - "valueName": "current" - }, - { - "collapsed": false, - "datasource": null, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 7 - }, - "id": 144, - "panels": [], - "repeat": null, - "repeatIteration": 1588836480547, - "repeatPanelId": 2, - "scopedVars": { - "service": { - "selected": false, - "text": "discovery-server", - "value": "discovery-server" - } - }, - "title": "$service", - "type": "row" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalPrometheus", - "decimals": 3, - "format": "percentunit", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": true, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 6, - "w": 3, - "x": 0, - "y": 8 - }, - "id": 145, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1588836480547, - "repeatPanelId": 4, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "discovery-server", - "value": "discovery-server" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "expr": "inspectit_self_instrumented_classes{service=\"$service\"} / jvm_classes_loaded{service=\"$service\"}", - "format": "time_series", - "instant": true, - "intervalFactor": 1, - "query": "perc = () => {\ninstrumented = from(bucket: \"telegraf\")\n|> range(start:-1h)\n|> filter(fn: (r) => \nr._measurement == \"inspectit_self_instrumented_classes\" AND \nr.service == \"$service\" AND \nr._field == \"gauge\")\n|> keep(columns: [\"_time\",\"_value\"])\n\n\nloaded = from(bucket: \"telegraf\")\n|> range(start:-1h)\n|> filter(fn: (r) => \nr._measurement == \"jvm_classes_loaded\" AND \nr.service == \"$service\" AND \nr._field == \"gauge\")\n|> keep(columns: [\"_time\",\"_value\"])\n\n\nreturn join(tables:{instrumented:instrumented, loaded:loaded},on:[\"_time\"])\n|> map(fn:(r) => ({\n_time: r._time,\n_value: (r._value_instrumented / r._value_loaded),\n_measurement: \"perc-instrumented\" }))\n|> last()\n}\n\nperc()", - "refId": "A", - "resultFormat": "time_series" - } - ], - "thresholds": "10,30", - "title": "Instr. Scope", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "columns": [], - "datasource": "LocalPrometheus", - "fontSize": "120%", - "gridPos": { - "h": 6, - "w": 7, - "x": 3, - "y": 8 - }, - "id": 146, - "links": [], - "pageSize": null, - "repeatIteration": 1588836480547, - "repeatPanelId": 47, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "discovery-server", - "value": "discovery-server" - } - }, - "scroll": true, - "showHeader": true, - "sort": { - "col": 2, - "desc": true - }, - "styles": [ - { - "alias": "Time", - "align": "auto", - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "pattern": "Time", - "type": "hidden" - }, - { - "alias": "Description", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "Metric", - "thresholds": [], - "type": "string", - "unit": "short" - }, - { - "alias": "Count", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 0, - "mappingType": 1, - "pattern": "Value", - "thresholds": [], - "type": "number", - "unit": "none" - }, - { - "alias": "", - "align": "auto", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "decimals": 2, - "pattern": "/.*/", - "thresholds": [], - "type": "number", - "unit": "short" - } - ], - "targets": [ - { - "alias": "# classes loaded by JVM", - "expr": "jvm_classes_loaded{service=\"$service\"}", - "format": "time_series", - "groupBy": [], - "instant": true, - "intervalFactor": 1, - "legendFormat": "# classes loaded by JVM", - "measurement": "jvm_classes_loaded", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "# instrumented classes", - "expr": "inspectit_self_instrumentation_queue_size{service=\"$service\"}", - "format": "time_series", - "groupBy": [], - "instant": true, - "intervalFactor": 1, - "legendFormat": "# classes pending for analysis", - "measurement": "inspectit_self_instrumented_classes", - "orderByTime": "ASC", - "policy": "default", - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "# classes pending for analysis", - "expr": "inspectit_self_instrumented_classes{service=\"$service\"}", - "format": "time_series", - "groupBy": [], - "instant": true, - "intervalFactor": 1, - "legendFormat": "# instrumented classes", - "measurement": "inspectit_self_instrumentation_analysis_queue_size", - "orderByTime": "ASC", - "policy": "default", - "refId": "C", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "expr": "inspectit_self_logs{service=\"$service\",level=\"ERROR\"}", - "format": "time_series", - "instant": true, - "intervalFactor": 1, - "legendFormat": "# errors since startup", - "refId": "D" - }, - { - "expr": "inspectit_self_logs{service=\"$service\",level=\"WARN\"}", - "format": "time_series", - "instant": true, - "intervalFactor": 1, - "legendFormat": "# warnings since startup", - "refId": "E" - } - ], - "title": "Instrumentation State", - "transform": "timeseries_to_rows", - "type": "table" - }, - { - "cacheTimeout": null, - "colorBackground": true, - "colorPostfix": false, - "colorValue": false, - "colors": [ - "rgb(33, 33, 36)", - "#890f02", - "#299c46" - ], - "datasource": "LocalPrometheus", - "decimals": 0, - "description": "Number of newly logged errors. This metric can display too low numbers in case the agent just restarted!", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 10, - "y": 8 - }, - "id": 147, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": " ", - "postfixFontSize": "30%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1588836480547, - "repeatPanelId": 76, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "discovery-server", - "value": "discovery-server" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "host", - "targets": [ - { - "expr": "sum(increase(inspectit_self_logs{service=~\"$service\",level=~\"FATAL|ERROR\"}[$__range]))", - "format": "time_series", - "instant": true, - "intervalFactor": 1, - "refId": "A" - } - ], - "thresholds": "1", - "title": "Errors", - "type": "singlestat", - "valueFontSize": "100%", - "valueMaps": [ - { - "op": "=", - "text": "0", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#d44a3a", - "rgba(237, 129, 40, 0.89)", - "#299c46" - ], - "datasource": "LocalPrometheus", - "format": "percentunit", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": true, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 6, - "w": 3, - "x": 12, - "y": 8 - }, - "id": 148, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1588836480547, - "repeatPanelId": 23, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "discovery-server", - "value": "discovery-server" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "expr": "1 - (inspectit_self_instrumentation_queue_size{service=\"$service\"}/jvm_classes_loaded{service=\"$service\"})", - "format": "time_series", - "instant": true, - "intervalFactor": 1, - "query": "perc = () => {\ninstrumented = from(bucket: \"telegraf\")\n|> range(start:-1h)\n|> filter(fn: (r) => \nr._measurement == \"inspectit_self_instrumentation_analysis_queue_size\" AND \nr.service == \"$service\" AND \nr._field == \"gauge\")\n|> keep(columns: [\"_time\",\"_value\"])\n\n\nloaded = from(bucket: \"telegraf\")\n|> range(start:-1h)\n|> filter(fn: (r) => \nr._measurement == \"jvm_classes_loaded\" AND \nr.service == \"$service\" AND \nr._field == \"gauge\")\n|> keep(columns: [\"_time\",\"_value\"])\n\n\nreturn join(tables:{instrumented:instrumented, loaded:loaded},on:[\"_time\"])\n|> map(fn:(r) => ({\n_time: r._time,\n_value: 1.0 - (r._value_instrumented / r._value_loaded),\n_measurement: \"progress\" }))\n|> last()\n}\n\nperc()", - "refId": "A", - "resultFormat": "time_series" - } - ], - "thresholds": "0.33,0.66", - "title": "Instrumentation Progress", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "aliasColors": { - "classes pending for hook": "#99440a" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalPrometheus", - "fill": 5, - "fillGradient": 0, - "gridPos": { - "h": 6, - "w": 9, - "x": 15, - "y": 8 - }, - "hiddenSeries": false, - "id": 149, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1588836480547, - "repeatPanelId": 49, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "discovery-server", - "value": "discovery-server" - } - }, - "seriesOverrides": [ - { - "alias": "instrumented classes", - "color": "#629e51", - "fill": 5, - "zindex": 3 - }, - { - "alias": "classes pending for analysis", - "color": "#eab839", - "zindex": 0 - }, - { - "alias": "loaded classes", - "color": "#82b5d8", - "zindex": -3 - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "loaded classes", - "expr": "inspectit_self_instrumented_classes{service=\"$service\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "1m" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "intervalFactor": 1, - "legendFormat": "instrumented classes", - "measurement": "jvm_classes_loaded", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "instrumented classes", - "expr": "inspectit_self_instrumentation_queue_size{service=\"$service\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "1m" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "intervalFactor": 1, - "legendFormat": "classes pending for analysis", - "measurement": "inspectit_self_instrumented_classes", - "orderByTime": "ASC", - "policy": "default", - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - }, - { - "alias": "classes pending for analysis", - "expr": "jvm_classes_loaded{service=\"$service\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "1m" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "intervalFactor": 1, - "legendFormat": "loaded classes", - "measurement": "inspectit_self_instrumentation_analysis_queue_size", - "orderByTime": "ASC", - "policy": "default", - "refId": "C", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Instrumentation State over time (Logarithmic Scale)", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": "# Classes", - "logBase": 10, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": true, - "colorPostfix": false, - "colorValue": false, - "colors": [ - "rgba(33, 33, 36, 1)", - "#967302", - "#299c46" - ], - "datasource": "LocalPrometheus", - "decimals": 0, - "description": "Number of newly logged warnings. This metric can display too low numbers in case the agent just restarted!", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 10, - "y": 10 - }, - "id": 150, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "30%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1588836480547, - "repeatPanelId": 107, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "discovery-server", - "value": "discovery-server" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "host", - "targets": [ - { - "expr": "increase(inspectit_self_logs{service=~\"$service\",level=~\"WARN\"}[$__range])", - "format": "time_series", - "instant": true, - "intervalFactor": 1, - "refId": "A" - } - ], - "thresholds": "1", - "title": "Warnings", - "type": "singlestat", - "valueFontSize": "100%", - "valueMaps": [ - { - "op": "=", - "text": "0", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorPostfix": false, - "colorValue": false, - "colors": [ - "rgba(28, 26, 25, 0)", - "#eab839", - "#299c46" - ], - "datasource": "LocalPrometheus", - "decimals": 0, - "description": "Number of newly logged infos. This metric can display too low numbers in case the agent just restarted!", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 10, - "y": 12 - }, - "id": 151, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "30%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1588836480547, - "repeatPanelId": 143, - "repeatedByRow": true, - "scopedVars": { - "service": { - "selected": false, - "text": "discovery-server", - "value": "discovery-server" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "expr": "SUM(increase(inspectit_self_logs{service=~\"$service\",level=~\"INFO|DEBUG|TRACE\"}[$__range]))", - "format": "time_series", - "instant": true, - "intervalFactor": 1, - "refId": "A" - } - ], - "thresholds": "", - "title": "Other Logs", - "type": "singlestat", - "valueFontSize": "100%", - "valueMaps": [ - { - "op": "=", - "text": "0", - "value": "null" - } - ], - "valueName": "current" - } - ], - "refresh": "30s", - "schemaVersion": 22, - "style": "dark", - "tags": [], - "templating": { - "list": [ - { - "allValue": null, - "current": { - "selected": false, - "text": "All", - "value": "$__all" - }, - "datasource": "LocalPrometheus", - "definition": "label_values(service)", - "hide": 0, - "includeAll": true, - "index": -1, - "label": null, - "multi": true, - "name": "service", - "options": [], - "query": "label_values(service)", - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 0, - "tagValuesQuery": "", - "tags": [], - "tagsQuery": "", - "type": "query", - "useTags": false - } - ] - }, - "time": { - "from": "now-30m", - "to": "now" - }, - "timepicker": { - "refresh_intervals": [ - "5s", - "10s", - "30s", - "1m", - "5m", - "15m", - "30m", - "1h", - "2h", - "1d" - ], - "time_options": [ - "5m", - "15m", - "1h", - "6h", - "12h", - "24h", - "2d", - "7d", - "30d" - ] - }, - "timezone": "", - "title": "inspectIT Agent Self-Monitoring", - "uid": "oG69sg5Zk", - "variables": { - "list": [] - }, - "version": 1 -} \ No newline at end of file diff --git a/inspectit-ocelot-demo/grafana/provisioning/prometheus/dashboards/agent/service-graph.json b/inspectit-ocelot-demo/grafana/provisioning/prometheus/dashboards/agent/service-graph.json deleted file mode 100644 index d7147163e0..0000000000 --- a/inspectit-ocelot-demo/grafana/provisioning/prometheus/dashboards/agent/service-graph.json +++ /dev/null @@ -1,306 +0,0 @@ -{ - "annotations": { - "list": [ - { - "$$hashKey": "object:1388", - "builtIn": 1, - "datasource": "-- Grafana --", - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "type": "dashboard" - } - ] - }, - "editable": true, - "gnetId": null, - "graphTooltip": 0, - "id": 4, - "iteration": 1629203833400, - "links": [], - "panels": [ - { - "datasource": "LocalPrometheus", - "gridPos": { - "h": 19, - "w": 23, - "x": 0, - "y": 0 - }, - "id": 2, - "links": [], - "options": { - "aggregationType": "service", - "baselineRtUpper": "threshold", - "dataMapping": { - "aggregationType": "service", - "baselineRtUpper": "threshold", - "errorRateColumn": "error_in", - "errorRateOutgoingColumn": "error_out", - "extOrigin": "", - "extTarget": "", - "requestRateColumn": "in_count", - "requestRateOutgoingColumn": "out_count", - "responseTimeColumn": "in_timesum", - "responseTimeOutgoingColumn": "out_timesum", - "showDummyData": true, - "sourceColumn": "origin_service", - "targetColumn": "target_service", - "type": "" - }, - "drillDownLink": "", - "dummyDataSwitch": { - "aggregationType": "service", - "baselineRtUpper": "threshold", - "errorRateColumn": "error-rate", - "errorRateOutgoingColumn": "error-rate-out", - "extOrigin": "external_origin", - "extTarget": "external_target", - "requestRateColumn": "request-rate", - "requestRateOutgoingColumn": "request-rate-out", - "responseTimeColumn": "response-time", - "responseTimeOutgoingColumn": "response-time-out", - "showDummyData": false, - "sourceColumn": "origin_service", - "targetColumn": "target_service", - "type": "type" - }, - "errorRateColumn": "error-rate", - "errorRateOutgoingColumn": "error-rate-out", - "externalIconMapping": [ - { - "filename": "web", - "pattern": "web" - }, - { - "filename": "message", - "pattern": "jms" - }, - { - "filename": "database", - "pattern": "jdbc" - }, - { - "filename": "http", - "pattern": "http" - } - ], - "externalIcons": [ - { - "filename": "web", - "pattern": "web" - }, - { - "filename": "message", - "pattern": "jms" - }, - { - "filename": "database", - "pattern": "jdbc" - }, - { - "filename": "http", - "pattern": "http" - } - ], - "externalOrigin": "external_origin", - "externalTarget": "external_target", - "filterEmptyConnections": true, - "iconMapping": [ - { - "filename": "java", - "pattern": "java" - }, - { - "filename": "star_trek", - "pattern": "spok|star trek" - } - ], - "icons": [ - { - "filename": "java", - "pattern": "java" - }, - { - "filename": "star_trek", - "pattern": "spok|star trek" - } - ], - "requestRateColumn": "request-rate", - "requestRateOutgoingColumn": "request-rate-out", - "responseTime": "response-time", - "responseTimeOutgoingColumn": "response-time-out", - "showBaselines": false, - "showConnectionStats": true, - "showDebugInformation": false, - "sourceComponentPrefix": "origin_service", - "style": { - "dangerColor": "rgb(196, 22, 42)", - "healthyColor": "rgb(87, 148, 242)", - "noDataColor": "rgb(123, 123, 138)" - }, - "sumTimings": true, - "targetComponentPrefix": "target_service", - "timeFormat": "m", - "type": "type" - }, - "pluginVersion": "4.0.2", - "targets": [ - { - "expr": "sum(increase(service_in_count{service=~\"$service\"}[$__range]) or increase(service_in_count{origin_service=~\"$service\"}[$__range]) >= 0) by (service,origin_service,origin_external,protocol) > 0", - "format": "table", - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A" - }, - { - "expr": "sum(increase(service_out_count{service=~\"$service\"}[$__range]) or increase(service_out_count{target_service=~\"$service\"}[$__range]) >= 0) by (service,target_service,target_external,protocol) > 0", - "format": "table", - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "B" - }, - { - "expr": "sum(increase(service_in_responsetime_sum{service=~\"$service\"}[$__range]) or increase(service_in_responsetime_sum{origin_service=~\"$service\"}[$__range]) >= 0) by (service,origin_service,origin_external,protocol) > 0", - "format": "table", - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "C" - }, - { - "expr": "sum(increase(service_out_responsetime_sum{service=~\"$service\"}[$__range]) or increase(service_out_responsetime_sum{target_service=~\"$service\"}[$__range]) >= 0) by (service,target_service,target_external,protocol) > 0", - "format": "table", - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "D" - }, - { - "expr": "sum(increase(service_in_count{service=~\"$service\",error=\"true\"}[$__range]) or increase(service_in_count{origin_service=~\"$service\",error=\"true\"}[$__range]) >= 0) by (service,origin_service,origin_external,protocol) > 0", - "format": "table", - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "E" - }, - { - "expr": "sum(increase(service_out_count{service=~\"$service\",error=\"true\"}[$__range]) or increase(service_out_count{target_service=~\"$service\",error=\"true\"}[$__range]) >= 0) by (service,target_service,target_external,protocol) > 0", - "format": "table", - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "F" - } - ], - "title": "Service Graph", - "type": "novatec-sdg-panel" - } - ], - "refresh": "", - "schemaVersion": 30, - "style": "dark", - "tags": [], - "templating": { - "list": [ - { - "allValue": null, - "current": { - "text": "service", - "value": "service" - }, - "description": null, - "error": null, - "hide": 2, - "includeAll": false, - "label": null, - "multi": false, - "name": "aggregationType", - "options": [ - { - "selected": true, - "text": "service", - "value": "service" - } - ], - "query": "service", - "skipUrlSync": false, - "type": "custom" - }, - { - "allValue": ".*", - "current": { - "selected": true, - "text": [ - "All" - ], - "value": [ - "$__all" - ] - }, - "datasource": "LocalPrometheus", - "definition": "label_values(service)", - "description": null, - "error": null, - "hide": 0, - "includeAll": true, - "label": "Services", - "multi": true, - "name": "service", - "options": [], - "query": { - "query": "label_values(service)", - "refId": "LocalPrometheus-service-Variable-Query" - }, - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 0, - "tagValuesQuery": "", - "tagsQuery": "", - "type": "query", - "useTags": false - } - ] - }, - "time": { - "from": "now-5m", - "to": "now" - }, - "timepicker": { - "refresh_intervals": [ - "5s", - "10s", - "30s", - "1m", - "5m", - "15m", - "30m", - "1h", - "2h", - "1d" - ], - "time_options": [ - "5m", - "15m", - "1h", - "6h", - "12h", - "24h", - "2d", - "7d", - "30d" - ] - }, - "timezone": "", - "title": "Service Graph", - "uid": "FlzDnieiz", - "version": 1 -} \ No newline at end of file diff --git a/inspectit-ocelot-demo/grafana/provisioning/prometheus/dashboards/agent/system-metrics.json b/inspectit-ocelot-demo/grafana/provisioning/prometheus/dashboards/agent/system-metrics.json deleted file mode 100644 index 844ca61db0..0000000000 --- a/inspectit-ocelot-demo/grafana/provisioning/prometheus/dashboards/agent/system-metrics.json +++ /dev/null @@ -1,4960 +0,0 @@ -{ - "annotations": { - "list": [ - { - "builtIn": 1, - "datasource": "-- Grafana --", - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "type": "dashboard" - } - ] - }, - "editable": true, - "gnetId": null, - "graphTooltip": 0, - "id": 2, - "iteration": 1546608984221, - "links": [], - "panels": [ - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 0 - }, - "id": 7, - "panels": [], - "repeat": "host", - "scopedVars": { - "host": { - "selected": false, - "text": "4d8670ccd24b", - "value": "4d8670ccd24b" - } - }, - "title": "$host", - "type": "row" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#bf1b00" - ], - "datasource": "LocalPrometheus", - "format": "percentunit", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": true, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 0, - "y": 1 - }, - "id": 5, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatDirection": "h", - "scopedVars": { - "host": { - "selected": false, - "text": "4d8670ccd24b", - "value": "4d8670ccd24b" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "expr": "system_cpu_usage{host=\"$host\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": true, - "intervalFactor": 1, - "measurement": "system_cpu_usage", - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n|> range(start: -1m)\n|> filter(fn: (r) =>\n r._measurement == \"system_cpu_usage\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\"])", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": "0.9,0.95", - "title": "CPU Usage", - "transparent": false, - "type": "singlestat", - "valueFontSize": "50%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "aliasColors": { - "CPU Utilization": "#82b5d8", - "Load Average": "#bf1b00" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalPrometheus", - "fill": 2, - "gridPos": { - "h": 6, - "w": 8, - "x": 3, - "y": 1 - }, - "id": 11, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 3, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "scopedVars": { - "host": { - "selected": false, - "text": "4d8670ccd24b", - "value": "4d8670ccd24b" - } - }, - "seriesOverrides": [ - { - "alias": "Load Average", - "fill": 0, - "linewidth": 3, - "yaxis": 2 - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "CPU Utilization", - "expr": "system_cpu_usage{host=\"$host\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "intervalFactor": 1, - "legendFormat": "CPU Utilization", - "measurement": "system_cpu_usage", - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"system_cpu_usage\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\"])", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$host$/" - } - ] - }, - { - "alias": "Load Average", - "expr": "system_load_average_1m{host=\"$host\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "intervalFactor": 1, - "legendFormat": "Load Average", - "measurement": "system_load_average_1m", - "orderByTime": "ASC", - "policy": "default", - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$host$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "CPU Usage", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": null, - "format": "percentunit", - "label": null, - "logBase": 1, - "max": "1.05", - "min": "0", - "show": true - }, - { - "format": "none", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalPrometheus", - "format": "percentunit", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": true, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 12, - "y": 1 - }, - "id": 4, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeat": null, - "repeatDirection": "h", - "scopedVars": { - "host": { - "selected": false, - "text": "4d8670ccd24b", - "value": "4d8670ccd24b" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "expr": "(disk_total{host=\"$host\"} - disk_free{host=\"$host\"})/disk_total{host=\"$host\"}", - "format": "time_series", - "instant": true, - "intervalFactor": 1, - "query": "usedPerc = () => {\ntotal = from(bucket: \"telegraf\")\n |> range($range)\n |> filter(fn: (r) =>\n r._measurement == \"disk_total\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"service\"])\n \nfree = from(bucket: \"telegraf\")\n |> range($range)\n |> filter(fn: (r) =>\n r._measurement == \"disk_free\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"service\"])\n \nreturn join(tables:{total:total, free:free},on:[\"_time\",\"_stop\",\"_start\"])\n |> map(fn:(r) => ({\n _time: r._time,\n _value: (r._value_total - r._value_free)/r._value_total\n \n }))\n}\n\nusedPerc()", - "refId": "A" - } - ], - "thresholds": "0.9,0.95", - "title": "Disk Usage", - "type": "singlestat", - "valueFontSize": "50%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "aliasColors": { - "disk_free": "#629e51", - "disk_free ": "#629e51", - "disk_free{host=\"4d8670ccd24b\",host-address=\"172.19.0.10\",instance=\"vets-service:9093\",job=\"inspectit\",service=\"vets-service\"}": "#629e51", - "disk_used": "#1f78c1", - "disk_used ": "#1f78c1" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalPrometheus", - "fill": 7, - "gridPos": { - "h": 6, - "w": 9, - "x": 15, - "y": 1 - }, - "id": 13, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "scopedVars": { - "host": { - "selected": false, - "text": "4d8670ccd24b", - "value": "4d8670ccd24b" - } - }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "expr": "disk_total{host=\"$host\"} - disk_free{host=\"$host\"}", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "disk_used", - "query": "usedPerc = () => {\ntotal = from(bucket: \"telegraf\")\n |> range($range)\n |> filter(fn: (r) =>\n r._measurement == \"disk_total\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n \nfree = from(bucket: \"telegraf\")\n |> range($range)\n |> filter(fn: (r) =>\n r._measurement == \"disk_free\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n \nreturn join(tables:{total:total, free:free},on:[\"_time\",\"_stop\",\"_start\"])\n |> map(fn:(r) => ({\n _time: r._time,\n _value: (r._value_total - r._value_free),\n _measurement: \"disk_used\"\n }))\n}\n\nusedPerc()", - "refId": "A" - }, - { - "expr": "disk_free{host=\"$host\"}", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "disk_free", - "query": "from(bucket: \"telegraf\")\n |> range($range)\n |> filter(fn: (r) =>\n r._measurement == \"disk_free\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n", - "refId": "B" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Disk Usage", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": null, - "format": "decbytes", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalPrometheus", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 3, - "x": 0, - "y": 5 - }, - "id": 9, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "scopedVars": { - "host": { - "selected": false, - "text": "4d8670ccd24b", - "value": "4d8670ccd24b" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "expr": "system_cpu_count{host=\"$host\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": true, - "intervalFactor": 1, - "measurement": "system_cpu_count", - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n|> range(start: -1m)\n|> filter(fn: (r) =>\n r._measurement == \"system_cpu_count\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\"])\n|> last()", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": "", - "title": "# CPUs", - "transparent": false, - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#d44a3a", - "rgba(237, 129, 40, 0.89)", - "#299c46" - ], - "datasource": "LocalPrometheus", - "decimals": null, - "format": "decbytes", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 3, - "x": 12, - "y": 5 - }, - "id": 12, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "scopedVars": { - "host": { - "selected": false, - "text": "4d8670ccd24b", - "value": "4d8670ccd24b" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "expr": "disk_free{host=\"$host\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": true, - "intervalFactor": 1, - "measurement": "system_cpu_count", - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n |> range(start: -1m)\n |> filter(fn: (r) =>\n r._measurement == \"disk_free\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\"])\n |> last()", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": "500000,200000", - "title": "Disk Free", - "transparent": false, - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 7 - }, - "id": 14, - "panels": [], - "repeat": null, - "repeatIteration": 1546608984221, - "repeatPanelId": 7, - "scopedVars": { - "host": { - "selected": false, - "text": "58ca61112a5c", - "value": "58ca61112a5c" - } - }, - "title": "$host", - "type": "row" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#bf1b00" - ], - "datasource": "LocalPrometheus", - "format": "percentunit", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": true, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 0, - "y": 8 - }, - "id": 15, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatDirection": "h", - "repeatIteration": 1546608984221, - "repeatPanelId": 5, - "repeatedByRow": true, - "scopedVars": { - "host": { - "selected": false, - "text": "58ca61112a5c", - "value": "58ca61112a5c" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "expr": "system_cpu_usage{host=\"$host\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": true, - "intervalFactor": 1, - "measurement": "system_cpu_usage", - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n|> range(start: -1m)\n|> filter(fn: (r) =>\n r._measurement == \"system_cpu_usage\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\"])", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": "0.9,0.95", - "title": "CPU Usage", - "transparent": false, - "type": "singlestat", - "valueFontSize": "50%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "aliasColors": { - "CPU Utilization": "#82b5d8", - "Load Average": "#bf1b00" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalPrometheus", - "fill": 2, - "gridPos": { - "h": 6, - "w": 8, - "x": 3, - "y": 8 - }, - "id": 16, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 3, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1546608984221, - "repeatPanelId": 11, - "repeatedByRow": true, - "scopedVars": { - "host": { - "selected": false, - "text": "58ca61112a5c", - "value": "58ca61112a5c" - } - }, - "seriesOverrides": [ - { - "alias": "Load Average", - "fill": 0, - "linewidth": 3, - "yaxis": 2 - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "CPU Utilization", - "expr": "system_cpu_usage{host=\"$host\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "intervalFactor": 1, - "legendFormat": "CPU Utilization", - "measurement": "system_cpu_usage", - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"system_cpu_usage\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\"])", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$host$/" - } - ] - }, - { - "alias": "Load Average", - "expr": "system_load_average_1m{host=\"$host\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "intervalFactor": 1, - "legendFormat": "Load Average", - "measurement": "system_load_average_1m", - "orderByTime": "ASC", - "policy": "default", - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$host$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "CPU Usage", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": null, - "format": "percentunit", - "label": null, - "logBase": 1, - "max": "1.05", - "min": "0", - "show": true - }, - { - "format": "none", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalPrometheus", - "format": "percentunit", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": true, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 12, - "y": 8 - }, - "id": 17, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeat": null, - "repeatDirection": "h", - "repeatIteration": 1546608984221, - "repeatPanelId": 4, - "repeatedByRow": true, - "scopedVars": { - "host": { - "selected": false, - "text": "58ca61112a5c", - "value": "58ca61112a5c" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "expr": "(disk_total{host=\"$host\"} - disk_free{host=\"$host\"})/disk_total{host=\"$host\"}", - "format": "time_series", - "instant": true, - "intervalFactor": 1, - "query": "usedPerc = () => {\ntotal = from(bucket: \"telegraf\")\n |> range($range)\n |> filter(fn: (r) =>\n r._measurement == \"disk_total\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"service\"])\n \nfree = from(bucket: \"telegraf\")\n |> range($range)\n |> filter(fn: (r) =>\n r._measurement == \"disk_free\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"service\"])\n \nreturn join(tables:{total:total, free:free},on:[\"_time\",\"_stop\",\"_start\"])\n |> map(fn:(r) => ({\n _time: r._time,\n _value: (r._value_total - r._value_free)/r._value_total\n \n }))\n}\n\nusedPerc()", - "refId": "A" - } - ], - "thresholds": "0.9,0.95", - "title": "Disk Usage", - "type": "singlestat", - "valueFontSize": "50%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "aliasColors": { - "disk_free": "#629e51", - "disk_free ": "#629e51", - "disk_free{host=\"4d8670ccd24b\",host-address=\"172.19.0.10\",instance=\"vets-service:9093\",job=\"inspectit\",service=\"vets-service\"}": "#629e51", - "disk_used": "#1f78c1", - "disk_used ": "#1f78c1" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalPrometheus", - "fill": 7, - "gridPos": { - "h": 6, - "w": 9, - "x": 15, - "y": 8 - }, - "id": 18, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1546608984221, - "repeatPanelId": 13, - "repeatedByRow": true, - "scopedVars": { - "host": { - "selected": false, - "text": "58ca61112a5c", - "value": "58ca61112a5c" - } - }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "expr": "disk_total{host=\"$host\"} - disk_free{host=\"$host\"}", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "disk_used", - "query": "usedPerc = () => {\ntotal = from(bucket: \"telegraf\")\n |> range($range)\n |> filter(fn: (r) =>\n r._measurement == \"disk_total\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n \nfree = from(bucket: \"telegraf\")\n |> range($range)\n |> filter(fn: (r) =>\n r._measurement == \"disk_free\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n \nreturn join(tables:{total:total, free:free},on:[\"_time\",\"_stop\",\"_start\"])\n |> map(fn:(r) => ({\n _time: r._time,\n _value: (r._value_total - r._value_free),\n _measurement: \"disk_used\"\n }))\n}\n\nusedPerc()", - "refId": "A" - }, - { - "expr": "disk_free{host=\"$host\"}", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "disk_free", - "query": "from(bucket: \"telegraf\")\n |> range($range)\n |> filter(fn: (r) =>\n r._measurement == \"disk_free\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n", - "refId": "B" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Disk Usage", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": null, - "format": "decbytes", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalPrometheus", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 3, - "x": 0, - "y": 12 - }, - "id": 19, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1546608984221, - "repeatPanelId": 9, - "repeatedByRow": true, - "scopedVars": { - "host": { - "selected": false, - "text": "58ca61112a5c", - "value": "58ca61112a5c" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "expr": "system_cpu_count{host=\"$host\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": true, - "intervalFactor": 1, - "measurement": "system_cpu_count", - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n|> range(start: -1m)\n|> filter(fn: (r) =>\n r._measurement == \"system_cpu_count\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\"])\n|> last()", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": "", - "title": "# CPUs", - "transparent": false, - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#d44a3a", - "rgba(237, 129, 40, 0.89)", - "#299c46" - ], - "datasource": "LocalPrometheus", - "decimals": null, - "format": "decbytes", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 3, - "x": 12, - "y": 12 - }, - "id": 20, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1546608984221, - "repeatPanelId": 12, - "repeatedByRow": true, - "scopedVars": { - "host": { - "selected": false, - "text": "58ca61112a5c", - "value": "58ca61112a5c" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "expr": "disk_free{host=\"$host\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": true, - "intervalFactor": 1, - "measurement": "system_cpu_count", - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n |> range(start: -1m)\n |> filter(fn: (r) =>\n r._measurement == \"disk_free\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\"])\n |> last()", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": "500000,200000", - "title": "Disk Free", - "transparent": false, - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 14 - }, - "id": 21, - "panels": [], - "repeat": null, - "repeatIteration": 1546608984221, - "repeatPanelId": 7, - "scopedVars": { - "host": { - "selected": false, - "text": "796ab6b7da1e", - "value": "796ab6b7da1e" - } - }, - "title": "$host", - "type": "row" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#bf1b00" - ], - "datasource": "LocalPrometheus", - "format": "percentunit", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": true, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 0, - "y": 15 - }, - "id": 22, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatDirection": "h", - "repeatIteration": 1546608984221, - "repeatPanelId": 5, - "repeatedByRow": true, - "scopedVars": { - "host": { - "selected": false, - "text": "796ab6b7da1e", - "value": "796ab6b7da1e" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "expr": "system_cpu_usage{host=\"$host\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": true, - "intervalFactor": 1, - "measurement": "system_cpu_usage", - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n|> range(start: -1m)\n|> filter(fn: (r) =>\n r._measurement == \"system_cpu_usage\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\"])", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": "0.9,0.95", - "title": "CPU Usage", - "transparent": false, - "type": "singlestat", - "valueFontSize": "50%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "aliasColors": { - "CPU Utilization": "#82b5d8", - "Load Average": "#bf1b00" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalPrometheus", - "fill": 2, - "gridPos": { - "h": 6, - "w": 8, - "x": 3, - "y": 15 - }, - "id": 23, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 3, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1546608984221, - "repeatPanelId": 11, - "repeatedByRow": true, - "scopedVars": { - "host": { - "selected": false, - "text": "796ab6b7da1e", - "value": "796ab6b7da1e" - } - }, - "seriesOverrides": [ - { - "alias": "Load Average", - "fill": 0, - "linewidth": 3, - "yaxis": 2 - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "CPU Utilization", - "expr": "system_cpu_usage{host=\"$host\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "intervalFactor": 1, - "legendFormat": "CPU Utilization", - "measurement": "system_cpu_usage", - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"system_cpu_usage\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\"])", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$host$/" - } - ] - }, - { - "alias": "Load Average", - "expr": "system_load_average_1m{host=\"$host\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "intervalFactor": 1, - "legendFormat": "Load Average", - "measurement": "system_load_average_1m", - "orderByTime": "ASC", - "policy": "default", - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$host$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "CPU Usage", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": null, - "format": "percentunit", - "label": null, - "logBase": 1, - "max": "1.05", - "min": "0", - "show": true - }, - { - "format": "none", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalPrometheus", - "format": "percentunit", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": true, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 12, - "y": 15 - }, - "id": 24, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeat": null, - "repeatDirection": "h", - "repeatIteration": 1546608984221, - "repeatPanelId": 4, - "repeatedByRow": true, - "scopedVars": { - "host": { - "selected": false, - "text": "796ab6b7da1e", - "value": "796ab6b7da1e" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "expr": "(disk_total{host=\"$host\"} - disk_free{host=\"$host\"})/disk_total{host=\"$host\"}", - "format": "time_series", - "instant": true, - "intervalFactor": 1, - "query": "usedPerc = () => {\ntotal = from(bucket: \"telegraf\")\n |> range($range)\n |> filter(fn: (r) =>\n r._measurement == \"disk_total\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"service\"])\n \nfree = from(bucket: \"telegraf\")\n |> range($range)\n |> filter(fn: (r) =>\n r._measurement == \"disk_free\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"service\"])\n \nreturn join(tables:{total:total, free:free},on:[\"_time\",\"_stop\",\"_start\"])\n |> map(fn:(r) => ({\n _time: r._time,\n _value: (r._value_total - r._value_free)/r._value_total\n \n }))\n}\n\nusedPerc()", - "refId": "A" - } - ], - "thresholds": "0.9,0.95", - "title": "Disk Usage", - "type": "singlestat", - "valueFontSize": "50%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "aliasColors": { - "disk_free": "#629e51", - "disk_free ": "#629e51", - "disk_free{host=\"4d8670ccd24b\",host-address=\"172.19.0.10\",instance=\"vets-service:9093\",job=\"inspectit\",service=\"vets-service\"}": "#629e51", - "disk_used": "#1f78c1", - "disk_used ": "#1f78c1" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalPrometheus", - "fill": 7, - "gridPos": { - "h": 6, - "w": 9, - "x": 15, - "y": 15 - }, - "id": 25, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1546608984221, - "repeatPanelId": 13, - "repeatedByRow": true, - "scopedVars": { - "host": { - "selected": false, - "text": "796ab6b7da1e", - "value": "796ab6b7da1e" - } - }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "expr": "disk_total{host=\"$host\"} - disk_free{host=\"$host\"}", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "disk_used", - "query": "usedPerc = () => {\ntotal = from(bucket: \"telegraf\")\n |> range($range)\n |> filter(fn: (r) =>\n r._measurement == \"disk_total\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n \nfree = from(bucket: \"telegraf\")\n |> range($range)\n |> filter(fn: (r) =>\n r._measurement == \"disk_free\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n \nreturn join(tables:{total:total, free:free},on:[\"_time\",\"_stop\",\"_start\"])\n |> map(fn:(r) => ({\n _time: r._time,\n _value: (r._value_total - r._value_free),\n _measurement: \"disk_used\"\n }))\n}\n\nusedPerc()", - "refId": "A" - }, - { - "expr": "disk_free{host=\"$host\"}", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "disk_free", - "query": "from(bucket: \"telegraf\")\n |> range($range)\n |> filter(fn: (r) =>\n r._measurement == \"disk_free\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n", - "refId": "B" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Disk Usage", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": null, - "format": "decbytes", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalPrometheus", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 3, - "x": 0, - "y": 19 - }, - "id": 26, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1546608984221, - "repeatPanelId": 9, - "repeatedByRow": true, - "scopedVars": { - "host": { - "selected": false, - "text": "796ab6b7da1e", - "value": "796ab6b7da1e" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "expr": "system_cpu_count{host=\"$host\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": true, - "intervalFactor": 1, - "measurement": "system_cpu_count", - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n|> range(start: -1m)\n|> filter(fn: (r) =>\n r._measurement == \"system_cpu_count\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\"])\n|> last()", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": "", - "title": "# CPUs", - "transparent": false, - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#d44a3a", - "rgba(237, 129, 40, 0.89)", - "#299c46" - ], - "datasource": "LocalPrometheus", - "decimals": null, - "format": "decbytes", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 3, - "x": 12, - "y": 19 - }, - "id": 27, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1546608984221, - "repeatPanelId": 12, - "repeatedByRow": true, - "scopedVars": { - "host": { - "selected": false, - "text": "796ab6b7da1e", - "value": "796ab6b7da1e" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "expr": "disk_free{host=\"$host\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": true, - "intervalFactor": 1, - "measurement": "system_cpu_count", - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n |> range(start: -1m)\n |> filter(fn: (r) =>\n r._measurement == \"disk_free\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\"])\n |> last()", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": "500000,200000", - "title": "Disk Free", - "transparent": false, - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 21 - }, - "id": 28, - "panels": [], - "repeat": null, - "repeatIteration": 1546608984221, - "repeatPanelId": 7, - "scopedVars": { - "host": { - "selected": false, - "text": "7a230a80cb43", - "value": "7a230a80cb43" - } - }, - "title": "$host", - "type": "row" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#bf1b00" - ], - "datasource": "LocalPrometheus", - "format": "percentunit", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": true, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 0, - "y": 22 - }, - "id": 29, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatDirection": "h", - "repeatIteration": 1546608984221, - "repeatPanelId": 5, - "repeatedByRow": true, - "scopedVars": { - "host": { - "selected": false, - "text": "7a230a80cb43", - "value": "7a230a80cb43" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "expr": "system_cpu_usage{host=\"$host\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": true, - "intervalFactor": 1, - "measurement": "system_cpu_usage", - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n|> range(start: -1m)\n|> filter(fn: (r) =>\n r._measurement == \"system_cpu_usage\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\"])", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": "0.9,0.95", - "title": "CPU Usage", - "transparent": false, - "type": "singlestat", - "valueFontSize": "50%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "aliasColors": { - "CPU Utilization": "#82b5d8", - "Load Average": "#bf1b00" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalPrometheus", - "fill": 2, - "gridPos": { - "h": 6, - "w": 8, - "x": 3, - "y": 22 - }, - "id": 30, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 3, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1546608984221, - "repeatPanelId": 11, - "repeatedByRow": true, - "scopedVars": { - "host": { - "selected": false, - "text": "7a230a80cb43", - "value": "7a230a80cb43" - } - }, - "seriesOverrides": [ - { - "alias": "Load Average", - "fill": 0, - "linewidth": 3, - "yaxis": 2 - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "CPU Utilization", - "expr": "system_cpu_usage{host=\"$host\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "intervalFactor": 1, - "legendFormat": "CPU Utilization", - "measurement": "system_cpu_usage", - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"system_cpu_usage\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\"])", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$host$/" - } - ] - }, - { - "alias": "Load Average", - "expr": "system_load_average_1m{host=\"$host\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "intervalFactor": 1, - "legendFormat": "Load Average", - "measurement": "system_load_average_1m", - "orderByTime": "ASC", - "policy": "default", - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$host$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "CPU Usage", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": null, - "format": "percentunit", - "label": null, - "logBase": 1, - "max": "1.05", - "min": "0", - "show": true - }, - { - "format": "none", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalPrometheus", - "format": "percentunit", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": true, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 12, - "y": 22 - }, - "id": 31, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeat": null, - "repeatDirection": "h", - "repeatIteration": 1546608984221, - "repeatPanelId": 4, - "repeatedByRow": true, - "scopedVars": { - "host": { - "selected": false, - "text": "7a230a80cb43", - "value": "7a230a80cb43" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "expr": "(disk_total{host=\"$host\"} - disk_free{host=\"$host\"})/disk_total{host=\"$host\"}", - "format": "time_series", - "instant": true, - "intervalFactor": 1, - "query": "usedPerc = () => {\ntotal = from(bucket: \"telegraf\")\n |> range($range)\n |> filter(fn: (r) =>\n r._measurement == \"disk_total\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"service\"])\n \nfree = from(bucket: \"telegraf\")\n |> range($range)\n |> filter(fn: (r) =>\n r._measurement == \"disk_free\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"service\"])\n \nreturn join(tables:{total:total, free:free},on:[\"_time\",\"_stop\",\"_start\"])\n |> map(fn:(r) => ({\n _time: r._time,\n _value: (r._value_total - r._value_free)/r._value_total\n \n }))\n}\n\nusedPerc()", - "refId": "A" - } - ], - "thresholds": "0.9,0.95", - "title": "Disk Usage", - "type": "singlestat", - "valueFontSize": "50%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "aliasColors": { - "disk_free": "#629e51", - "disk_free ": "#629e51", - "disk_free{host=\"4d8670ccd24b\",host-address=\"172.19.0.10\",instance=\"vets-service:9093\",job=\"inspectit\",service=\"vets-service\"}": "#629e51", - "disk_used": "#1f78c1", - "disk_used ": "#1f78c1" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalPrometheus", - "fill": 7, - "gridPos": { - "h": 6, - "w": 9, - "x": 15, - "y": 22 - }, - "id": 32, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1546608984221, - "repeatPanelId": 13, - "repeatedByRow": true, - "scopedVars": { - "host": { - "selected": false, - "text": "7a230a80cb43", - "value": "7a230a80cb43" - } - }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "expr": "disk_total{host=\"$host\"} - disk_free{host=\"$host\"}", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "disk_used", - "query": "usedPerc = () => {\ntotal = from(bucket: \"telegraf\")\n |> range($range)\n |> filter(fn: (r) =>\n r._measurement == \"disk_total\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n \nfree = from(bucket: \"telegraf\")\n |> range($range)\n |> filter(fn: (r) =>\n r._measurement == \"disk_free\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n \nreturn join(tables:{total:total, free:free},on:[\"_time\",\"_stop\",\"_start\"])\n |> map(fn:(r) => ({\n _time: r._time,\n _value: (r._value_total - r._value_free),\n _measurement: \"disk_used\"\n }))\n}\n\nusedPerc()", - "refId": "A" - }, - { - "expr": "disk_free{host=\"$host\"}", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "disk_free", - "query": "from(bucket: \"telegraf\")\n |> range($range)\n |> filter(fn: (r) =>\n r._measurement == \"disk_free\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n", - "refId": "B" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Disk Usage", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": null, - "format": "decbytes", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalPrometheus", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 3, - "x": 0, - "y": 26 - }, - "id": 33, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1546608984221, - "repeatPanelId": 9, - "repeatedByRow": true, - "scopedVars": { - "host": { - "selected": false, - "text": "7a230a80cb43", - "value": "7a230a80cb43" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "expr": "system_cpu_count{host=\"$host\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": true, - "intervalFactor": 1, - "measurement": "system_cpu_count", - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n|> range(start: -1m)\n|> filter(fn: (r) =>\n r._measurement == \"system_cpu_count\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\"])\n|> last()", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": "", - "title": "# CPUs", - "transparent": false, - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#d44a3a", - "rgba(237, 129, 40, 0.89)", - "#299c46" - ], - "datasource": "LocalPrometheus", - "decimals": null, - "format": "decbytes", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 3, - "x": 12, - "y": 26 - }, - "id": 34, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1546608984221, - "repeatPanelId": 12, - "repeatedByRow": true, - "scopedVars": { - "host": { - "selected": false, - "text": "7a230a80cb43", - "value": "7a230a80cb43" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "expr": "disk_free{host=\"$host\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": true, - "intervalFactor": 1, - "measurement": "system_cpu_count", - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n |> range(start: -1m)\n |> filter(fn: (r) =>\n r._measurement == \"disk_free\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\"])\n |> last()", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": "500000,200000", - "title": "Disk Free", - "transparent": false, - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 28 - }, - "id": 35, - "panels": [], - "repeat": null, - "repeatIteration": 1546608984221, - "repeatPanelId": 7, - "scopedVars": { - "host": { - "selected": false, - "text": "ad1508ecac5e", - "value": "ad1508ecac5e" - } - }, - "title": "$host", - "type": "row" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#bf1b00" - ], - "datasource": "LocalPrometheus", - "format": "percentunit", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": true, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 0, - "y": 29 - }, - "id": 36, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatDirection": "h", - "repeatIteration": 1546608984221, - "repeatPanelId": 5, - "repeatedByRow": true, - "scopedVars": { - "host": { - "selected": false, - "text": "ad1508ecac5e", - "value": "ad1508ecac5e" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "expr": "system_cpu_usage{host=\"$host\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": true, - "intervalFactor": 1, - "measurement": "system_cpu_usage", - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n|> range(start: -1m)\n|> filter(fn: (r) =>\n r._measurement == \"system_cpu_usage\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\"])", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": "0.9,0.95", - "title": "CPU Usage", - "transparent": false, - "type": "singlestat", - "valueFontSize": "50%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "aliasColors": { - "CPU Utilization": "#82b5d8", - "Load Average": "#bf1b00" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalPrometheus", - "fill": 2, - "gridPos": { - "h": 6, - "w": 8, - "x": 3, - "y": 29 - }, - "id": 37, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 3, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1546608984221, - "repeatPanelId": 11, - "repeatedByRow": true, - "scopedVars": { - "host": { - "selected": false, - "text": "ad1508ecac5e", - "value": "ad1508ecac5e" - } - }, - "seriesOverrides": [ - { - "alias": "Load Average", - "fill": 0, - "linewidth": 3, - "yaxis": 2 - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "CPU Utilization", - "expr": "system_cpu_usage{host=\"$host\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "intervalFactor": 1, - "legendFormat": "CPU Utilization", - "measurement": "system_cpu_usage", - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"system_cpu_usage\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\"])", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$host$/" - } - ] - }, - { - "alias": "Load Average", - "expr": "system_load_average_1m{host=\"$host\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "intervalFactor": 1, - "legendFormat": "Load Average", - "measurement": "system_load_average_1m", - "orderByTime": "ASC", - "policy": "default", - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$host$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "CPU Usage", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": null, - "format": "percentunit", - "label": null, - "logBase": 1, - "max": "1.05", - "min": "0", - "show": true - }, - { - "format": "none", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalPrometheus", - "format": "percentunit", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": true, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 12, - "y": 29 - }, - "id": 38, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeat": null, - "repeatDirection": "h", - "repeatIteration": 1546608984221, - "repeatPanelId": 4, - "repeatedByRow": true, - "scopedVars": { - "host": { - "selected": false, - "text": "ad1508ecac5e", - "value": "ad1508ecac5e" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "expr": "(disk_total{host=\"$host\"} - disk_free{host=\"$host\"})/disk_total{host=\"$host\"}", - "format": "time_series", - "instant": true, - "intervalFactor": 1, - "query": "usedPerc = () => {\ntotal = from(bucket: \"telegraf\")\n |> range($range)\n |> filter(fn: (r) =>\n r._measurement == \"disk_total\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"service\"])\n \nfree = from(bucket: \"telegraf\")\n |> range($range)\n |> filter(fn: (r) =>\n r._measurement == \"disk_free\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"service\"])\n \nreturn join(tables:{total:total, free:free},on:[\"_time\",\"_stop\",\"_start\"])\n |> map(fn:(r) => ({\n _time: r._time,\n _value: (r._value_total - r._value_free)/r._value_total\n \n }))\n}\n\nusedPerc()", - "refId": "A" - } - ], - "thresholds": "0.9,0.95", - "title": "Disk Usage", - "type": "singlestat", - "valueFontSize": "50%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "aliasColors": { - "disk_free": "#629e51", - "disk_free ": "#629e51", - "disk_free{host=\"4d8670ccd24b\",host-address=\"172.19.0.10\",instance=\"vets-service:9093\",job=\"inspectit\",service=\"vets-service\"}": "#629e51", - "disk_used": "#1f78c1", - "disk_used ": "#1f78c1" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalPrometheus", - "fill": 7, - "gridPos": { - "h": 6, - "w": 9, - "x": 15, - "y": 29 - }, - "id": 39, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1546608984221, - "repeatPanelId": 13, - "repeatedByRow": true, - "scopedVars": { - "host": { - "selected": false, - "text": "ad1508ecac5e", - "value": "ad1508ecac5e" - } - }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "expr": "disk_total{host=\"$host\"} - disk_free{host=\"$host\"}", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "disk_used", - "query": "usedPerc = () => {\ntotal = from(bucket: \"telegraf\")\n |> range($range)\n |> filter(fn: (r) =>\n r._measurement == \"disk_total\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n \nfree = from(bucket: \"telegraf\")\n |> range($range)\n |> filter(fn: (r) =>\n r._measurement == \"disk_free\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n \nreturn join(tables:{total:total, free:free},on:[\"_time\",\"_stop\",\"_start\"])\n |> map(fn:(r) => ({\n _time: r._time,\n _value: (r._value_total - r._value_free),\n _measurement: \"disk_used\"\n }))\n}\n\nusedPerc()", - "refId": "A" - }, - { - "expr": "disk_free{host=\"$host\"}", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "disk_free", - "query": "from(bucket: \"telegraf\")\n |> range($range)\n |> filter(fn: (r) =>\n r._measurement == \"disk_free\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n", - "refId": "B" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Disk Usage", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": null, - "format": "decbytes", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalPrometheus", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 3, - "x": 0, - "y": 33 - }, - "id": 40, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1546608984221, - "repeatPanelId": 9, - "repeatedByRow": true, - "scopedVars": { - "host": { - "selected": false, - "text": "ad1508ecac5e", - "value": "ad1508ecac5e" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "expr": "system_cpu_count{host=\"$host\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": true, - "intervalFactor": 1, - "measurement": "system_cpu_count", - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n|> range(start: -1m)\n|> filter(fn: (r) =>\n r._measurement == \"system_cpu_count\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\"])\n|> last()", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": "", - "title": "# CPUs", - "transparent": false, - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#d44a3a", - "rgba(237, 129, 40, 0.89)", - "#299c46" - ], - "datasource": "LocalPrometheus", - "decimals": null, - "format": "decbytes", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 3, - "x": 12, - "y": 33 - }, - "id": 41, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1546608984221, - "repeatPanelId": 12, - "repeatedByRow": true, - "scopedVars": { - "host": { - "selected": false, - "text": "ad1508ecac5e", - "value": "ad1508ecac5e" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "expr": "disk_free{host=\"$host\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": true, - "intervalFactor": 1, - "measurement": "system_cpu_count", - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n |> range(start: -1m)\n |> filter(fn: (r) =>\n r._measurement == \"disk_free\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\"])\n |> last()", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": "500000,200000", - "title": "Disk Free", - "transparent": false, - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 35 - }, - "id": 42, - "panels": [], - "repeat": null, - "repeatIteration": 1546608984221, - "repeatPanelId": 7, - "scopedVars": { - "host": { - "selected": false, - "text": "d5a926df83bc", - "value": "d5a926df83bc" - } - }, - "title": "$host", - "type": "row" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#bf1b00" - ], - "datasource": "LocalPrometheus", - "format": "percentunit", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": true, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 0, - "y": 36 - }, - "id": 43, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatDirection": "h", - "repeatIteration": 1546608984221, - "repeatPanelId": 5, - "repeatedByRow": true, - "scopedVars": { - "host": { - "selected": false, - "text": "d5a926df83bc", - "value": "d5a926df83bc" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "expr": "system_cpu_usage{host=\"$host\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": true, - "intervalFactor": 1, - "measurement": "system_cpu_usage", - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n|> range(start: -1m)\n|> filter(fn: (r) =>\n r._measurement == \"system_cpu_usage\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\"])", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": "0.9,0.95", - "title": "CPU Usage", - "transparent": false, - "type": "singlestat", - "valueFontSize": "50%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "aliasColors": { - "CPU Utilization": "#82b5d8", - "Load Average": "#bf1b00" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalPrometheus", - "fill": 2, - "gridPos": { - "h": 6, - "w": 8, - "x": 3, - "y": 36 - }, - "id": 44, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 3, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1546608984221, - "repeatPanelId": 11, - "repeatedByRow": true, - "scopedVars": { - "host": { - "selected": false, - "text": "d5a926df83bc", - "value": "d5a926df83bc" - } - }, - "seriesOverrides": [ - { - "alias": "Load Average", - "fill": 0, - "linewidth": 3, - "yaxis": 2 - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "CPU Utilization", - "expr": "system_cpu_usage{host=\"$host\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "intervalFactor": 1, - "legendFormat": "CPU Utilization", - "measurement": "system_cpu_usage", - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n|> range($range)\n|> filter(fn: (r) =>\n r._measurement == \"system_cpu_usage\" AND\n r.service == \"$service\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\"])", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$host$/" - } - ] - }, - { - "alias": "Load Average", - "expr": "system_load_average_1m{host=\"$host\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "15s" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "intervalFactor": 1, - "legendFormat": "Load Average", - "measurement": "system_load_average_1m", - "orderByTime": "ASC", - "policy": "default", - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "host", - "operator": "=~", - "value": "/^$host$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "CPU Usage", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": null, - "format": "percentunit", - "label": null, - "logBase": 1, - "max": "1.05", - "min": "0", - "show": true - }, - { - "format": "none", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalPrometheus", - "format": "percentunit", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": true, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 12, - "y": 36 - }, - "id": 45, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeat": null, - "repeatDirection": "h", - "repeatIteration": 1546608984221, - "repeatPanelId": 4, - "repeatedByRow": true, - "scopedVars": { - "host": { - "selected": false, - "text": "d5a926df83bc", - "value": "d5a926df83bc" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "expr": "(disk_total{host=\"$host\"} - disk_free{host=\"$host\"})/disk_total{host=\"$host\"}", - "format": "time_series", - "instant": true, - "intervalFactor": 1, - "query": "usedPerc = () => {\ntotal = from(bucket: \"telegraf\")\n |> range($range)\n |> filter(fn: (r) =>\n r._measurement == \"disk_total\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"service\"])\n \nfree = from(bucket: \"telegraf\")\n |> range($range)\n |> filter(fn: (r) =>\n r._measurement == \"disk_free\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"service\"])\n \nreturn join(tables:{total:total, free:free},on:[\"_time\",\"_stop\",\"_start\"])\n |> map(fn:(r) => ({\n _time: r._time,\n _value: (r._value_total - r._value_free)/r._value_total\n \n }))\n}\n\nusedPerc()", - "refId": "A" - } - ], - "thresholds": "0.9,0.95", - "title": "Disk Usage", - "type": "singlestat", - "valueFontSize": "50%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "aliasColors": { - "disk_free": "#629e51", - "disk_free ": "#629e51", - "disk_free{host=\"4d8670ccd24b\",host-address=\"172.19.0.10\",instance=\"vets-service:9093\",job=\"inspectit\",service=\"vets-service\"}": "#629e51", - "disk_used": "#1f78c1", - "disk_used ": "#1f78c1" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "LocalPrometheus", - "fill": 7, - "gridPos": { - "h": 6, - "w": 9, - "x": 15, - "y": 36 - }, - "id": 46, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatIteration": 1546608984221, - "repeatPanelId": 13, - "repeatedByRow": true, - "scopedVars": { - "host": { - "selected": false, - "text": "d5a926df83bc", - "value": "d5a926df83bc" - } - }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "expr": "disk_total{host=\"$host\"} - disk_free{host=\"$host\"}", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "disk_used", - "query": "usedPerc = () => {\ntotal = from(bucket: \"telegraf\")\n |> range($range)\n |> filter(fn: (r) =>\n r._measurement == \"disk_total\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n \nfree = from(bucket: \"telegraf\")\n |> range($range)\n |> filter(fn: (r) =>\n r._measurement == \"disk_free\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n \nreturn join(tables:{total:total, free:free},on:[\"_time\",\"_stop\",\"_start\"])\n |> map(fn:(r) => ({\n _time: r._time,\n _value: (r._value_total - r._value_free),\n _measurement: \"disk_used\"\n }))\n}\n\nusedPerc()", - "refId": "A" - }, - { - "expr": "disk_free{host=\"$host\"}", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "disk_free", - "query": "from(bucket: \"telegraf\")\n |> range($range)\n |> filter(fn: (r) =>\n r._measurement == \"disk_free\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\", \"_measurement\"])\n", - "refId": "B" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Disk Usage", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": null, - "format": "decbytes", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "LocalPrometheus", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 3, - "x": 0, - "y": 40 - }, - "id": 47, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1546608984221, - "repeatPanelId": 9, - "repeatedByRow": true, - "scopedVars": { - "host": { - "selected": false, - "text": "d5a926df83bc", - "value": "d5a926df83bc" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "expr": "system_cpu_count{host=\"$host\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": true, - "intervalFactor": 1, - "measurement": "system_cpu_count", - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n|> range(start: -1m)\n|> filter(fn: (r) =>\n r._measurement == \"system_cpu_count\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n|> keep(columns: [\"_value\", \"_time\"])\n|> last()", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": "", - "title": "# CPUs", - "transparent": false, - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#d44a3a", - "rgba(237, 129, 40, 0.89)", - "#299c46" - ], - "datasource": "LocalPrometheus", - "decimals": null, - "format": "decbytes", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 3, - "x": 12, - "y": 40 - }, - "id": 48, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1546608984221, - "repeatPanelId": 12, - "repeatedByRow": true, - "scopedVars": { - "host": { - "selected": false, - "text": "d5a926df83bc", - "value": "d5a926df83bc" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "expr": "disk_free{host=\"$host\"}", - "format": "time_series", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "instant": true, - "intervalFactor": 1, - "measurement": "system_cpu_count", - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: \"telegraf\")\n |> range(start: -1m)\n |> filter(fn: (r) =>\n r._measurement == \"disk_free\" AND\n r.host == \"$host\" AND\n r._field == \"gauge\")\n |> keep(columns: [\"_value\", \"_time\"])\n |> last()", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gauge" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "service", - "operator": "=~", - "value": "/^$service$/" - } - ] - } - ], - "thresholds": "500000,200000", - "title": "Disk Free", - "transparent": false, - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" - } - ], - "refresh": "30s", - "schemaVersion": 16, - "style": "dark", - "tags": [], - "templating": { - "list": [ - { - "allValue": null, - "current": { - "tags": [], - "text": "All", - "value": "$__all" - }, - "datasource": "LocalPrometheus", - "definition": "label_values(host)", - "hide": 0, - "includeAll": true, - "label": null, - "multi": false, - "name": "host", - "options": [], - "query": "label_values(host)", - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 0, - "tagValuesQuery": "", - "tags": [], - "tagsQuery": "", - "type": "query", - "useTags": false - } - ] - }, - "time": { - "from": "now-1h", - "to": "now" - }, - "timepicker": { - "refresh_intervals": [ - "5s", - "10s", - "30s", - "1m", - "5m", - "15m", - "30m", - "1h", - "2h", - "1d" - ], - "time_options": [ - "5m", - "15m", - "1h", - "6h", - "12h", - "24h", - "2d", - "7d", - "30d" - ] - }, - "timezone": "", - "title": "System Metrics", - "uid": "skfGrta43Ae2", - "version": 1 -} \ No newline at end of file diff --git a/inspectit-ocelot-demo/grafana/provisioning/prometheus/dashboards/dashboards.yml b/inspectit-ocelot-demo/grafana/provisioning/prometheus/dashboards/dashboards.yml deleted file mode 100644 index ca514b8861..0000000000 --- a/inspectit-ocelot-demo/grafana/provisioning/prometheus/dashboards/dashboards.yml +++ /dev/null @@ -1,19 +0,0 @@ -apiVersion: 1 - -providers: -- name: 'default' - orgId: 1 - folder: '' - type: file - disableDeletion: false - updateIntervalSeconds: 10 #how often Grafana will scan for changed dashboards - options: - path: /usr/share/grafana/custom/dashboards -- name: 'agent' - orgId: 1 - folder: 'agent' - type: file - disableDeletion: false - updateIntervalSeconds: 10 #how often Grafana will scan for changed dashboards - options: - path: /usr/share/grafana/custom/dashboards/agent \ No newline at end of file diff --git a/inspectit-ocelot-demo/grafana/provisioning/prometheus/datasources/prometheus.yml b/inspectit-ocelot-demo/grafana/provisioning/prometheus/datasources/prometheus.yml deleted file mode 100644 index 7c9f473cf9..0000000000 --- a/inspectit-ocelot-demo/grafana/provisioning/prometheus/datasources/prometheus.yml +++ /dev/null @@ -1,47 +0,0 @@ -# config file version -apiVersion: 1 - -# list of datasources to insert/update depending -# what's available in the database -datasources: - # name of the datasource. Required -- name: LocalPrometheus - # datasource type. Required - type: prometheus - # access mode. proxy or direct (Server or Browser in the UI). Required - access: proxy - # org id. will default to orgId 1 if not specified - orgId: 1 - # url - url: http://prometheus:9090 - # database password, if used - password: - # database user, if used - user: - # database name, if used - database: - # enable/disable basic auth - basicAuth: - # basic auth username - basicAuthUser: - # basic auth password - basicAuthPassword: - # enable/disable with credentials headers - withCredentials: - # mark as default datasource. Max one per org - isDefault: - # fields that will be converted to json and stored in jsonData - #jsonData: - # graphiteVersion: "1.1" - # tlsAuth: true - # tlsAuthWithCACert: true - # json object of data that will be encrypted. - jsonData: - timeInterval: "15s" - secureJsonData: - tlsCACert: "..." - tlsClientCert: "..." - tlsClientKey: "..." - version: 1 - # allow users to edit datasources from the UI. - editable: false \ No newline at end of file diff --git a/inspectit-ocelot-demo/influx/continous-queries.iql b/inspectit-ocelot-demo/influx/continous-queries.iql deleted file mode 100644 index 09d8ff1fd6..0000000000 --- a/inspectit-ocelot-demo/influx/continous-queries.iql +++ /dev/null @@ -1,11 +0,0 @@ -CREATE DATABASE "inspectit"; -CREATE DATABASE "inspectit_eum"; -CREATE CONTINUOUS QUERY instrumentation_state_loaded ON inspectit BEGIN SELECT LAST(value) AS loaded INTO inspectit.autogen.instrumentation_state FROM inspectit.autogen.jvm_classes_loaded GROUP BY time(5s), * END; -CREATE CONTINUOUS QUERY instrumentation_state_instrumented ON inspectit BEGIN SELECT LAST(value) AS instrumented INTO inspectit.autogen.instrumentation_state FROM inspectit.autogen.inspectit_self_instrumented_classes GROUP BY time(5s), * END; -CREATE CONTINUOUS QUERY instrumentation_state_queuesize ON inspectit BEGIN SELECT LAST(value) AS queuesize INTO inspectit.autogen.instrumentation_state FROM inspectit.autogen.inspectit_self_instrumentation_queue_size GROUP BY time(5s), * END; -CREATE CONTINUOUS QUERY disk_usage_total ON inspectit BEGIN SELECT LAST(value) AS total INTO inspectit.autogen.disk_usage FROM inspectit.autogen.disk_total GROUP BY time(5s), * END; -CREATE CONTINUOUS QUERY disk_usage_free ON inspectit BEGIN SELECT LAST(value) AS free INTO inspectit.autogen.disk_usage FROM inspectit.autogen.disk_free GROUP BY time(5s), * END; -CREATE CONTINUOUS QUERY http_out_error_total ON inspectit BEGIN SELECT SUM(count) AS count INTO inspectit.autogen.http_out_error FROM inspectit.autogen.http_out_responsetime GROUP BY time(5s), * END; -CREATE CONTINUOUS QUERY http_out_error_count ON inspectit BEGIN SELECT SUM(count) AS errorcount INTO inspectit.autogen.http_out_error FROM inspectit.autogen.http_out_responsetime WHERE "error"='true' GROUP BY time(5s), * END; -CREATE CONTINUOUS QUERY http_in_error_total ON inspectit BEGIN SELECT SUM(count) AS count INTO inspectit.autogen.http_in_error FROM inspectit.autogen.http_in_responsetime GROUP BY time(5s), * END; -CREATE CONTINUOUS QUERY http_in_error_count ON inspectit BEGIN SELECT SUM(count) AS errorcount INTO inspectit.autogen.http_in_error FROM inspectit.autogen.http_in_responsetime WHERE "error"='true' GROUP BY time(5s), * END; diff --git a/inspectit-ocelot-demo/load/Dockerfile b/inspectit-ocelot-demo/load/Dockerfile deleted file mode 100644 index 937fcff867..0000000000 --- a/inspectit-ocelot-demo/load/Dockerfile +++ /dev/null @@ -1,15 +0,0 @@ -FROM node:8-alpine - -WORKDIR /artillery - -COPY load-script.yml /artillery/load-script.yml -COPY docker-entrypoint.sh /artillery/docker-entrypoint.sh - -# No need to pin version of curl -# hadolint ignore=DL3018 -RUN npm install -g artillery@1.6.0-26 --unsafe-perm=true --allow-root && \ - apk add --no-cache curl && \ - chmod +x /artillery/docker-entrypoint.sh - -ENTRYPOINT ["/artillery/docker-entrypoint.sh"] -CMD ["run", "load-script.yml"] diff --git a/inspectit-ocelot-demo/load/docker-entrypoint.sh b/inspectit-ocelot-demo/load/docker-entrypoint.sh deleted file mode 100644 index 159f3fc739..0000000000 --- a/inspectit-ocelot-demo/load/docker-entrypoint.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/ash -set -e - -until $(curl --output /dev/null --silent --fail http://api-gateway:8080); do - printf 'waiting for API Gateway ...\n' - sleep 10 -done - -sleep 30 - -while true; do artillery "$@"; done diff --git a/inspectit-ocelot-demo/load/load-script.yml b/inspectit-ocelot-demo/load/load-script.yml deleted file mode 100644 index 4244a04726..0000000000 --- a/inspectit-ocelot-demo/load/load-script.yml +++ /dev/null @@ -1,63 +0,0 @@ -config: - target: 'http://api-gateway:8080' - phases: - - duration: 600 - arrivalCount: 200 -scenarios: - - name: "View owner" - weight: 4 - flow: - - get: - url: "/" - - think: 1 - - get: - url: "/api/customer/owners" - capture: - json: "$[*].id" - as: "ownerId" - - think: 1 - - get: - url: "/api/gateway/owners/{{ ownerId }}" - - think: 1 - - get: - url: "/api/vet/vets" - - name: "Edit pet type" - weight: 2 - flow: - - get: - url: "/" - - think: 1 - - get: - url: "/api/customer/owners" - capture: - json: "$[*].id" - as: "ownerId" - - think: 1 - - get: - url: "/api/gateway/owners/{{ ownerId }}" - capture: - json: "$.pets[*].id" - as: "petId" - - think: 1 - - get: - url: "/api/customer/owners/{{ ownerId }}/pets/{{ petId }}" - capture: - - json: "$.name" - as: "petName" - - json: "$.birthDate" - as: "petBirthDate" - - get: - url: "/api/customer/petTypes" - capture: - json: "$[*].id" - as: "petTypeId" - - think: 1 - - put: - url: "/api/customer/owners/{{ ownerId }}/pets/{{ petId }}" - json: - birthDate: "{{ petBirthDate }}" - id: "{{ petId }}" - name: "{{ petName }}" - typeId: "{{ petTypeId }}" - - get: - url: "/api/customer/owners" diff --git a/inspectit-ocelot-demo/prometheus/prometheus.yml b/inspectit-ocelot-demo/prometheus/prometheus.yml deleted file mode 100644 index 105e0220c4..0000000000 --- a/inspectit-ocelot-demo/prometheus/prometheus.yml +++ /dev/null @@ -1,14 +0,0 @@ -# my global config -global: - scrape_interval: 1s - -scrape_configs: -- job_name: inspectit - # scrape_interval is defined by the configured global (15s). - # scrape_timeout is defined by the global default (10s). - - # metrics_path defaults to '/metrics' - # scheme defaults to 'http'. - - static_configs: - - targets: ['customers-service:9091', 'visits-service:9092','vets-service:9093','api-gateway:9094','discovery-server:9095','config-server:9096','ocelot-eum-server:9097'] diff --git a/inspectit-ocelot-demo/telegraf/telegraf-influx.conf b/inspectit-ocelot-demo/telegraf/telegraf-influx.conf deleted file mode 100644 index 73238f2446..0000000000 --- a/inspectit-ocelot-demo/telegraf/telegraf-influx.conf +++ /dev/null @@ -1,1250 +0,0 @@ -# Telegraf Configuration -# -# Telegraf is entirely plugin driven. All metrics are gathered from the -# declared inputs, and sent to the declared outputs. -# -# Plugins must be declared in here to be active. -# To deactivate a plugin, comment out the name and any variables. -# -# Use 'telegraf -config telegraf.conf -test' to see what metrics a config -# file would generate. -# -# Environment variables can be used anywhere in this config file, simply prepend -# them with $. For strings the variable must be within quotes (ie, "$STR_VAR"), -# for numbers and booleans they should be plain (ie, $INT_VAR, $BOOL_VAR) - - -# Global tags can be specified here in key="value" format. -[global_tags] -# dc = "us-east-1" # will tag all metrics with dc=us-east-1 -# rack = "1a" -## Environment variables can be used as tags, and throughout the config file -# user = "$USER" - - -# Configuration for telegraf agent -[agent] -## Default data collection interval for all inputs -interval = "1s" -## Rounds collection interval to 'interval' -## ie, if interval="10s" then always collect on :00, :10, :20, etc. -round_interval = true - -## Telegraf will send metrics to outputs in batches of at most -## metric_batch_size metrics. -## This controls the size of writes that Telegraf sends to output plugins. -metric_batch_size = 1000 - -## For failed writes, telegraf will cache metric_buffer_limit metrics for each -## output, and will flush this buffer on a successful write. Oldest metrics -## are dropped first when this buffer fills. -## This buffer only fills when writes fail to output plugin(s). -metric_buffer_limit = 10000 - -## Collection jitter is used to jitter the collection by a random amount. -## Each plugin will sleep for a random time within jitter before collecting. -## This can be used to avoid many plugins querying things like sysfs at the -## same time, which can have a measurable effect on the system. -collection_jitter = "0s" - -## Default flushing interval for all outputs. Maximum flush_interval will be -## flush_interval + flush_jitter -flush_interval = "10s" -## Jitter the flush interval by a random amount. This is primarily to avoid -## large write spikes for users running a large number of telegraf instances. -## ie, a jitter of 5s and interval 10s means flushes will happen every 10-15s -flush_jitter = "0s" - -## By default or when set to "0s", precision will be set to the same -## timestamp order as the collection interval, with the maximum being 1s. -## ie, when interval = "10s", precision will be "1s" -## when interval = "250ms", precision will be "1ms" -## Precision will NOT be used for service inputs. It is up to each individual -## service input to set the timestamp at the appropriate precision. -## Valid time units are "ns", "us" (or "µs"), "ms", "s". -precision = "" - -## Logging configuration: -## Run telegraf with debug log messages. -debug = false -## Run telegraf in quiet mode (error log messages only). -quiet = false -## Specify the log file name. The empty string means to log to stderr. -logfile = "" - -## Override default hostname, if empty use os.Hostname() -hostname = "" -## If set to true, do no set the "host" tag in the telegraf agent. -omit_hostname = true - - -############################################################################### -# OUTPUT PLUGINS # -############################################################################### - -# Configuration for sending metrics to InfluxDB -[[outputs.influxdb]] -## The full HTTP or UDP URL for your InfluxDB instance. -## -## Multiple URLs can be specified for a single cluster, only ONE of the -## urls will be written to each interval. -# urls = ["unix:///var/run/influxdb.sock"] -# urls = ["udp://127.0.0.1:8089"] -urls = ["http://influxdb:8086"] - -## The target database for metrics; will be created as needed. -# database = "telegraf" - -## If true, no CREATE DATABASE queries will be sent. Set to true when using -## Telegraf with a user without permissions to create databases or when the -## database already exists. -# skip_database_creation = false - -## Name of existing retention policy to write to. Empty string writes to -## the default retention policy. Only takes effect when using HTTP. -# retention_policy = "" - -## Write consistency (clusters only), can be: "any", "one", "quorum", "all". -## Only takes effect when using HTTP. -# write_consistency = "any" - -## Timeout for HTTP messages. -# timeout = "5s" - -## HTTP Basic Auth -# username = "telegraf" -# password = "metricsmetricsmetricsmetrics" - -## HTTP User-Agent -# user_agent = "telegraf" - -## UDP payload size is the maximum packet size to send. -# udp_payload = 512 - -## Optional TLS Config for use on HTTP connections. -# tls_ca = "/etc/telegraf/ca.pem" -# tls_cert = "/etc/telegraf/cert.pem" -# tls_key = "/etc/telegraf/key.pem" -## Use TLS but skip chain & host verification -# insecure_skip_verify = false - -## HTTP Proxy override, if unset values the standard proxy environment -## variables are consulted to determine which proxy, if any, should be used. -# http_proxy = "http://corporate.proxy:3128" - -## Additional HTTP headers -# http_headers = {"X-Special-Header" = "Special-Value"} - -## HTTP Content-Encoding for write request body, can be set to "gzip" to -## compress body or "identity" to apply no encoding. -# content_encoding = "identity" - -## When true, Telegraf will output unsigned integers as unsigned values, -## i.e.: "42u". You will need a version of InfluxDB supporting unsigned -## integer values. Enabling this option will result in field type errors if -## existing data has been written. -# influx_uint_support = false - - -# # Configuration for Amon Server to send metrics to. -# [[outputs.amon]] -# ## Amon Server Key -# server_key = "my-server-key" # required. -# -# ## Amon Instance URL -# amon_instance = "https://youramoninstance" # required -# -# ## Connection timeout. -# # timeout = "5s" - - -# # Publishes metrics to an AMQP broker -# [[outputs.amqp]] -# ## Broker to publish to. -# ## deprecated in 1.7; use the brokers option -# # url = "amqp://localhost:5672/influxdb" -# -# ## Brokers to publish to. If multiple brokers are specified a random broker -# ## will be selected anytime a connection is established. This can be -# ## helpful for load balancing when not using a dedicated load balancer. -# brokers = ["amqp://localhost:5672/influxdb"] -# -# ## Maximum messages to send over a connection. Once this is reached, the -# ## connection is closed and a new connection is made. This can be helpful for -# ## load balancing when not using a dedicated load balancer. -# # max_messages = 0 -# -# ## Exchange to declare and publish to. -# exchange = "telegraf" -# -# ## Exchange type; common types are "direct", "fanout", "topic", "header", "x-consistent-hash". -# # exchange_type = "topic" -# -# ## If true, exchange will be passively declared. -# # exchange_declare_passive = false -# -# ## Exchange durability can be either "transient" or "durable". -# # exchange_durability = "durable" -# -# ## Additional exchange arguments. -# # exchange_arguments = { } -# # exchange_arguments = {"hash_propery" = "timestamp"} -# -# ## Authentication credentials for the PLAIN auth_method. -# # username = "" -# # password = "" -# -# ## Auth method. PLAIN and EXTERNAL are supported -# ## Using EXTERNAL requires enabling the rabbitmq_auth_mechanism_ssl plugin as -# ## described here: https://www.rabbitmq.com/plugins.html -# # auth_method = "PLAIN" -# -# ## Metric tag to use as a routing key. -# ## ie, if this tag exists, its value will be used as the routing key -# # routing_tag = "host" -# -# ## Static routing key. Used when no routing_tag is set or as a fallback -# ## when the tag specified in routing tag is not found. -# # routing_key = "" -# # routing_key = "telegraf" -# -# ## Delivery Mode controls if a published message is persistent. -# ## One of "transient" or "persistent". -# # delivery_mode = "transient" -# -# ## InfluxDB database added as a message header. -# ## deprecated in 1.7; use the headers option -# # database = "telegraf" -# -# ## InfluxDB retention policy added as a message header -# ## deprecated in 1.7; use the headers option -# # retention_policy = "default" -# -# ## Static headers added to each published message. -# # headers = { } -# # headers = {"database" = "telegraf", "retention_policy" = "default"} -# -# ## Connection timeout. If not provided, will default to 5s. 0s means no -# ## timeout (not recommended). -# # timeout = "5s" -# -# ## Optional TLS Config -# # tls_ca = "/etc/telegraf/ca.pem" -# # tls_cert = "/etc/telegraf/cert.pem" -# # tls_key = "/etc/telegraf/key.pem" -# ## Use TLS but skip chain & host verification -# # insecure_skip_verify = false -# -# ## If true use batch serialization format instead of line based delimiting. -# ## Only applies to data formats which are not line based such as JSON. -# ## Recommended to set to true. -# # use_batch_format = false -# -# ## Data format to output. -# ## Each data format has its own unique set of configuration options, read -# ## more about them here: -# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md -# # data_format = "influx" - - -# # Send metrics to Azure Application Insights -# [[outputs.application_insights]] -# ## Instrumentation key of the Application Insights resource. -# instrumentation_key = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx" -# -# ## Timeout for closing (default: 5s). -# # timeout = "5s" -# -# ## Enable additional diagnostic logging. -# # enable_diagnostic_logging = false -# -# ## Context Tag Sources add Application Insights context tags to a tag value. -# ## -# ## For list of allowed context tag keys see: -# ## https://github.com/Microsoft/ApplicationInsights-Go/blob/master/appinsights/contracts/contexttagkeys.go -# # [outputs.application_insights.context_tag_sources] -# # "ai.cloud.role" = "kubernetes_container_name" -# # "ai.cloud.roleInstance" = "kubernetes_pod_name" - - -# # Send aggregate metrics to Azure Monitor -# [[outputs.azure_monitor]] -# ## Timeout for HTTP writes. -# # timeout = "20s" -# -# ## Set the namespace prefix, defaults to "Telegraf/". -# # namespace_prefix = "Telegraf/" -# -# ## Azure Monitor doesn't have a string value type, so convert string -# ## fields to dimensions (a.k.a. tags) if enabled. Azure Monitor allows -# ## a maximum of 10 dimensions so Telegraf will only send the first 10 -# ## alphanumeric dimensions. -# # strings_as_dimensions = false -# -# ## Both region and resource_id must be set or be available via the -# ## Instance Metadata service on Azure Virtual Machines. -# # -# ## Azure Region to publish metrics against. -# ## ex: region = "southcentralus" -# # region = "" -# # -# ## The Azure Resource ID against which metric will be logged, e.g. -# ## ex: resource_id = "/subscriptions//resourceGroups//providers/Microsoft.Compute/virtualMachines/" -# # resource_id = "" - - -# # Configuration for AWS CloudWatch output. -# [[outputs.cloudwatch]] -# ## Amazon REGION -# region = "us-east-1" -# -# ## Amazon Credentials -# ## Credentials are loaded in the following order -# ## 1) Assumed credentials via STS if role_arn is specified -# ## 2) explicit credentials from 'access_key' and 'secret_key' -# ## 3) shared profile from 'profile' -# ## 4) environment variables -# ## 5) shared credentials file -# ## 6) EC2 Instance Profile -# #access_key = "" -# #secret_key = "" -# #token = "" -# #role_arn = "" -# #profile = "" -# #shared_credential_file = "" -# -# ## Endpoint to make request against, the correct endpoint is automatically -# ## determined and this option should only be set if you wish to override the -# ## default. -# ## ex: endpoint_url = "http://localhost:8000" -# # endpoint_url = "" -# -# ## Namespace for the CloudWatch MetricDatums -# namespace = "InfluxData/Telegraf" -# -# ## If you have a large amount of metrics, you should consider to send statistic -# ## values instead of raw metrics which could not only improve performance but -# ## also save AWS API cost. If enable this flag, this plugin would parse the required -# ## CloudWatch statistic fields (count, min, max, and sum) and send them to CloudWatch. -# ## You could use basicstats aggregator to calculate those fields. If not all statistic -# ## fields are available, all fields would still be sent as raw metrics. -# # write_statistics = false - - -# # Configuration for CrateDB to send metrics to. -# [[outputs.cratedb]] -# # A github.com/jackc/pgx connection string. -# # See https://godoc.org/github.com/jackc/pgx#ParseDSN -# url = "postgres://user:password@localhost/schema?sslmode=disable" -# # Timeout for all CrateDB queries. -# timeout = "5s" -# # Name of the table to store metrics in. -# table = "metrics" -# # If true, and the metrics table does not exist, create it automatically. -# table_create = true - - -# # Configuration for DataDog API to send metrics to. -# [[outputs.datadog]] -# ## Datadog API key -# apikey = "my-secret-key" # required. -# -# ## Connection timeout. -# # timeout = "5s" - - -# # Send metrics to nowhere at all -# [[outputs.discard]] -# # no configuration - - -# # Configuration for Elasticsearch to send metrics to. -# [[outputs.elasticsearch]] -# ## The full HTTP endpoint URL for your Elasticsearch instance -# ## Multiple urls can be specified as part of the same cluster, -# ## this means that only ONE of the urls will be written to each interval. -# urls = [ "http://elasticsearch:9200" ] # required. -# ## Elasticsearch client timeout, defaults to "5s" if not set. -# timeout = "5s" -# ## Set to true to ask Elasticsearch a list of all cluster nodes, -# ## thus it is not necessary to list all nodes in the urls config option. -# enable_sniffer = false -# ## Set the interval to check if the Elasticsearch nodes are available -# ## Setting to "0s" will disable the health check (not recommended in production) -# health_check_interval = "0s" -# ## HTTP basic authentication details (eg. when using Shield) -# # username = "telegraf" -# # password = "mypassword" -# -# ## Index Config -# ## The target index for metrics (Elasticsearch will create if it not exists). -# ## You can use the date specifiers below to create indexes per time frame. -# ## The metric timestamp will be used to decide the destination index name -# # %Y - year (2016) -# # %y - last two digits of year (00..99) -# # %m - month (01..12) -# # %d - day of month (e.g., 01) -# # %H - hour (00..23) -# # %V - week of the year (ISO week) (01..53) -# ## Additionally, you can specify a tag name using the notation {{tag_name}} -# ## which will be used as part of the index name. If the tag does not exist, -# ## the default tag value will be used. -# index_name = "inspectit-%Y.%m.%d" -# # default_tag_value = "none" -# index_name = "telegraf-%Y.%m.%d" # required. -# -# ## Optional TLS Config -# # tls_ca = "/etc/telegraf/ca.pem" -# # tls_cert = "/etc/telegraf/cert.pem" -# # tls_key = "/etc/telegraf/key.pem" -# ## Use TLS but skip chain & host verification -# # insecure_skip_verify = false -# -# ## Template Config -# ## Set to true if you want telegraf to manage its index template. -# ## If enabled it will create a recommended index template for telegraf indexes -# manage_template = true -# ## The template name used for telegraf indexes -# template_name = "telegraf" -# ## Set to true if you want telegraf to overwrite an existing template -# overwrite_template = false - - -# # Send telegraf metrics to file(s) -# [[outputs.file]] -# ## Files to write to, "stdout" is a specially handled file. -# files = ["stdout", "/tmp/metrics.out"] -# -# ## Data format to output. -# ## Each data format has its own unique set of configuration options, read -# ## more about them here: -# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md -# data_format = "influx" - - -# # Configuration for Graphite server to send metrics to -# [[outputs.graphite]] -# ## TCP endpoint for your graphite instance. -# ## If multiple endpoints are configured, output will be load balanced. -# ## Only one of the endpoints will be written to with each iteration. -# servers = ["localhost:2003"] -# ## Prefix metrics name -# prefix = "" -# ## Graphite output template -# ## see https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md -# template = "host.tags.measurement.field" -# -# ## Enable Graphite tags support -# # graphite_tag_support = false -# -# ## timeout in seconds for the write connection to graphite -# timeout = 2 -# -# ## Optional TLS Config -# # tls_ca = "/etc/telegraf/ca.pem" -# # tls_cert = "/etc/telegraf/cert.pem" -# # tls_key = "/etc/telegraf/key.pem" -# ## Use TLS but skip chain & host verification -# # insecure_skip_verify = false - - -# # Send telegraf metrics to graylog(s) -# [[outputs.graylog]] -# ## UDP endpoint for your graylog instance. -# servers = ["127.0.0.1:12201", "192.168.1.1:12201"] - - -# # A plugin that can transmit metrics over HTTP -# [[outputs.http]] -# ## URL is the address to send metrics to -# url = "http://127.0.0.1:8080/metric" -# -# ## Timeout for HTTP message -# # timeout = "5s" -# -# ## HTTP method, one of: "POST" or "PUT" -# # method = "POST" -# -# ## HTTP Basic Auth credentials -# # username = "username" -# # password = "pa$$word" -# -# ## OAuth2 Client Credentials Grant -# # client_id = "clientid" -# # client_secret = "secret" -# # token_url = "https://indentityprovider/oauth2/v1/token" -# # scopes = ["urn:opc:idm:__myscopes__"] -# -# ## Optional TLS Config -# # tls_ca = "/etc/telegraf/ca.pem" -# # tls_cert = "/etc/telegraf/cert.pem" -# # tls_key = "/etc/telegraf/key.pem" -# ## Use TLS but skip chain & host verification -# # insecure_skip_verify = false -# -# ## Data format to output. -# ## Each data format has it's own unique set of configuration options, read -# ## more about them here: -# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md -# # data_format = "influx" -# -# ## Additional HTTP headers -# # [outputs.http.headers] -# # # Should be set manually to "application/json" for json data_format -# # Content-Type = "text/plain; charset=utf-8" - - -# # Configuration for sending metrics to InfluxDB -# [[outputs.influxdb_v2]] -# ## The URLs of the InfluxDB cluster nodes. -# ## -# ## Multiple URLs can be specified for a single cluster, only ONE of the -# ## urls will be written to each interval. -# urls = ["http://127.0.0.1:9999"] -# -# ## Token for authentication. -# token = "" -# -# ## Organization is the name of the organization you wish to write to; must exist. -# organization = "" -# -# ## Bucket to the name fo the bucketwrite into; must exist. -# bucket = "" -# -# ## Timeout for HTTP messages. -# # timeout = "5s" -# -# ## Additional HTTP headers -# # http_headers = {"X-Special-Header" = "Special-Value"} -# -# ## HTTP Proxy override, if unset values the standard proxy environment -# ## variables are consulted to determine which proxy, if any, should be used. -# # http_proxy = "http://corporate.proxy:3128" -# -# ## HTTP User-Agent -# # user_agent = "telegraf" -# -# ## Content-Encoding for write request body, can be set to "gzip" to -# ## compress body or "identity" to apply no encoding. -# # content_encoding = "gzip" -# -# ## Enable or disable uint support for writing uints influxdb 2.0. -# # influx_uint_support = false -# -# ## Optional TLS Config for use on HTTP connections. -# # tls_ca = "/etc/telegraf/ca.pem" -# # tls_cert = "/etc/telegraf/cert.pem" -# # tls_key = "/etc/telegraf/key.pem" -# ## Use TLS but skip chain & host verification -# # insecure_skip_verify = false - - -# # Configuration for sending metrics to an Instrumental project -# [[outputs.instrumental]] -# ## Project API Token (required) -# api_token = "API Token" # required -# ## Prefix the metrics with a given name -# prefix = "" -# ## Stats output template (Graphite formatting) -# ## see https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md#graphite -# template = "host.tags.measurement.field" -# ## Timeout in seconds to connect -# timeout = "2s" -# ## Display Communcation to Instrumental -# debug = false - - -# # Configuration for the Kafka server to send metrics to -# [[outputs.kafka]] -# ## URLs of kafka brokers -# brokers = ["localhost:9092"] -# ## Kafka topic for producer messages -# topic = "telegraf" -# -# ## Optional Client id -# # client_id = "Telegraf" -# -# ## Set the minimal supported Kafka version. Setting this enables the use of new -# ## Kafka features and APIs. Of particular interest, lz4 compression -# ## requires at least version 0.10.0.0. -# ## ex: version = "1.1.0" -# # version = "" -# -# ## Optional topic suffix configuration. -# ## If the section is omitted, no suffix is used. -# ## Following topic suffix methods are supported: -# ## measurement - suffix equals to separator + measurement's name -# ## tags - suffix equals to separator + specified tags' values -# ## interleaved with separator -# -# ## Suffix equals to "_" + measurement name -# # [outputs.kafka.topic_suffix] -# # method = "measurement" -# # separator = "_" -# -# ## Suffix equals to "__" + measurement's "foo" tag value. -# ## If there's no such a tag, suffix equals to an empty string -# # [outputs.kafka.topic_suffix] -# # method = "tags" -# # keys = ["foo"] -# # separator = "__" -# -# ## Suffix equals to "_" + measurement's "foo" and "bar" -# ## tag values, separated by "_". If there is no such tags, -# ## their values treated as empty strings. -# # [outputs.kafka.topic_suffix] -# # method = "tags" -# # keys = ["foo", "bar"] -# # separator = "_" -# -# ## Telegraf tag to use as a routing key -# ## ie, if this tag exists, its value will be used as the routing key -# routing_tag = "host" -# -# ## Static routing key. Used when no routing_tag is set or as a fallback -# ## when the tag specified in routing tag is not found. If set to "random", -# ## a random value will be generated for each message. -# ## ex: routing_key = "random" -# ## routing_key = "telegraf" -# # routing_key = "" -# -# ## CompressionCodec represents the various compression codecs recognized by -# ## Kafka in messages. -# ## 0 : No compression -# ## 1 : Gzip compression -# ## 2 : Snappy compression -# ## 3 : LZ4 compression -# # compression_codec = 0 -# -# ## RequiredAcks is used in Produce Requests to tell the broker how many -# ## replica acknowledgements it must see before responding -# ## 0 : the producer never waits for an acknowledgement from the broker. -# ## This option provides the lowest latency but the weakest durability -# ## guarantees (some data will be lost when a server fails). -# ## 1 : the producer gets an acknowledgement after the leader replica has -# ## received the data. This option provides better durability as the -# ## client waits until the server acknowledges the request as successful -# ## (only messages that were written to the now-dead leader but not yet -# ## replicated will be lost). -# ## -1: the producer gets an acknowledgement after all in-sync replicas have -# ## received the data. This option provides the best durability, we -# ## guarantee that no messages will be lost as long as at least one in -# ## sync replica remains. -# # required_acks = -1 -# -# ## The maximum number of times to retry sending a metric before failing -# ## until the next flush. -# # max_retry = 3 -# -# ## The maximum permitted size of a message. Should be set equal to or -# ## smaller than the broker's 'message.max.bytes'. -# # max_message_bytes = 1000000 -# -# ## Optional TLS Config -# # tls_ca = "/etc/telegraf/ca.pem" -# # tls_cert = "/etc/telegraf/cert.pem" -# # tls_key = "/etc/telegraf/key.pem" -# ## Use TLS but skip chain & host verification -# # insecure_skip_verify = false -# -# ## Optional SASL Config -# # sasl_username = "kafka" -# # sasl_password = "secret" -# -# ## Data format to output. -# ## Each data format has its own unique set of configuration options, read -# ## more about them here: -# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md -# # data_format = "influx" - - -# # Configuration for the AWS Kinesis output. -# [[outputs.kinesis]] -# ## Amazon REGION of kinesis endpoint. -# region = "ap-southeast-2" -# -# ## Amazon Credentials -# ## Credentials are loaded in the following order -# ## 1) Assumed credentials via STS if role_arn is specified -# ## 2) explicit credentials from 'access_key' and 'secret_key' -# ## 3) shared profile from 'profile' -# ## 4) environment variables -# ## 5) shared credentials file -# ## 6) EC2 Instance Profile -# #access_key = "" -# #secret_key = "" -# #token = "" -# #role_arn = "" -# #profile = "" -# #shared_credential_file = "" -# -# ## Endpoint to make request against, the correct endpoint is automatically -# ## determined and this option should only be set if you wish to override the -# ## default. -# ## ex: endpoint_url = "http://localhost:8000" -# # endpoint_url = "" -# -# ## Kinesis StreamName must exist prior to starting telegraf. -# streamname = "StreamName" -# ## DEPRECATED: PartitionKey as used for sharding data. -# partitionkey = "PartitionKey" -# ## DEPRECATED: If set the paritionKey will be a random UUID on every put. -# ## This allows for scaling across multiple shards in a stream. -# ## This will cause issues with ordering. -# use_random_partitionkey = false -# ## The partition key can be calculated using one of several methods: -# ## -# ## Use a static value for all writes: -# # [outputs.kinesis.partition] -# # method = "static" -# # key = "howdy" -# # -# ## Use a random partition key on each write: -# # [outputs.kinesis.partition] -# # method = "random" -# # -# ## Use the measurement name as the partition key: -# # [outputs.kinesis.partition] -# # method = "measurement" -# # -# ## Use the value of a tag for all writes, if the tag is not set the empty -# ## string will be used: -# # [outputs.kinesis.partition] -# # method = "tag" -# # key = "host" -# -# -# ## Data format to output. -# ## Each data format has its own unique set of configuration options, read -# ## more about them here: -# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md -# data_format = "influx" -# -# ## debug will show upstream aws messages. -# debug = false - - -# # Configuration for Librato API to send metrics to. -# [[outputs.librato]] -# ## Librator API Docs -# ## http://dev.librato.com/v1/metrics-authentication -# ## Librato API user -# api_user = "telegraf@influxdb.com" # required. -# ## Librato API token -# api_token = "my-secret-token" # required. -# ## Debug -# # debug = false -# ## Connection timeout. -# # timeout = "5s" -# ## Output source Template (same as graphite buckets) -# ## see https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md#graphite -# ## This template is used in librato's source (not metric's name) -# template = "host" -# - - -# # Configuration for MQTT server to send metrics to -# [[outputs.mqtt]] -# servers = ["localhost:1883"] # required. -# -# ## MQTT outputs send metrics to this topic format -# ## "///" -# ## ex: prefix/web01.example.com/mem -# topic_prefix = "telegraf" -# -# ## QoS policy for messages -# ## 0 = at most once -# ## 1 = at least once -# ## 2 = exactly once -# # qos = 2 -# -# ## username and password to connect MQTT server. -# # username = "telegraf" -# # password = "metricsmetricsmetricsmetrics" -# -# ## client ID, if not set a random ID is generated -# # client_id = "" -# -# ## Timeout for write operations. default: 5s -# # timeout = "5s" -# -# ## Optional TLS Config -# # tls_ca = "/etc/telegraf/ca.pem" -# # tls_cert = "/etc/telegraf/cert.pem" -# # tls_key = "/etc/telegraf/key.pem" -# ## Use TLS but skip chain & host verification -# # insecure_skip_verify = false -# -# ## When true, metrics will be sent in one MQTT message per flush. Otherwise, -# ## metrics are written one metric per MQTT message. -# # batch = false -# -# ## Data format to output. -# ## Each data format has its own unique set of configuration options, read -# ## more about them here: -# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md -# data_format = "influx" - - -# # Send telegraf measurements to NATS -# [[outputs.nats]] -# ## URLs of NATS servers -# servers = ["nats://localhost:4222"] -# ## Optional credentials -# # username = "" -# # password = "" -# ## NATS subject for producer messages -# subject = "telegraf" -# -# ## Optional TLS Config -# # tls_ca = "/etc/telegraf/ca.pem" -# # tls_cert = "/etc/telegraf/cert.pem" -# # tls_key = "/etc/telegraf/key.pem" -# ## Use TLS but skip chain & host verification -# # insecure_skip_verify = false -# -# ## Data format to output. -# ## Each data format has its own unique set of configuration options, read -# ## more about them here: -# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md -# data_format = "influx" - - -# # Send telegraf measurements to NSQD -# [[outputs.nsq]] -# ## Location of nsqd instance listening on TCP -# server = "localhost:4150" -# ## NSQ topic for producer messages -# topic = "telegraf" -# -# ## Data format to output. -# ## Each data format has its own unique set of configuration options, read -# ## more about them here: -# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md -# data_format = "influx" - - -# # Configuration for OpenTSDB server to send metrics to -# [[outputs.opentsdb]] -# ## prefix for metrics keys -# prefix = "my.specific.prefix." -# -# ## DNS name of the OpenTSDB server -# ## Using "opentsdb.example.com" or "tcp://opentsdb.example.com" will use the -# ## telnet API. "http://opentsdb.example.com" will use the Http API. -# host = "opentsdb.example.com" -# -# ## Port of the OpenTSDB server -# port = 4242 -# -# ## Number of data points to send to OpenTSDB in Http requests. -# ## Not used with telnet API. -# http_batch_size = 50 -# -# ## URI Path for Http requests to OpenTSDB. -# ## Used in cases where OpenTSDB is located behind a reverse proxy. -# http_path = "/api/put" -# -# ## Debug true - Prints OpenTSDB communication -# debug = false -# -# ## Separator separates measurement name from field -# separator = "_" - - -# # Configuration for the Prometheus client to spawn -# [[outputs.prometheus_client]] -# ## Address to listen on -# listen = ":9273" -# -# ## Use HTTP Basic Authentication. -# # basic_username = "Foo" -# # basic_password = "Bar" -# -# ## If set, the IP Ranges which are allowed to access metrics. -# ## ex: ip_range = ["192.168.0.0/24", "192.168.1.0/30"] -# # ip_range = [] -# -# ## Path to publish the metrics on. -# # path = "/metrics" -# -# ## Expiration interval for each metric. 0 == no expiration -# # expiration_interval = "60s" -# -# ## Collectors to enable, valid entries are "gocollector" and "process". -# ## If unset, both are enabled. -# # collectors_exclude = ["gocollector", "process"] -# -# ## Send string metrics as Prometheus labels. -# ## Unless set to false all string metrics will be sent as labels. -# # string_as_label = true -# -# ## If set, enable TLS with the given certificate. -# # tls_cert = "/etc/ssl/telegraf.crt" -# # tls_key = "/etc/ssl/telegraf.key" - - -# # Configuration for the Riemann server to send metrics to -# [[outputs.riemann]] -# ## The full TCP or UDP URL of the Riemann server -# url = "tcp://localhost:5555" -# -# ## Riemann event TTL, floating-point time in seconds. -# ## Defines how long that an event is considered valid for in Riemann -# # ttl = 30.0 -# -# ## Separator to use between measurement and field name in Riemann service name -# ## This does not have any effect if 'measurement_as_attribute' is set to 'true' -# separator = "/" -# -# ## Set measurement name as Riemann attribute 'measurement', instead of prepending it to the Riemann service name -# # measurement_as_attribute = false -# -# ## Send string metrics as Riemann event states. -# ## Unless enabled all string metrics will be ignored -# # string_as_state = false -# -# ## A list of tag keys whose values get sent as Riemann tags. -# ## If empty, all Telegraf tag values will be sent as tags -# # tag_keys = ["telegraf","custom_tag"] -# -# ## Additional Riemann tags to send. -# # tags = ["telegraf-output"] -# -# ## Description for Riemann event -# # description_text = "metrics collected from telegraf" -# -# ## Riemann client write timeout, defaults to "5s" if not set. -# # timeout = "5s" - - -# # Configuration for the Riemann server to send metrics to -# [[outputs.riemann_legacy]] -# ## URL of server -# url = "localhost:5555" -# ## transport protocol to use either tcp or udp -# transport = "tcp" -# ## separator to use between input name and field name in Riemann service name -# separator = " " - - -# # Generic socket writer capable of handling multiple socket types. -# [[outputs.socket_writer]] -# ## URL to connect to -# # address = "tcp://127.0.0.1:8094" -# # address = "tcp://example.com:http" -# # address = "tcp4://127.0.0.1:8094" -# # address = "tcp6://127.0.0.1:8094" -# # address = "tcp6://[2001:db8::1]:8094" -# # address = "udp://127.0.0.1:8094" -# # address = "udp4://127.0.0.1:8094" -# # address = "udp6://127.0.0.1:8094" -# # address = "unix:///tmp/telegraf.sock" -# # address = "unixgram:///tmp/telegraf.sock" -# -# ## Optional TLS Config -# # tls_ca = "/etc/telegraf/ca.pem" -# # tls_cert = "/etc/telegraf/cert.pem" -# # tls_key = "/etc/telegraf/key.pem" -# ## Use TLS but skip chain & host verification -# # insecure_skip_verify = false -# -# ## Period between keep alive probes. -# ## Only applies to TCP sockets. -# ## 0 disables keep alive probes. -# ## Defaults to the OS configuration. -# # keep_alive_period = "5m" -# -# ## Data format to generate. -# ## Each data format has its own unique set of configuration options, read -# ## more about them here: -# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md -# # data_format = "influx" - - -# # Configuration for Wavefront server to send metrics to -# [[outputs.wavefront]] -# ## DNS name of the wavefront proxy server -# host = "wavefront.example.com" -# -# ## Port that the Wavefront proxy server listens on -# port = 2878 -# -# ## prefix for metrics keys -# #prefix = "my.specific.prefix." -# -# ## whether to use "value" for name of simple fields -# #simple_fields = false -# -# ## character to use between metric and field name. defaults to . (dot) -# #metric_separator = "." -# -# ## Convert metric name paths to use metricSeperator character -# ## When true (default) will convert all _ (underscore) chartacters in final metric name -# #convert_paths = true -# -# ## Use Regex to sanitize metric and tag names from invalid characters -# ## Regex is more thorough, but significantly slower -# #use_regex = false -# -# ## point tags to use as the source name for Wavefront (if none found, host will be used) -# #source_override = ["hostname", "agent_host", "node_host"] -# -# ## whether to convert boolean values to numeric values, with false -> 0.0 and true -> 1.0. default true -# #convert_bool = true -# -# ## Define a mapping, namespaced by metric prefix, from string values to numeric values -# ## The example below maps "green" -> 1.0, "yellow" -> 0.5, "red" -> 0.0 for -# ## any metrics beginning with "elasticsearch" -# #[[outputs.wavefront.string_to_number.elasticsearch]] -# # green = 1.0 -# # yellow = 0.5 -# # red = 0.0 - - - -############################################################################### -# PROCESSOR PLUGINS # -############################################################################### - -# # Convert values to another metric value type -# [[processors.converter]] -# ## Tags to convert -# ## -# ## The table key determines the target type, and the array of key-values -# ## select the keys to convert. The array may contain globs. -# ## = [...] -# [processors.converter.tags] -# string = [] -# integer = [] -# unsigned = [] -# boolean = [] -# float = [] -# -# ## Fields to convert -# ## -# ## The table key determines the target type, and the array of key-values -# ## select the keys to convert. The array may contain globs. -# ## = [...] -# [processors.converter.fields] -# tag = [] -# string = [] -# integer = [] -# unsigned = [] -# boolean = [] -# float = [] - - -# # Map enum values according to given table. -# [[processors.enum]] -# [[processors.enum.mapping]] -# ## Name of the field to map -# field = "status" -# -# ## Destination field to be used for the mapped value. By default the source -# ## field is used, overwriting the original value. -# # dest = "status_code" -# -# ## Default value to be used for all values not contained in the mapping -# ## table. When unset, the unmodified value for the field will be used if no -# ## match is found. -# # default = 0 -# -# ## Table of mappings -# [processors.enum.mapping.value_mappings] -# green = 1 -# yellow = 2 -# red = 3 - - -# # Apply metric modifications using override semantics. -# [[processors.override]] -# ## All modifications on inputs and aggregators can be overridden: -# # name_override = "new_name" -# # name_prefix = "new_name_prefix" -# # name_suffix = "new_name_suffix" -# -# ## Tags to be added (all values must be strings) -# # [processors.override.tags] -# # additional_tag = "tag_value" - - -# # Parse a value in a specified field/tag(s) and add the result in a new metric -# [[processors.parser]] -# ## The name of the fields whose value will be parsed. -# parse_fields = [] -# -# ## If true, incoming metrics are not emitted. -# drop_original = false -# -# ## If set to override, emitted metrics will be merged by overriding the -# ## original metric using the newly parsed metrics. -# merge = "override" -# -# ## The dataformat to be read from files -# ## Each data format has its own unique set of configuration options, read -# ## more about them here: -# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md -# data_format = "influx" - - -# # Print all metrics that pass through this filter. -# [[processors.printer]] - - -# # Transforms tag and field values with regex pattern -# [[processors.regex]] -# ## Tag and field conversions defined in a separate sub-tables -# # [[processors.regex.tags]] -# # ## Tag to change -# # key = "resp_code" -# # ## Regular expression to match on a tag value -# # pattern = "^(\\d)\\d\\d$" -# # ## Pattern for constructing a new value (${1} represents first subgroup) -# # replacement = "${1}xx" -# -# # [[processors.regex.fields]] -# # key = "request" -# # ## All the power of the Go regular expressions available here -# # ## For example, named subgroups -# # pattern = "^/api(?P/[\\w/]+)\\S*" -# # replacement = "${method}" -# # ## If result_key is present, a new field will be created -# # ## instead of changing existing field -# # result_key = "method" -# -# ## Multiple conversions may be applied for one field sequentially -# ## Let's extract one more value -# # [[processors.regex.fields]] -# # key = "request" -# # pattern = ".*category=(\\w+).*" -# # replacement = "${1}" -# # result_key = "search_category" - - -# # Rename measurements, tags, and fields that pass through this filter. -# [[processors.rename]] - - -# # Perform string processing on tags, fields, and measurements -# [[processors.strings]] -# ## Convert a tag value to uppercase -# # [[processors.strings.uppercase]] -# # tag = "method" -# -# ## Convert a field value to lowercase and store in a new field -# # [[processors.strings.lowercase]] -# # field = "uri_stem" -# # dest = "uri_stem_normalised" -# -# ## Trim leading and trailing whitespace using the default cutset -# # [[processors.strings.trim]] -# # field = "message" -# -# ## Trim leading characters in cutset -# # [[processors.strings.trim_left]] -# # field = "message" -# # cutset = "\t" -# -# ## Trim trailing characters in cutset -# # [[processors.strings.trim_right]] -# # field = "message" -# # cutset = "\r\n" -# -# ## Trim the given prefix from the field -# # [[processors.strings.trim_prefix]] -# # field = "my_value" -# # prefix = "my_" -# -# ## Trim the given suffix from the field -# # [[processors.strings.trim_suffix]] -# # field = "read_count" -# # suffix = "_count" - - -# # Print all metrics that pass through this filter. -# [[processors.topk]] -# ## How many seconds between aggregations -# # period = 10 -# -# ## How many top metrics to return -# # k = 10 -# -# ## Over which tags should the aggregation be done. Globs can be specified, in -# ## which case any tag matching the glob will aggregated over. If set to an -# ## empty list is no aggregation over tags is done -# # group_by = ['*'] -# -# ## Over which fields are the top k are calculated -# # fields = ["value"] -# -# ## What aggregation to use. Options: sum, mean, min, max -# # aggregation = "mean" -# -# ## Instead of the top k largest metrics, return the bottom k lowest metrics -# # bottomk = false -# -# ## The plugin assigns each metric a GroupBy tag generated from its name and -# ## tags. If this setting is different than "" the plugin will add a -# ## tag (which name will be the value of this setting) to each metric with -# ## the value of the calculated GroupBy tag. Useful for debugging -# # add_groupby_tag = "" -# -# ## These settings provide a way to know the position of each metric in -# ## the top k. The 'add_rank_field' setting allows to specify for which -# ## fields the position is required. If the list is non empty, then a field -# ## will be added to each and every metric for each string present in this -# ## setting. This field will contain the ranking of the group that -# ## the metric belonged to when aggregated over that field. -# ## The name of the field will be set to the name of the aggregation field, -# ## suffixed with the string '_topk_rank' -# # add_rank_fields = [] -# -# ## These settings provide a way to know what values the plugin is generating -# ## when aggregating metrics. The 'add_agregate_field' setting allows to -# ## specify for which fields the final aggregation value is required. If the -# ## list is non empty, then a field will be added to each every metric for -# ## each field present in this setting. This field will contain -# ## the computed aggregation for the group that the metric belonged to when -# ## aggregated over that field. -# ## The name of the field will be set to the name of the aggregation field, -# ## suffixed with the string '_topk_aggregate' -# # add_aggregate_fields = [] - - - -############################################################################### -# AGGREGATOR PLUGINS # -############################################################################### - - -############################################################################### -# INPUT PLUGINS # -############################################################################### - -# Read metrics from one or many prometheus clients -[[inputs.prometheus]] -## An array of urls to scrape metrics from. -urls = ["http://api-gateway:9094/metrics", - "http://customers-service:9091/metrics", - "http://vets-service:9093/metrics", - "http://visits-service:9092/metrics", - "http://discovery-server:9095/metrics", - "http://config-server:9096/metrics" -] - -## An array of Kubernetes services to scrape metrics from. -# kubernetes_services = ["http://my-service-dns.my-namespace:9100/metrics"] - -## Use bearer token for authorization -# bearer_token = /path/to/bearer/token - -## Specify timeout duration for slower prometheus clients (default is 3s) -# response_timeout = "3s" - -## Optional TLS Config -# tls_ca = /path/to/cafile -# tls_cert = /path/to/certfile -# tls_key = /path/to/keyfile -## Use TLS but skip chain & host verification -# insecure_skip_verify = false diff --git a/inspectit-ocelot-demo/telegraf/telegraf-wavefront.conf b/inspectit-ocelot-demo/telegraf/telegraf-wavefront.conf deleted file mode 100644 index 5f332cafc9..0000000000 --- a/inspectit-ocelot-demo/telegraf/telegraf-wavefront.conf +++ /dev/null @@ -1,1250 +0,0 @@ -# Telegraf Configuration -# -# Telegraf is entirely plugin driven. All metrics are gathered from the -# declared inputs, and sent to the declared outputs. -# -# Plugins must be declared in here to be active. -# To deactivate a plugin, comment out the name and any variables. -# -# Use 'telegraf -config telegraf.conf -test' to see what metrics a config -# file would generate. -# -# Environment variables can be used anywhere in this config file, simply prepend -# them with $. For strings the variable must be within quotes (ie, "$STR_VAR"), -# for numbers and booleans they should be plain (ie, $INT_VAR, $BOOL_VAR) - - -# Global tags can be specified here in key="value" format. -[global_tags] -# dc = "us-east-1" # will tag all metrics with dc=us-east-1 -# rack = "1a" -## Environment variables can be used as tags, and throughout the config file -# user = "$USER" - - -# Configuration for telegraf agent -[agent] -## Default data collection interval for all inputs -interval = "1s" -## Rounds collection interval to 'interval' -## ie, if interval="10s" then always collect on :00, :10, :20, etc. -round_interval = true - -## Telegraf will send metrics to outputs in batches of at most -## metric_batch_size metrics. -## This controls the size of writes that Telegraf sends to output plugins. -metric_batch_size = 1000 - -## For failed writes, telegraf will cache metric_buffer_limit metrics for each -## output, and will flush this buffer on a successful write. Oldest metrics -## are dropped first when this buffer fills. -## This buffer only fills when writes fail to output plugin(s). -metric_buffer_limit = 10000 - -## Collection jitter is used to jitter the collection by a random amount. -## Each plugin will sleep for a random time within jitter before collecting. -## This can be used to avoid many plugins querying things like sysfs at the -## same time, which can have a measurable effect on the system. -collection_jitter = "0s" - -## Default flushing interval for all outputs. Maximum flush_interval will be -## flush_interval + flush_jitter -flush_interval = "10s" -## Jitter the flush interval by a random amount. This is primarily to avoid -## large write spikes for users running a large number of telegraf instances. -## ie, a jitter of 5s and interval 10s means flushes will happen every 10-15s -flush_jitter = "0s" - -## By default or when set to "0s", precision will be set to the same -## timestamp order as the collection interval, with the maximum being 1s. -## ie, when interval = "10s", precision will be "1s" -## when interval = "250ms", precision will be "1ms" -## Precision will NOT be used for service inputs. It is up to each individual -## service input to set the timestamp at the appropriate precision. -## Valid time units are "ns", "us" (or "µs"), "ms", "s". -precision = "" - -## Logging configuration: -## Run telegraf with debug log messages. -debug = false -## Run telegraf in quiet mode (error log messages only). -quiet = false -## Specify the log file name. The empty string means to log to stderr. -logfile = "" - -## Override default hostname, if empty use os.Hostname() -hostname = "" -## If set to true, do no set the "host" tag in the telegraf agent. -omit_hostname = true - - -############################################################################### -# OUTPUT PLUGINS # -############################################################################### - -# Configuration for sending metrics to InfluxDB -# [[outputs.influxdb]] -## The full HTTP or UDP URL for your InfluxDB instance. -## -## Multiple URLs can be specified for a single cluster, only ONE of the -## urls will be written to each interval. -# urls = ["unix:///var/run/influxdb.sock"] -# urls = ["udp://127.0.0.1:8089"] -# urls = ["http://influxdb:8086"] - -## The target database for metrics; will be created as needed. -# database = "telegraf" - -## If true, no CREATE DATABASE queries will be sent. Set to true when using -## Telegraf with a user without permissions to create databases or when the -## database already exists. -# skip_database_creation = false - -## Name of existing retention policy to write to. Empty string writes to -## the default retention policy. Only takes effect when using HTTP. -# retention_policy = "" - -## Write consistency (clusters only), can be: "any", "one", "quorum", "all". -## Only takes effect when using HTTP. -# write_consistency = "any" - -## Timeout for HTTP messages. -# timeout = "5s" - -## HTTP Basic Auth -# username = "telegraf" -# password = "metricsmetricsmetricsmetrics" - -## HTTP User-Agent -# user_agent = "telegraf" - -## UDP payload size is the maximum packet size to send. -# udp_payload = 512 - -## Optional TLS Config for use on HTTP connections. -# tls_ca = "/etc/telegraf/ca.pem" -# tls_cert = "/etc/telegraf/cert.pem" -# tls_key = "/etc/telegraf/key.pem" -## Use TLS but skip chain & host verification -# insecure_skip_verify = false - -## HTTP Proxy override, if unset values the standard proxy environment -## variables are consulted to determine which proxy, if any, should be used. -# http_proxy = "http://corporate.proxy:3128" - -## Additional HTTP headers -# http_headers = {"X-Special-Header" = "Special-Value"} - -## HTTP Content-Encoding for write request body, can be set to "gzip" to -## compress body or "identity" to apply no encoding. -# content_encoding = "identity" - -## When true, Telegraf will output unsigned integers as unsigned values, -## i.e.: "42u". You will need a version of InfluxDB supporting unsigned -## integer values. Enabling this option will result in field type errors if -## existing data has been written. -# influx_uint_support = false - - -# # Configuration for Amon Server to send metrics to. -# [[outputs.amon]] -# ## Amon Server Key -# server_key = "my-server-key" # required. -# -# ## Amon Instance URL -# amon_instance = "https://youramoninstance" # required -# -# ## Connection timeout. -# # timeout = "5s" - - -# # Publishes metrics to an AMQP broker -# [[outputs.amqp]] -# ## Broker to publish to. -# ## deprecated in 1.7; use the brokers option -# # url = "amqp://localhost:5672/influxdb" -# -# ## Brokers to publish to. If multiple brokers are specified a random broker -# ## will be selected anytime a connection is established. This can be -# ## helpful for load balancing when not using a dedicated load balancer. -# brokers = ["amqp://localhost:5672/influxdb"] -# -# ## Maximum messages to send over a connection. Once this is reached, the -# ## connection is closed and a new connection is made. This can be helpful for -# ## load balancing when not using a dedicated load balancer. -# # max_messages = 0 -# -# ## Exchange to declare and publish to. -# exchange = "telegraf" -# -# ## Exchange type; common types are "direct", "fanout", "topic", "header", "x-consistent-hash". -# # exchange_type = "topic" -# -# ## If true, exchange will be passively declared. -# # exchange_declare_passive = false -# -# ## Exchange durability can be either "transient" or "durable". -# # exchange_durability = "durable" -# -# ## Additional exchange arguments. -# # exchange_arguments = { } -# # exchange_arguments = {"hash_propery" = "timestamp"} -# -# ## Authentication credentials for the PLAIN auth_method. -# # username = "" -# # password = "" -# -# ## Auth method. PLAIN and EXTERNAL are supported -# ## Using EXTERNAL requires enabling the rabbitmq_auth_mechanism_ssl plugin as -# ## described here: https://www.rabbitmq.com/plugins.html -# # auth_method = "PLAIN" -# -# ## Metric tag to use as a routing key. -# ## ie, if this tag exists, its value will be used as the routing key -# # routing_tag = "host" -# -# ## Static routing key. Used when no routing_tag is set or as a fallback -# ## when the tag specified in routing tag is not found. -# # routing_key = "" -# # routing_key = "telegraf" -# -# ## Delivery Mode controls if a published message is persistent. -# ## One of "transient" or "persistent". -# # delivery_mode = "transient" -# -# ## InfluxDB database added as a message header. -# ## deprecated in 1.7; use the headers option -# # database = "telegraf" -# -# ## InfluxDB retention policy added as a message header -# ## deprecated in 1.7; use the headers option -# # retention_policy = "default" -# -# ## Static headers added to each published message. -# # headers = { } -# # headers = {"database" = "telegraf", "retention_policy" = "default"} -# -# ## Connection timeout. If not provided, will default to 5s. 0s means no -# ## timeout (not recommended). -# # timeout = "5s" -# -# ## Optional TLS Config -# # tls_ca = "/etc/telegraf/ca.pem" -# # tls_cert = "/etc/telegraf/cert.pem" -# # tls_key = "/etc/telegraf/key.pem" -# ## Use TLS but skip chain & host verification -# # insecure_skip_verify = false -# -# ## If true use batch serialization format instead of line based delimiting. -# ## Only applies to data formats which are not line based such as JSON. -# ## Recommended to set to true. -# # use_batch_format = false -# -# ## Data format to output. -# ## Each data format has its own unique set of configuration options, read -# ## more about them here: -# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md -# # data_format = "influx" - - -# # Send metrics to Azure Application Insights -# [[outputs.application_insights]] -# ## Instrumentation key of the Application Insights resource. -# instrumentation_key = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx" -# -# ## Timeout for closing (default: 5s). -# # timeout = "5s" -# -# ## Enable additional diagnostic logging. -# # enable_diagnostic_logging = false -# -# ## Context Tag Sources add Application Insights context tags to a tag value. -# ## -# ## For list of allowed context tag keys see: -# ## https://github.com/Microsoft/ApplicationInsights-Go/blob/master/appinsights/contracts/contexttagkeys.go -# # [outputs.application_insights.context_tag_sources] -# # "ai.cloud.role" = "kubernetes_container_name" -# # "ai.cloud.roleInstance" = "kubernetes_pod_name" - - -# # Send aggregate metrics to Azure Monitor -# [[outputs.azure_monitor]] -# ## Timeout for HTTP writes. -# # timeout = "20s" -# -# ## Set the namespace prefix, defaults to "Telegraf/". -# # namespace_prefix = "Telegraf/" -# -# ## Azure Monitor doesn't have a string value type, so convert string -# ## fields to dimensions (a.k.a. tags) if enabled. Azure Monitor allows -# ## a maximum of 10 dimensions so Telegraf will only send the first 10 -# ## alphanumeric dimensions. -# # strings_as_dimensions = false -# -# ## Both region and resource_id must be set or be available via the -# ## Instance Metadata service on Azure Virtual Machines. -# # -# ## Azure Region to publish metrics against. -# ## ex: region = "southcentralus" -# # region = "" -# # -# ## The Azure Resource ID against which metric will be logged, e.g. -# ## ex: resource_id = "/subscriptions//resourceGroups//providers/Microsoft.Compute/virtualMachines/" -# # resource_id = "" - - -# # Configuration for AWS CloudWatch output. -# [[outputs.cloudwatch]] -# ## Amazon REGION -# region = "us-east-1" -# -# ## Amazon Credentials -# ## Credentials are loaded in the following order -# ## 1) Assumed credentials via STS if role_arn is specified -# ## 2) explicit credentials from 'access_key' and 'secret_key' -# ## 3) shared profile from 'profile' -# ## 4) environment variables -# ## 5) shared credentials file -# ## 6) EC2 Instance Profile -# #access_key = "" -# #secret_key = "" -# #token = "" -# #role_arn = "" -# #profile = "" -# #shared_credential_file = "" -# -# ## Endpoint to make request against, the correct endpoint is automatically -# ## determined and this option should only be set if you wish to override the -# ## default. -# ## ex: endpoint_url = "http://localhost:8000" -# # endpoint_url = "" -# -# ## Namespace for the CloudWatch MetricDatums -# namespace = "InfluxData/Telegraf" -# -# ## If you have a large amount of metrics, you should consider to send statistic -# ## values instead of raw metrics which could not only improve performance but -# ## also save AWS API cost. If enable this flag, this plugin would parse the required -# ## CloudWatch statistic fields (count, min, max, and sum) and send them to CloudWatch. -# ## You could use basicstats aggregator to calculate those fields. If not all statistic -# ## fields are available, all fields would still be sent as raw metrics. -# # write_statistics = false - - -# # Configuration for CrateDB to send metrics to. -# [[outputs.cratedb]] -# # A github.com/jackc/pgx connection string. -# # See https://godoc.org/github.com/jackc/pgx#ParseDSN -# url = "postgres://user:password@localhost/schema?sslmode=disable" -# # Timeout for all CrateDB queries. -# timeout = "5s" -# # Name of the table to store metrics in. -# table = "metrics" -# # If true, and the metrics table does not exist, create it automatically. -# table_create = true - - -# # Configuration for DataDog API to send metrics to. -# [[outputs.datadog]] -# ## Datadog API key -# apikey = "my-secret-key" # required. -# -# ## Connection timeout. -# # timeout = "5s" - - -# # Send metrics to nowhere at all -# [[outputs.discard]] -# # no configuration - - -# # Configuration for Elasticsearch to send metrics to. -# [[outputs.elasticsearch]] -# ## The full HTTP endpoint URL for your Elasticsearch instance -# ## Multiple urls can be specified as part of the same cluster, -# ## this means that only ONE of the urls will be written to each interval. -# urls = [ "http://elasticsearch:9200" ] # required. -# ## Elasticsearch client timeout, defaults to "5s" if not set. -# timeout = "5s" -# ## Set to true to ask Elasticsearch a list of all cluster nodes, -# ## thus it is not necessary to list all nodes in the urls config option. -# enable_sniffer = false -# ## Set the interval to check if the Elasticsearch nodes are available -# ## Setting to "0s" will disable the health check (not recommended in production) -# health_check_interval = "0s" -# ## HTTP basic authentication details (eg. when using Shield) -# # username = "telegraf" -# # password = "mypassword" -# -# ## Index Config -# ## The target index for metrics (Elasticsearch will create if it not exists). -# ## You can use the date specifiers below to create indexes per time frame. -# ## The metric timestamp will be used to decide the destination index name -# # %Y - year (2016) -# # %y - last two digits of year (00..99) -# # %m - month (01..12) -# # %d - day of month (e.g., 01) -# # %H - hour (00..23) -# # %V - week of the year (ISO week) (01..53) -# ## Additionally, you can specify a tag name using the notation {{tag_name}} -# ## which will be used as part of the index name. If the tag does not exist, -# ## the default tag value will be used. -# index_name = "inspectit-%Y.%m.%d" -# # default_tag_value = "none" -# index_name = "telegraf-%Y.%m.%d" # required. -# -# ## Optional TLS Config -# # tls_ca = "/etc/telegraf/ca.pem" -# # tls_cert = "/etc/telegraf/cert.pem" -# # tls_key = "/etc/telegraf/key.pem" -# ## Use TLS but skip chain & host verification -# # insecure_skip_verify = false -# -# ## Template Config -# ## Set to true if you want telegraf to manage its index template. -# ## If enabled it will create a recommended index template for telegraf indexes -# manage_template = true -# ## The template name used for telegraf indexes -# template_name = "telegraf" -# ## Set to true if you want telegraf to overwrite an existing template -# overwrite_template = false - - -# # Send telegraf metrics to file(s) -# [[outputs.file]] -# ## Files to write to, "stdout" is a specially handled file. -# files = ["stdout", "/tmp/metrics.out"] -# -# ## Data format to output. -# ## Each data format has its own unique set of configuration options, read -# ## more about them here: -# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md -# data_format = "influx" - - -# # Configuration for Graphite server to send metrics to -# [[outputs.graphite]] -# ## TCP endpoint for your graphite instance. -# ## If multiple endpoints are configured, output will be load balanced. -# ## Only one of the endpoints will be written to with each iteration. -# servers = ["localhost:2003"] -# ## Prefix metrics name -# prefix = "" -# ## Graphite output template -# ## see https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md -# template = "host.tags.measurement.field" -# -# ## Enable Graphite tags support -# # graphite_tag_support = false -# -# ## timeout in seconds for the write connection to graphite -# timeout = 2 -# -# ## Optional TLS Config -# # tls_ca = "/etc/telegraf/ca.pem" -# # tls_cert = "/etc/telegraf/cert.pem" -# # tls_key = "/etc/telegraf/key.pem" -# ## Use TLS but skip chain & host verification -# # insecure_skip_verify = false - - -# # Send telegraf metrics to graylog(s) -# [[outputs.graylog]] -# ## UDP endpoint for your graylog instance. -# servers = ["127.0.0.1:12201", "192.168.1.1:12201"] - - -# # A plugin that can transmit metrics over HTTP -# [[outputs.http]] -# ## URL is the address to send metrics to -# url = "http://127.0.0.1:8080/metric" -# -# ## Timeout for HTTP message -# # timeout = "5s" -# -# ## HTTP method, one of: "POST" or "PUT" -# # method = "POST" -# -# ## HTTP Basic Auth credentials -# # username = "username" -# # password = "pa$$word" -# -# ## OAuth2 Client Credentials Grant -# # client_id = "clientid" -# # client_secret = "secret" -# # token_url = "https://indentityprovider/oauth2/v1/token" -# # scopes = ["urn:opc:idm:__myscopes__"] -# -# ## Optional TLS Config -# # tls_ca = "/etc/telegraf/ca.pem" -# # tls_cert = "/etc/telegraf/cert.pem" -# # tls_key = "/etc/telegraf/key.pem" -# ## Use TLS but skip chain & host verification -# # insecure_skip_verify = false -# -# ## Data format to output. -# ## Each data format has it's own unique set of configuration options, read -# ## more about them here: -# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md -# # data_format = "influx" -# -# ## Additional HTTP headers -# # [outputs.http.headers] -# # # Should be set manually to "application/json" for json data_format -# # Content-Type = "text/plain; charset=utf-8" - - -# # Configuration for sending metrics to InfluxDB -# [[outputs.influxdb_v2]] -# ## The URLs of the InfluxDB cluster nodes. -# ## -# ## Multiple URLs can be specified for a single cluster, only ONE of the -# ## urls will be written to each interval. -# urls = ["http://127.0.0.1:9999"] -# -# ## Token for authentication. -# token = "" -# -# ## Organization is the name of the organization you wish to write to; must exist. -# organization = "" -# -# ## Bucket to the name fo the bucketwrite into; must exist. -# bucket = "" -# -# ## Timeout for HTTP messages. -# # timeout = "5s" -# -# ## Additional HTTP headers -# # http_headers = {"X-Special-Header" = "Special-Value"} -# -# ## HTTP Proxy override, if unset values the standard proxy environment -# ## variables are consulted to determine which proxy, if any, should be used. -# # http_proxy = "http://corporate.proxy:3128" -# -# ## HTTP User-Agent -# # user_agent = "telegraf" -# -# ## Content-Encoding for write request body, can be set to "gzip" to -# ## compress body or "identity" to apply no encoding. -# # content_encoding = "gzip" -# -# ## Enable or disable uint support for writing uints influxdb 2.0. -# # influx_uint_support = false -# -# ## Optional TLS Config for use on HTTP connections. -# # tls_ca = "/etc/telegraf/ca.pem" -# # tls_cert = "/etc/telegraf/cert.pem" -# # tls_key = "/etc/telegraf/key.pem" -# ## Use TLS but skip chain & host verification -# # insecure_skip_verify = false - - -# # Configuration for sending metrics to an Instrumental project -# [[outputs.instrumental]] -# ## Project API Token (required) -# api_token = "API Token" # required -# ## Prefix the metrics with a given name -# prefix = "" -# ## Stats output template (Graphite formatting) -# ## see https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md#graphite -# template = "host.tags.measurement.field" -# ## Timeout in seconds to connect -# timeout = "2s" -# ## Display Communcation to Instrumental -# debug = false - - -# # Configuration for the Kafka server to send metrics to -# [[outputs.kafka]] -# ## URLs of kafka brokers -# brokers = ["localhost:9092"] -# ## Kafka topic for producer messages -# topic = "telegraf" -# -# ## Optional Client id -# # client_id = "Telegraf" -# -# ## Set the minimal supported Kafka version. Setting this enables the use of new -# ## Kafka features and APIs. Of particular interest, lz4 compression -# ## requires at least version 0.10.0.0. -# ## ex: version = "1.1.0" -# # version = "" -# -# ## Optional topic suffix configuration. -# ## If the section is omitted, no suffix is used. -# ## Following topic suffix methods are supported: -# ## measurement - suffix equals to separator + measurement's name -# ## tags - suffix equals to separator + specified tags' values -# ## interleaved with separator -# -# ## Suffix equals to "_" + measurement name -# # [outputs.kafka.topic_suffix] -# # method = "measurement" -# # separator = "_" -# -# ## Suffix equals to "__" + measurement's "foo" tag value. -# ## If there's no such a tag, suffix equals to an empty string -# # [outputs.kafka.topic_suffix] -# # method = "tags" -# # keys = ["foo"] -# # separator = "__" -# -# ## Suffix equals to "_" + measurement's "foo" and "bar" -# ## tag values, separated by "_". If there is no such tags, -# ## their values treated as empty strings. -# # [outputs.kafka.topic_suffix] -# # method = "tags" -# # keys = ["foo", "bar"] -# # separator = "_" -# -# ## Telegraf tag to use as a routing key -# ## ie, if this tag exists, its value will be used as the routing key -# routing_tag = "host" -# -# ## Static routing key. Used when no routing_tag is set or as a fallback -# ## when the tag specified in routing tag is not found. If set to "random", -# ## a random value will be generated for each message. -# ## ex: routing_key = "random" -# ## routing_key = "telegraf" -# # routing_key = "" -# -# ## CompressionCodec represents the various compression codecs recognized by -# ## Kafka in messages. -# ## 0 : No compression -# ## 1 : Gzip compression -# ## 2 : Snappy compression -# ## 3 : LZ4 compression -# # compression_codec = 0 -# -# ## RequiredAcks is used in Produce Requests to tell the broker how many -# ## replica acknowledgements it must see before responding -# ## 0 : the producer never waits for an acknowledgement from the broker. -# ## This option provides the lowest latency but the weakest durability -# ## guarantees (some data will be lost when a server fails). -# ## 1 : the producer gets an acknowledgement after the leader replica has -# ## received the data. This option provides better durability as the -# ## client waits until the server acknowledges the request as successful -# ## (only messages that were written to the now-dead leader but not yet -# ## replicated will be lost). -# ## -1: the producer gets an acknowledgement after all in-sync replicas have -# ## received the data. This option provides the best durability, we -# ## guarantee that no messages will be lost as long as at least one in -# ## sync replica remains. -# # required_acks = -1 -# -# ## The maximum number of times to retry sending a metric before failing -# ## until the next flush. -# # max_retry = 3 -# -# ## The maximum permitted size of a message. Should be set equal to or -# ## smaller than the broker's 'message.max.bytes'. -# # max_message_bytes = 1000000 -# -# ## Optional TLS Config -# # tls_ca = "/etc/telegraf/ca.pem" -# # tls_cert = "/etc/telegraf/cert.pem" -# # tls_key = "/etc/telegraf/key.pem" -# ## Use TLS but skip chain & host verification -# # insecure_skip_verify = false -# -# ## Optional SASL Config -# # sasl_username = "kafka" -# # sasl_password = "secret" -# -# ## Data format to output. -# ## Each data format has its own unique set of configuration options, read -# ## more about them here: -# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md -# # data_format = "influx" - - -# # Configuration for the AWS Kinesis output. -# [[outputs.kinesis]] -# ## Amazon REGION of kinesis endpoint. -# region = "ap-southeast-2" -# -# ## Amazon Credentials -# ## Credentials are loaded in the following order -# ## 1) Assumed credentials via STS if role_arn is specified -# ## 2) explicit credentials from 'access_key' and 'secret_key' -# ## 3) shared profile from 'profile' -# ## 4) environment variables -# ## 5) shared credentials file -# ## 6) EC2 Instance Profile -# #access_key = "" -# #secret_key = "" -# #token = "" -# #role_arn = "" -# #profile = "" -# #shared_credential_file = "" -# -# ## Endpoint to make request against, the correct endpoint is automatically -# ## determined and this option should only be set if you wish to override the -# ## default. -# ## ex: endpoint_url = "http://localhost:8000" -# # endpoint_url = "" -# -# ## Kinesis StreamName must exist prior to starting telegraf. -# streamname = "StreamName" -# ## DEPRECATED: PartitionKey as used for sharding data. -# partitionkey = "PartitionKey" -# ## DEPRECATED: If set the paritionKey will be a random UUID on every put. -# ## This allows for scaling across multiple shards in a stream. -# ## This will cause issues with ordering. -# use_random_partitionkey = false -# ## The partition key can be calculated using one of several methods: -# ## -# ## Use a static value for all writes: -# # [outputs.kinesis.partition] -# # method = "static" -# # key = "howdy" -# # -# ## Use a random partition key on each write: -# # [outputs.kinesis.partition] -# # method = "random" -# # -# ## Use the measurement name as the partition key: -# # [outputs.kinesis.partition] -# # method = "measurement" -# # -# ## Use the value of a tag for all writes, if the tag is not set the empty -# ## string will be used: -# # [outputs.kinesis.partition] -# # method = "tag" -# # key = "host" -# -# -# ## Data format to output. -# ## Each data format has its own unique set of configuration options, read -# ## more about them here: -# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md -# data_format = "influx" -# -# ## debug will show upstream aws messages. -# debug = false - - -# # Configuration for Librato API to send metrics to. -# [[outputs.librato]] -# ## Librator API Docs -# ## http://dev.librato.com/v1/metrics-authentication -# ## Librato API user -# api_user = "telegraf@influxdb.com" # required. -# ## Librato API token -# api_token = "my-secret-token" # required. -# ## Debug -# # debug = false -# ## Connection timeout. -# # timeout = "5s" -# ## Output source Template (same as graphite buckets) -# ## see https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md#graphite -# ## This template is used in librato's source (not metric's name) -# template = "host" -# - - -# # Configuration for MQTT server to send metrics to -# [[outputs.mqtt]] -# servers = ["localhost:1883"] # required. -# -# ## MQTT outputs send metrics to this topic format -# ## "///" -# ## ex: prefix/web01.example.com/mem -# topic_prefix = "telegraf" -# -# ## QoS policy for messages -# ## 0 = at most once -# ## 1 = at least once -# ## 2 = exactly once -# # qos = 2 -# -# ## username and password to connect MQTT server. -# # username = "telegraf" -# # password = "metricsmetricsmetricsmetrics" -# -# ## client ID, if not set a random ID is generated -# # client_id = "" -# -# ## Timeout for write operations. default: 5s -# # timeout = "5s" -# -# ## Optional TLS Config -# # tls_ca = "/etc/telegraf/ca.pem" -# # tls_cert = "/etc/telegraf/cert.pem" -# # tls_key = "/etc/telegraf/key.pem" -# ## Use TLS but skip chain & host verification -# # insecure_skip_verify = false -# -# ## When true, metrics will be sent in one MQTT message per flush. Otherwise, -# ## metrics are written one metric per MQTT message. -# # batch = false -# -# ## Data format to output. -# ## Each data format has its own unique set of configuration options, read -# ## more about them here: -# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md -# data_format = "influx" - - -# # Send telegraf measurements to NATS -# [[outputs.nats]] -# ## URLs of NATS servers -# servers = ["nats://localhost:4222"] -# ## Optional credentials -# # username = "" -# # password = "" -# ## NATS subject for producer messages -# subject = "telegraf" -# -# ## Optional TLS Config -# # tls_ca = "/etc/telegraf/ca.pem" -# # tls_cert = "/etc/telegraf/cert.pem" -# # tls_key = "/etc/telegraf/key.pem" -# ## Use TLS but skip chain & host verification -# # insecure_skip_verify = false -# -# ## Data format to output. -# ## Each data format has its own unique set of configuration options, read -# ## more about them here: -# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md -# data_format = "influx" - - -# # Send telegraf measurements to NSQD -# [[outputs.nsq]] -# ## Location of nsqd instance listening on TCP -# server = "localhost:4150" -# ## NSQ topic for producer messages -# topic = "telegraf" -# -# ## Data format to output. -# ## Each data format has its own unique set of configuration options, read -# ## more about them here: -# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md -# data_format = "influx" - - -# # Configuration for OpenTSDB server to send metrics to -# [[outputs.opentsdb]] -# ## prefix for metrics keys -# prefix = "my.specific.prefix." -# -# ## DNS name of the OpenTSDB server -# ## Using "opentsdb.example.com" or "tcp://opentsdb.example.com" will use the -# ## telnet API. "http://opentsdb.example.com" will use the Http API. -# host = "opentsdb.example.com" -# -# ## Port of the OpenTSDB server -# port = 4242 -# -# ## Number of data points to send to OpenTSDB in Http requests. -# ## Not used with telnet API. -# http_batch_size = 50 -# -# ## URI Path for Http requests to OpenTSDB. -# ## Used in cases where OpenTSDB is located behind a reverse proxy. -# http_path = "/api/put" -# -# ## Debug true - Prints OpenTSDB communication -# debug = false -# -# ## Separator separates measurement name from field -# separator = "_" - - -# # Configuration for the Prometheus client to spawn -# [[outputs.prometheus_client]] -# ## Address to listen on -# listen = ":9273" -# -# ## Use HTTP Basic Authentication. -# # basic_username = "Foo" -# # basic_password = "Bar" -# -# ## If set, the IP Ranges which are allowed to access metrics. -# ## ex: ip_range = ["192.168.0.0/24", "192.168.1.0/30"] -# # ip_range = [] -# -# ## Path to publish the metrics on. -# # path = "/metrics" -# -# ## Expiration interval for each metric. 0 == no expiration -# # expiration_interval = "60s" -# -# ## Collectors to enable, valid entries are "gocollector" and "process". -# ## If unset, both are enabled. -# # collectors_exclude = ["gocollector", "process"] -# -# ## Send string metrics as Prometheus labels. -# ## Unless set to false all string metrics will be sent as labels. -# # string_as_label = true -# -# ## If set, enable TLS with the given certificate. -# # tls_cert = "/etc/ssl/telegraf.crt" -# # tls_key = "/etc/ssl/telegraf.key" - - -# # Configuration for the Riemann server to send metrics to -# [[outputs.riemann]] -# ## The full TCP or UDP URL of the Riemann server -# url = "tcp://localhost:5555" -# -# ## Riemann event TTL, floating-point time in seconds. -# ## Defines how long that an event is considered valid for in Riemann -# # ttl = 30.0 -# -# ## Separator to use between measurement and field name in Riemann service name -# ## This does not have any effect if 'measurement_as_attribute' is set to 'true' -# separator = "/" -# -# ## Set measurement name as Riemann attribute 'measurement', instead of prepending it to the Riemann service name -# # measurement_as_attribute = false -# -# ## Send string metrics as Riemann event states. -# ## Unless enabled all string metrics will be ignored -# # string_as_state = false -# -# ## A list of tag keys whose values get sent as Riemann tags. -# ## If empty, all Telegraf tag values will be sent as tags -# # tag_keys = ["telegraf","custom_tag"] -# -# ## Additional Riemann tags to send. -# # tags = ["telegraf-output"] -# -# ## Description for Riemann event -# # description_text = "metrics collected from telegraf" -# -# ## Riemann client write timeout, defaults to "5s" if not set. -# # timeout = "5s" - - -# # Configuration for the Riemann server to send metrics to -# [[outputs.riemann_legacy]] -# ## URL of server -# url = "localhost:5555" -# ## transport protocol to use either tcp or udp -# transport = "tcp" -# ## separator to use between input name and field name in Riemann service name -# separator = " " - - -# # Generic socket writer capable of handling multiple socket types. -# [[outputs.socket_writer]] -# ## URL to connect to -# # address = "tcp://127.0.0.1:8094" -# # address = "tcp://example.com:http" -# # address = "tcp4://127.0.0.1:8094" -# # address = "tcp6://127.0.0.1:8094" -# # address = "tcp6://[2001:db8::1]:8094" -# # address = "udp://127.0.0.1:8094" -# # address = "udp4://127.0.0.1:8094" -# # address = "udp6://127.0.0.1:8094" -# # address = "unix:///tmp/telegraf.sock" -# # address = "unixgram:///tmp/telegraf.sock" -# -# ## Optional TLS Config -# # tls_ca = "/etc/telegraf/ca.pem" -# # tls_cert = "/etc/telegraf/cert.pem" -# # tls_key = "/etc/telegraf/key.pem" -# ## Use TLS but skip chain & host verification -# # insecure_skip_verify = false -# -# ## Period between keep alive probes. -# ## Only applies to TCP sockets. -# ## 0 disables keep alive probes. -# ## Defaults to the OS configuration. -# # keep_alive_period = "5m" -# -# ## Data format to generate. -# ## Each data format has its own unique set of configuration options, read -# ## more about them here: -# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md -# # data_format = "influx" - - -# # Configuration for Wavefront server to send metrics to -[[outputs.wavefront]] -# ## DNS name of the wavefront proxy server -host = "wfproxy" -# -# ## Port that the Wavefront proxy server listens on -port = 2878 -# -# ## prefix for metrics keys -# #prefix = "my.specific.prefix." -# -# ## whether to use "value" for name of simple fields -# #simple_fields = false -# -# ## character to use between metric and field name. defaults to . (dot) -# #metric_separator = "." -# -# ## Convert metric name paths to use metricSeperator character -# ## When true (default) will convert all _ (underscore) chartacters in final metric name -# #convert_paths = true -# -# ## Use Regex to sanitize metric and tag names from invalid characters -# ## Regex is more thorough, but significantly slower -# #use_regex = false -# -# ## point tags to use as the source name for Wavefront (if none found, host will be used) -# #source_override = ["hostname", "agent_host", "node_host"] -# -# ## whether to convert boolean values to numeric values, with false -> 0.0 and true -> 1.0. default true -# #convert_bool = true -# -# ## Define a mapping, namespaced by metric prefix, from string values to numeric values -# ## The example below maps "green" -> 1.0, "yellow" -> 0.5, "red" -> 0.0 for -# ## any metrics beginning with "elasticsearch" -# #[[outputs.wavefront.string_to_number.elasticsearch]] -# # green = 1.0 -# # yellow = 0.5 -# # red = 0.0 - - - -############################################################################### -# PROCESSOR PLUGINS # -############################################################################### - -# # Convert values to another metric value type -# [[processors.converter]] -# ## Tags to convert -# ## -# ## The table key determines the target type, and the array of key-values -# ## select the keys to convert. The array may contain globs. -# ## = [...] -# [processors.converter.tags] -# string = [] -# integer = [] -# unsigned = [] -# boolean = [] -# float = [] -# -# ## Fields to convert -# ## -# ## The table key determines the target type, and the array of key-values -# ## select the keys to convert. The array may contain globs. -# ## = [...] -# [processors.converter.fields] -# tag = [] -# string = [] -# integer = [] -# unsigned = [] -# boolean = [] -# float = [] - - -# # Map enum values according to given table. -# [[processors.enum]] -# [[processors.enum.mapping]] -# ## Name of the field to map -# field = "status" -# -# ## Destination field to be used for the mapped value. By default the source -# ## field is used, overwriting the original value. -# # dest = "status_code" -# -# ## Default value to be used for all values not contained in the mapping -# ## table. When unset, the unmodified value for the field will be used if no -# ## match is found. -# # default = 0 -# -# ## Table of mappings -# [processors.enum.mapping.value_mappings] -# green = 1 -# yellow = 2 -# red = 3 - - -# # Apply metric modifications using override semantics. -# [[processors.override]] -# ## All modifications on inputs and aggregators can be overridden: -# # name_override = "new_name" -# # name_prefix = "new_name_prefix" -# # name_suffix = "new_name_suffix" -# -# ## Tags to be added (all values must be strings) -# # [processors.override.tags] -# # additional_tag = "tag_value" - - -# # Parse a value in a specified field/tag(s) and add the result in a new metric -# [[processors.parser]] -# ## The name of the fields whose value will be parsed. -# parse_fields = [] -# -# ## If true, incoming metrics are not emitted. -# drop_original = false -# -# ## If set to override, emitted metrics will be merged by overriding the -# ## original metric using the newly parsed metrics. -# merge = "override" -# -# ## The dataformat to be read from files -# ## Each data format has its own unique set of configuration options, read -# ## more about them here: -# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md -# data_format = "influx" - - -# # Print all metrics that pass through this filter. -# [[processors.printer]] - - -# # Transforms tag and field values with regex pattern -# [[processors.regex]] -# ## Tag and field conversions defined in a separate sub-tables -# # [[processors.regex.tags]] -# # ## Tag to change -# # key = "resp_code" -# # ## Regular expression to match on a tag value -# # pattern = "^(\\d)\\d\\d$" -# # ## Pattern for constructing a new value (${1} represents first subgroup) -# # replacement = "${1}xx" -# -# # [[processors.regex.fields]] -# # key = "request" -# # ## All the power of the Go regular expressions available here -# # ## For example, named subgroups -# # pattern = "^/api(?P/[\\w/]+)\\S*" -# # replacement = "${method}" -# # ## If result_key is present, a new field will be created -# # ## instead of changing existing field -# # result_key = "method" -# -# ## Multiple conversions may be applied for one field sequentially -# ## Let's extract one more value -# # [[processors.regex.fields]] -# # key = "request" -# # pattern = ".*category=(\\w+).*" -# # replacement = "${1}" -# # result_key = "search_category" - - -# # Rename measurements, tags, and fields that pass through this filter. -# [[processors.rename]] - - -# # Perform string processing on tags, fields, and measurements -# [[processors.strings]] -# ## Convert a tag value to uppercase -# # [[processors.strings.uppercase]] -# # tag = "method" -# -# ## Convert a field value to lowercase and store in a new field -# # [[processors.strings.lowercase]] -# # field = "uri_stem" -# # dest = "uri_stem_normalised" -# -# ## Trim leading and trailing whitespace using the default cutset -# # [[processors.strings.trim]] -# # field = "message" -# -# ## Trim leading characters in cutset -# # [[processors.strings.trim_left]] -# # field = "message" -# # cutset = "\t" -# -# ## Trim trailing characters in cutset -# # [[processors.strings.trim_right]] -# # field = "message" -# # cutset = "\r\n" -# -# ## Trim the given prefix from the field -# # [[processors.strings.trim_prefix]] -# # field = "my_value" -# # prefix = "my_" -# -# ## Trim the given suffix from the field -# # [[processors.strings.trim_suffix]] -# # field = "read_count" -# # suffix = "_count" - - -# # Print all metrics that pass through this filter. -# [[processors.topk]] -# ## How many seconds between aggregations -# # period = 10 -# -# ## How many top metrics to return -# # k = 10 -# -# ## Over which tags should the aggregation be done. Globs can be specified, in -# ## which case any tag matching the glob will aggregated over. If set to an -# ## empty list is no aggregation over tags is done -# # group_by = ['*'] -# -# ## Over which fields are the top k are calculated -# # fields = ["value"] -# -# ## What aggregation to use. Options: sum, mean, min, max -# # aggregation = "mean" -# -# ## Instead of the top k largest metrics, return the bottom k lowest metrics -# # bottomk = false -# -# ## The plugin assigns each metric a GroupBy tag generated from its name and -# ## tags. If this setting is different than "" the plugin will add a -# ## tag (which name will be the value of this setting) to each metric with -# ## the value of the calculated GroupBy tag. Useful for debugging -# # add_groupby_tag = "" -# -# ## These settings provide a way to know the position of each metric in -# ## the top k. The 'add_rank_field' setting allows to specify for which -# ## fields the position is required. If the list is non empty, then a field -# ## will be added to each and every metric for each string present in this -# ## setting. This field will contain the ranking of the group that -# ## the metric belonged to when aggregated over that field. -# ## The name of the field will be set to the name of the aggregation field, -# ## suffixed with the string '_topk_rank' -# # add_rank_fields = [] -# -# ## These settings provide a way to know what values the plugin is generating -# ## when aggregating metrics. The 'add_agregate_field' setting allows to -# ## specify for which fields the final aggregation value is required. If the -# ## list is non empty, then a field will be added to each every metric for -# ## each field present in this setting. This field will contain -# ## the computed aggregation for the group that the metric belonged to when -# ## aggregated over that field. -# ## The name of the field will be set to the name of the aggregation field, -# ## suffixed with the string '_topk_aggregate' -# # add_aggregate_fields = [] - - - -############################################################################### -# AGGREGATOR PLUGINS # -############################################################################### - - -############################################################################### -# INPUT PLUGINS # -############################################################################### - -# Read metrics from one or many prometheus clients -[[inputs.prometheus]] -## An array of urls to scrape metrics from. -urls = ["http://api-gateway:9094/metrics", - "http://customers-service:9091/metrics", - "http://vets-service:9093/metrics", - "http://visits-service:9092/metrics", - "http://discovery-server:9095/metrics", - "http://config-server:9096/metrics" -] - -## An array of Kubernetes services to scrape metrics from. -# kubernetes_services = ["http://my-service-dns.my-namespace:9100/metrics"] - -## Use bearer token for authorization -# bearer_token = /path/to/bearer/token - -## Specify timeout duration for slower prometheus clients (default is 3s) -# response_timeout = "3s" - -## Optional TLS Config -# tls_ca = /path/to/cafile -# tls_cert = /path/to/certfile -# tls_key = /path/to/keyfile -## Use TLS but skip chain & host verification -# insecure_skip_verify = false From 8caf12245937456eec43916df03908fa38bed084 Mon Sep 17 00:00:00 2001 From: aaronweissler <46028218+aaronweissler@users.noreply.github.com> Date: Thu, 7 Apr 2022 12:53:02 +0200 Subject: [PATCH 2/8] Remove demo-specific CI tasks --- .circleci/config.yml | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 55994dda6b..6abc7a7b27 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -52,10 +52,9 @@ jobs: working_directory: ~/inspectit steps: - attach_repo - - run: cd repo && ./gradlew assemble bootJarWithFrontend packageDemo :inspectit-ocelot-core:cyclonedxBom :inspectit-ocelot-configurationserver:cyclonedxBom :inspectit-ocelot-eum-server:cyclonedxBom :inspectit-ocelot-eum-server:bootJar -PbuildVersion=${CIRCLE_TAG} + - run: cd repo && ./gradlew assemble bootJarWithFrontend :inspectit-ocelot-core:cyclonedxBom :inspectit-ocelot-configurationserver:cyclonedxBom :inspectit-ocelot-eum-server:cyclonedxBom :inspectit-ocelot-eum-server:bootJar -PbuildVersion=${CIRCLE_TAG} - run: mkdir artifacts - run: cp ~/inspectit/repo/inspectit-ocelot-agent/build/inspectit-ocelot-agent-${CIRCLE_TAG}.jar ~/inspectit/artifacts - - run: cp ~/inspectit/repo/inspectit-ocelot-demo/build/inspectit-ocelot-demo-${CIRCLE_TAG}.zip ~/inspectit/artifacts - run: cp ~/inspectit/repo/components/inspectit-ocelot-configurationserver/build/libs/inspectit-ocelot-configurationserver-${CIRCLE_TAG}.jar ~/inspectit/artifacts - run: cp ~/inspectit/repo/components/inspectit-ocelot-eum-server/build/libs/inspectit-ocelot-eum-server-${CIRCLE_TAG}.jar ~/inspectit/artifacts - run: mkdir boms @@ -123,15 +122,6 @@ jobs: - run: docker login -u $DOCKER_HUB_USER -p $DOCKER_HUB_PASSWORD - run: docker push - publish_dashboards_to_marketplace: - docker: - - image: circleci/openjdk:8-jdk - working_directory: ~/inspectit/repo/inspectit-ocelot-demo/grafana/marketplace - steps: - - run: - command: | - chmod +x ~/inspectit/repo/resources/upload-all-dashboards.sh - ~/inspectit/repo/resources/upload-all-dashboards.sh # Deploy pre-release documentation deploy-master-documentation: docker: From 4146c1d1a62e11a328ee8b4fc71b56f1004061d6 Mon Sep 17 00:00:00 2001 From: aaronweissler <46028218+aaronweissler@users.noreply.github.com> Date: Thu, 7 Apr 2022 12:53:23 +0200 Subject: [PATCH 3/8] Remove ignoring references to demo-folder --- .github/workflows/agent_test.yml | 1 - .gitignore | 1 - 2 files changed, 2 deletions(-) diff --git a/.github/workflows/agent_test.yml b/.github/workflows/agent_test.yml index e0e0612295..22cabe5ff2 100644 --- a/.github/workflows/agent_test.yml +++ b/.github/workflows/agent_test.yml @@ -9,7 +9,6 @@ on: - master paths-ignore: - 'components/**' - - 'inspectit-ocelot-demo/**' - 'inspectit-ocelot-documentation/**' - 'resources/**' diff --git a/.gitignore b/.gitignore index 94cb7b737d..0d177b77db 100644 --- a/.gitignore +++ b/.gitignore @@ -31,4 +31,3 @@ /.nb-gradle/ /working_directory/ -inspectit-ocelot-demo/configuration-server/users.db From 88d2b8de7190ba07126e24d43ceec90a3b317c43 Mon Sep 17 00:00:00 2001 From: aaronweissler <46028218+aaronweissler@users.noreply.github.com> Date: Thu, 7 Apr 2022 12:53:35 +0200 Subject: [PATCH 4/8] Remove project from settings.gradle --- settings.gradle | 1 - 1 file changed, 1 deletion(-) diff --git a/settings.gradle b/settings.gradle index 6ae45571a4..8ce4009a6d 100644 --- a/settings.gradle +++ b/settings.gradle @@ -3,7 +3,6 @@ include 'inspectit-ocelot-bootstrap' include 'inspectit-ocelot-core' include "inspectit-ocelot-agent" include 'inspectit-ocelot-documentation' -include 'inspectit-ocelot-demo' include 'inspectit-ocelot-configurationserver' include 'inspectit-ocelot-eum-server' include 'inspectit-ocelot-sdk' From 2d18a85a40dff4146d12fff7ef84ca072911c2c1 Mon Sep 17 00:00:00 2001 From: aaronweissler <46028218+aaronweissler@users.noreply.github.com> Date: Thu, 7 Apr 2022 16:06:30 +0200 Subject: [PATCH 5/8] Update documentation for new demo location --- .../docs/getting-started/docker-examples.md | 47 +++++++------------ 1 file changed, 18 insertions(+), 29 deletions(-) diff --git a/inspectit-ocelot-documentation/docs/getting-started/docker-examples.md b/inspectit-ocelot-documentation/docs/getting-started/docker-examples.md index 9dbe95cea9..91f3a338bf 100644 --- a/inspectit-ocelot-documentation/docs/getting-started/docker-examples.md +++ b/inspectit-ocelot-documentation/docs/getting-started/docker-examples.md @@ -6,11 +6,11 @@ sidebar_label: Demo Application ## inspectIT Ocelot Demo -If you would like to check inspectIT Ocelot in action with a demo application, you can use our docker compose example. +If you would like to see inspectIT Ocelot in action with a demo application, you can use our docker compose example. We use the distributed version of the [Spring PetClinic sample application](https://github.com/spring-petclinic/spring-petclinic-microservices) as the target application in our demo. -To demonstrate the flexibility of the OpenCensus bases inspectIT agent, we provide different demo scenarios covering different monitoring and APM components. +To demonstrate the flexibility of the OpenCensus based inspectIT agent, we provide different demo scenarios covering different monitoring and APM components. -All of the demo scenarios are fully configured with predefined dashboards, *so you can get started in 5 minutes*. +All the demo scenarios are fully configured with predefined dashboards, *so you can get started in 5 minutes*. ### Demo #1 - Prometheus, Grafana and Jaeger @@ -52,48 +52,37 @@ Sends Zipkin traces to Wavefront through a Wavefront proxy running as a Docker c * File: `docker-compose-wavefront-zipkin.yml` ->Note: Before running the demo, you must add the Wavefront host and API token to the ```.env``` file in the ```inspectit-ocelot-demo```. Please add the following lines and change the cluster and token according to your Wavefront instance. -> ``` -> WAVEFRONT_URL=https://.wavefront.com/api -> WAVEFRONT_TOKEN= -> ``` +:::note +Before running the demo, you must add the Wavefront host and API token to the ```.env``` file in the ```inspectit-ocelot-demo```. Please add the following lines and change the cluster and token according to your Wavefront instance. +``` +WAVEFRONT_URL=https://.wavefront.com/api +WAVEFRONT_TOKEN= +``` +::: ## Launching the Demo -:::note +:::warning Currently, the demo is only available as Docker images for the AMD64 architecture. On ARM platforms there may be problems with the execution. ::: *Pre-requisites:* To launch the demo, [Docker](https://www.docker.com/) needs to be installed on your system. -If you are using Docker for Windows or running Docker in a virtual machine, ensure that Docker has at least 4GB main memory assigned. +If you are using Docker Desktop or running Docker in a virtual machine, ensure that Docker has at least 4GB main memory assigned. -Either [download](https://github.com/inspectIT/inspectit-ocelot/archive/master.zip) or [clone the inspectit-Ocelot GitHub repository](https://github.com/inspectIT/inspectit-ocelot). +Either [download](https://github.com/inspectIT/inspectit-ocelot-demo/archive/refs/heads/main.zip) or clone the [inspectIT Ocelot-Demo GitHub repository](https://github.com/inspectIT/inspectit-ocelot-demo). -Change into the ```inspectit-ocelot-demo/``` directory and execute the following command to launch the desired demo scenario (replace [SCENARIO_POSTFIX] with the postfix of the scenario you would like to launch): +Change into the `spring-petclinic-docker-demo/` directory and execute the following command to launch the desired demo scenario (replace [SCENARIO_POSTFIX] with the postfix of the scenario you would like to launch): ```bash $ docker-compose -f docker-compose-[SCENARIO_POSTFIX].yml up ``` -This will start all the Docker containers required for the corresponding demo scenario, including the Petclinic demo application. +This will start all the Docker containers required for the corresponding demo scenario, including the PetClinic demo application. You can access the demo application (PetClinic) under http://localhost:8080. Details on accessing monitoring infrastructure components are listed below, depending on the selected demo scenario. -### Starting the Demo on Windows Using WSL - -If you want to execute the demo on Windows using the Windows subsystem for linux (WSL), you have to mount your hard drive to the WSL's root directory due to a problem of Docker for Windows and its volume mounting. - -For example, mounting your C drive to the root file system can be achieved using the following commands: - -```bash -sudo mkdir /c -sudo mount --bind /mnt/c /c -``` - -For more information, check out the following blog post: [Setting Up Docker for Windows and WSL to Work Flawlessly](https://nickjanetakis.com/blog/setting-up-docker-for-windows-and-wsl-to-work-flawlessly) - ## Demo Scenarios @@ -115,7 +104,7 @@ The traces can be viewed in Jaeger on http://localhost:16686. Prometheus can be accessed through http://localhost:9090. :::note -Currently the EUM-Server dashboards are only supported for the InfluxDB demos. You may use the Explore view in Grafana to view the EUM server metrics. +Currently the EUM-Server dashboards are only supported for the InfluxDB demos. You may use the `Explore` view in Grafana to view the EUM server metrics. ::: ### InfluxDB and Jaeger Scenario @@ -159,7 +148,7 @@ Wavefront is a SaaS-based monitoring and tracing solution. In this demo, we are - *Telegraf:* Polls the Prometheus metric endpoints on the services. - *Wavefront Proxy:* Receives Zipkin traces and metrics (via Telegraf), aggregates, secures and compresses them before sending them to Wavefront. -A sandbox instance of Wavefront can be obtained here: https://www.wavefront.com/sign-up/ +A sandbox instance of Wavefront can be obtained at https://www.wavefront.com/sign-up/. The inspectIT Ocelot Configuration Server can be accessed via http://localhost:8090. @@ -184,7 +173,7 @@ The InfluxDB and Prometheus demo scenarios include the following predefined Graf ## Changing Agent Configurations In all demo scenarios the inspectIT Ocelot agents already have their service names and used ports as well as a basic instrumentation set up. -Each scenario uses the *inspectIT Ocelot Configuration Server* for managing and providing the configuration files to the agents. +Each scenario uses the [inspectIT Ocelot Configuration Server](../config-server/overview.md) for managing and providing the configuration files to the agents. The web UI of the configuration server can be accessed via [localhost:8090](http://localhost:8090). The demo starts the following services, of which each is instrumented with an inspectIT Ocelot Agent: From ab42e1ca1a84642b2da1c80872b583f6ca0b48eb Mon Sep 17 00:00:00 2001 From: aaronweissler <46028218+aaronweissler@users.noreply.github.com> Date: Thu, 7 Apr 2022 16:18:01 +0200 Subject: [PATCH 6/8] Remove reference to deleted job in circleci --- .circleci/config.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 6abc7a7b27..7ab2d9f033 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -227,11 +227,6 @@ workflows: <<: *filter_release requires: - checkout - - publish_dashboards_to_marketplace: - filters: - <<: *filter_release - requires: - - checkout - publish_github_release: filters: <<: *filter_release From 6f8fda0122340f94b616803ce30361e6380d4fd8 Mon Sep 17 00:00:00 2001 From: aaronweissler <46028218+aaronweissler@users.noreply.github.com> Date: Mon, 11 Apr 2022 12:55:15 +0200 Subject: [PATCH 7/8] Restructure demo documentation --- .../docs/getting-started/docker-examples.md | 114 ++++++++---------- 1 file changed, 48 insertions(+), 66 deletions(-) diff --git a/inspectit-ocelot-documentation/docs/getting-started/docker-examples.md b/inspectit-ocelot-documentation/docs/getting-started/docker-examples.md index 91f3a338bf..742a019c43 100644 --- a/inspectit-ocelot-documentation/docs/getting-started/docker-examples.md +++ b/inspectit-ocelot-documentation/docs/getting-started/docker-examples.md @@ -6,60 +6,12 @@ sidebar_label: Demo Application ## inspectIT Ocelot Demo -If you would like to see inspectIT Ocelot in action with a demo application, you can use our docker compose example. -We use the distributed version of the [Spring PetClinic sample application](https://github.com/spring-petclinic/spring-petclinic-microservices) as the target application in our demo. -To demonstrate the flexibility of the OpenCensus based inspectIT agent, we provide different demo scenarios covering different monitoring and APM components. +If you would like to see inspectIT Ocelot in action with a demo application, you can use the docker compose examples described below. +The distributed version of the [Spring PetClinic sample application](https://github.com/spring-petclinic/spring-petclinic-microservices) is used as the target application. +To demonstrate the flexibility of the OpenCensus based inspectIT agent, different demo scenarios covering different monitoring and APM components are provided. All the demo scenarios are fully configured with predefined dashboards, *so you can get started in 5 minutes*. -### Demo #1 - Prometheus, Grafana and Jaeger - -Uses Prometheus Server for metrics gathering and storage, Grafana for Dashboards. -Traces are exported to Jaeger. -[See section below for detailed information](#prometheus-and-jaeger-scenario). - -* File: `docker-compose-prometheus-jaeger.yml` -* [OpenAPM Landscape](https://openapm.io/landscape?agent=inspectit-ocelot-agent&instrumentation-lib=opencensus&collector=prometheus-server,jaeger-collector,inspectit-oce-eum-server&visualization=jaeger-query&dashboarding=grafana&usedges=inspectit-ocelot-agent:prometheus-server,inspectit-ocelot-agent:jaeger-collector,jaeger-query:grafana,inspectit-oce-eum-server:prometheus-server,inspectit-oce-eum-server:jaeger-collector&showCommercial=false&showFormats=false) - -![Demo scenario using Prometheus and Jaeger](assets/demo-landscape-prometheus-jaeger.png) - -### Demo #2 - InfluxDB and Jaeger - -Uses InfluxDB for metrics storage and Grafana for Dashboards. -Traces are exported to Jaeger. -[See section below for detailed information](#influxdb-and-jaeger-scenario). - -* File: `docker-compose-influxdb-jaeger.yml` -* [OpenAPM Landscape](https://openapm.io/landscape?agent=inspectit-ocelot-agent&instrumentation-lib=opencensus&collector=jaeger-collector,inspectit-oce-eum-server&storage=influx-db&visualization=jaeger-query&dashboarding=grafana&alerting=grafana&usedges=jaeger-query:grafana,inspectit-ocelot-agent:influx-db,inspectit-ocelot-agent:jaeger-collector,inspectit-ocelot-agent:influxdata-influxdb,inspectit-oce-eum-server:influxdata-influxdb,inspectit-oce-eum-server:jaeger-collector&showCommercial=false&showFormats=false) - -![Demo scenario using InfluxDB and Zipkin](assets/demo-landscape-influxdb-jaeger.png) - -### Demo #3 - InfluxDB and Zipkin - -Uses InfluxDB for metrics storage and Grafana for Dashboards. -Traces are exported to Zipkin. -[See section below for detailed information](#influxdb-and-zipkin-scenario). - -* File: `docker-compose-influxdb-zipkin.yml` -* [OpenAPM Landscape](https://openapm.io/landscape?agent=inspectit-ocelot-agent&instrumentation-lib=opencensus&collector=zipkin-server,inspectit-oce-eum-server&storage=influx-db&visualization=zipkin-server&dashboarding=grafana&alerting=grafana&usedges=inspectit-ocelot-agent:influx-db,inspectit-ocelot-agent:zipkin-server,inspectit-ocelot-agent:influxdata-influxdb,inspectit-oce-eum-server:influxdata-influxdb,inspectit-oce-eum-server:zipkin-server&showCommercial=false&showFormats=false) - -![Demo scenario using InfluxDB and Zipkin](assets/demo-landscape-influxdb-zipkin.png) - -### Demo #4 - Wavefront and Zipkin - -Sends Zipkin traces to Wavefront through a Wavefront proxy running as a Docker container. Collects metrics via Telegraf and sends them to Wavefront. -[See section below for detailed information](#wavefront-demo-scenario). - -* File: `docker-compose-wavefront-zipkin.yml` - -:::note -Before running the demo, you must add the Wavefront host and API token to the ```.env``` file in the ```inspectit-ocelot-demo```. Please add the following lines and change the cluster and token according to your Wavefront instance. -``` -WAVEFRONT_URL=https://.wavefront.com/api -WAVEFRONT_TOKEN= -``` -::: - ## Launching the Demo :::warning @@ -83,35 +35,46 @@ This will start all the Docker containers required for the corresponding demo sc You can access the demo application (PetClinic) under http://localhost:8080. Details on accessing monitoring infrastructure components are listed below, depending on the selected demo scenario. - ## Demo Scenarios > In all scenarios you can use `admin` as username and `demo` as password for accessing Grafana and the inspectIT Ocelot Configuration Server. -### Prometheus and Jaeger Scenario -In this scenario the following components are preconfigured and used for monitoring: +### Demo #1 - Prometheus, Grafana and Jaeger -[![Demo scenario using Prometheus and Jaeger](assets/demo-landscape-prometheus-jaeger.png)](https://openapm.io/landscape?agent=inspectit-ocelot-agent&instrumentation-lib=opencensus&collector=prometheus-server%2Cjaeger-collector&dashboarding=grafana&visualization=jaeger-query) +Uses Prometheus Server for metrics gathering and storage, Grafana for Dashboards. +Traces are exported to Jaeger. +* File: `docker-compose-prometheus-jaeger.yml` +* [OpenAPM Landscape](https://openapm.io/landscape?agent=inspectit-ocelot-agent&instrumentation-lib=opencensus&collector=prometheus-server,jaeger-collector,inspectit-oce-eum-server&visualization=jaeger-query&dashboarding=grafana&usedges=inspectit-ocelot-agent:prometheus-server,inspectit-ocelot-agent:jaeger-collector,jaeger-query:grafana,inspectit-oce-eum-server:prometheus-server,inspectit-oce-eum-server:jaeger-collector&showCommercial=false&showFormats=false) + +![Demo scenario using Prometheus and Jaeger](assets/demo-landscape-prometheus-jaeger.png) + +In this scenario the following components are preconfigured and used for monitoring: - *inspectIT Ocelot agent:* Instruments all the target demo application components. - *inspectIT Ocelot EUM server:* Records the user's behaviour or actions while using the demo application. - *Prometheus Server:* Gathers metrics exposed by the agent. - *Grafana:* Provides predefined example Dashboards visualizing the metrics collected by the inspectIT Ocelot agent. - *Jaeger:* Jaeger is used to store and query all recorded traces. -You can access Grafana through http://localhost:3000 and the configuration server via http://localhost:8090. -The traces can be viewed in Jaeger on http://localhost:16686. +You can access Grafana through http://localhost:3000 and the configuration server via http://localhost:8090. +The traces can be viewed in Jaeger on http://localhost:16686. Prometheus can be accessed through http://localhost:9090. :::note Currently the EUM-Server dashboards are only supported for the InfluxDB demos. You may use the `Explore` view in Grafana to view the EUM server metrics. ::: -### InfluxDB and Jaeger Scenario -In this scenario the following components are preconfigured and used for monitoring: +### Demo #2 - InfluxDB and Jaeger -[![Demo scenario using InfluxDB and Jaeger](assets/demo-landscape-influxdb-jaeger.png)](https://openapm.io/landscape?agent=inspectit-ocelot-agent&instrumentation-lib=opencensus&collector=jaeger-collector&storage=influx-db&visualization=jaeger-query&dashboarding=grafana&alerting=grafana&showCommercial=false&showFormats=false) +Uses InfluxDB for metrics storage and Grafana for Dashboards. +Traces are exported to Jaeger. +* File: `docker-compose-influxdb-jaeger.yml` +* [OpenAPM Landscape](https://openapm.io/landscape?agent=inspectit-ocelot-agent&instrumentation-lib=opencensus&collector=jaeger-collector,inspectit-oce-eum-server&storage=influx-db&visualization=jaeger-query&dashboarding=grafana&alerting=grafana&usedges=jaeger-query:grafana,inspectit-ocelot-agent:influx-db,inspectit-ocelot-agent:jaeger-collector,inspectit-ocelot-agent:influxdata-influxdb,inspectit-oce-eum-server:influxdata-influxdb,inspectit-oce-eum-server:jaeger-collector&showCommercial=false&showFormats=false) + +![Demo scenario using InfluxDB and Zipkin](assets/demo-landscape-influxdb-jaeger.png) + +In this scenario the following components are preconfigured and used for monitoring: - *inspectIT Ocelot agent:* Instruments all the target demo application components. - *inspectIT Ocelot EUM server:* Records the user's behaviour or actions while using the demo application. - *InfluxDB:* Stores metric data exported by OpenCensus as time series. @@ -121,12 +84,17 @@ In this scenario the following components are preconfigured and used for monitor You can access Grafana through http://localhost:3000 and the configuration server via http://localhost:8090. The traces can be viewed in Jaeger on http://localhost:16686. +### Demo #3 - InfluxDB and Zipkin -### InfluxDB and Zipkin Scenario -In this scenario the following components are preconfigured and used for monitoring: +Uses InfluxDB for metrics storage and Grafana for Dashboards. +Traces are exported to Zipkin. -[![Demo scenario using InfluxDB and Zipkin](assets/demo-landscape-influxdb-zipkin.png)](https://openapm.io/landscape?agent=inspectit-ocelot-agent&instrumentation-lib=opencensus&storage=influx-db&dashboarding=grafana&alerting=grafana&collector=zipkin-server&visualization=zipkin-server) +* File: `docker-compose-influxdb-zipkin.yml` +* [OpenAPM Landscape](https://openapm.io/landscape?agent=inspectit-ocelot-agent&instrumentation-lib=opencensus&collector=zipkin-server,inspectit-oce-eum-server&storage=influx-db&visualization=zipkin-server&dashboarding=grafana&alerting=grafana&usedges=inspectit-ocelot-agent:influx-db,inspectit-ocelot-agent:zipkin-server,inspectit-ocelot-agent:influxdata-influxdb,inspectit-oce-eum-server:influxdata-influxdb,inspectit-oce-eum-server:zipkin-server&showCommercial=false&showFormats=false) +![Demo scenario using InfluxDB and Zipkin](assets/demo-landscape-influxdb-zipkin.png) + +In this scenario the following components are preconfigured and used for monitoring: - *inspectIT Ocelot agent:* Instruments all the target demo application components. - *inspectIT Ocelot EUM server:* Records the user's behaviour or actions while using the demo application. - *InfluxDB:* Stores metric data exported by OpenCensus as time series. @@ -137,10 +105,22 @@ You can access Grafana through http://localhost:3000 and the configuration serve The traces can be viewed in Zipkin on http://localhost:9411. :::note -Currently, only the Beacons Dashboard is working for the InfluxDB and Zipkin scenario. +Currently, of the EUM dashboards only the Beacons one is working for this scenario. ::: -### Wavefront Demo Scenario +### Demo #4 - Wavefront and Zipkin + +Sends Zipkin traces to Wavefront through a Wavefront proxy running as a Docker container. Collects metrics via Telegraf and sends them to Wavefront. + +* File: `docker-compose-wavefront-zipkin.yml` + +:::note +Before running the demo, you must add the Wavefront host and API token to the ```.env``` file in the ```inspectit-ocelot-demo```. Please add the following lines and change the cluster and token according to your Wavefront instance. +``` +WAVEFRONT_URL=https://.wavefront.com/api +WAVEFRONT_TOKEN= +``` +::: Wavefront is a SaaS-based monitoring and tracing solution. In this demo, we are running a local proxy as a Docker container that is responsible for receiving Zipkin traces and sending them to Wavefront. We're also using Telegraf to poll the Prometheus endpoints on the monitored services and send that data to Wavefront through the proxy. @@ -188,4 +168,6 @@ The demo starts the following services, of which each is instrumented with an in ## Load Test -All demo scenarios launch with a load test written in [artillery](https://artillery.io/) that simulates user behavior. For 10 minutes approximately every 3 seconds a new virtual user is created which either looks up a random owner from the database or edits the pet type of an existing animal. Therefore no real user interaction with the PetClinic is needed. +All demo scenarios launch with a load test written in [artillery](https://artillery.io/) that simulates user behavior. +For 10 minutes approximately every 3 seconds a new virtual user is created which either looks up a random owner from the database or edits the pet type of an existing animal. +Therefore, no real user interaction with the PetClinic is needed to generate data. From 074d4871458743b53047f697eda6601e0b6ed27a Mon Sep 17 00:00:00 2001 From: aaronweissler <46028218+aaronweissler@users.noreply.github.com> Date: Mon, 11 Apr 2022 12:59:39 +0200 Subject: [PATCH 8/8] Re-add section about Docker for Windows with note --- .../docs/getting-started/docker-examples.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/inspectit-ocelot-documentation/docs/getting-started/docker-examples.md b/inspectit-ocelot-documentation/docs/getting-started/docker-examples.md index 742a019c43..5ae820d2dd 100644 --- a/inspectit-ocelot-documentation/docs/getting-started/docker-examples.md +++ b/inspectit-ocelot-documentation/docs/getting-started/docker-examples.md @@ -35,6 +35,23 @@ This will start all the Docker containers required for the corresponding demo sc You can access the demo application (PetClinic) under http://localhost:8080. Details on accessing monitoring infrastructure components are listed below, depending on the selected demo scenario. +### Starting the Demo on Windows Using WSL + +:::note +Using current versions of Docker Desktop and WSL 2 will work without this workaround. +::: + +If you want to execute the demo on Windows using the Windows subsystem for linux (WSL), you have to mount your hard drive to the WSL's root directory due to a problem of Docker for Windows and its volume mounting. + +For example, mounting your C drive to the root file system can be achieved using the following commands: + +```bash +sudo mkdir /c +sudo mount --bind /mnt/c /c +``` + +For more information, check out the following blog post: [Setting Up Docker for Windows and WSL to Work Flawlessly](https://nickjanetakis.com/blog/setting-up-docker-for-windows-and-wsl-to-work-flawlessly) + ## Demo Scenarios > In all scenarios you can use `admin` as username and `demo` as password for accessing Grafana and the inspectIT Ocelot Configuration Server.