From a08a1dd2439e8b1ce33976538dc2e35270d00fef Mon Sep 17 00:00:00 2001 From: Philipp Dallig Date: Tue, 1 Nov 2022 09:35:11 +0100 Subject: [PATCH] [ZEPPELIN-5123] Add an example grafana dashboard (#4295) * Add an example grafana dashboard * Add dashboard mention to doc * Add operation/monitoring link to setup dropdown Co-authored-by: Johann Behr --- .../themes/zeppelin/_navigation.html | 1 + docs/setup/operation/monitoring.md | 1 + examples/dashboard.json | 1555 +++++++++++++++++ 3 files changed, 1557 insertions(+) create mode 100644 examples/dashboard.json diff --git a/docs/_includes/themes/zeppelin/_navigation.html b/docs/_includes/themes/zeppelin/_navigation.html index b741c21832c..d7f3ee4db71 100644 --- a/docs/_includes/themes/zeppelin/_navigation.html +++ b/docs/_includes/themes/zeppelin/_navigation.html @@ -120,6 +120,7 @@
  • Operation
  • Configuration
  • +
  • Monitoring
  • Proxy Setting
  • Upgrading
  • Trouble Shooting
  • diff --git a/docs/setup/operation/monitoring.md b/docs/setup/operation/monitoring.md index 538b115c366..a2fe4434e9e 100644 --- a/docs/setup/operation/monitoring.md +++ b/docs/setup/operation/monitoring.md @@ -27,6 +27,7 @@ Apache Zeppelin is using [Micrometer](https://micrometer.io/) - a vendor-neutral ### Prometheus Monitoring [Prometheus](https://prometheus.io/) is the leading monitoring solution for [Kubernetes](https://kubernetes.io/). The Prometheus endpoint can be activated with the configuration property `zeppelin.metric.enable.prometheus`. The metrics are accessible via the unauthenticated endpoint `/metrics`. +For [Grafana](https://grafana.com/) a good starting point for a dashboard can be found in our [Github Repository](https://github.com/apache/zeppelin/blob/grafana/examples/dashboard.json). ### JMX Monitoring diff --git a/examples/dashboard.json b/examples/dashboard.json new file mode 100644 index 00000000000..44d6ecb4026 --- /dev/null +++ b/examples/dashboard.json @@ -0,0 +1,1555 @@ +{ + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": "-- Grafana --", + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "target": { + "limit": 100, + "matchAny": false, + "tags": [], + "type": "dashboard" + }, + "type": "dashboard" + } + ] + }, + "editable": true, + "gnetId": null, + "graphTooltip": 0, + "iteration": 1643612603657, + "links": [], + "panels": [ + { + "collapsed": false, + "datasource": null, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 30, + "panels": [], + "title": "Overview", + "type": "row" + }, + { + "datasource": "${datasource}", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 1, + "mappings": [ + { + "options": { + "null": { + "index": 0, + "text": "N/A" + } + }, + "type": "value" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "s" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 8, + "x": 0, + "y": 1 + }, + "id": 28, + "maxDataPoints": null, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "8.1.3", + "targets": [ + { + "exemplar": true, + "expr": "process_uptime_seconds{namespace=\"$namespace\"}", + "format": "time_series", + "instant": true, + "interval": "", + "intervalFactor": 1, + "legendFormat": "", + "refId": "A" + } + ], + "title": "Uptime", + "type": "stat" + }, + { + "datasource": "${datasource}", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "max": 1, + "min": 0, + "thresholds": { + "mode": "percentage", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "#EAB839", + "value": 70 + }, + { + "color": "red", + "value": 90 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 8, + "x": 8, + "y": 1 + }, + "id": 34, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "8.1.3", + "targets": [ + { + "exemplar": true, + "expr": "sum(jvm_memory_used_bytes{namespace=\"$namespace\"}) / sum(jvm_memory_max_bytes{namespace=\"$namespace\"})", + "instant": false, + "interval": "", + "intervalFactor": 10, + "legendFormat": "", + "refId": "A" + } + ], + "title": "Pools Used", + "type": "stat" + }, + { + "datasource": "${datasource}", + "fieldConfig": { + "defaults": { + "color": { + "mode": "continuous-GrYlRd", + "seriesBy": "last" + }, + "custom": { + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "scheme", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "max": 1, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 8, + "x": 16, + "y": 1 + }, + "id": 39, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom" + }, + "tooltip": { + "mode": "single" + } + }, + "pluginVersion": "8.1.3", + "targets": [ + { + "exemplar": true, + "expr": "process_cpu_usage{namespace=\"$namespace\"}", + "interval": "", + "intervalFactor": 1, + "legendFormat": "{{ pod }}", + "refId": "load" + } + ], + "title": "CPU Usage", + "transformations": [], + "type": "timeseries" + }, + { + "datasource": "${datasource}", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "smooth", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 6 + }, + "id": 67, + "options": { + "legend": { + "calcs": [ + "lastNotNull", + "mean", + "max" + ], + "displayMode": "table", + "placement": "bottom" + }, + "tooltip": { + "mode": "single" + } + }, + "targets": [ + { + "exemplar": true, + "expr": "process_files_open_files{namespace=\"$namespace\"}", + "interval": "", + "intervalFactor": 1, + "legendFormat": "{{ pod }}", + "refId": "A" + } + ], + "title": "Open Files", + "type": "timeseries" + }, + { + "datasource": "${datasource}", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic", + "seriesBy": "last" + }, + "custom": { + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "smooth", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "max": 1, + "min": 0, + "thresholds": { + "mode": "percentage", + "steps": [ + { + "color": "red", + "value": null + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 6 + }, + "id": 61, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom" + }, + "tooltip": { + "mode": "single" + } + }, + "targets": [ + { + "exemplar": true, + "expr": "sum(zeppelin_note_cache_hit_total{namespace=\"$namespace\"}) / (sum(zeppelin_note_cache_hit_total{namespace=\"$namespace\"}) + sum(zeppelin_note_cache_miss_total{namespace=\"$namespace\"}))", + "hide": false, + "interval": "", + "intervalFactor": 10, + "legendFormat": "Hit", + "refId": "partshit" + }, + { + "exemplar": true, + "expr": "sum(zeppelin_note_cache_miss_total{namespace=\"$namespace\"}) / (sum(zeppelin_note_cache_hit_total{namespace=\"$namespace\"}) + sum(zeppelin_note_cache_miss_total{namespace=\"$namespace\"}))", + "hide": false, + "interval": "", + "intervalFactor": 10, + "legendFormat": "Miss", + "refId": "partsmiss" + } + ], + "title": "Cache Ratio", + "type": "timeseries" + }, + { + "collapsed": false, + "datasource": null, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 14 + }, + "id": 4, + "panels": [], + "title": "JVM Memory", + "type": "row" + }, + { + "datasource": "${datasource}", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "smooth", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "decbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 15 + }, + "id": 11, + "options": { + "legend": { + "calcs": [ + "lastNotNull", + "mean", + "max" + ], + "displayMode": "table", + "placement": "bottom" + }, + "tooltip": { + "mode": "single" + } + }, + "pluginVersion": "8.1.3", + "targets": [ + { + "exemplar": true, + "expr": "sum(jvm_memory_used_bytes{namespace=\"$namespace\"}) by (pod)", + "interval": "", + "intervalFactor": 1, + "legendFormat": "used {{ pod }}", + "refId": "A" + }, + { + "exemplar": true, + "expr": "sum(jvm_memory_committed_bytes{namespace=\"$namespace\"}) by (pod)", + "hide": false, + "interval": "", + "intervalFactor": 1, + "legendFormat": "committed {{ pod }}", + "refId": "B" + }, + { + "exemplar": true, + "expr": "sum(jvm_memory_max_bytes{namespace=\"$namespace\"}) by (pod)", + "hide": false, + "interval": "", + "intervalFactor": 1, + "legendFormat": "max {{ pod }}", + "refId": "C" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "JVM Total", + "type": "timeseries" + }, + { + "datasource": "${datasource}", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "smooth", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "decbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 15 + }, + "id": 12, + "options": { + "legend": { + "calcs": [ + "lastNotNull", + "mean", + "max" + ], + "displayMode": "table", + "placement": "bottom" + }, + "tooltip": { + "mode": "single" + } + }, + "pluginVersion": "8.1.3", + "targets": [ + { + "exemplar": true, + "expr": "sum(jvm_memory_used_bytes{namespace=\"$namespace\", area=\"heap\"}) by (pod)", + "interval": "", + "intervalFactor": 1, + "legendFormat": "used {{ pod }}", + "refId": "A" + }, + { + "exemplar": true, + "expr": "sum(jvm_memory_committed_bytes{namespace=\"$namespace\", area=\"heap\"}) by (pod)", + "hide": false, + "interval": "", + "intervalFactor": 1, + "legendFormat": "committed {{ pod }}", + "refId": "B" + }, + { + "exemplar": true, + "expr": "sum(jvm_memory_max_bytes{namespace=\"$namespace\", area=\"heap\"}) by (pod)", + "hide": false, + "interval": "", + "intervalFactor": 1, + "legendFormat": "max {{ pod }}", + "refId": "C" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "JVM Heap", + "type": "timeseries" + }, + { + "collapsed": false, + "datasource": null, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 23 + }, + "id": 6, + "panels": [], + "title": "Heap Usage", + "type": "row" + }, + { + "datasource": "${datasource}", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "smooth", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "decbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 8, + "x": 0, + "y": 24 + }, + "id": 8, + "options": { + "legend": { + "calcs": [ + "lastNotNull", + "mean", + "max" + ], + "displayMode": "table", + "placement": "bottom" + }, + "tooltip": { + "mode": "single" + } + }, + "repeat": "mem_pool_heap_id", + "repeatDirection": "h", + "targets": [ + { + "exemplar": true, + "expr": "jvm_memory_max_bytes{namespace=\"$namespace\", id=\"$mem_pool_heap_id\"}", + "interval": "", + "intervalFactor": 1, + "legendFormat": "max {{ pod }}", + "refId": "A" + }, + { + "exemplar": true, + "expr": "jvm_memory_used_bytes{namespace=\"$namespace\", id=\"$mem_pool_heap_id\"}", + "hide": false, + "interval": "", + "intervalFactor": 1, + "legendFormat": "used {{ pod }}", + "refId": "B" + }, + { + "exemplar": true, + "expr": "jvm_memory_committed_bytes{namespace=\"$namespace\", id=\"$mem_pool_heap_id\"}", + "hide": false, + "interval": "", + "intervalFactor": 1, + "legendFormat": "comitted {{ pod }}", + "refId": "C" + } + ], + "title": "$mem_pool_heap_id", + "type": "timeseries" + }, + { + "collapsed": false, + "datasource": null, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 32 + }, + "id": 82, + "panels": [], + "title": "Non-Heap Usage", + "type": "row" + }, + { + "datasource": "${datasource}", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "smooth", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "decbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 8, + "x": 0, + "y": 33 + }, + "id": 91, + "options": { + "legend": { + "calcs": [ + "lastNotNull", + "mean", + "max" + ], + "displayMode": "table", + "placement": "bottom" + }, + "tooltip": { + "mode": "single" + } + }, + "repeat": "mem_pool_nonheap_id", + "repeatDirection": "h", + "targets": [ + { + "exemplar": true, + "expr": "jvm_memory_max_bytes{namespace=\"$namespace\", id=\"$mem_pool_nonheap_id\"}", + "interval": "", + "intervalFactor": 1, + "legendFormat": "max {{ pod }}", + "refId": "A" + }, + { + "exemplar": true, + "expr": "jvm_memory_used_bytes{namespace=\"$namespace\", id=\"$mem_pool_nonheap_id\"}", + "hide": false, + "interval": "", + "intervalFactor": 1, + "legendFormat": "used {{ pod }}", + "refId": "B" + }, + { + "exemplar": true, + "expr": "jvm_memory_committed_bytes{namespace=\"$namespace\", id=\"$mem_pool_nonheap_id\"}", + "hide": false, + "interval": "", + "intervalFactor": 1, + "legendFormat": "comitted {{ pod }}", + "refId": "C" + } + ], + "title": "$mem_pool_nonheap_id", + "type": "timeseries" + }, + { + "collapsed": false, + "datasource": null, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 41 + }, + "id": 47, + "panels": [], + "title": "Jetty", + "type": "row" + }, + { + "datasource": "${datasource}", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "smooth", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 42 + }, + "id": 76, + "options": { + "legend": { + "calcs": [ + "lastNotNull", + "mean", + "max" + ], + "displayMode": "table", + "placement": "bottom" + }, + "tooltip": { + "mode": "single" + } + }, + "targets": [ + { + "exemplar": true, + "expr": "jetty_connections_max_connections{namespace=\"$namespace\"}", + "interval": "", + "intervalFactor": 1, + "legendFormat": "Connection Pool Size", + "refId": "limit" + }, + { + "exemplar": true, + "expr": "jetty_connections_current_connections{namespace=\"$namespace\"}", + "hide": false, + "interval": "", + "intervalFactor": 1, + "legendFormat": "Connections", + "refId": "current" + } + ], + "title": "Connections", + "type": "timeseries" + }, + { + "datasource": "${datasource}", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "smooth", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 10, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "yellow", + "value": 80 + }, + { + "color": "red", + "value": 90 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 42 + }, + "id": 49, + "options": { + "legend": { + "calcs": [ + "lastNotNull", + "mean", + "max" + ], + "displayMode": "table", + "placement": "bottom" + }, + "tooltip": { + "mode": "single" + } + }, + "targets": [ + { + "exemplar": true, + "expr": "sum(jetty_threads_config_max{namespace=\"$namespace\"})", + "hide": true, + "interval": "", + "intervalFactor": 1, + "legendFormat": "", + "refId": "max" + }, + { + "exemplar": true, + "expr": "sum(jetty_threads_config_min{namespace=\"$namespace\"})", + "hide": true, + "interval": "", + "intervalFactor": 1, + "legendFormat": "", + "refId": "min" + }, + { + "exemplar": true, + "expr": "sum(jetty_threads_current{namespace=\"$namespace\"})", + "hide": false, + "interval": "", + "intervalFactor": 1, + "legendFormat": "Current", + "refId": "current" + }, + { + "exemplar": true, + "expr": "sum(jetty_threads_busy{namespace=\"$namespace\"})", + "hide": false, + "interval": "", + "intervalFactor": 1, + "legendFormat": "Busy", + "refId": "busy" + } + ], + "title": "Threads", + "transformations": [], + "type": "timeseries" + }, + { + "datasource": "${datasource}", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "smooth", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "reqps" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 50 + }, + "id": 77, + "options": { + "legend": { + "calcs": [ + "lastNotNull", + "mean", + "max" + ], + "displayMode": "table", + "placement": "bottom" + }, + "tooltip": { + "mode": "single" + } + }, + "targets": [ + { + "exemplar": true, + "expr": "sum(irate(jetty_server_requests_seconds_count{namespace=\"$namespace\"}[5m])) by (method)", + "hide": false, + "interval": "", + "intervalFactor": 1, + "legendFormat": "{{ method }}", + "refId": "A" + } + ], + "title": "Request Methods", + "type": "timeseries" + }, + { + "datasource": "${datasource}", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "smooth", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "s" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 50 + }, + "id": 71, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom" + }, + "tooltip": { + "mode": "single" + } + }, + "targets": [ + { + "exemplar": true, + "expr": "avg(jetty_server_requests_seconds_sum{namespace=\"$namespace\"} / jetty_server_requests_seconds_count{namespace=\"$namespace\"}) by (method,status)", + "hide": false, + "interval": "", + "intervalFactor": 1, + "legendFormat": "{{ method }}: {{ status }}", + "refId": "C" + } + ], + "title": "Request Average Durations", + "type": "timeseries" + }, + { + "datasource": "${datasource}", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "smooth", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "noValue": "0", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "reqps" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 24, + "x": 0, + "y": 58 + }, + "id": 63, + "maxPerRow": 4, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom" + }, + "tooltip": { + "mode": "single" + } + }, + "pluginVersion": "8.1.3", + "repeat": "methods", + "repeatDirection": "v", + "targets": [ + { + "exemplar": true, + "expr": "sum(irate(jetty_server_requests_seconds_count{namespace=\"$namespace\", method=\"$methods\"}[5m])) by (method)", + "instant": false, + "interval": "", + "intervalFactor": 1, + "legendFormat": "{{ method }} Count", + "refId": "A" + } + ], + "title": "$methods", + "type": "timeseries" + } + ], + "refresh": false, + "schemaVersion": 30, + "style": "dark", + "tags": [], + "templating": { + "list": [ + { + "current": { + "selected": false, + "text": "Prometheus", + "value": "Prometheus" + }, + "description": "", + "error": null, + "hide": 0, + "includeAll": false, + "label": null, + "multi": false, + "name": "datasource", + "options": [], + "query": "prometheus", + "queryValue": "", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "type": "datasource" + }, + { + "allValue": null, + "current": { + "selected": true, + "text": "", + "value": "" + }, + "datasource": "Prometheus", + "definition": "label_values(jvm_memory_max_bytes, namespace)", + "description": "", + "error": null, + "hide": 0, + "includeAll": false, + "label": "Namespace", + "multi": false, + "name": "namespace", + "options": [], + "query": { + "query": "label_values(jvm_memory_max_bytes, namespace)", + "refId": "StandardVariableQuery" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + }, + { + "allValue": null, + "current": { + "selected": false, + "text": "All", + "value": "$__all" + }, + "datasource": "${datasource}", + "definition": "label_values(jvm_memory_used_bytes{namespace=\"$namespace\", area=\"heap\"}, id)", + "description": null, + "error": null, + "hide": 2, + "includeAll": true, + "label": "Memory Pools Heap", + "multi": false, + "name": "mem_pool_heap_id", + "options": [], + "query": { + "query": "label_values(jvm_memory_used_bytes{namespace=\"$namespace\", area=\"heap\"}, id)", + "refId": "StandardVariableQuery" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + }, + { + "allValue": null, + "current": { + "selected": false, + "text": "All", + "value": "$__all" + }, + "datasource": "${datasource}", + "definition": "label_values(jvm_memory_used_bytes{namespace=\"$namespace\", area=\"nonheap\"}, id)", + "description": null, + "error": null, + "hide": 2, + "includeAll": true, + "label": "Memory Pools Non-Heap", + "multi": false, + "name": "mem_pool_nonheap_id", + "options": [], + "query": { + "query": "label_values(jvm_memory_used_bytes{namespace=\"$namespace\", area=\"nonheap\"}, id)", + "refId": "StandardVariableQuery" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + }, + { + "allValue": null, + "current": { + "selected": false, + "text": "All", + "value": "$__all" + }, + "datasource": "${datasource}", + "definition": "label_values(jetty_server_requests_seconds_count{namespace=\"$namespace\"}, method)", + "description": "Response statuses", + "error": null, + "hide": 2, + "includeAll": true, + "label": null, + "multi": false, + "name": "methods", + "options": [], + "query": { + "query": "label_values(jetty_server_requests_seconds_count{namespace=\"$namespace\"}, method)", + "refId": "StandardVariableQuery" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + } + ] + }, + "time": { + "from": "now-6h", + "to": "now" + }, + "timepicker": {}, + "timezone": "", + "title": "Zeppelin", + "uid": "0qEUoL0nz", + "version": 37 +}