diff --git a/cbmonitor/dashboards/cluster_manager_basic.json b/cbmonitor/dashboards/cluster_manager_basic.json deleted file mode 100644 index 126674a..0000000 --- a/cbmonitor/dashboards/cluster_manager_basic.json +++ /dev/null @@ -1,662 +0,0 @@ -{ - "annotations": { - "list": [ - { - "builtIn": 1, - "datasource": { - "type": "grafana", - "uid": "-- Grafana --" - }, - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "type": "dashboard" - } - ] - }, - "editable": true, - "fiscalYearStartMonth": 0, - "graphTooltip": 0, - "id": 7, - "links": [], - "panels": [ - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "reqps" - }, - "overrides": [] - }, - "gridPos": { - "h": 12, - "w": 12, - "x": 0, - "y": 0 - }, - "id": 1, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "hide": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.97 GET`\nFROM metrics_filter(\"cm_http_requests_total\", '$snapshot', \"172.23.96.97:8091\", NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND d.labels.method = \"GET\"", - "refId": "A" - }, - { - "analytics": false, - "hide": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.223 GET`\nFROM metrics_filter(\"cm_http_requests_total\", '$snapshot', \"172.23.96.223:8091\", NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND d.labels.method = \"GET\"", - "refId": "B" - }, - { - "analytics": false, - "hide": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.97 POST`\nFROM metrics_filter(\"cm_http_requests_total\", '$snapshot', \"172.23.96.97:8091\", NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND d.labels.method = \"POST\"", - "refId": "C" - }, - { - "analytics": false, - "hide": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.223 POST`\nFROM metrics_filter(\"cm_http_requests_total\", '$snapshot', \"172.23.96.223:8091\", NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND d.labels.method = \"POST\"", - "refId": "D" - }, - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.97 DELETE`\nFROM metrics_filter(\"cm_http_requests_total\", '$snapshot', \"172.23.96.97:8091\", NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND d.labels.method = \"DELETE\"", - "refId": "E" - }, - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.223 DELETE`\nFROM metrics_filter(\"cm_http_requests_total\", '$snapshot', \"172.23.96.223:8091\", NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND d.labels.method = \"DELETE\"", - "refId": "F" - } - ], - "title": "HTTP Requests Total", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 12, - "w": 12, - "x": 12, - "y": 0 - }, - "id": 2, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.97`\nFROM metrics_filter(\"cm_http_requests_seconds_bucket\", '$snapshot', \"172.23.96.97:8091\", NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "A" - }, - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.223`\nFROM metrics_filter(\"cm_http_requests_seconds_bucket\", '$snapshot', \"172.23.96.223:8091\", NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "B" - } - ], - "title": "HTTP Requests Seconds Bucket", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 12, - "w": 12, - "x": 0, - "y": 12 - }, - "id": 4, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.97`\nFROM metrics_filter(\"cm_auto_failover_count\", '$snapshot', \"172.23.96.97:8091\", NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "A" - }, - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.223`\nFROM metrics_filter(\"cm_auto_failover_count\", '$snapshot', \"172.23.96.223:8091\", NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "B" - } - ], - "title": "CM Auto Failover Count", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 12, - "w": 12, - "x": 12, - "y": 12 - }, - "id": 3, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.97`\nFROM metrics_filter(\"cm_http_requests_seconds_count\", '$snapshot', \"172.23.96.97:8091\", NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "A" - }, - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.223`\nFROM metrics_filter(\"cm_http_requests_seconds_count\", '$snapshot', \"172.23.96.223:8091\", NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "B" - } - ], - "title": "HTTP Requests Seconds Count", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 12, - "w": 12, - "x": 0, - "y": 24 - }, - "id": 5, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.97`\nFROM metrics_filter(\"cm_erlang_process_count\", '$snapshot', \"172.23.96.97:8091\", NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "A" - }, - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.223`\nFROM metrics_filter(\"cm_erlang_process_count\", '$snapshot', \"172.23.96.223:8091\", NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "B" - } - ], - "title": "CM Earlang Process Count", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 12, - "w": 12, - "x": 12, - "y": 24 - }, - "id": 6, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.97`\nFROM metrics_filter(\"cm_is_balanced\", '$snapshot', \"172.23.96.97:8091\", NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "A" - }, - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.223`\nFROM metrics_filter(\"cm_is_balanced\", '$snapshot', \"172.23.96.223:8091\", NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "B" - } - ], - "title": "Node is balanced", - "type": "timeseries" - } - ], - "preload": false, - "schemaVersion": 41, - "tags": [], - "templating": { - "list": [ - { - "allValue": "All", - "current": { - "text": "All", - "value": "$__all" - }, - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "definition": "SELECT DISTINCT d.labels.job FROM cbmonitor._default._default AS d WHERE d.labels.job IS NOT NULL", - "includeAll": true, - "label": "Job", - "name": "snapshot", - "options": [], - "query": "SELECT DISTINCT d.labels.job FROM cbmonitor._default._default AS d WHERE d.labels.job IS NOT NULL", - "refresh": 1, - "type": "query" - } - ] - }, - "time": { - "from": "now-1h", - "to": "now" - }, - "timepicker": {}, - "timezone": "browser", - "title": "cluster_manager_basic", - "uid": "6f4a2c2f-eb84-4a92-b8ac-2f955336d624", - "version": 2 -} \ No newline at end of file diff --git a/cbmonitor/dashboards/eventing_basic.json b/cbmonitor/dashboards/eventing_basic.json deleted file mode 100644 index d75ad23..0000000 --- a/cbmonitor/dashboards/eventing_basic.json +++ /dev/null @@ -1,157 +0,0 @@ -{ - "annotations": { - "list": [ - { - "builtIn": 1, - "datasource": { - "type": "grafana", - "uid": "-- Grafana --" - }, - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "type": "dashboard" - } - ] - }, - "editable": true, - "fiscalYearStartMonth": 0, - "graphTooltip": 0, - "id": 6, - "links": [], - "panels": [ - { - "datasource": { - "type": "couchbase-datasource", - "uid": "PE43222976ED53D25" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 0 - }, - "id": 2, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.97`\nFROM metrics_filter(\"eventing_worker_restart_count\", '$snapshot',\"172.23.96.97:8091\", NULL) AS d\nUNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) ", - "refId": "A" - }, - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.223`\nFROM metrics_filter(\"eventing_worker_restart_count\", '$snapshot', \"172.23.96.223:8091\",NULL) AS d\nUNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) ", - "refId": "B" - } - ], - "title": "eventing_worker_restart_count", - "type": "timeseries" - } - ], - "preload": false, - "schemaVersion": 41, - "tags": [], - "templating": { - "list": [ - { - "allValue": "All", - "current": { - "text": "All", - "value": "$__all" - }, - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "definition": "SELECT DISTINCT d.labels.job FROM cbmonitor._default._default AS d WHERE d.labels.job IS NOT NULL", - "includeAll": true, - "label": "Job", - "name": "snapshot", - "options": [], - "query": "SELECT DISTINCT d.labels.job FROM cbmonitor._default._default AS d WHERE d.labels.job IS NOT NULL", - "refresh": 1, - "type": "query" - } - ] - }, - "time": { - "from": "now-24h", - "to": "now" - }, - "timepicker": {}, - "timezone": "browser", - "title": "eventing_basic", - "uid": "4bfaf8bb-3150-43df-87ac-a24bee38fdd7", - "version": 4 -} \ No newline at end of file diff --git a/cbmonitor/dashboards/fts_basic.json b/cbmonitor/dashboards/fts_basic.json deleted file mode 100644 index 5a2caba..0000000 --- a/cbmonitor/dashboards/fts_basic.json +++ /dev/null @@ -1,1127 +0,0 @@ -{ - "annotations": { - "list": [ - { - "builtIn": 1, - "datasource": { - "type": "grafana", - "uid": "-- Grafana --" - }, - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "type": "dashboard" - } - ] - }, - "editable": true, - "fiscalYearStartMonth": 0, - "graphTooltip": 0, - "id": 6, - "links": [], - "panels": [ - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 0 - }, - "id": 2, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.97`\nFROM metrics_filter(\"fts_num_bytes_used_disk\", '$snapshot', \"172.23.96.97:8091\", NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "A" - }, - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.223`\nFROM metrics_filter(\"fts_num_bytes_used_disk\", '$snapshot', \"172.23.96.223:8091\", NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "B" - } - ], - "title": "fts_num_bytes_used_disk", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 0 - }, - "id": 7, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.97`\nFROM metrics_filter(\"fts_num_files_on_disk\", '$snapshot', \"172.23.96.97:8091\", NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "A" - }, - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.223`\nFROM metrics_filter(\"fts_num_files_on_disk\", '$snapshot', \"172.23.96.223:8091\", NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "B" - } - ], - "title": "fts_num_files_on_disk", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 8 - }, - "id": 11, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.97`\nFROM metrics_filter(\"fts_num_bytes_used_ram\", '$snapshot', \"172.23.96.97:8091\", NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "A" - }, - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.223`\nFROM metrics_filter(\"fts_num_bytes_used_ram\", '$snapshot', \"172.23.96.223:8091\", NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "B" - } - ], - "title": "fts_num_bytes_used_ram", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "s" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 8 - }, - "id": 4, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.97`\nFROM metrics_filter(\"fts_total_request_time\", '$snapshot', \"172.23.96.97:8091\", NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "A" - }, - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.223`\nFROM metrics_filter(\"fts_total_request_time\", '$snapshot', \"172.23.96.223:8091\", NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "B" - } - ], - "title": "fts_total_request_time", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 16 - }, - "id": 5, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.97`\nFROM metrics_filter(\"fts_total_queries\", '$snapshot', \"172.23.96.97:8091\", NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "A" - }, - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.223`\nFROM metrics_filter(\"fts_total_queries\", '$snapshot', \"172.23.96.223:8091\", NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "B" - } - ], - "title": "fts_total_queries", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 16 - }, - "id": 3, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.97`\nFROM metrics_filter(\"fts_total_queries_error\", '$snapshot', \"172.23.96.97:8091\", NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "A" - }, - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.223`\nFROM metrics_filter(\"fts_total_queries_error\", '$snapshot', \"172.23.96.223:8091\", NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "B" - } - ], - "title": "fts_total_queries_error", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 24 - }, - "id": 6, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.97`\nFROM metrics_filter(\"fts_total_bytes_query_results\", '$snapshot', \"172.23.96.97:8091\", NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "A" - }, - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.223`\nFROM metrics_filter(\"fts_total_bytes_query_results\", '$snapshot', \"172.23.96.223:8091\", NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "B" - } - ], - "title": "fts_total_bytes_query_results", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 24 - }, - "id": 8, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.97`\nFROM metrics_filter(\"fts_total_queries_slow\", '$snapshot', \"172.23.96.97:8091\", NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "A" - }, - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.223`\nFROM metrics_filter(\"fts_total_queries_slow\", '$snapshot', \"172.23.96.223:8091\", NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "B" - } - ], - "title": "fts_total_queries_slow", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 6, - "y": 32 - }, - "id": 10, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.97`\nFROM metrics_filter(\"fts_total_queries_timeout\", '$snapshot', \"172.23.96.97:8091\", NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "A" - }, - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.223`\nFROM metrics_filter(\"fts_total_queries_timeout\", '$snapshot', \"172.23.96.223:8091\", NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "B" - } - ], - "title": "fts_total_queries_timeout", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 40 - }, - "id": 9, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.97`\nFROM metrics_filter(\"fts_total_gc\", '$snapshot', \"172.23.96.97:8091\", NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "A" - }, - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.223`\nFROM metrics_filter(\"fts_total_gc\", '$snapshot', \"172.23.96.223:8091\", NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "B" - } - ], - "title": "fts_total_gc", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "percent" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 40 - }, - "id": 12, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.97`\nFROM metrics_filter(\"fts_pct_cpu_gc\", '$snapshot', \"172.23.96.97:8091\", NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "A" - }, - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.223`\nFROM metrics_filter(\"fts_pct_cpu_gc\", '$snapshot', \"172.23.96.223:8091\", NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "B" - } - ], - "title": "fts_pct_cpu_gc", - "type": "timeseries" - } - ], - "preload": false, - "schemaVersion": 41, - "tags": [], - "templating": { - "list": [ - { - "allValue": "All", - "current": { - "text": "All", - "value": "$__all" - }, - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "definition": "SELECT DISTINCT d.labels.job FROM cbmonitor._default._default AS d WHERE d.labels.job IS NOT NULL", - "includeAll": true, - "label": "Job", - "name": "snapshot", - "options": [], - "query": "SELECT DISTINCT d.labels.job FROM cbmonitor._default._default AS d WHERE d.labels.job IS NOT NULL", - "refresh": 1, - "type": "query" - } - ] - }, - "time": { - "from": "now-1h", - "to": "now" - }, - "timepicker": {}, - "timezone": "browser", - "title": "fts_basic", - "uid": "b398ca34-ddd6-4414-8df3-576d8eed7e18", - "version": 15 -} \ No newline at end of file diff --git a/cbmonitor/dashboards/index_basic.json b/cbmonitor/dashboards/index_basic.json deleted file mode 100644 index c9a951d..0000000 --- a/cbmonitor/dashboards/index_basic.json +++ /dev/null @@ -1,1531 +0,0 @@ -{ - "annotations": { - "list": [ - { - "builtIn": 1, - "datasource": { - "type": "grafana", - "uid": "-- Grafana --" - }, - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "type": "dashboard" - } - ] - }, - "editable": true, - "fiscalYearStartMonth": 0, - "graphTooltip": 0, - "id": 4, - "links": [], - "panels": [ - { - "datasource": { - "type": "couchbase-datasource", - "uid": "PE43222976ED53D25" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "binBps" - }, - "overrides": [] - }, - "gridPos": { - "h": 12, - "w": 12, - "x": 0, - "y": 0 - }, - "id": 3, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.223`\nFROM metrics_filter(\"index_avg_disk_bps\", '$snapshot', \"172.23.96.223:8091\", NULL) AS d\nUNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "A" - }, - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.97`\nFROM metrics_filter(\"index_avg_disk_bps\", '$snapshot', \"172.23.96.97:8091\", NULL) AS d\nUNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "B" - } - ], - "title": "Index Disk Bytes per Second", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "PE43222976ED53D25" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 12, - "w": 12, - "x": 12, - "y": 0 - }, - "id": 5, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.223`\nFROM metrics_filter(\"index_avg_mutation_rate\", '$snapshot', \"172.23.96.223:8091\", NULL) AS d\nUNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "A" - }, - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.97`\nFROM metrics_filter(\"index_avg_mutation_rate\", '$snapshot', \"172.23.96.97:8091\", NULL) AS d\nUNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "B" - } - ], - "title": "Index Mutation Rate", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "PE43222976ED53D25" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "ops" - }, - "overrides": [] - }, - "gridPos": { - "h": 12, - "w": 12, - "x": 0, - "y": 12 - }, - "id": 6, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.223`\nFROM metrics_filter(\"index_net_avg_scan_rate\", '$snapshot', \"172.23.96.223:8091\", NULL) AS d\nUNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "A" - }, - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.97`\nFROM metrics_filter(\"index_net_avg_scan_rate\", '$snapshot', \"172.23.96.97:8091\", NULL) AS d\nUNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "B" - } - ], - "title": "Index Average Scan Rate", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "PE43222976ED53D25" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 12, - "w": 12, - "x": 12, - "y": 12 - }, - "id": 4, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.223`\nFROM metrics_filter(\"index_memory_rss\", '$snapshot', \"172.23.96.223:8091\", NULL) AS d\nUNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "A" - }, - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.97`\nFROM metrics_filter(\"index_memory_rss\", '$snapshot', \"172.23.96.97:8091\", NULL) AS d\nUNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "B" - } - ], - "title": "Indexer Process Resident Set Size", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "PE43222976ED53D25" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 12, - "w": 12, - "x": 0, - "y": 24 - }, - "id": 2, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `cbmonitor-172.23.96.223`\nFROM metrics_filter(\"index_memory_used\", '$snapshot', \"172.23.96.223:8091\", \"cbmonitor\") AS d\nUNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "A" - }, - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `cbmonitor-172.23.96.97`\nFROM metrics_filter(\"index_memory_used\", '$snapshot', \"172.23.96.97:8091\", \"cbmonitor\") AS d\nUNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "B" - }, - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `metadata-172.23.96.223`\nFROM metrics_filter(\"index_memory_used\", '$snapshot', \"172.23.96.223:8091\", \"metadata\") AS d\nUNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "C" - }, - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `metadata-172.23.96.97`\nFROM metrics_filter(\"index_memory_used\", '$snapshot', \"172.23.96.97:8091\", \"metadata\") AS d\nUNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "D" - } - ], - "title": "Index Memory Used", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "PE43222976ED53D25" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 12, - "w": 12, - "x": 12, - "y": 24 - }, - "id": 7, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.223`\nFROM metrics_filter(\"index_total_data_size\", '$snapshot', \"172.23.96.223:8091\", NULL) AS d\nUNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "A" - }, - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.97`\nFROM metrics_filter(\"index_total_data_size\", '$snapshot', \"172.23.96.97:8091\", NULL) AS d\nUNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "B" - } - ], - "title": "Total Index Data Size", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "PE43222976ED53D25" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 12, - "w": 12, - "x": 0, - "y": 36 - }, - "id": 8, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `cbmonitor`\nFROM metrics_filter(\"index_avg_item_size\", '$snapshot', NULL, \"cbmonitor\") AS d\nUNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`index` = '$index' OR '$index' = \"\")", - "refId": "A" - }, - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `metadata`\nFROM metrics_filter(\"index_avg_item_size\", '$snapshot', NULL, \"metadata\") AS d\nUNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`index` = '$index' OR '$index' = \"\")", - "refId": "B" - } - ], - "title": "Index Average Item Size", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "PE43222976ED53D25" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "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": 0 - }, - { - "color": "red", - "value": 100 - } - ] - }, - "unit": "ns" - }, - "overrides": [] - }, - "gridPos": { - "h": 12, - "w": 12, - "x": 12, - "y": 36 - }, - "id": 9, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `cbmonitor`\nFROM metrics_filter(\"index_avg_scan_latency\", '$snapshot', NULL, \"cbmonitor\") AS d\nUNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`index` = '$index' OR '$index' = \"\")", - "refId": "A" - }, - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `metadata`\nFROM metrics_filter(\"index_avg_scan_latency\", '$snapshot', NULL, \"metadata\") AS d\nUNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`index` = '$index' OR '$index' = \"\")", - "refId": "B" - } - ], - "title": "Index Average Scan Latency", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "PE43222976ED53D25" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 12, - "w": 12, - "x": 0, - "y": 48 - }, - "id": 10, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `cbmonitor`\nFROM metrics_filter(\"index_cache_hits\", '$snapshot', NULL, \"cbmonitor\") AS d\nUNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`index` = '$index' OR '$index' = \"\")", - "refId": "A" - }, - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `metadata`\nFROM metrics_filter(\"index_cache_hits\", '$snapshot', NULL,\"metadata\") AS d\nUNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`index` = '$index' OR '$index' = \"\")", - "refId": "B" - } - ], - "title": "Index Cache Hits", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "PE43222976ED53D25" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 12, - "w": 12, - "x": 12, - "y": 48 - }, - "id": 11, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `cbmonitor`\nFROM metrics_filter(\"index_cache_misses\", '$snapshot', NULL, \"cbmonitor\") AS d\nUNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`index` = '$index' OR '$index' = \"\")", - "refId": "A" - }, - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `metadata`\nFROM metrics_filter(\"index_cache_misses\", '$snapshot', NULL, \"metadata\") AS d\nUNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`index` = '$index' OR '$index' = \"\")", - "refId": "B" - } - ], - "title": "Index Cache Misses", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "PE43222976ED53D25" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "reqps" - }, - "overrides": [] - }, - "gridPos": { - "h": 12, - "w": 12, - "x": 0, - "y": 60 - }, - "id": 12, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `metadata`\nFROM metrics_filter(\"index_num_requests\", '$snapshot', NULL, \"metadata\") AS d\nUNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`index` = '$index' OR '$index' = \"\")", - "refId": "A" - }, - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `cbmonitor`\nFROM metrics_filter(\"index_num_requests\", '$snapshot', NULL, \"cbmonitor\") AS d\nUNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`index` = '$index' OR '$index' = \"\")", - "refId": "B" - } - ], - "title": "Index Number of Requests", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "PE43222976ED53D25" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 12, - "w": 12, - "x": 12, - "y": 60 - }, - "id": 13, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "hide": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `cbmonitor`\nFROM metrics_filter(\"index_num_rows_returned\", '$snapshot', NULL, \"cbmonitor\") AS d\nUNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`index` = '$index' OR '$index' = \"\")", - "refId": "A" - }, - { - "analytics": false, - "hide": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `metadata`\nFROM metrics_filter(\"index_num_rows_returned\", '$snapshot', NULL, \"metadata\") AS d\nUNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`index` = '$index' OR '$index' = \"\")", - "refId": "B" - } - ], - "title": "Index Number of Rows Returned", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "PE43222976ED53D25" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 12, - "w": 12, - "x": 0, - "y": 72 - }, - "id": 14, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `cbmonitor`\nFROM metrics_filter(\"index_num_docs_indexed\", '$snapshot', NULL, \"cbmonitor\") AS d\nUNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`index` = '$index' OR '$index' = \"\")", - "refId": "A" - }, - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `metadata`\nFROM metrics_filter(\"index_num_docs_indexed\", '$snapshot', NULL, \"metadata\") AS d\nUNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`index` = '$index' OR '$index' = \"\")", - "refId": "B" - } - ], - "title": "Index Number of Documents Indexed", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "PE43222976ED53D25" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 12, - "w": 12, - "x": 12, - "y": 72 - }, - "id": 15, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `cbmonitor`\nFROM metrics_filter(\"index_items_count\", '$snapshot', NULL, \"cbmonitor\") AS d\nUNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`index` = '$index' OR '$index' = \"\")", - "refId": "A" - }, - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `metadata`\nFROM metrics_filter(\"index_items_count\", '$snapshot', NULL, \"metadata\") AS d\nUNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`index` = '$index' OR '$index' = \"\")", - "refId": "B" - } - ], - "title": "Index Items Count", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "PE43222976ED53D25" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 12, - "w": 12, - "x": 0, - "y": 84 - }, - "id": 16, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `cbmonitor`\nFROM metrics_filter(\"index_disk_size\", '$snapshot', NULL, \"cbmonitor\") AS d\nUNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`index` = '$index' OR '$index' = \"\")", - "refId": "A" - }, - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `metadata`\nFROM metrics_filter(\"index_disk_size\", '$snapshot', NULL, \"metadata\") AS d\nUNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`index` = '$index' OR '$index' = \"\")", - "refId": "B" - } - ], - "title": "Index Disk Size", - "type": "timeseries" - } - ], - "preload": false, - "schemaVersion": 41, - "tags": [], - "templating": { - "list": [ - { - "allValue": "All", - "current": { - "text": "All", - "value": "$__all" - }, - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "definition": "SELECT DISTINCT d.labels.job FROM cbmonitor._default._default AS d WHERE d.labels.job IS NOT NULL", - "includeAll": true, - "label": "Job", - "name": "snapshot", - "options": [], - "query": "SELECT DISTINCT d.labels.job FROM cbmonitor._default._default AS d WHERE d.labels.job IS NOT NULL", - "refresh": 1, - "type": "query" - }, - { - "current": { - "text": "", - "value": "" - }, - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "definition": "SELECT DISTINCT d.labels.`index` FROM cbmonitor._default._default AS d WHERE d.labels.`index` IS NOT NULL", - "includeAll": false, - "label": "Index", - "name": "index", - "options": [], - "query": "SELECT DISTINCT d.labels.`index` FROM cbmonitor._default._default AS d WHERE d.labels.`index` IS NOT NULL", - "refresh": 1, - "type": "query" - } - ] - }, - "time": { - "from": "now-1h", - "to": "now" - }, - "timepicker": {}, - "timezone": "browser", - "title": "index_basic", - "uid": "c78d444d-1f00-45cd-8bbe-565b4bb3b5a0", - "version": 6 -} \ No newline at end of file diff --git a/cbmonitor/dashboards/kv_basic.json b/cbmonitor/dashboards/kv_basic.json deleted file mode 100644 index 9ceda2e..0000000 --- a/cbmonitor/dashboards/kv_basic.json +++ /dev/null @@ -1,1124 +0,0 @@ -{ - "annotations": { - "list": [ - { - "builtIn": 1, - "datasource": { - "type": "grafana", - "uid": "-- Grafana --" - }, - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "type": "dashboard" - } - ] - }, - "editable": true, - "fiscalYearStartMonth": 0, - "graphTooltip": 0, - "id": 2, - "links": [], - "panels": [ - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 4, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 24, - "x": 0, - "y": 0 - }, - "id": 10, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS mem\nFROM metrics_filter(\"kv_mem_used_bytes\", '$snapshot', NULL, \"cbmonitor\") AS d\nUNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "A" - }, - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS memory\nFROM metrics_filter(\"kv_memory_used_bytes\", '$snapshot', NULL, \"cbmonitor\") AS d\nUNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "B" - } - ], - "title": "KV Memory Usage (Bytes)", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 20, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 4, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 8 - }, - "id": 4, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS cbmonitor\nFROM cbmonitor._default._default AS d\nUNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE d.metric_name=\"kv_ep_meta_data_memory_bytes\"\n AND ('$snapshot'='All' OR d.labels.job='$snapshot')\n AND d.labels.`bucket`=\"cbmonitor\"\n AND time_range(t._t)", - "refId": "A" - }, - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS metadata\nFROM cbmonitor._default._default AS d\nUNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE d.metric_name=\"kv_ep_meta_data_memory_bytes\"\n AND ('$snapshot'='All' OR d.labels.job='$snapshot')\n AND d.labels.`bucket`=\"metadata\"\n AND time_range(t._t)", - "refId": "B" - } - ], - "title": "Metadata Memory Usage (Bytes)", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 4, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 8 - }, - "id": 12, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS cbmonitor\nFROM metrics_filter(\"couch_docs_actual_disk_size\", '$snapshot', NULL, \"cbmonitor\") AS d\nUNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "A" - }, - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS metadata\nFROM metrics_filter(\"couch_docs_actual_disk_size\", '$snapshot', NULL, \"metadata\") AS d\nUNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "B" - } - ], - "title": "Couch Docs Actual Disk Size (Bytes)", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 20, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 4, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 24, - "x": 0, - "y": 16 - }, - "id": 7, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS cbmonitor\nFROM cbmonitor._default._default AS d\nUNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE d.metric_name=\"kv_ep_queue_size\"\n AND d.labels.`bucket`=\"cbmonitor\"\n AND ('$snapshot'='All' OR d.labels.job='$snapshot')\n AND time_range(t._t)", - "refId": "A" - }, - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS metadata\nFROM cbmonitor._default._default AS d\nUNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE d.metric_name=\"kv_ep_queue_size\"\n AND d.labels.`bucket`=\"metadata\"\n AND ('$snapshot'='All' OR d.labels.job='$snapshot')\n AND time_range(t._t)", - "refId": "B" - } - ], - "title": "KV Engine Queue Size", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 18, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 4, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "ops" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 24 - }, - "id": 13, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS cbmonitor FROM cbmonitor._default._default AS d UNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t WHERE d.metric_name=\"kv_ops\" AND ('$snapshot'='All' OR d.labels.job='$snapshot') AND d.labels.`bucket`=\"cbmonitor\" AND time_range(t._t)", - "refId": "A" - }, - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS metadata FROM cbmonitor._default._default AS d UNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t WHERE d.metric_name=\"kv_ops\" AND ('$snapshot'='All' OR d.labels.job='$snapshot') AND d.labels.`bucket`=\"metadata\" AND time_range(t._t)", - "refId": "B" - } - ], - "title": "KV Operations (ops)", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 20, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 4, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "reqps" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 24 - }, - "id": 5, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS cbmonitor\nFROM cbmonitor._default._default AS d\nUNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE d.metric_name=\"kv_ep_diskqueue_drain\"\n AND d.labels.`bucket`=\"cbmonitor\"\n AND ('$snapshot'='All' OR d.labels.job='$snapshot')\n AND time_range(t._t)", - "refId": "A" - }, - { - "hide": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS metadata\nFROM cbmonitor._default._default AS d\nUNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE d.metric_name=\"kv_ep_diskqueue_drain\"\n AND d.labels.`bucket`=\"metadata\"\n AND ('$snapshot'='All' OR d.labels.job='$snapshot')\n AND time_range(t._t)", - "refId": "B" - } - ], - "title": "Disk Queue Drain Rate (req/s)", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 20, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 4, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "reqps" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 32 - }, - "id": 6, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS cbmonitor\nFROM cbmonitor._default._default AS d\nUNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE d.metric_name=\"kv_ep_diskqueue_fill\"\n AND d.labels.`bucket`=\"cbmonitor\"\n AND ('$snapshot'='All' OR d.labels.job='$snapshot')\n AND time_range(t._t)", - "refId": "A" - }, - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS metadata\nFROM cbmonitor._default._default AS d\nUNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE d.metric_name=\"kv_ep_diskqueue_fill\"\n AND d.labels.`bucket`=\"metadata\"\n AND ('$snapshot'='All' OR d.labels.job='$snapshot')\n AND time_range(t._t)", - "refId": "B" - } - ], - "title": "Disk Queue Fill Rate (req/s)", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 4, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "ops" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 32 - }, - "id": 9, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS cbmonitor\nFROM metrics_filter(\"kv_vb_ops_get\", '$snapshot', NULL, \"cbmonitor\") AS d\nUNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "A" - }, - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS metadata\nFROM metrics_filter(\"kv_vb_ops_get\", '$snapshot', NULL, \"metadata\") AS d\nUNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "B" - } - ], - "title": "vBucket GET Ops", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 20, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 4, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 40 - }, - "id": 3, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS cbmonitor\nFROM cbmonitor._default._default AS d\nUNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE d.metric_name=\"kv_curr_items\"\n AND ('$snapshot'='All' OR d.labels.job='$snapshot')\n AND d.labels.`bucket`=\"cbmonitor\"\n AND time_range(t._t)", - "refId": "A" - }, - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS metadata\nFROM cbmonitor._default._default AS d\nUNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE d.metric_name=\"kv_curr_items\"\n AND ('$snapshot'='All' OR d.labels.job='$snapshot')\n AND d.labels.`bucket`=\"metadata\"\n AND time_range(t._t)", - "refId": "B" - } - ], - "title": "Current Items Count", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 20, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 4, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 40 - }, - "id": 2, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.97`\nFROM cbmonitor._default._default AS d\nUNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE d.metric_name=\"kv_curr_connections\"\n AND ('$snapshot'='All' OR d.labels.job='$snapshot')\n AND d.labels.instance=\"172.23.96.97:8091\"\n AND time_range(t._t)", - "refId": "A" - }, - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.223`\nFROM cbmonitor._default._default AS d\nUNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE d.metric_name=\"kv_curr_connections\"\n AND ('$snapshot'='All' OR d.labels.job='$snapshot')\n AND d.labels.instance=\"172.23.96.223:8091\"\n AND time_range(t._t)", - "refId": "B" - } - ], - "title": "Current Connections", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 4, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": 0 - }, - { - "color": "red", - "value": 10 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 24, - "x": 0, - "y": 48 - }, - "id": 11, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `cbmonitor-tmp`\nFROM metrics_filter(\"kv_ep_tmp_oom_errors\", '$snapshot', NULL, \"cbmonitor\") AS d\nUNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "A" - }, - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `metadata-tmp`\nFROM metrics_filter(\"kv_ep_tmp_oom_errors\", '$snapshot', NULL, \"metadata\") AS d\nUNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "B" - }, - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS cbmonitor\nFROM metrics_filter(\"kv_ep_oom_errors\", '$snapshot', NULL, \"cbmonitor\") AS d\nUNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "C" - }, - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS metadata\nFROM metrics_filter(\"kv_ep_oom_errors\", '$snapshot', NULL, \"metadata\") AS d\nUNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "D" - } - ], - "title": "KV OOM Errors", - "type": "timeseries" - } - ], - "preload": false, - "refresh": "", - "schemaVersion": 41, - "tags": [], - "templating": { - "list": [ - { - "allValue": "All", - "current": { - "text": "All", - "value": "$__all" - }, - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "definition": "SELECT DISTINCT d.labels.job FROM cbmonitor._default._default AS d WHERE d.labels.job IS NOT NULL", - "includeAll": true, - "label": "Job", - "name": "snapshot", - "options": [], - "query": "SELECT DISTINCT d.labels.job FROM cbmonitor._default._default AS d WHERE d.labels.job IS NOT NULL", - "refresh": 1, - "regex": "", - "type": "query" - } - ] - }, - "time": { - "from": "now-3h", - "to": "now" - }, - "timepicker": {}, - "timezone": "browser", - "title": "kv_basic", - "uid": "12b2cb59-bdeb-4015-a7c6-7367a7ff3878", - "version": 2 -} \ No newline at end of file diff --git a/cbmonitor/dashboards/kv_throughput_all.json b/cbmonitor/dashboards/kv_throughput_all.json deleted file mode 100644 index 3b30020..0000000 --- a/cbmonitor/dashboards/kv_throughput_all.json +++ /dev/null @@ -1,354 +0,0 @@ -{ - "annotations": { - "list": [ - { - "builtIn": 1, - "datasource": { - "type": "grafana", - "uid": "-- Grafana --" - }, - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "type": "dashboard" - } - ] - }, - "editable": true, - "fiscalYearStartMonth": 0, - "graphTooltip": 0, - "id": 11, - "links": [], - "panels": [ - { - "datasource": { - "type": "yesoreyeram-infinity-datasource", - "uid": "Showfast" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "fillOpacity": 80, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineWidth": 0, - "scaleDistribution": { - "type": "linear" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": 0 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 13, - "w": 24, - "x": 0, - "y": 0 - }, - "id": 3, - "maxPerRow": 2, - "options": { - "barRadius": 0, - "barWidth": 0.84, - "fullHighlight": true, - "groupWidth": 0.7, - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "orientation": "auto", - "showValue": "always", - "stacking": "none", - "text": { - "valueSize": 1 - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - }, - "xField": "build", - "xTickLabelRotation": 30, - "xTickLabelSpacing": 0 - }, - "pluginVersion": "12.1.0", - "repeat": "kv_metric", - "repeatDirection": "v", - "targets": [ - { - "columns": [ - { - "selector": "0", - "text": "build", - "type": "string" - }, - { - "selector": "1", - "text": "ops/sec", - "type": "number" - } - ], - "datasource": { - "type": "yesoreyeram-infinity-datasource", - "uid": "Showfast" - }, - "filterExpression": "", - "filters": [], - "format": "table", - "global_query_id": "", - "parser": "backend", - "refId": "A", - "root_selector": "", - "source": "url", - "type": "json", - "url": "/api/v1/timeline/$kv_metric", - "url_options": { - "data": "", - "method": "GET" - } - } - ], - "title": "${kv_metric:text}", - "type": "barchart" - }, - { - "datasource": { - "type": "yesoreyeram-infinity-datasource", - "uid": "Showfast" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": "auto", - "cellOptions": { - "type": "auto" - }, - "inspect": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": 0 - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 17, - "x": 0, - "y": 741 - }, - "id": 1, - "options": { - "cellHeight": "sm", - "footer": { - "countRows": false, - "fields": "", - "reducer": [ - "sum" - ], - "show": false - }, - "showHeader": true - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "columns": [ - { - "selector": "id", - "text": "metric_id", - "type": "string" - }, - { - "selector": "title", - "text": "title", - "type": "string" - } - ], - "datasource": { - "type": "yesoreyeram-infinity-datasource", - "uid": "Showfast" - }, - "filterExpression": "", - "filters": [], - "format": "table", - "global_query_id": "", - "parser": "backend", - "refId": "A", - "root_selector": "$\n", - "source": "url", - "type": "json", - "url": "/api/v1/metrics/kv/max_ops/all", - "url_options": { - "data": "", - "method": "GET", - "params": [] - } - } - ], - "title": "kv max ops linux", - "type": "table" - } - ], - "preload": false, - "schemaVersion": 41, - "tags": [], - "templating": { - "list": [ - { - "allValue": "All", - "allowCustomValue": false, - "current": { - "text": "All", - "value": [ - "$__all" - ] - }, - "datasource": { - "type": "yesoreyeram-infinity-datasource", - "uid": "Showfast" - }, - "definition": "", - "description": "", - "includeAll": true, - "label": "kv_metrics", - "multi": true, - "name": "kv_metric", - "options": [], - "query": { - "infinityQuery": { - "columns": [ - { - "selector": "id", - "text": "value_field", - "type": "string" - }, - { - "selector": "title", - "text": "text_field", - "type": "string" - } - ], - "filterExpression": "", - "filters": [], - "format": "table", - "parser": "backend", - "refId": "variable", - "root_selector": "", - "source": "url", - "type": "json", - "url": "/api/v1/metrics/kv/max_ops/all", - "url_options": { - "data": "", - "method": "GET" - } - }, - "query": "", - "queryType": "infinity" - }, - "refresh": 2, - "regex": "", - "type": "query" - }, - { - "allValue": "All", - "allowCustomValue": false, - "current": { - "text": "Ubuntu 24.04", - "value": "Ubuntu 24.04" - }, - "datasource": { - "type": "yesoreyeram-infinity-datasource", - "uid": "Showfast" - }, - "definition": "", - "description": "", - "includeAll": false, - "label": "os", - "name": "os", - "options": [], - "query": { - "infinityQuery": { - "columns": [ - { - "selector": "cluster.os", - "text": "os", - "type": "string" - } - ], - "filterExpression": "", - "filters": [], - "format": "table", - "parser": "backend", - "refId": "variable", - "root_selector": "", - "source": "url", - "type": "json", - "url": "/api/v1/metrics/kv/max_ops/all", - "url_options": { - "data": "", - "method": "GET" - } - }, - "query": "", - "queryType": "infinity" - }, - "refresh": 1, - "regex": "", - "sort": 1, - "type": "query" - } - ] - }, - "time": { - "from": "now-6h", - "to": "now" - }, - "timepicker": {}, - "timezone": "browser", - "title": "showfast", - "uid": "4c711b8e-db79-4d48-b42f-e2f283ef6a59", - "version": 44 -} \ No newline at end of file diff --git a/cbmonitor/dashboards/query_basic.json b/cbmonitor/dashboards/query_basic.json deleted file mode 100644 index 5e6b864..0000000 --- a/cbmonitor/dashboards/query_basic.json +++ /dev/null @@ -1,1200 +0,0 @@ -{ - "annotations": { - "list": [ - { - "builtIn": 1, - "datasource": { - "type": "grafana", - "uid": "-- Grafana --" - }, - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "type": "dashboard" - } - ] - }, - "editable": true, - "fiscalYearStartMonth": 0, - "graphTooltip": 0, - "id": 3, - "links": [], - "panels": [ - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "ops" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 0 - }, - "id": 4, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.97` FROM metrics_filter(\"n1ql_requests\", '$snapshot', \"172.23.96.97:8091\", NULL) AS d UNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t WHERE time_range(t._t)", - "refId": "A" - }, - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.223` FROM metrics_filter(\"n1ql_requests\", '$snapshot', \"172.23.96.223:8091\", NULL) AS d UNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t WHERE time_range(t._t)", - "refId": "B" - } - ], - "title": "N1QL Requests", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 0 - }, - "id": 10, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.223` FROM metrics_filter(\"n1ql_active_requests\", '$snapshot', \"172.23.96.223:8091\", NULL) AS d UNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t WHERE time_range(t._t)", - "refId": "A" - }, - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.97` FROM metrics_filter(\"n1ql_active_requests\", '$snapshot', \"172.23.96.97:8091\", NULL) AS d UNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t WHERE time_range(t._t)", - "refId": "B" - } - ], - "title": "N1QL Active Requests", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "ops" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 8 - }, - "id": 1, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.97` FROM metrics_filter(\"n1ql_requests_250ms\", '$snapshot', \"172.23.96.97:8091\", NULL) AS d UNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t WHERE time_range(t._t)", - "refId": "A" - }, - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.223` FROM metrics_filter(\"n1ql_requests_250ms\", '$snapshot', \"172.23.96.223:8091\", NULL) AS d UNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t WHERE time_range(t._t)", - "refId": "B" - } - ], - "title": "N1QL Requests > 250ms", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "ops" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 8 - }, - "id": 2, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.97` FROM metrics_filter(\"n1ql_requests_500ms\", '$snapshot', \"172.23.96.97:8091\", NULL) AS d UNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t WHERE time_range(t._t)", - "refId": "A" - }, - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.223` FROM metrics_filter(\"n1ql_requests_500ms\", '$snapshot', \"172.23.96.223:8091\", NULL) AS d UNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t WHERE time_range(t._t)", - "refId": "B" - } - ], - "title": "N1QL Requests > 500ms", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "ops" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 16 - }, - "id": 3, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.97` FROM metrics_filter(\"n1ql_requests_1000ms\", '$snapshot', \"172.23.96.97:8091\", NULL) AS d UNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t WHERE time_range(t._t)", - "refId": "A" - }, - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.223` FROM metrics_filter(\"n1ql_requests_1000ms\", '$snapshot', \"172.23.96.223:8091\", NULL) AS d UNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t WHERE time_range(t._t)", - "refId": "B" - } - ], - "title": "N1QL Requests > 1000ms", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "ms" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 16 - }, - "id": 12, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0/1000000000 AS `172.23.96.97` FROM metrics_filter(\"n1ql_service_time\", '$snapshot', \"172.23.96.97:8091\", NULL) AS d UNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t WHERE time_range(t._t)", - "refId": "A" - }, - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0/1000000000 AS `172.23.96.223` FROM metrics_filter(\"n1ql_service_time\", '$snapshot', \"172.23.96.223:8091\", NULL) AS d UNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t WHERE time_range(t._t)", - "refId": "B" - } - ], - "title": "N1QL Service Time (ms)", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 24 - }, - "id": 13, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.97` FROM metrics_filter(\"n1ql_result_size\", '$snapshot', \"172.23.96.97:8091\", NULL) AS d UNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t WHERE time_range(t._t)", - "refId": "A" - }, - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.223` FROM metrics_filter(\"n1ql_result_size\", '$snapshot', \"172.23.96.223:8091\", NULL) AS d UNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t WHERE time_range(t._t)", - "refId": "B" - } - ], - "title": "N1QL Result Size (Bytes)", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 24 - }, - "id": 14, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.97` FROM metrics_filter(\"n1ql_result_count\", '$snapshot', \"172.23.96.97:8091\", NULL) AS d UNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t WHERE time_range(t._t)", - "refId": "A" - }, - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.223` FROM metrics_filter(\"n1ql_result_count\", '$snapshot', \"172.23.96.223:8091\", NULL) AS d UNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t WHERE time_range(t._t)", - "refId": "B" - } - ], - "title": "N1QL Result Count", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "ops" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 32 - }, - "id": 5, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.97` FROM metrics_filter(\"n1ql_selects\", '$snapshot', \"172.23.96.97:8091\", NULL) AS d UNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t WHERE time_range(t._t)", - "refId": "A" - }, - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.223` FROM metrics_filter(\"n1ql_selects\", '$snapshot', \"172.23.96.223:8091\", NULL) AS d UNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t WHERE time_range(t._t)", - "refId": "B" - } - ], - "title": "N1QL Select Statements", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 32 - }, - "id": 8, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.223` FROM metrics_filter(\"n1ql_errors\", '$snapshot', \"172.23.96.223:8091\", NULL) AS d UNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t WHERE time_range(t._t)", - "refId": "A" - }, - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.97` FROM metrics_filter(\"n1ql_errors\", '$snapshot', \"172.23.96.97:8091\", NULL) AS d UNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t WHERE time_range(t._t)", - "refId": "B" - } - ], - "title": "N1QL Errors", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 40 - }, - "id": 11, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.223` FROM metrics_filter(\"n1ql_invalid_requests\", '$snapshot', \"172.23.96.223:8091\", NULL) AS d UNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t WHERE time_range(t._t)", - "refId": "A" - }, - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.97` FROM metrics_filter(\"n1ql_invalid_requests\", '$snapshot', \"172.23.96.97:8091\", NULL) AS d UNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t WHERE time_range(t._t)", - "refId": "B" - } - ], - "title": "N1QL Invalid Requests (Cumulative)", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 20, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "percent" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 40 - }, - "id": 9, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.97` FROM metrics_filter(\"sys_cpu_utilization_rate\", '$snapshot', \"172.23.96.97:8091\", NULL) AS d UNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t WHERE time_range(t._t)", - "refId": "A" - }, - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.223` FROM metrics_filter(\"sys_cpu_utilization_rate\", '$snapshot', \"172.23.96.223:8091\", NULL) AS d UNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t WHERE time_range(t._t)", - "refId": "B" - } - ], - "title": "System CPU Utilization (%)", - "type": "timeseries" - } - ], - "preload": false, - "schemaVersion": 41, - "tags": [], - "templating": { - "list": [ - { - "allValue": "All", - "current": { - "text": "All", - "value": "$__all" - }, - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "definition": "SELECT DISTINCT d.labels.job FROM cbmonitor._default._default AS d WHERE d.labels.job IS NOT NULL", - "includeAll": true, - "label": "Job", - "name": "snapshot", - "options": [], - "query": "SELECT DISTINCT d.labels.job FROM cbmonitor._default._default AS d WHERE d.labels.job IS NOT NULL", - "refresh": 1, - "type": "query" - } - ] - }, - "time": { - "from": "now-3h", - "to": "now" - }, - "timepicker": {}, - "timezone": "browser", - "title": "query_basic", - "uid": "4f0922d0-460c-47b8-9735-6fef63424fe5", - "version": 1 -} \ No newline at end of file diff --git a/cbmonitor/dashboards/sgw_basic.json b/cbmonitor/dashboards/sgw_basic.json deleted file mode 100644 index a7e5358..0000000 --- a/cbmonitor/dashboards/sgw_basic.json +++ /dev/null @@ -1,8544 +0,0 @@ -{ - "annotations": { - "list": [ - { - "builtIn": 1, - "datasource": { - "type": "grafana", - "uid": "-- Grafana --" - }, - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "type": "dashboard" - } - ] - }, - "editable": true, - "fiscalYearStartMonth": 0, - "graphTooltip": 0, - "id": 5, - "links": [], - "panels": [ - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 0 - }, - "id": 2, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_resource_utilization_process_memory_resident`\nFROM metrics_filter(\"sgw_resource_utilization_process_memory_resident\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "A" - } - ], - "title": "sgw_resource_utilization_process_memory_resident", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 0 - }, - "id": 3, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_resource_utilization_system_memory_total`\nFROM metrics_filter(\"sgw_resource_utilization_system_memory_total\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "A" - } - ], - "title": "system_memory_total", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 8 - }, - "id": 4, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `pub_net_bytes_sent`\nFROM metrics_filter(\"sgw_resource_utilization_pub_net_bytes_sent\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "A" - } - ], - "title": "pub_net_bytes_sent", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 8 - }, - "id": 13, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_resource_utilization_pub_net_bytes_recv`\nFROM metrics_filter(\"sgw_resource_utilization_pub_net_bytes_recv\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "A" - } - ], - "title": "pub_net_bytes_recv", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 16 - }, - "id": 12, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_resource_utilization_admin_net_bytes_recv`\nFROM metrics_filter(\"sgw_resource_utilization_admin_net_bytes_recv\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "A" - } - ], - "title": "sgw_resource_utilization_admin_net_bytes_recv", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 16 - }, - "id": 11, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_resource_utilization_admin_net_bytes_sent`\nFROM metrics_filter(\"sgw_resource_utilization_admin_net_bytes_sent\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "A" - } - ], - "title": "sgw_resource_utilization_admin_net_bytes_sent", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 24 - }, - "id": 10, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_resource_utilization_num_goroutines`\nFROM metrics_filter(\"sgw_resource_utilization_num_goroutines\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "A" - } - ], - "title": "sgw_resource_utilization_num_goroutines", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 24 - }, - "id": 9, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_resource_utilization_goroutines_high_watermark`\nFROM metrics_filter(\"sgw_resource_utilization_goroutines_high_watermark\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "A" - } - ], - "title": "sgw_resource_utilization_goroutines_high_watermark", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 32 - }, - "id": 8, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_resource_utilization_go_memstats_sys`\nFROM metrics_filter(\"sgw_resource_utilization_go_memstats_sys\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "A" - } - ], - "title": "sgw_resource_utilization_go_memstats_sys", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "ns" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 32 - }, - "id": 7, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_resource_utilization_go_memstats_pausetotalns`\nFROM metrics_filter(\"sgw_resource_utilization_go_memstats_pausetotalns\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "A" - } - ], - "title": "sgw_resource_utilization_go_memstats_pausetotalns", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 40 - }, - "id": 14, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_resource_utilization_go_memstats_heapalloc`\nFROM metrics_filter(\"sgw_resource_utilization_go_memstats_heapalloc\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "A" - } - ], - "title": "sgw_resource_utilization_go_memstats_heapalloc", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 40 - }, - "id": 6, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_resource_utilization_go_memstats_heapidle`\nFROM metrics_filter(\"sgw_resource_utilization_go_memstats_heapidle\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "A" - } - ], - "title": "sgw_resource_utilization_go_memstats_heapidle", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 48 - }, - "id": 5, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_resource_utilization_go_memstats_heapinuse`\nFROM metrics_filter(\"sgw_resource_utilization_go_memstats_heapinuse\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "A" - } - ], - "title": "sgw_resource_utilization_go_memstats_heapinuse", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 48 - }, - "id": 18, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_resource_utilization_go_memstats_heapreleased`\nFROM metrics_filter(\"sgw_resource_utilization_go_memstats_heapreleased\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "A" - } - ], - "title": "sgw_resource_utilization_go_memstats_heapreleased", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 56 - }, - "id": 17, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_resource_utilization_go_memstats_stackinuse`\nFROM metrics_filter(\"sgw_resource_utilization_go_memstats_stackinuse\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "A" - } - ], - "title": "sgw_resource_utilization_go_memstats_stackinuse", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 56 - }, - "id": 19, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_resource_utilization_go_memstats_stacksys`\nFROM metrics_filter(\"sgw_resource_utilization_go_memstats_stacksys\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "A" - } - ], - "title": " sgw_resource_utilization_go_memstats_stacksys", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 64 - }, - "id": 16, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_resource_utilization_error_count`\nFROM metrics_filter(\"sgw_resource_utilization_error_count\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "A" - } - ], - "title": "sgw_resource_utilization_error_count", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 64 - }, - "id": 20, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_resource_utilization_warn_count`\nFROM metrics_filter(\"sgw_resource_utilization_warn_count\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "A" - } - ], - "title": "sgw_resource_utilization_warn_count", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 6, - "y": 72 - }, - "id": 23, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_cache_chan_cache_max_entries`\nFROM metrics_filter(\"sgw_cache_chan_cache_max_entries\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`database` = '$database' OR '$database' = \"\")", - "refId": "A" - } - ], - "title": "sgw_cache_chan_cache_max_entries", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 80 - }, - "id": 21, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_cache_chan_cache_hits`\nFROM metrics_filter(\"sgw_cache_chan_cache_hits\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`database` = '$database' OR '$database' = \"\")", - "refId": "A" - } - ], - "title": "sgw_cache_chan_cache_hits", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 80 - }, - "id": 24, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_cache_chan_cache_misses`\nFROM metrics_filter(\"sgw_cache_chan_cache_misses\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`database` = '$database' OR '$database' = \"\")", - "refId": "A" - } - ], - "title": "sgw_cache_chan_cache_misses", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 88 - }, - "id": 27, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_cache_chan_cache_pending_queries`\nFROM metrics_filter(\"sgw_cache_chan_cache_pending_queries\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`database` = '$database' OR '$database' = \"\")", - "refId": "A" - } - ], - "title": "sgw_cache_chan_cache_pending_queries", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 88 - }, - "id": 25, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_cache_chan_cache_num_channels`\nFROM metrics_filter(\"sgw_cache_chan_cache_num_channels\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`database` = '$database' OR '$database' = \"\")", - "refId": "A" - } - ], - "title": "sgw_cache_chan_cache_num_channels", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 96 - }, - "id": 26, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_cache_chan_cache_removal_revs`\nFROM metrics_filter(\"sgw_cache_chan_cache_removal_revs\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`database` = '$database' OR '$database' = \"\")", - "refId": "A" - } - ], - "title": "sgw_cache_chan_cache_removal_revs", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 96 - }, - "id": 28, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_cache_chan_cache_tombstone_revs`\nFROM metrics_filter(\"sgw_cache_chan_cache_tombstone_revs\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`database` = '$database' OR '$database' = \"\")", - "refId": "A" - } - ], - "title": "sgw_cache_chan_cache_tombstone_revs", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 104 - }, - "id": 29, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_cache_chan_cache_active_revs`\nFROM metrics_filter(\"sgw_cache_chan_cache_active_revs\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`database` = '$database' OR '$database' = \"\")", - "refId": "A" - } - ], - "title": "sgw_cache_chan_cache_active_revs", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 104 - }, - "id": 30, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_cache_chan_cache_bypass_count`\nFROM metrics_filter(\"sgw_cache_chan_cache_bypass_count\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`database` = '$database' OR '$database' = \"\")", - "refId": "A" - } - ], - "title": "sgw_cache_chan_cache_bypass_count", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 112 - }, - "id": 31, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_cache_chan_cache_channels_added`\nFROM metrics_filter(\"sgw_cache_chan_cache_channels_added\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`database` = '$database' OR '$database' = \"\")", - "refId": "A" - } - ], - "title": "sgw_cache_chan_cache_channels_added", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 112 - }, - "id": 32, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_cache_chan_cache_channels_evicted_inactive`\nFROM metrics_filter(\"sgw_cache_chan_cache_channels_evicted_inactive\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`database` = '$database' OR '$database' = \"\")", - "refId": "A" - } - ], - "title": "sgw_cache_chan_cache_channels_evicted_inactive", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 120 - }, - "id": 36, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_cache_chan_cache_channels_evicted_nru`\nFROM metrics_filter(\"sgw_cache_chan_cache_channels_evicted_nru\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`database` = '$database' OR '$database' = \"\")", - "refId": "A" - } - ], - "title": "sgw_cache_chan_cache_channels_evicted_nru", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 120 - }, - "id": 33, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_cache_chan_cache_compact_count`\nFROM metrics_filter(\"sgw_cache_chan_cache_compact_count\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`database` = '$database' OR '$database' = \"\")", - "refId": "A" - } - ], - "title": "sgw_cache_chan_cache_compact_count", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 128 - }, - "id": 34, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_cache_abandoned_seqs`\nFROM metrics_filter(\"sgw_cache_abandoned_seqs\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`database` = '$database' OR '$database' = \"\")", - "refId": "A" - } - ], - "title": "sgw_cache_abandoned_seqs", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 128 - }, - "id": 35, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_cache_num_skipped_seqs`\nFROM metrics_filter(\"sgw_cache_num_skipped_seqs\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`database` = '$database' OR '$database' = \"\")", - "refId": "A" - } - ], - "title": "sgw_cache_num_skipped_seqs", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 136 - }, - "id": 37, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_cache_high_seq_cached`\nFROM metrics_filter(\"sgw_cache_high_seq_cached\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`database` = '$database' OR '$database' = \"\")", - "refId": "A" - } - ], - "title": "sgw_cache_high_seq_cached", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 136 - }, - "id": 39, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_cache_high_seq_stable`\nFROM metrics_filter(\"sgw_cache_high_seq_stable\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`database` = '$database' OR '$database' = \"\")", - "refId": "A" - } - ], - "title": "sgw_cache_high_seq_stable", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 144 - }, - "id": 38, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_cache_skipped_seq_len`\nFROM metrics_filter(\"sgw_cache_skipped_seq_len\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`database` = '$database' OR '$database' = \"\")", - "refId": "A" - } - ], - "title": "sgw_cache_skipped_seq_len", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 144 - }, - "id": 40, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_cache_pending_seq_len`\nFROM metrics_filter(\"sgw_cache_pending_seq_len\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`database` = '$database' OR '$database' = \"\")", - "refId": "A" - } - ], - "title": "sgw_cache_pending_seq_len", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 152 - }, - "id": 42, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_cache_num_skipped_seqs`\nFROM metrics_filter(\"sgw_cache_num_skipped_seqs\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`database` = '$database' OR '$database' = \"\")", - "refId": "A" - } - ], - "title": "sgw_cache_num_skipped_seqs", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 152 - }, - "id": 41, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_cache_current_skipped_seq_count`\nFROM metrics_filter(\"sgw_cache_current_skipped_seq_count\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`database` = '$database' OR '$database' = \"\")", - "refId": "A" - } - ], - "title": "sgw_cache_current_skipped_seq_count", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 160 - }, - "id": 43, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_database_sequence_get_count`\nFROM metrics_filter(\"sgw_database_sequence_get_count\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`database` = '$database' OR '$database' = \"\")", - "refId": "A" - } - ], - "title": "sgw_database_sequence_get_count", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 160 - }, - "id": 44, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_database_sequence_incr_count`\nFROM metrics_filter(\"sgw_database_sequence_incr_count\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`database` = '$database' OR '$database' = \"\")", - "refId": "A" - } - ], - "title": " sgw_database_sequence_incr_count", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 168 - }, - "id": 45, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_database_sequence_reserved_count`\nFROM metrics_filter(\"sgw_database_sequence_reserved_count\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`database` = '$database' OR '$database' = \"\")", - "refId": "A" - } - ], - "title": "sgw_database_sequence_reserved_count", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 168 - }, - "id": 46, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_database_sequence_assigned_count`\nFROM metrics_filter(\"sgw_database_sequence_assigned_count\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`database` = '$database' OR '$database' = \"\")", - "refId": "A" - } - ], - "title": "sgw_database_sequence_assigned_count", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 176 - }, - "id": 47, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_database_sequence_released_count`\nFROM metrics_filter(\"sgw_database_sequence_released_count\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`database` = '$database' OR '$database' = \"\")", - "refId": "A" - } - ], - "title": "sgw_database_sequence_released_count", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 176 - }, - "id": 48, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_database_crc32c_match_count`\nFROM metrics_filter(\"sgw_database_crc32c_match_count\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`database` = '$database' OR '$database' = \"\")", - "refId": "A" - } - ], - "title": "sgw_database_crc32c_match_count", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 184 - }, - "id": 49, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_database_num_replications_active`\nFROM metrics_filter(\"sgw_database_num_replications_active\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`database` = '$database' OR '$database' = \"\")", - "refId": "A" - } - ], - "title": "sgw_database_num_replications_active", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 184 - }, - "id": 50, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_database_num_replications_total`\nFROM metrics_filter(\"sgw_database_num_replications_total\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`database` = '$database' OR '$database' = \"\")", - "refId": "A" - } - ], - "title": "sgw_database_num_replications_total", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 192 - }, - "id": 51, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_database_num_doc_writes`\nFROM metrics_filter(\"sgw_database_num_doc_writes\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`database` = '$database' OR '$database' = \"\")", - "refId": "A" - } - ], - "title": "sgw_database_num_doc_writes", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 192 - }, - "id": 52, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_database_num_tombstones_compacted`\nFROM metrics_filter(\"sgw_database_num_tombstones_compacted\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`database` = '$database' OR '$database' = \"\")", - "refId": "A" - } - ], - "title": "sgw_database_num_tombstones_compacted", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 200 - }, - "id": 53, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_database_doc_writes_bytes`\nFROM metrics_filter(\"sgw_database_doc_writes_bytes\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`database` = '$database' OR '$database' = \"\")", - "refId": "A" - } - ], - "title": "sgw_database_doc_writes_bytes", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 200 - }, - "id": 54, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_database_doc_writes_xattr_bytes`\nFROM metrics_filter(\"sgw_database_doc_writes_xattr_bytes\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`database` = '$database' OR '$database' = \"\")", - "refId": "A" - } - ], - "title": "sgw_database_doc_writes_xattr_bytes", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 208 - }, - "id": 55, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_database_num_doc_reads_rest`\nFROM metrics_filter(\"sgw_database_num_doc_reads_rest\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`database` = '$database' OR '$database' = \"\")", - "refId": "A" - } - ], - "title": "sgw_database_num_doc_reads_rest", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 208 - }, - "id": 56, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_database_num_doc_reads_blip`\nFROM metrics_filter(\"sgw_database_num_doc_reads_blip\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`database` = '$database' OR '$database' = \"\")", - "refId": "A" - } - ], - "title": "sgw_database_num_doc_reads_blip", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 216 - }, - "id": 57, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_database_doc_writes_bytes_blip`\nFROM metrics_filter(\"sgw_database_doc_writes_bytes_blip\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`database` = '$database' OR '$database' = \"\")", - "refId": "A" - } - ], - "title": "sgw_database_doc_writes_bytes_blip", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 216 - }, - "id": 58, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_database_doc_reads_bytes_blip`\nFROM metrics_filter(\"sgw_database_doc_reads_bytes_blip\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`database` = '$database' OR '$database' = \"\")", - "refId": "A" - } - ], - "title": "sgw_database_doc_reads_bytes_blip", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 224 - }, - "id": 59, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_database_warn_xattr_size_count`\nFROM metrics_filter(\"sgw_database_warn_xattr_size_count\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`database` = '$database' OR '$database' = \"\")", - "refId": "A" - } - ], - "title": "sgw_database_warn_xattr_size_count", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 224 - }, - "id": 70, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_database_warn_channels_per_doc_count`\nFROM metrics_filter(\"sgw_database_warn_channels_per_doc_count\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`database` = '$database' OR '$database' = \"\")", - "refId": "A" - } - ], - "title": "sgw_database_warn_channels_per_doc_count", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 232 - }, - "id": 61, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_database_warn_grants_per_doc_count`\nFROM metrics_filter(\"sgw_database_warn_grants_per_doc_count\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`database` = '$database' OR '$database' = \"\")", - "refId": "A" - } - ], - "title": "sgw_database_warn_grants_per_doc_count", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 232 - }, - "id": 69, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_database_dcp_received_count`\nFROM metrics_filter(\"sgw_database_dcp_received_count\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`database` = '$database' OR '$database' = \"\")", - "refId": "A" - } - ], - "title": "sgw_database_dcp_received_count", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 240 - }, - "id": 62, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_database_high_seq_feed`\nFROM metrics_filter(\"sgw_database_high_seq_feed\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`database` = '$database' OR '$database' = \"\")", - "refId": "A" - } - ], - "title": "sgw_database_high_seq_feed", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "s" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 240 - }, - "id": 68, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_database_dcp_received_time`\nFROM metrics_filter(\"sgw_database_dcp_received_time\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`database` = '$database' OR '$database' = \"\")", - "refId": "A" - } - ], - "title": "sgw_database_dcp_received_time", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 248 - }, - "id": 63, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_database_dcp_caching_count`\nFROM metrics_filter(\"sgw_database_dcp_caching_count\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`database` = '$database' OR '$database' = \"\")", - "refId": "A" - } - ], - "title": "sgw_database_dcp_caching_count", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "ms" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 248 - }, - "id": 67, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_database_dcp_caching_time`\nFROM metrics_filter(\"sgw_database_dcp_caching_time\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`database` = '$database' OR '$database' = \"\")", - "refId": "A" - } - ], - "title": "sgw_database_dcp_caching_time", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 256 - }, - "id": 64, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_replication_push_doc_push_count`\nFROM metrics_filter(\"sgw_replication_push_doc_push_count\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`database` = '$database' OR '$database' = \"\")", - "refId": "A" - } - ], - "title": "sgw_replication_push_doc_push_count", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "ms" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 256 - }, - "id": 66, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_replication_push_write_processing_time`\nFROM metrics_filter(\"sgw_replication_push_write_processing_time\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`database` = '$database' OR '$database' = \"\")", - "refId": "A" - } - ], - "title": "sgw_replication_push_write_processing_time", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "s" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 264 - }, - "id": 65, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_database_sync_function_time`\nFROM metrics_filter(\"sgw_database_sync_function_time\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) ", - "refId": "A" - } - ], - "title": "sgw_database_sync_function_time", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 264 - }, - "id": 72, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_database_sync_function_count`\nFROM metrics_filter(\"sgw_database_sync_function_count\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`database` = '$database' OR '$database' = \"\")", - "refId": "A" - } - ], - "title": "sgw_database_sync_function_count", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "s" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 272 - }, - "id": 60, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_replication_push_propose_change_time`\nFROM metrics_filter(\"sgw_replication_push_propose_change_time\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`database` = '$database' OR '$database' = \"\")", - "refId": "A" - } - ], - "title": "sgw_replication_push_propose_change_time", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 272 - }, - "id": 71, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_replication_push_propose_change_count`\nFROM metrics_filter(\"sgw_replication_push_propose_change_count\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`database` = '$database' OR '$database' = \"\")", - "refId": "A" - } - ], - "title": "sgw_replication_push_propose_change_count", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 280 - }, - "id": 73, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_replication_push_attachment_push_count`\nFROM metrics_filter(\"sgw_replication_push_attachment_push_count\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`database` = '$database' OR '$database' = \"\")", - "refId": "A" - } - ], - "title": "sgw_replication_push_attachment_push_count", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 280 - }, - "id": 74, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_replication_push_attachment_push_bytes`\nFROM metrics_filter(\"sgw_replication_push_attachment_push_bytes\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`database` = '$database' OR '$database' = \"\")", - "refId": "A" - } - ], - "title": "sgw_replication_push_attachment_push_bytes", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 288 - }, - "id": 76, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_database_conflict_write_count`\nFROM metrics_filter(\"sgw_database_conflict_write_count\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`database` = '$database' OR '$database' = \"\")", - "refId": "A" - } - ], - "title": "sgw_database_conflict_write_count", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 288 - }, - "id": 75, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_replication_pull_num_pull_repl_active_one_shot`\nFROM metrics_filter(\"sgw_replication_pull_num_pull_repl_active_one_shot\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`database` = '$database' OR '$database' = \"\")", - "refId": "A" - } - ], - "title": "sgw_replication_pull_num_pull_repl_active_one_shot", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 296 - }, - "id": 78, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_replication_pull_num_pull_repl_active_continuous`\nFROM metrics_filter(\"sgw_replication_pull_num_pull_repl_active_continuous\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`database` = '$database' OR '$database' = \"\")", - "refId": "A" - } - ], - "title": "sgw_replication_pull_num_pull_repl_active_continuous", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 296 - }, - "id": 77, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_replication_pull_num_pull_repl_total_one_shot`\nFROM metrics_filter(\"sgw_replication_pull_num_pull_repl_total_one_shot\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`database` = '$database' OR '$database' = \"\")", - "refId": "A" - } - ], - "title": "sgw_replication_pull_num_pull_repl_total_one_shot", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 304 - }, - "id": 80, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_replication_pull_num_pull_repl_total_continuous`\nFROM metrics_filter(\"sgw_replication_pull_num_pull_repl_total_continuous\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`database` = '$database' OR '$database' = \"\")", - "refId": "A" - } - ], - "title": "sgw_replication_pull_num_pull_repl_total_continuous", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 304 - }, - "id": 79, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_replication_pull_num_pull_repl_since_zero`\nFROM metrics_filter(\"sgw_replication_pull_num_pull_repl_since_zero\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`database` = '$database' OR '$database' = \"\")", - "refId": "A" - } - ], - "title": "sgw_replication_pull_num_pull_repl_since_zero", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 312 - }, - "id": 82, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_replication_pull_num_pull_repl_caught_up`\nFROM metrics_filter(\"sgw_replication_pull_num_pull_repl_caught_up\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`database` = '$database' OR '$database' = \"\")", - "refId": "A" - } - ], - "title": "sgw_replication_pull_num_pull_repl_caught_up", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 312 - }, - "id": 81, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_replication_pull_request_changes_count`\nFROM metrics_filter(\"sgw_replication_pull_request_changes_count\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`database` = '$database' OR '$database' = \"\")", - "refId": "A" - } - ], - "title": "sgw_replication_pull_request_changes_count", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "s" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 320 - }, - "id": 85, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_replication_pull_request_changes_time`\nFROM metrics_filter(\"sgw_replication_pull_request_changes_time\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`database` = '$database' OR '$database' = \"\")", - "refId": "A" - } - ], - "title": "sgw_replication_pull_request_changes_time", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 320 - }, - "id": 83, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_replication_pull_rev_send_count`\nFROM metrics_filter(\"sgw_replication_pull_rev_send_count\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`database` = '$database' OR '$database' = \"\")", - "refId": "A" - } - ], - "title": "sgw_replication_pull_rev_send_count", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "ms" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 328 - }, - "id": 86, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_replication_pull_rev_send_latency`\nFROM metrics_filter(\"sgw_replication_pull_rev_send_latency\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`database` = '$database' OR '$database' = \"\")", - "refId": "A" - } - ], - "title": "sgw_replication_pull_rev_send_latency", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "ms" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 328 - }, - "id": 87, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_replication_pull_rev_processing_time`\nFROM metrics_filter(\"sgw_replication_pull_rev_processing_time\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`database` = '$database' OR '$database' = \"\")", - "refId": "A" - } - ], - "title": "sgw_replication_pull_rev_processing_time", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 336 - }, - "id": 89, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_replication_pull_max_pending`\nFROM metrics_filter(\"sgw_replication_pull_max_pending\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`database` = '$database' OR '$database' = \"\")", - "refId": "A" - } - ], - "title": "sgw_replication_pull_max_pending", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 336 - }, - "id": 84, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_replication_pull_attachment_pull_count`\nFROM metrics_filter(\"sgw_replication_pull_attachment_pull_count\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`database` = '$database' OR '$database' = \"\")", - "refId": "A" - } - ], - "title": "sgw_replication_pull_attachment_pull_count", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 344 - }, - "id": 90, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_replication_pull_attachment_pull_bytes`\nFROM metrics_filter(\"sgw_replication_pull_attachment_pull_bytes\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`database` = '$database' OR '$database' = \"\")", - "refId": "A" - } - ], - "title": "sgw_replication_pull_attachment_pull_bytes", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 344 - }, - "id": 91, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_security_num_docs_rejected`\nFROM metrics_filter(\"sgw_security_num_docs_rejected\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`database` = '$database' OR '$database' = \"\")", - "refId": "A" - } - ], - "title": "sgw_security_num_docs_rejected", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 352 - }, - "id": 88, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_security_num_access_errors`\nFROM metrics_filter(\"sgw_security_num_access_errors\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`database` = '$database' OR '$database' = \"\")", - "refId": "A" - } - ], - "title": "sgw_security_num_access_errors", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 352 - }, - "id": 93, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_security_auth_success_count`\nFROM metrics_filter(\"sgw_security_auth_success_count\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`database` = '$database' OR '$database' = \"\")", - "refId": "A" - } - ], - "title": "sgw_security_auth_success_count", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 360 - }, - "id": 94, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_security_auth_failed_count`\nFROM metrics_filter(\"sgw_security_auth_failed_count\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`database` = '$database' OR '$database' = \"\")", - "refId": "A" - } - ], - "title": "sgw_security_auth_failed_count", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#55f1ff61", - "mode": "shades" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "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": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "ms" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 360 - }, - "id": 95, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `sgw_security_total_auth_time`\nFROM metrics_filter(\"sgw_security_total_auth_time\", '$snapshot', NULL, NULL) AS d\nUNNEST _timeseries(d, {\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t) AND (d.labels.`database` = '$database' OR '$database' = \"\")", - "refId": "A" - } - ], - "title": "sgw_security_total_auth_time", - "type": "timeseries" - } - ], - "preload": false, - "refresh": "1m", - "schemaVersion": 41, - "tags": [], - "templating": { - "list": [ - { - "allValue": "All", - "current": { - "text": "All", - "value": "$__all" - }, - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "definition": "SELECT DISTINCT d.labels.job FROM cbmonitor._default._default AS d WHERE d.labels.job IS NOT NULL", - "includeAll": true, - "label": "Job", - "name": "snapshot", - "options": [], - "query": "SELECT DISTINCT d.labels.job FROM cbmonitor._default._default AS d WHERE d.labels.job IS NOT NULL", - "refresh": 1, - "type": "query" - }, - { - "allValue": "All", - "current": { - "text": "All", - "value": "$__all" - }, - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "definition": "SELECT DISTINCT d.labels.`database` FROM cbmonitor._default._default AS d WHERE d.labels.`database` IS NOT NULL", - "includeAll": true, - "label": "Database", - "multi": true, - "name": "database", - "options": [], - "query": "SELECT DISTINCT d.labels.`database` FROM cbmonitor._default._default AS d WHERE d.labels.`database` IS NOT NULL", - "refresh": 1, - "type": "query" - } - ] - }, - "time": { - "from": "now-1h", - "to": "now" - }, - "timepicker": {}, - "timezone": "browser", - "title": "sgw_basic", - "uid": "391007d5-5550-4379-892d-ef44bfd3679b", - "version": 29 -} \ No newline at end of file diff --git a/cbmonitor/dashboards/system.json b/cbmonitor/dashboards/system.json deleted file mode 100644 index ca8fc69..0000000 --- a/cbmonitor/dashboards/system.json +++ /dev/null @@ -1,2068 +0,0 @@ -{ - "annotations": { - "list": [ - { - "builtIn": 1, - "datasource": { - "type": "grafana", - "uid": "-- Grafana --" - }, - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "type": "dashboard" - } - ] - }, - "editable": true, - "fiscalYearStartMonth": 0, - "graphTooltip": 0, - "id": 1, - "links": [], - "panels": [ - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 15, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 4, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": 0 - }, - { - "color": "red", - "value": 90 - } - ] - }, - "unit": "percent" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 0 - }, - "id": 8, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS CPU, d.labels.instance FROM get_metric_for('sys_cpu_utilization_rate', '$snapshot_id') AS d UNNEST _timeseries(d,{'ts_ranges':[${__from},${__to}]}) AS t WHERE time_range(t._t)", - "refId": "A" - } - ], - "title": "System CPU Utilization (%)", - "transformations": [ - { - "id": "prepareTimeSeries", - "options": { - "format": "multi" - } - } - ], - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 12, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 4, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 0 - }, - "id": 17, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS Memory, d.labels.instance FROM get_metric_for('sys_mem_free', '$snapshot_id') AS d UNNEST _timeseries(d,{'ts_ranges':[${__from},${__to}]}) AS t WHERE time_range(t._t)", - "refId": "A" - } - ], - "title": "System Free Memory (Bytes)", - "transformations": [ - { - "id": "prepareTimeSeries", - "options": { - "format": "multi" - } - } - ], - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 12, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 3, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": 0 - }, - { - "color": "red", - "value": 128 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 8 - }, - "id": 23, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS Cores, d.labels.instance FROM get_metric_for('sys_cpu_cores_available', '$snapshot_id') AS d UNNEST _timeseries(d,{'ts_ranges':[${__from},${__to}]}) AS t WHERE time_range(t._t)", - "refId": "A" - } - ], - "title": "CPU Cores Available", - "transformations": [ - { - "id": "prepareTimeSeries", - "options": { - "format": "multi" - } - } - ], - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 12, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 3, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": 0 - }, - { - "color": "red", - "value": 25 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 8 - }, - "id": 24, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS Items, d.labels.instance FROM get_metric_for('sys_disk_queue', '$snapshot_id') AS d UNNEST _timeseries(d,{'ts_ranges':[${__from},${__to}]}) AS t WHERE time_range(t._t)", - "refId": "A" - } - ], - "title": "System Disk Queue (Aggregate)", - "transformations": [ - { - "id": "prepareTimeSeries", - "options": { - "format": "multi" - } - } - ], - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 4, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 16 - }, - "id": 25, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `(Bytes)`, d.labels.`bucket` FROM get_metric_for('couch_docs_actual_disk_size', '$snapshot_id') AS d UNNEST _timeseries(d,{'ts_ranges':[${__from},${__to}]}) AS t WHERE time_range(t._t)", - "refId": "A" - } - ], - "title": "Couch Docs Actual Disk Size (Bytes)", - "transformations": [ - { - "id": "prepareTimeSeries", - "options": { - "format": "multi" - } - } - ], - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 12, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 3, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": 0 - }, - { - "color": "red", - "value": 5 - } - ] - }, - "unit": "s" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 16 - }, - "id": 22, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS Seconds, d.labels.instance FROM get_metric_for('scrape_duration_seconds', '$snapshot_id') AS d UNNEST _timeseries(d,{'ts_ranges':[${__from},${__to}]}) AS t WHERE time_range(t._t)", - "refId": "A" - } - ], - "title": "Scrape Duration (s)", - "transformations": [ - { - "id": "prepareTimeSeries", - "options": { - "format": "multi" - } - } - ], - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 12, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 4, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": 0 - }, - { - "color": "red", - "value": 90 - } - ] - }, - "unit": "percent" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 24 - }, - "id": 15, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS CPU, d.labels.instance FROM get_metric_for('sysproc_cpu_utilization', '$snapshot_id') AS d UNNEST _timeseries(d,{'ts_ranges':[${__from},${__to}]}) AS t WHERE d.labels.proc='memcached' AND time_range(t._t)", - "refId": "A" - } - ], - "title": "memcached CPU Utilization (%)", - "transformations": [ - { - "id": "prepareTimeSeries", - "options": { - "format": "multi" - } - } - ], - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 12, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 4, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 24 - }, - "id": 13, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS Memory, d.labels.instance FROM get_metric_for('sysproc_mem_resident', '$snapshot_id') AS d UNNEST _timeseries(d,{'ts_ranges':[${__from},${__to}]}) AS t WHERE d.labels.proc='memcached' AND time_range(t._t)", - "refId": "A" - } - ], - "title": "memcached Resident Memory (Bytes)", - "transformations": [ - { - "id": "prepareTimeSeries", - "options": { - "format": "multi" - } - } - ], - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 12, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 4, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": 0 - }, - { - "color": "red", - "value": 90 - } - ] - }, - "unit": "percent" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 32 - }, - "id": 16, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS CPU, d.labels.instance FROM get_metric_for('sysproc_cpu_utilization', '$snapshot_id') AS d UNNEST _timeseries(d,{'ts_ranges':[${__from},${__to}]}) AS t WHERE d.labels.proc='ns_server' AND time_range(t._t)", - "refId": "A" - } - ], - "title": "ns_server CPU Utilization (%)", - "transformations": [ - { - "id": "prepareTimeSeries", - "options": { - "format": "multi" - } - } - ], - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 12, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 4, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 32 - }, - "id": 14, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS Memory, d.labels.instance FROM get_metric_for('sysproc_mem_resident', '$snapshot_id') AS d UNNEST _timeseries(d,{'ts_ranges':[${__from},${__to}]}) AS t WHERE d.labels.proc='ns_server' AND time_range(t._t)", - "refId": "A" - } - ], - "title": "ns_server Resident Memory (Bytes)", - "transformations": [ - { - "id": "prepareTimeSeries", - "options": { - "format": "multi" - } - } - ], - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 12, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 4, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": 0 - }, - { - "color": "red", - "value": 90 - } - ] - }, - "unit": "percent" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 40 - }, - "id": 18, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS CPU, d.labels.instance FROM get_metric_for('sysproc_cpu_utilization', '$snapshot_id') AS d UNNEST _timeseries(d,{'ts_ranges':[${__from},${__to}]}) AS t WHERE d.labels.proc='cbq-engine' AND time_range(t._t)", - "refId": "A" - } - ], - "title": "cbq-engine CPU Utilization (%)", - "transformations": [ - { - "id": "prepareTimeSeries", - "options": { - "format": "multi" - } - } - ], - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 12, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 4, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 40 - }, - "id": 19, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS Memory, d.labels.instance FROM get_metric_for('sysproc_mem_resident', '$snapshot_id') AS d UNNEST _timeseries(d,{'ts_ranges':[${__from},${__to}]}) AS t WHERE d.labels.proc='cbq-engine' AND time_range(t._t)", - "refId": "A" - } - ], - "title": "cbq-engine Resident Memory (Bytes)", - "transformations": [ - { - "id": "prepareTimeSeries", - "options": { - "format": "multi" - } - } - ], - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 12, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 4, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": 0 - }, - { - "color": "red", - "value": 90 - } - ] - }, - "unit": "percent" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 48 - }, - "id": 21, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS CPU, d.labels.instance FROM get_metric_for('sysproc_cpu_utilization', '$snapshot_id') AS d UNNEST _timeseries(d,{'ts_ranges':[${__from},${__to}]}) AS t WHERE d.labels.proc='indexer' AND time_range(t._t)", - "refId": "A" - } - ], - "title": "Indexer CPU Utilization (%)", - "transformations": [ - { - "id": "prepareTimeSeries", - "options": { - "format": "multi" - } - } - ], - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 12, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 4, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 48 - }, - "id": 20, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS Memory, d.labels.instance FROM get_metric_for('sysproc_mem_resident', '$snapshot_id') AS d UNNEST _timeseries(d,{'ts_ranges':[${__from},${__to}]}) AS t WHERE d.labels.proc='indexer' AND time_range(t._t)", - "refId": "A" - } - ], - "title": "Indexer Resident Memory (Bytes)", - "transformations": [ - { - "id": "prepareTimeSeries", - "options": { - "format": "multi" - } - } - ], - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 12, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 3, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": 0 - }, - { - "color": "red", - "value": 5 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 56 - }, - "id": 26, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS Memory, d.labels.instance FROM get_metric_for('kv_ep_meta_data_memory_bytes', '$snapshot_id') AS d UNNEST _timeseries(d,{'ts_ranges':[${__from},${__to}]}) AS t WHERE time_range(t._t)", - "refId": "A" - } - ], - "title": "KV EP Metadata Memory (Bytes)", - "transformations": [ - { - "id": "prepareTimeSeries", - "options": { - "format": "multi" - } - } - ], - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 12, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 3, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": 0 - }, - { - "color": "red", - "value": 5 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 56 - }, - "id": 29, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS Items, d.labels.instance FROM get_metric_for('kv_ep_queue_size', '$snapshot_id') AS d UNNEST _timeseries(d,{'ts_ranges':[${__from},${__to}]}) AS t WHERE time_range(t._t)", - "refId": "A" - } - ], - "title": "KV EP Queue Size (Bytes)", - "transformations": [ - { - "id": "prepareTimeSeries", - "options": { - "format": "multi" - } - } - ], - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 12, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 3, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": 0 - }, - { - "color": "red", - "value": 5 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 64 - }, - "id": 27, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS Fill, d.labels.instance FROM get_metric_for('kv_ep_diskqueue_fill', '$snapshot_id') AS d UNNEST _timeseries(d,{'ts_ranges':[${__from},${__to}]}) AS t WHERE time_range(t._t)", - "refId": "A" - } - ], - "title": "KV EP Disk Queue Fill (Bytes)", - "transformations": [ - { - "id": "prepareTimeSeries", - "options": { - "format": "multi" - } - } - ], - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 12, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 3, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": 0 - }, - { - "color": "red", - "value": 5 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 64 - }, - "id": 28, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS Drain, d.labels.instance FROM get_metric_for('kv_ep_diskqueue_drain', '$snapshot_id') AS d UNNEST _timeseries(d,{'ts_ranges':[${__from},${__to}]}) AS t WHERE time_range(t._t)", - "refId": "A" - } - ], - "title": "KV EP Disk Queue Drain (Bytes)", - "transformations": [ - { - "id": "prepareTimeSeries", - "options": { - "format": "multi" - } - } - ], - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 12, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 3, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": 0 - }, - { - "color": "red", - "value": 5 - } - ] - }, - "unit": "ms" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 72 - }, - "id": 30, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `(Seconds)`, d.labels.instance FROM get_metric_for('kv_vb_queue_age_seconds', '$snapshot_id') AS d UNNEST _timeseries(d,{'ts_ranges':[${__from},${__to}]}) AS t WHERE time_range(t._t)", - "refId": "A" - } - ], - "title": "vBucket Queue Age (Seconds)", - "transformations": [ - { - "id": "prepareTimeSeries", - "options": { - "format": "multi" - } - } - ], - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 12, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 3, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": 0 - }, - { - "color": "red", - "value": 5 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 72 - }, - "id": 31, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `(Bytes)`, d.labels.instance FROM get_metric_for('kv_vb_queue_size', '$snapshot_id') AS d UNNEST _timeseries(d,{'ts_ranges':[${__from},${__to}]}) AS t WHERE time_range(t._t)", - "refId": "A" - } - ], - "title": "vBucket Queue Size (Bytes)", - "transformations": [ - { - "id": "prepareTimeSeries", - "options": { - "format": "multi" - } - } - ], - "type": "timeseries" - } - ], - "preload": false, - "refresh": "", - "schemaVersion": 41, - "tags": [], - "templating": { - "list": [ - { - "name": "snapshot_id", - "type": "textbox", - "label": "Snapshot ID", - "query": "", - "hide": 0, - "current": { - "value": "" - } - }, - { - "name": "nodes", - "type": "custom", - "label": "Nodes", - "query": "", - "multi": true, - "includeAll": true, - "hide": 0, - "current": { - "value": [ - "$__all" - ] - } - }, - { - "name": "buckets", - "type": "custom", - "label": "Buckets", - "query": "", - "multi": true, - "includeAll": true, - "hide": 0, - "current": { - "value": [ - "$__all" - ] - } - } - ] - }, - "time": { - "from": "now-1h", - "to": "now" - }, - "timepicker": {}, - "timezone": "browser", - "title": "System Metrics", - "uid": "system", - "version": 4 -} diff --git a/cbmonitor/dashboards/system_basic.json b/cbmonitor/dashboards/system_basic.json deleted file mode 100644 index 7025f40..0000000 --- a/cbmonitor/dashboards/system_basic.json +++ /dev/null @@ -1,1986 +0,0 @@ -{ - "annotations": { - "list": [ - { - "builtIn": 1, - "datasource": { - "type": "grafana", - "uid": "-- Grafana --" - }, - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "type": "dashboard" - } - ] - }, - "editable": true, - "fiscalYearStartMonth": 0, - "graphTooltip": 0, - "id": 1, - "links": [], - "panels": [ - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 15, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 4, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": 0 - }, - { - "color": "red", - "value": 90 - } - ] - }, - "unit": "percent" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 0 - }, - "id": 8, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.97`\nFROM cbmonitor._default._default AS d\nUNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE d.metric_name=\"sys_cpu_utilization_rate\"\n AND ('$snapshot'='All' OR d.labels.job='$snapshot')\n AND d.labels.instance = \"172.23.96.97:8091\"\n AND time_range(t._t)", - "refId": "A" - }, - { - "analytics": false, - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "hide": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.223`\nFROM cbmonitor._default._default AS d\nUNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE d.metric_name=\"sys_cpu_utilization_rate\"\n AND ('$snapshot'='All' OR d.labels.job='$snapshot')\n AND d.labels.instance = \"172.23.96.223:8091\"\n AND time_range(t._t)", - "refId": "B" - } - ], - "title": "System CPU Utilization (%)", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 12, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 4, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 0 - }, - "id": 17, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.223`\nFROM metrics_filter(\"sys_mem_free\", '$snapshot', \"172.23.96.223:8091\", NULL) AS d\nUNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "A" - }, - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.97`\nFROM metrics_filter(\"sys_mem_free\", '$snapshot', \"172.23.96.97:8091\", NULL) AS d\nUNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "B" - } - ], - "title": "System Free Memory (Bytes)", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 12, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 3, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": 0 - }, - { - "color": "red", - "value": 128 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 8 - }, - "id": 23, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.223`\nFROM metrics_filter(\"sys_cpu_cores_available\", '$snapshot', \"172.23.96.223:8091\", NULL) AS d UNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t WHERE time_range(t._t)", - "refId": "A" - }, - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.97`\nFROM metrics_filter(\"sys_cpu_cores_available\", '$snapshot', \"172.23.96.97:8091\", NULL) AS d UNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t WHERE time_range(t._t)", - "refId": "B" - } - ], - "title": "CPU Cores Available", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 12, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 3, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": 0 - }, - { - "color": "red", - "value": 25 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 8 - }, - "id": 24, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.223`\nFROM metrics_filter(\"sys_disk_queue\", '$snapshot', \"172.23.96.223:8091\", NULL) AS d UNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t WHERE time_range(t._t)", - "refId": "A" - }, - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.97`\nFROM metrics_filter(\"sys_disk_queue\", '$snapshot', \"172.23.96.97:8091\", NULL) AS d UNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t WHERE time_range(t._t)", - "refId": "B" - } - ], - "title": "System Disk Queue (Aggregate)", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 4, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 16 - }, - "id": 25, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS cbmonitor\nFROM metrics_filter(\"couch_docs_actual_disk_size\", '$snapshot', NULL, \"cbmonitor\") AS d\nUNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "A" - }, - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS metadata\nFROM metrics_filter(\"couch_docs_actual_disk_size\", '$snapshot', NULL, \"metadata\") AS d\nUNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE time_range(t._t)", - "refId": "B" - } - ], - "title": "Couch Docs Actual Disk Size (Bytes)", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 12, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 3, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": 0 - }, - { - "color": "red", - "value": 5 - } - ] - }, - "unit": "s" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 16 - }, - "id": 22, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.223`\nFROM metrics_filter(\"scrape_duration_seconds\", '$snapshot', \"172.23.96.223:8091\", NULL) AS d UNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t WHERE time_range(t._t)", - "refId": "A" - }, - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.97`\nFROM metrics_filter(\"scrape_duration_seconds\", '$snapshot', \"172.23.96.97:8091\", NULL) AS d UNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t WHERE time_range(t._t)", - "refId": "B" - } - ], - "title": "Scrape Duration (s)", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 12, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 4, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": 0 - }, - { - "color": "red", - "value": 90 - } - ] - }, - "unit": "percent" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 24 - }, - "id": 15, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.97`\nFROM cbmonitor._default._default AS d\nUNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE d.metric_name=\"sysproc_cpu_utilization\" AND d.labels.proc=\"memcached\" AND ('$snapshot'='All' OR d.labels.job='$snapshot') AND d.labels.instance=\"172.23.96.97:8091\" AND time_range(t._t)", - "refId": "A" - }, - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.223`\nFROM cbmonitor._default._default AS d\nUNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE d.metric_name=\"sysproc_cpu_utilization\" AND d.labels.proc=\"memcached\" AND ('$snapshot'='All' OR d.labels.job='$snapshot') AND d.labels.instance=\"172.23.96.223:8091\" AND time_range(t._t)", - "refId": "B" - } - ], - "title": "memcached CPU Utilization (%)", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 12, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 4, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 24 - }, - "id": 13, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.97`\nFROM cbmonitor._default._default AS d UNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t WHERE d.metric_name=\"sysproc_mem_resident\" AND d.labels.proc=\"memcached\" AND ('$snapshot'='All' OR d.labels.job='$snapshot') AND d.labels.instance=\"172.23.96.97:8091\" AND time_range(t._t)", - "refId": "A" - }, - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.223`\nFROM cbmonitor._default._default AS d UNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t WHERE d.metric_name=\"sysproc_mem_resident\" AND d.labels.proc=\"memcached\" AND ('$snapshot'='All' OR d.labels.job='$snapshot') AND d.labels.instance=\"172.23.96.223:8091\" AND time_range(t._t)", - "refId": "B" - } - ], - "title": "memcached Resident Memory (Bytes)", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 12, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 4, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": 0 - }, - { - "color": "red", - "value": 90 - } - ] - }, - "unit": "percent" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 32 - }, - "id": 16, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.97`\nFROM cbmonitor._default._default AS d\nUNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE d.metric_name=\"sysproc_cpu_utilization\" AND d.labels.proc=\"ns_server\" AND ('$snapshot'='All' OR d.labels.job='$snapshot') AND d.labels.instance=\"172.23.96.97:8091\" AND time_range(t._t)", - "refId": "A" - }, - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.223`\nFROM cbmonitor._default._default AS d\nUNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t\nWHERE d.metric_name=\"sysproc_cpu_utilization\" AND d.labels.proc=\"ns_server\" AND ('$snapshot'='All' OR d.labels.job='$snapshot') AND d.labels.instance=\"172.23.96.223:8091\" AND time_range(t._t)", - "refId": "B" - } - ], - "title": "ns_server CPU Utilization (%)", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 12, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 4, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 32 - }, - "id": 14, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.97`\nFROM cbmonitor._default._default AS d UNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t WHERE d.metric_name=\"sysproc_mem_resident\" AND d.labels.proc=\"ns_server\" AND ('$snapshot'='All' OR d.labels.job='$snapshot') AND d.labels.instance=\"172.23.96.97:8091\" AND time_range(t._t)", - "refId": "A" - }, - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.223`\nFROM cbmonitor._default._default AS d UNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t WHERE d.metric_name=\"sysproc_mem_resident\" AND d.labels.proc=\"ns_server\" AND ('$snapshot'='All' OR d.labels.job='$snapshot') AND d.labels.instance=\"172.23.96.223:8091\" AND time_range(t._t)", - "refId": "B" - } - ], - "title": "ns_server Resident Memory (Bytes)", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 12, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 4, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": 0 - }, - { - "color": "red", - "value": 90 - } - ] - }, - "unit": "percent" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 40 - }, - "id": 18, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.97`\nFROM metrics_filter(\"sysproc_cpu_utilization\", '$snapshot',\"172.23.96.97:8091\", NULL) AS d UNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t WHERE d.labels.proc=\"cbq-engine\" AND time_range(t._t)", - "refId": "A" - }, - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.223`\nFROM metrics_filter(\"sysproc_cpu_utilization\", '$snapshot',\"172.23.96.223:8091\", NULL) AS d UNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t WHERE d.labels.proc=\"cbq-engine\" AND time_range(t._t)", - "refId": "B" - } - ], - "title": "cbq-engine CPU Utilization (%)", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 12, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 4, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 40 - }, - "id": 19, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.97`\nFROM metrics_filter(\"sysproc_mem_resident\", '$snapshot',\"172.23.96.97:8091\", NULL) AS d UNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t WHERE d.labels.proc=\"cbq-engine\" AND time_range(t._t)", - "refId": "A" - }, - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.223`\nFROM metrics_filter(\"sysproc_mem_resident\", '$snapshot',\"172.23.96.223:8091\", NULL) AS d UNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t WHERE d.labels.proc=\"cbq-engine\" AND time_range(t._t)", - "refId": "B" - } - ], - "title": "cbq-engine Resident Memory (Bytes)", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 12, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 4, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": 0 - }, - { - "color": "red", - "value": 90 - } - ] - }, - "unit": "percent" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 48 - }, - "id": 21, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.97`\nFROM metrics_filter(\"sysproc_cpu_utilization\", '$snapshot',\"172.23.96.97:8091\", NULL) AS d UNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t WHERE d.labels.proc=\"indexer\" AND time_range(t._t)", - "refId": "A" - }, - { - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.223`\nFROM metrics_filter(\"sysproc_cpu_utilization\", '$snapshot',\"172.23.96.223:8091\", NULL) AS d UNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t WHERE d.labels.proc=\"indexer\" AND time_range(t._t)", - "refId": "B" - } - ], - "title": "Indexer CPU Utilization (%)", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 12, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 4, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": 0 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 48 - }, - "id": 20, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.97`\nFROM metrics_filter(\"sysproc_mem_resident\", '$snapshot',\"172.23.96.97:8091\", NULL) AS d UNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t WHERE d.labels.proc=\"indexer\" AND time_range(t._t)", - "refId": "A" - }, - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.223`\nFROM metrics_filter(\"sysproc_mem_resident\", '$snapshot',\"172.23.96.223:8091\", NULL) AS d UNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t WHERE d.labels.proc=\"indexer\" AND time_range(t._t)", - "refId": "B" - } - ], - "title": "Indexer Resident Memory (Bytes)", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 12, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 3, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": 0 - }, - { - "color": "red", - "value": 5 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 56 - }, - "id": 26, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.223`\nFROM metrics_filter(\"kv_ep_meta_data_memory_bytes\", '$snapshot', \"172.23.96.223:8091\", NULL) AS d UNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t WHERE time_range(t._t)", - "refId": "A" - }, - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.97`\nFROM metrics_filter(\"kv_ep_meta_data_memory_bytes\", '$snapshot', \"172.23.96.97:8091\", NULL) AS d UNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t WHERE time_range(t._t)", - "refId": "B" - } - ], - "title": "KV ep metadata memory (bytes)", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 12, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 3, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": 0 - }, - { - "color": "red", - "value": 5 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 56 - }, - "id": 29, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.223`\nFROM metrics_filter(\"kv_ep_queue_size\", '$snapshot', \"172.23.96.223:8091\", NULL) AS d UNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t WHERE time_range(t._t)", - "refId": "A" - }, - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.97`\nFROM metrics_filter(\"kv_ep_queue_size\", '$snapshot', \"172.23.96.97:8091\", NULL) AS d UNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t WHERE time_range(t._t)", - "refId": "B" - } - ], - "title": "KV ep queue size (bytes)", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 12, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 3, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": 0 - }, - { - "color": "red", - "value": 5 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 64 - }, - "id": 27, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.223`\nFROM metrics_filter(\"kv_ep_diskqueue_fill\", '$snapshot', \"172.23.96.223:8091\", NULL) AS d UNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t WHERE time_range(t._t)", - "refId": "A" - }, - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.97`\nFROM metrics_filter(\"kv_ep_diskqueue_fill\", '$snapshot', \"172.23.96.97:8091\", NULL) AS d UNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t WHERE time_range(t._t)", - "refId": "B" - } - ], - "title": "KV ep disk queue fill (bytes)", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 12, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 3, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": 0 - }, - { - "color": "red", - "value": 5 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 64 - }, - "id": 28, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.223`\nFROM metrics_filter(\"kv_ep_diskqueue_drain\", '$snapshot', \"172.23.96.223:8091\", NULL) AS d UNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t WHERE time_range(t._t)", - "refId": "A" - }, - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.97`\nFROM metrics_filter(\"kv_ep_diskqueue_drain\", '$snapshot', \"172.23.96.97:8091\", NULL) AS d UNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t WHERE time_range(t._t)", - "refId": "B" - } - ], - "title": "KV ep disk queue drain (bytes)", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 12, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 3, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": 0 - }, - { - "color": "red", - "value": 5 - } - ] - }, - "unit": "ms" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 72 - }, - "id": 30, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.223`\nFROM metrics_filter(\"kv_vb_queue_age_seconds\", '$snapshot', \"172.23.96.223:8091\", NULL) AS d UNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t WHERE time_range(t._t)", - "refId": "A" - }, - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.97`\nFROM metrics_filter(\"kv_vb_queue_age_seconds\", '$snapshot', \"172.23.96.97:8091\", NULL) AS d UNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t WHERE time_range(t._t)", - "refId": "B" - } - ], - "title": "vBucket queue age (milliseconds)", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 12, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 3, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": 0 - }, - { - "color": "red", - "value": 5 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 72 - }, - "id": 31, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.223`\nFROM metrics_filter(\"kv_vb_queue_size\", '$snapshot', \"172.23.96.223:8091\", NULL) AS d UNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t WHERE time_range(t._t)", - "refId": "A" - }, - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `172.23.96.97`\nFROM metrics_filter(\"kv_vb_queue_size\", '$snapshot', \"172.23.96.97:8091\", NULL) AS d UNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t WHERE time_range(t._t)", - "refId": "B" - } - ], - "title": "vBucket queue size (bytes)", - "type": "timeseries" - } - ], - "preload": false, - "refresh": "", - "schemaVersion": 41, - "tags": [], - "templating": { - "list": [ - { - "allValue": "All", - "current": { - "text": "All", - "value": "$__all" - }, - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "definition": "SELECT DISTINCT d.labels.job FROM cbmonitor._default._default AS d WHERE d.labels.job IS NOT NULL", - "includeAll": true, - "label": "Job", - "name": "snapshot", - "options": [], - "query": "SELECT DISTINCT d.labels.job FROM cbmonitor._default._default AS d WHERE d.labels.job IS NOT NULL", - "refresh": 1, - "type": "query" - } - ] - }, - "time": { - "from": "now-1h", - "to": "now" - }, - "timepicker": {}, - "timezone": "browser", - "title": "system_basic", - "uid": "12b2cb59-bdeb-4015-a7c6-7367a7ff3898", - "version": 10 -} \ No newline at end of file diff --git a/cbmonitor/dashboards/xdcr_basic.json b/cbmonitor/dashboards/xdcr_basic.json deleted file mode 100644 index 847227f..0000000 --- a/cbmonitor/dashboards/xdcr_basic.json +++ /dev/null @@ -1,704 +0,0 @@ -{ - "annotations": { - "list": [ - { - "builtIn": 1, - "datasource": { - "type": "grafana", - "uid": "-- Grafana --" - }, - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "type": "dashboard" - } - ] - }, - "editable": true, - "fiscalYearStartMonth": 0, - "graphTooltip": 0, - "id": 1, - "links": [], - "panels": [ - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 12, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 3, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": 0 - }, - { - "color": "red", - "value": 25 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 0 - }, - "id": 2, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `value`\nFROM metrics_filter(\"xdcr_changes_left_total\", '$snapshot', NULL, NULL) AS d UNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t WHERE time_range(t._t)", - "refId": "A" - } - ], - "title": "xdcr_changes_left_total", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 12, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 3, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": 0 - }, - { - "color": "red", - "value": 25 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 0 - }, - "id": 7, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `value`\nFROM metrics_filter(\"xdcr_docs_cloned_total\", '$snapshot', NULL, NULL) AS d UNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t WHERE time_range(t._t)", - "refId": "A" - } - ], - "title": "xdcr_docs_cloned_total", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 12, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 3, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": 0 - }, - { - "color": "red", - "value": 25 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 8 - }, - "id": 4, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `value`\nFROM metrics_filter(\"xdcr_docs_checked_total\", '$snapshot', NULL, NULL) AS d UNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t WHERE time_range(t._t)", - "refId": "A" - } - ], - "title": "xdcr_docs_checked_total", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 12, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 3, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": 0 - }, - { - "color": "red", - "value": 25 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 8 - }, - "id": 3, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `value`\nFROM metrics_filter(\"xdcr_docs_written_total\", '$snapshot', NULL, NULL) AS d UNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t WHERE time_range(t._t)", - "refId": "A" - } - ], - "title": "xdcr_docs_written_total", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 12, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 3, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": 0 - }, - { - "color": "red", - "value": 25 - } - ] - }, - "unit": "s" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 16 - }, - "id": 8, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `value`\nFROM metrics_filter(\"xdcr_wtavg_docs_latency_seconds\", '$snapshot', NULL, NULL) AS d UNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t WHERE time_range(t._t)", - "refId": "A" - } - ], - "title": "xdcr_wtavg_docs_latency_seconds", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 12, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 3, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": 0 - }, - { - "color": "red", - "value": 25 - } - ] - }, - "unit": "s" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 16 - }, - "id": 5, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `value`\nFROM metrics_filter(\"xdcr_wtavg_meta_latency_seconds\", '$snapshot', NULL, NULL) AS d UNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t WHERE time_range(t._t)", - "refId": "A" - } - ], - "title": "xdcr_wtavg_meta_latency_seconds", - "type": "timeseries" - }, - { - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 12, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 3, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": 0 - }, - { - "color": "red", - "value": 25 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 24 - }, - "id": 6, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.1.0", - "targets": [ - { - "analytics": false, - "query": "SELECT MILLIS_TO_STR(t._t) AS time, t._v0 AS `value`\nFROM metrics_filter(\"xdcr_data_replicated_bytes\", '$snapshot', NULL, NULL) AS d UNNEST _timeseries(d,{\"ts_ranges\":[${__from},${__to}]}) AS t WHERE time_range(t._t)", - "refId": "A" - } - ], - "title": "xdcr_data_replicated_bytes", - "type": "timeseries" - } - ], - "preload": false, - "schemaVersion": 41, - "tags": [], - "templating": { - "list": [ - { - "allValue": "All", - "current": { - "text": "All", - "value": "$__all" - }, - "datasource": { - "type": "couchbase-datasource", - "uid": "P71E105C5A2E708ED" - }, - "definition": "SELECT DISTINCT d.labels.job FROM cbmonitor._default._default AS d WHERE d.labels.job IS NOT NULL", - "includeAll": true, - "label": "Job", - "name": "snapshot", - "options": [], - "query": "SELECT DISTINCT d.labels.job FROM cbmonitor._default._default AS d WHERE d.labels.job IS NOT NULL", - "refresh": 1, - "type": "query" - } - ] - }, - "time": { - "from": "now-1h", - "to": "now" - }, - "timepicker": {}, - "timezone": "browser", - "title": "xdcr_basic", - "uid": "2456471f-8cfb-43e7-a397-dda4e1f834f3", - "version": 6 -} \ No newline at end of file diff --git a/cbmonitor/pkg/handlers/snapshot.go b/cbmonitor/pkg/handlers/snapshot.go index e5395a4..411eb13 100644 --- a/cbmonitor/pkg/handlers/snapshot.go +++ b/cbmonitor/pkg/handlers/snapshot.go @@ -1,6 +1,7 @@ package handlers import ( + "context" "encoding/json" "fmt" "log" @@ -16,7 +17,7 @@ import ( // SnapshotHandler handles all snapshot-related HTTP requests type SnapshotHandler struct { - snapshotService *services.SnapshotService + snapshotService *services.SnapshotService couchbaseService *services.CouchbaseService snapshotBucket string } @@ -74,7 +75,7 @@ func (h *SnapshotHandler) HandleGetSnapshot(w http.ResponseWriter, req *http.Req } h.sendJSONResponse(w, response, http.StatusOK) - log.Printf("Successfully returned snapshot: %s with %d services", + log.Printf("Successfully returned snapshot: %s with %d services", snapshotID, len(snapshotData.Metadata.Services)) } @@ -129,10 +130,23 @@ func (h *SnapshotHandler) HandleGetMetric(w http.ResponseWriter, req *http.Reque return } - // Build query using get_data_for_snapshot UDF (bucket name is hardcoded in UDF) - // Select only time and value for debugging - clients only need raw data - // get_data_for_snapshot already filters by job=snapshotID, so we only add additional label filters + // Build base label filter WHERE clause whereClause := querybuilder.BuildLabelWhereClause(labelFilters) + + // If cluster filter is present, add instance IN clause for target nodes + if clusterFilter, ok := labelFilters["cluster"]; ok { + clusterTargets := h.getClusterTargets(req.Context(), snapshotID, clusterFilter) + if len(clusterTargets) > 0 { + instanceClause := querybuilder.BuildInstanceInClause(clusterTargets) + if whereClause != "" { + whereClause = whereClause + " AND " + instanceClause + } else { + whereClause = instanceClause + } + log.Printf("Added instance filter for cluster '%s': %d targets", clusterFilter, len(clusterTargets)) + } + } + query := querybuilder.BuildSnapshotQuery(metricName, snapshotID, []string{"time", "value"}, whereClause) // Execute query @@ -181,9 +195,23 @@ func (h *SnapshotHandler) HandleGetMetricPhase(w http.ResponseWriter, req *http. return } - // Build query using get_data_for_phase UDF (bucket name is hardcoded in UDF) - // Select only time and value for debugging - clients only need raw data + // Build base label filter WHERE clause whereClause := querybuilder.BuildLabelWhereClause(labelFilters) + + // If cluster filter is present, add instance IN clause for target nodes + if clusterFilter, ok := labelFilters["cluster"]; ok { + clusterTargets := h.getClusterTargets(req.Context(), snapshotID, clusterFilter) + if len(clusterTargets) > 0 { + instanceClause := querybuilder.BuildInstanceInClause(clusterTargets) + if whereClause != "" { + whereClause = whereClause + " AND " + instanceClause + } else { + whereClause = instanceClause + } + log.Printf("Added instance filter for cluster '%s': %d targets", clusterFilter, len(clusterTargets)) + } + } + query := querybuilder.BuildPhaseQuery(metricName, snapshotID, phaseName, []string{"time", "value"}, whereClause) // Execute query @@ -199,6 +227,32 @@ func (h *SnapshotHandler) HandleGetMetricPhase(w http.ResponseWriter, req *http. h.sendJSONResponse(w, response, http.StatusOK) } +// getClusterTargets looks up a cluster by uid or name in snapshot metadata and returns stripped targets +// Returns empty slice if cluster not found or no clusters in metadata +func (h *SnapshotHandler) getClusterTargets(ctx context.Context, snapshotID, clusterFilter string) []string { + if h.snapshotService == nil || clusterFilter == "" { + return nil + } + + // Fetch snapshot metadata to get cluster targets + snapshotData, err := h.snapshotService.GetSnapshotByID(ctx, snapshotID) + if err != nil { + log.Printf("Warning: Could not fetch snapshot metadata for cluster target lookup: %v", err) + return nil + } + + // Look up cluster by uid or name + for _, cluster := range snapshotData.Metadata.Clusters { + if cluster.UID == clusterFilter || cluster.Name == clusterFilter { + // Strip ports from targets and return + return querybuilder.StripPortsFromTargets(cluster.Targets) + } + } + + log.Printf("Warning: Cluster '%s' not found in snapshot metadata", clusterFilter) + return nil +} + // HandleGetMetricSummary handles GET /snapshots/{id}/metrics/{metric_name}/summary func (h *SnapshotHandler) HandleGetMetricSummary(w http.ResponseWriter, req *http.Request) { if req.Method != http.MethodGet { @@ -226,8 +280,23 @@ func (h *SnapshotHandler) HandleGetMetricSummary(w http.ResponseWriter, req *htt return } - // Build query using get_data_for_snapshot UDF to get all values + // Build base label filter WHERE clause whereClause := querybuilder.BuildLabelWhereClause(labelFilters) + + // If cluster filter is present, add instance IN clause for target nodes + if clusterFilter, ok := labelFilters["cluster"]; ok { + clusterTargets := h.getClusterTargets(req.Context(), snapshotID, clusterFilter) + if len(clusterTargets) > 0 { + instanceClause := querybuilder.BuildInstanceInClause(clusterTargets) + if whereClause != "" { + whereClause = whereClause + " AND " + instanceClause + } else { + whereClause = instanceClause + } + log.Printf("Added instance filter for cluster '%s': %d targets", clusterFilter, len(clusterTargets)) + } + } + query := querybuilder.BuildSnapshotQuery(metricName, snapshotID, []string{"value"}, whereClause) // Execute query @@ -277,8 +346,23 @@ func (h *SnapshotHandler) HandleGetMetricPhaseSummary(w http.ResponseWriter, req return } - // Build query using get_data_for_phase UDF to get all values + // Build base label filter WHERE clause whereClause := querybuilder.BuildLabelWhereClause(labelFilters) + + // If cluster filter is present, add instance IN clause for target nodes + if clusterFilter, ok := labelFilters["cluster"]; ok { + clusterTargets := h.getClusterTargets(req.Context(), snapshotID, clusterFilter) + if len(clusterTargets) > 0 { + instanceClause := querybuilder.BuildInstanceInClause(clusterTargets) + if whereClause != "" { + whereClause = whereClause + " AND " + instanceClause + } else { + whereClause = instanceClause + } + log.Printf("Added instance filter for cluster '%s': %d targets", clusterFilter, len(clusterTargets)) + } + } + query := querybuilder.BuildPhaseQuery(metricName, snapshotID, phaseName, []string{"value"}, whereClause) // Execute query @@ -393,7 +477,7 @@ func formatPercentileKey(p float64) string { func (h *SnapshotHandler) computeSummary(results []map[string]interface{}, customPercentiles []float64) *models.MetricSummary { if len(results) == 0 { return &models.MetricSummary{ - Count: 0, + Count: 0, Percentiles: make(map[string]float64), } } @@ -429,7 +513,7 @@ func (h *SnapshotHandler) computeSummary(results []map[string]interface{}, custo if len(values) == 0 { return &models.MetricSummary{ - Count: 0, + Count: 0, Percentiles: make(map[string]float64), } } @@ -452,10 +536,10 @@ func (h *SnapshotHandler) computeSummary(results []map[string]interface{}, custo avg := sum / float64(count) summary := &models.MetricSummary{ - Count: count, - Avg: avg, - Min: min, - Max: max, + Count: count, + Avg: avg, + Min: min, + Max: max, Percentiles: make(map[string]float64), } diff --git a/cbmonitor/pkg/models/snapshot.go b/cbmonitor/pkg/models/snapshot.go index 0cdf186..39a0273 100644 --- a/cbmonitor/pkg/models/snapshot.go +++ b/cbmonitor/pkg/models/snapshot.go @@ -7,10 +7,18 @@ type Phase struct { TSEnd string `json:"ts_end,omitempty"` } +// Cluster represents a cluster in the snapshot +type Cluster struct { + UID string `json:"uid"` + Name string `json:"name,omitempty"` + Targets []string `json:"targets,omitempty"` +} + // SnapshotMetadata represents the snapshot metadata structure from Couchbase type SnapshotMetadata struct { SnapshotID string `json:"snapshotId" couchbase:"id"` Services []string `json:"services" couchbase:"services"` + Clusters []Cluster `json:"clusters,omitempty" couchbase:"clusters"` Version string `json:"version" couchbase:"server"` TSStart string `json:"ts_start" couchbase:"ts_start"` TSEnd string `json:"ts_end" couchbase:"ts_end"` @@ -40,13 +48,13 @@ type MetricDataPoint struct { // MetricDataResponse represents raw metric data for a snapshot type MetricDataResponse struct { - Success bool `json:"success"` - Metric string `json:"metric"` - Snapshot string `json:"snapshot"` - TimeRange *TimeRange `json:"timeRange,omitempty"` + Success bool `json:"success"` + Metric string `json:"metric"` + Snapshot string `json:"snapshot"` + TimeRange *TimeRange `json:"timeRange,omitempty"` Values []MetricDataPoint `json:"values"` - Count int `json:"count"` - Error string `json:"error,omitempty"` + Count int `json:"count"` + Error string `json:"error,omitempty"` } // TimeRange represents a time range @@ -57,19 +65,19 @@ type TimeRange struct { // MetricSummary represents pre-computed summary statistics type MetricSummary struct { - Count int `json:"count"` - Avg float64 `json:"avg"` - Min float64 `json:"min"` - Max float64 `json:"max"` + Count int `json:"count"` + Avg float64 `json:"avg"` + Min float64 `json:"min"` + Max float64 `json:"max"` Percentiles map[string]float64 `json:"percentiles"` // Always includes P50, P90, P99, plus any custom percentiles } // MetricSummaryResponse represents summary statistics for a metric type MetricSummaryResponse struct { - Success bool `json:"success"` - Metric string `json:"metric"` - Snapshot string `json:"snapshot"` - Phase string `json:"phase,omitempty"` + Success bool `json:"success"` + Metric string `json:"metric"` + Snapshot string `json:"snapshot"` + Phase string `json:"phase,omitempty"` Summary *MetricSummary `json:"summary,omitempty"` - Error string `json:"error,omitempty"` + Error string `json:"error,omitempty"` } diff --git a/cbmonitor/pkg/querybuilder/querybuilder.go b/cbmonitor/pkg/querybuilder/querybuilder.go index c1b5214..53ff473 100644 --- a/cbmonitor/pkg/querybuilder/querybuilder.go +++ b/cbmonitor/pkg/querybuilder/querybuilder.go @@ -14,6 +14,7 @@ type LabelFilter struct { // BuildLabelWhereClause builds a WHERE clause for label filters // Returns empty string if no filters, otherwise returns conditions joined with AND +// Special handling: "cluster" parameter matches against both cluster_uuid and cluster_name func BuildLabelWhereClause(labelFilters map[string]string) string { if len(labelFilters) == 0 { return "" @@ -21,10 +22,20 @@ func BuildLabelWhereClause(labelFilters map[string]string) string { conditions := []string{} for labelName, labelValue := range labelFilters { - // Escape label name and value for SQL injection prevention - escapedLabel := EscapeLabel(labelName) // Basic SQL injection prevention - escape single quotes in value escapedValue := strings.ReplaceAll(labelValue, "'", "''") + + // Special case: "cluster" matches against both cluster_uuid and cluster_name + if labelName == "cluster" { + condition := fmt.Sprintf(`(d.labels.%s = '%s' OR d.labels.%s = '%s')`, + EscapeLabel("cluster_uuid"), escapedValue, + EscapeLabel("cluster_name"), escapedValue) + conditions = append(conditions, condition) + continue + } + + // Escape label name and value for SQL injection prevention + escapedLabel := EscapeLabel(labelName) conditions = append(conditions, fmt.Sprintf(`d.labels.%s = '%s'`, escapedLabel, escapedValue)) } @@ -65,6 +76,51 @@ func EscapeLabel(label string) string { return fmt.Sprintf("`%s`", label) } +// StripPortsFromTargets removes port numbers from target addresses +// "172.23.96.97:18091" -> "172.23.96.97" +// "172.23.96.97:8091" -> "172.23.96.97" +func StripPortsFromTargets(targets []string) []string { + stripped := make([]string, 0, len(targets)) + seen := make(map[string]struct{}) + + for _, target := range targets { + // Find the last colon (handles IPv6 addresses with brackets) + host := target + if idx := strings.LastIndex(target, ":"); idx != -1 { + host = target[:idx] + } + // Remove brackets from IPv6 addresses if present + host = strings.TrimPrefix(strings.TrimSuffix(host, "]"), "[") + + if host == "" { + continue + } + // Deduplicate + if _, ok := seen[host]; !ok { + seen[host] = struct{}{} + stripped = append(stripped, host) + } + } + return stripped +} + +// BuildInstanceInClause builds a WHERE clause condition for instance filtering +// Returns empty string if no instances, otherwise returns: d.labels.`instance` IN ['host1', 'host2'] +func BuildInstanceInClause(instances []string) string { + if len(instances) == 0 { + return "" + } + + quotedInstances := make([]string, len(instances)) + for i, inst := range instances { + // Escape single quotes + escaped := strings.ReplaceAll(inst, "'", "''") + quotedInstances[i] = fmt.Sprintf("'%s'", escaped) + } + + return fmt.Sprintf("d.labels.`instance` IN [%s]", strings.Join(quotedInstances, ", ")) +} + // buildSelectClause builds a SELECT clause from field names, prefixing each with "d." // Handles fields that may already have aliases (e.g., "time AS timestamp" -> "d.time AS timestamp") func buildSelectClause(fields []string) string { diff --git a/cbmonitor/pkg/services/snapshot.go b/cbmonitor/pkg/services/snapshot.go index 9517481..896f0df 100644 --- a/cbmonitor/pkg/services/snapshot.go +++ b/cbmonitor/pkg/services/snapshot.go @@ -12,8 +12,8 @@ import ( // SnapshotService handles snapshot-related operations type SnapshotService struct { - cluster *gocb.Cluster - bucket *gocb.Bucket + cluster *gocb.Cluster + bucket *gocb.Bucket } // NewSnapshotService creates a new snapshot service instance @@ -41,8 +41,8 @@ func NewSnapshotService(connectionString, username, password, bucketName string) log.Printf("Snapshot service connected to Couchbase cluster: %s, bucket: %s", connectionString, bucketName) return &SnapshotService{ - cluster: cluster, - bucket: bucket, + cluster: cluster, + bucket: bucket, }, nil } @@ -121,17 +121,47 @@ func (ss *SnapshotService) GetSnapshotByID(ctx context.Context, snapshotID strin metadata.Label = label } + // Extract clusters if present + if clusters, ok := rawData["clusters"].([]interface{}); ok { + metadata.Clusters = make([]models.Cluster, 0, len(clusters)) + for i, c := range clusters { + if clusterMap, ok := c.(map[string]interface{}); ok { + cluster := models.Cluster{} + if uid, ok := clusterMap["uid"].(string); ok { + cluster.UID = uid + } + if name, ok := clusterMap["name"].(string); ok { + cluster.Name = name + } + // Assign default name if not provided + if cluster.Name == "" { + cluster.Name = fmt.Sprintf("cluster%d", i+1) + } + if targets, ok := clusterMap["targets"].([]interface{}); ok { + cluster.Targets = make([]string, 0, len(targets)) + for _, t := range targets { + if target, ok := t.(string); ok { + cluster.Targets = append(cluster.Targets, target) + } + } + } + metadata.Clusters = append(metadata.Clusters, cluster) + } + } + } + // Create a copy of rawData without metadata fields to avoid duplication dataWithoutMetadata := make(map[string]interface{}) metadataFields := map[string]bool{ - "id": true, - "services": true, - "server": true, - "version": true, - "ts_start": true, - "ts_end": true, - "phases": true, - "label": true, + "id": true, + "services": true, + "server": true, + "version": true, + "ts_start": true, + "ts_end": true, + "phases": true, + "label": true, + "clusters": true, } for k, v := range rawData { if !metadataFields[k] { @@ -157,16 +187,16 @@ func (ss *SnapshotService) GetSnapshotByID(ctx context.Context, snapshotID strin // determineDashboards returns a list of dashboard IDs based on the services in the snapshot func (ss *SnapshotService) determineDashboards(services []string) []string { dashboardMap := map[string]string{ - "kv": "kv_basic", - "index": "index_basic", - "query": "query_basic", - "fts": "fts_basic", - "eventing": "eventing_basic", - "analytics": "analytics_basic", - "cbas": "analytics_basic", - "n1ql": "query_basic", - "data": "kv_basic", - "xdcr": "xdcr_basic", + "kv": "kv_basic", + "index": "index_basic", + "query": "query_basic", + "fts": "fts_basic", + "eventing": "eventing_basic", + "analytics": "analytics_basic", + "cbas": "analytics_basic", + "n1ql": "query_basic", + "data": "kv_basic", + "xdcr": "xdcr_basic", "cluster_manager": "cluster_manager_basic", } diff --git a/cbmonitor/src/components/ClusterSelector/ClusterToggle.tsx b/cbmonitor/src/components/ClusterSelector/ClusterToggle.tsx new file mode 100644 index 0000000..ac5eccc --- /dev/null +++ b/cbmonitor/src/components/ClusterSelector/ClusterToggle.tsx @@ -0,0 +1,83 @@ +import React, { useState, useEffect } from 'react'; +import { SceneObjectBase, SceneComponentProps, SceneObjectState } from '@grafana/scenes'; +import { Combobox, ComboboxOption } from '@grafana/ui'; +import { Cluster } from 'types/snapshot'; +import { clusterFilterService } from '../../services/clusterFilterService'; + +const ALL_CLUSTERS = '__all__'; + +interface ClusterToggleState extends SceneObjectState { + clusters: Cluster[]; + onClusterChange?: (clusterId: string | null) => void; +} + +export class ClusterToggle extends SceneObjectBase { + static Component = ClusterToggleRenderer; + + constructor(state: ClusterToggleState) { + super(state); + } +} + +function ClusterToggleRenderer({ model }: SceneComponentProps) { + const { clusters, onClusterChange } = model.useState(); + + // Initialize from service and sync with it + const getInitialValue = () => { + const current = clusterFilterService.getCurrentCluster(); + return current ?? ALL_CLUSTERS; + }; + const [selectedCluster, setSelectedCluster] = useState(getInitialValue); + + // Subscribe to external changes to the cluster filter + useEffect(() => { + const unsubscribe = clusterFilterService.subscribe((clusterId) => { + setSelectedCluster(clusterId ?? ALL_CLUSTERS); + }); + return unsubscribe; + }, []); + + // Build options with "All clusters" as default + // Note: label is displayed, value (UUID) is used internally for filtering + const options: Array> = [ + { + label: 'All clusters', + value: ALL_CLUSTERS, + description: 'Show metrics from all clusters', + }, + ...clusters.map((cluster, index) => ({ + label: cluster.name || `Cluster ${index + 1}`, + value: cluster.uid, + description: `UUID: ${cluster.uid}`, + })), + ]; + + const handleChange = (option: ComboboxOption | null) => { + const newValue = option?.value ?? ALL_CLUSTERS; + setSelectedCluster(newValue); + if (onClusterChange) { + // Convert ALL_CLUSTERS back to null for the callback + // The value is always the UUID + onClusterChange(newValue === ALL_CLUSTERS ? null : newValue); + } + }; + + // Always render for debugging - show "No clusters" if empty + const displayClusters = clusters || []; + + return ( +
+ {displayClusters.length === 0 ? ( + No clusters in metadata + ) : ( + + )} +
+ ); +} diff --git a/cbmonitor/src/components/ControlsBar/ControlsBar.tsx b/cbmonitor/src/components/ControlsBar/ControlsBar.tsx new file mode 100644 index 0000000..3bc4a19 --- /dev/null +++ b/cbmonitor/src/components/ControlsBar/ControlsBar.tsx @@ -0,0 +1,37 @@ +import React from 'react'; +import { SceneObjectBase, SceneComponentProps, SceneObjectState, SceneObject } from '@grafana/scenes'; + +interface ControlsBarState extends SceneObjectState { + controls: SceneObject[]; +} + +export class ControlsBar extends SceneObjectBase { + static Component = ControlsBarRenderer; + + constructor(state: ControlsBarState) { + super(state); + } +} + +function ControlsBarRenderer({ model }: SceneComponentProps) { + const { controls } = model.useState(); + + return ( +
+ {controls.map((control, index) => { + const Component = (control as any).constructor.Component; + return Component ? ( +
+ +
+ ) : null; + })} +
+ ); +} diff --git a/cbmonitor/src/components/HideEmptyToggle/HideEmptyToggle.tsx b/cbmonitor/src/components/HideEmptyToggle/HideEmptyToggle.tsx new file mode 100644 index 0000000..ce33590 --- /dev/null +++ b/cbmonitor/src/components/HideEmptyToggle/HideEmptyToggle.tsx @@ -0,0 +1,49 @@ +import React, { useState, useEffect } from 'react'; +import { SceneObjectBase, SceneComponentProps, SceneObjectState } from '@grafana/scenes'; +import { Switch, InlineField, Tooltip } from '@grafana/ui'; +import { layoutService } from '../../services/layoutService'; + +interface HideEmptyToggleState extends SceneObjectState { + onToggle?: () => void; +} + +export class HideEmptyToggle extends SceneObjectBase { + static Component = HideEmptyToggleRenderer; + + constructor(state?: HideEmptyToggleState) { + super(state || {}); + } +} + +function HideEmptyToggleRenderer({ model }: SceneComponentProps) { + const { onToggle } = model.useState(); + const [hideEmpty, setHideEmpty] = useState(layoutService.getHideEmptyPanels()); + + useEffect(() => { + const unsubscribe = layoutService.subscribeHideEmpty((hide) => { + setHideEmpty(hide); + }); + return unsubscribe; + }, []); + + const handleChange = (event: React.ChangeEvent) => { + const newValue = event.target.checked; + layoutService.setHideEmptyPanels(newValue); + if (onToggle) { + onToggle(); + } + }; + + return ( +
+ + + + + +
+ ); +} diff --git a/cbmonitor/src/components/SettingsDropdown/SettingsDropdown.tsx b/cbmonitor/src/components/SettingsDropdown/SettingsDropdown.tsx new file mode 100644 index 0000000..7e8b4e7 --- /dev/null +++ b/cbmonitor/src/components/SettingsDropdown/SettingsDropdown.tsx @@ -0,0 +1,249 @@ +import React, { useState, useEffect, useRef } from 'react'; +import { SceneObjectBase, SceneComponentProps, SceneObjectState } from '@grafana/scenes'; +import { Icon, RadioButtonGroup, Combobox, ComboboxOption, Switch } from '@grafana/ui'; +import { Cluster } from 'types/snapshot'; +import { layoutService, LayoutMode } from '../../services/layoutService'; +import { dataSourceService } from '../../services/datasourceService'; +import { DataSourceType } from '../../types/datasource'; +import { clusterFilterService } from '../../services/clusterFilterService'; + +const ALL_CLUSTERS = '__all__'; + +interface SettingsDropdownState extends SceneObjectState { + snapshotId: string; + clusters: Cluster[]; + onLayoutChange: () => void; + onDataSourceChange: () => void; + onClusterChange: (clusterId: string | null) => void; + onHideEmptyChange: () => void; +} + +export class SettingsDropdown extends SceneObjectBase { + static Component = SettingsDropdownRenderer; + + constructor(state: SettingsDropdownState) { + super(state); + } +} + +function SettingsDropdownRenderer({ model }: SceneComponentProps) { + const { clusters, onLayoutChange, onDataSourceChange, onClusterChange, onHideEmptyChange } = model.useState(); + + const [isOpen, setIsOpen] = useState(false); + const [layout, setLayout] = useState(layoutService.getLayout()); + const [dataSource, setDataSource] = useState(dataSourceService.getCurrentDataSource()); + const [selectedCluster, setSelectedCluster] = useState(clusterFilterService.getCurrentCluster() ?? ALL_CLUSTERS); + const [hideEmpty, setHideEmpty] = useState(layoutService.getHideEmptyPanels()); + + const dropdownRef = useRef(null); + + // Close dropdown when clicking outside + useEffect(() => { + const handleClickOutside = (event: MouseEvent) => { + const target = event.target as Node; + + // Don't close if clicking inside our dropdown + if (dropdownRef.current && dropdownRef.current.contains(target)) { + return; + } + + // Don't close if clicking on Grafana UI portals (Combobox dropdowns, etc.) + const targetElement = event.target as HTMLElement; + const isGrafanaPortal = targetElement.closest('[data-portal="true"]') || + targetElement.closest('.grafana-portal') || + targetElement.closest('[class*="menu"]') || + targetElement.closest('[class*="Menu"]') || + targetElement.closest('[class*="Combobox"]') || + targetElement.closest('[class*="combobox"]') || + targetElement.closest('[class*="options"]') || + targetElement.closest('[class*="Options"]') || + targetElement.closest('[role="listbox"]') || + targetElement.closest('[role="option"]'); + + if (isGrafanaPortal) { + return; + } + + setIsOpen(false); + }; + + if (isOpen) { + // Use setTimeout to avoid immediate trigger on same click that opened the dropdown + const timeoutId = setTimeout(() => { + document.addEventListener('mousedown', handleClickOutside); + }, 0); + + return () => { + clearTimeout(timeoutId); + document.removeEventListener('mousedown', handleClickOutside); + }; + } + + return () => { + document.removeEventListener('mousedown', handleClickOutside); + }; + }, [isOpen]); + + // Subscribe to layout changes + useEffect(() => { + const unsubscribe = layoutService.subscribe((newLayout) => { + setLayout(newLayout); + }); + return unsubscribe; + }, []); + + // Subscribe to datasource changes + useEffect(() => { + const unsubscribe = dataSourceService.subscribe((newDs) => { + setDataSource(newDs); + }); + return unsubscribe; + }, []); + + // Subscribe to cluster filter changes + useEffect(() => { + const unsubscribe = clusterFilterService.subscribe((clusterId) => { + setSelectedCluster(clusterId ?? ALL_CLUSTERS); + }); + return unsubscribe; + }, []); + + // Subscribe to hideEmpty changes + useEffect(() => { + const unsubscribe = layoutService.subscribeHideEmpty((newHideEmpty) => { + setHideEmpty(newHideEmpty); + }); + return unsubscribe; + }, []); + + const handleLayoutChange = (value: LayoutMode) => { + layoutService.setLayout(value); + onLayoutChange(); + }; + + const handleDataSourceChange = (option: ComboboxOption | null) => { + if (option?.value && option.value !== dataSource) { + dataSourceService.setCurrentDataSource(option.value); + onDataSourceChange(); + } + }; + + const handleClusterChange = (option: ComboboxOption | null) => { + const newValue = option?.value ?? ALL_CLUSTERS; + setSelectedCluster(newValue); + onClusterChange(newValue === ALL_CLUSTERS ? null : newValue); + }; + + const handleHideEmptyChange = (checked: boolean) => { + layoutService.setHideEmptyPanels(checked); + onHideEmptyChange(); + }; + + const layoutOptions = [ + { label: 'Grid', value: 'grid' as LayoutMode, icon: 'apps' }, + { label: 'Rows', value: 'rows' as LayoutMode, icon: 'list-ul' }, + ]; + + const dataSourceOptions: Array> = [ + { label: 'Prometheus', value: DataSourceType.Prometheus }, + { label: 'Couchbase SQL++', value: DataSourceType.Couchbase }, + ]; + + const clusterOptions: Array> = [ + { label: 'All clusters', value: ALL_CLUSTERS }, + ...clusters.map((cluster, index) => ({ + label: cluster.name || `Cluster ${index + 1}`, + value: cluster.uid, + })), + ]; + + return ( +
+ + + {isOpen && ( +
+
+ Settings +
+ + {/* Layout Section */} +
+
Layout
+ +
+ + {/* Datasource Section */} +
+
Data Source
+ +
+ + {/* Cluster Section - only show if clusters exist */} + {clusters.length > 0 && ( +
+
Cluster Filter
+ +
+ )} + + {/* Hide Empty Panels */} +
+
Hide Empty Panels
+ handleHideEmptyChange(e.currentTarget.checked)} + /> +
+
+ )} +
+ ); +} diff --git a/cbmonitor/src/components/SettingsDropdown/index.ts b/cbmonitor/src/components/SettingsDropdown/index.ts new file mode 100644 index 0000000..5ba6206 --- /dev/null +++ b/cbmonitor/src/components/SettingsDropdown/index.ts @@ -0,0 +1 @@ +export { SettingsDropdown } from './SettingsDropdown'; diff --git a/cbmonitor/src/components/SnapshotDisplay/metadataSummary.tsx b/cbmonitor/src/components/SnapshotDisplay/metadataSummary.tsx index 6991409..05769e4 100644 --- a/cbmonitor/src/components/SnapshotDisplay/metadataSummary.tsx +++ b/cbmonitor/src/components/SnapshotDisplay/metadataSummary.tsx @@ -41,12 +41,28 @@ function renderLabel(label: string | undefined): React.ReactNode { export function FormatMetadataSummary(props: FormatMetadataSummaryProps) { const { metadata } = props; const [isExpanded, setIsExpanded] = useState(false); + const [copied, setCopied] = useState(false); + + const copySnapshotId = () => { + navigator.clipboard.writeText(metadata.snapshotId); + setCopied(true); + setTimeout(() => setCopied(false), 2000); + }; return (
- Snapshot ID: {metadata.snapshotId} | Server Version: {metadata.version} + Snapshot ID:{' '} + + {metadata.snapshotId} + + +
Server Version: {metadata.version} {metadata.phases && metadata.phases.length > 0 && ( ({metadata.phases.length} phases available in time picker) @@ -75,9 +91,17 @@ export function FormatMetadataSummary(props: FormatMetadataSummaryProps) {
Phases: {metadata.phases.map((p) => `📍 ${p.label}: ${formatPhaseTime(p.ts_start)} - ${formatPhaseTime(p.ts_end)}` - ).join(' , ')} + ).join(' ,\n ')}
)} + {/* debugging: display clusters in snapshot info */} + {/* {metadata.clusters && metadata.clusters.length > 0 && ( +
+ Clusters: {metadata.clusters.map((c) => + `🖥️ ${c.name || 'unnamed'} (${c.uid})${c.targets ? ` - ${c.targets.length} nodes` : ''}` + ).join(' , ')} +
+ )} */}
)}
diff --git a/cbmonitor/src/dashboards/analytics.ts b/cbmonitor/src/dashboards/analytics.ts index f97d194..662df2e 100644 --- a/cbmonitor/src/dashboards/analytics.ts +++ b/cbmonitor/src/dashboards/analytics.ts @@ -1,14 +1,11 @@ -import { - EmbeddedScene, - SceneFlexLayout, -} from '@grafana/scenes'; -import { createMetricPanel } from 'utils/utils.panel'; +import { EmbeddedScene } from '@grafana/scenes'; +import { createMetricPanel, createFlexLayout } from 'utils/utils.panel'; export function analyticsMetricsDashboard(snapshotId: string): EmbeddedScene { return new EmbeddedScene({ - body: new SceneFlexLayout({ - minHeight: 50, // Intentional to allow the layout to be visible when no data is available + body: createFlexLayout({ + minHeight: 50, direction: 'row', wrap: 'wrap', children: [ diff --git a/cbmonitor/src/dashboards/eventing.ts b/cbmonitor/src/dashboards/eventing.ts index f5210e0..5db3bf5 100644 --- a/cbmonitor/src/dashboards/eventing.ts +++ b/cbmonitor/src/dashboards/eventing.ts @@ -1,15 +1,12 @@ -import { - EmbeddedScene, - SceneFlexLayout, -} from '@grafana/scenes'; -import { createMetricPanel } from 'utils/utils.panel'; +import { EmbeddedScene } from '@grafana/scenes'; +import { createMetricPanel, createFlexLayout } from 'utils/utils.panel'; // TODO: Revisit this dashboard to make it more useful. export function eventingMetricsDashboard(snapshotId: string): EmbeddedScene { return new EmbeddedScene({ - body: new SceneFlexLayout({ - minHeight: 50, // Intentional to allow the layout to be visible when no data is available + body: createFlexLayout({ + minHeight: 50, direction: 'row', wrap: 'wrap', children: [ diff --git a/cbmonitor/src/dashboards/fts.ts b/cbmonitor/src/dashboards/fts.ts index da1abba..a2145fc 100644 --- a/cbmonitor/src/dashboards/fts.ts +++ b/cbmonitor/src/dashboards/fts.ts @@ -1,14 +1,11 @@ -import { - EmbeddedScene, - SceneFlexLayout, -} from '@grafana/scenes'; -import { createMetricPanel } from 'utils/utils.panel'; +import { EmbeddedScene } from '@grafana/scenes'; +import { createMetricPanel, createFlexLayout } from 'utils/utils.panel'; export function ftsMetricsDashboard(snapshotId: string): EmbeddedScene { return new EmbeddedScene({ - body: new SceneFlexLayout({ - minHeight: 50, // Intentional to allow the layout to be visible when no data is available + body: createFlexLayout({ + minHeight: 50, direction: 'row', wrap: 'wrap', children: [ diff --git a/cbmonitor/src/dashboards/query.ts b/cbmonitor/src/dashboards/query.ts index 047e5b2..343588b 100644 --- a/cbmonitor/src/dashboards/query.ts +++ b/cbmonitor/src/dashboards/query.ts @@ -1,14 +1,11 @@ -import { - EmbeddedScene, - SceneFlexLayout, -} from '@grafana/scenes'; -import { createMetricPanel } from 'utils/utils.panel'; +import { EmbeddedScene } from '@grafana/scenes'; +import { createMetricPanel, createFlexLayout } from 'utils/utils.panel'; export function queryMetricsDashboard(snapshotId: string): EmbeddedScene { return new EmbeddedScene({ - body: new SceneFlexLayout({ - minHeight: 50, // Intentional to allow the layout to be visible when no data is available + body: createFlexLayout({ + minHeight: 50, direction: 'row', wrap: 'wrap', children: [ diff --git a/cbmonitor/src/dashboards/sgw.ts b/cbmonitor/src/dashboards/sgw.ts index 886c8b1..fd27d80 100644 --- a/cbmonitor/src/dashboards/sgw.ts +++ b/cbmonitor/src/dashboards/sgw.ts @@ -1,14 +1,11 @@ -import { - EmbeddedScene, - SceneFlexLayout, -} from '@grafana/scenes'; -import { createMetricPanel } from 'utils/utils.panel'; +import { EmbeddedScene } from '@grafana/scenes'; +import { createMetricPanel, createFlexLayout } from 'utils/utils.panel'; export function sgwMetricsDashboard(snapshotId: string): EmbeddedScene { return new EmbeddedScene({ - body: new SceneFlexLayout({ - minHeight: 50, // Intentional to allow the layout to be visible when no data is available + body: createFlexLayout({ + minHeight: 50, direction: 'row', wrap: 'wrap', children: [ diff --git a/cbmonitor/src/dashboards/xdcr.ts b/cbmonitor/src/dashboards/xdcr.ts index 2864684..6cd4f14 100644 --- a/cbmonitor/src/dashboards/xdcr.ts +++ b/cbmonitor/src/dashboards/xdcr.ts @@ -1,14 +1,11 @@ -import { - EmbeddedScene, - SceneFlexLayout, -} from '@grafana/scenes'; -import { createMetricPanel } from 'utils/utils.panel'; +import { EmbeddedScene } from '@grafana/scenes'; +import { createMetricPanel, createFlexLayout } from 'utils/utils.panel'; export function xdcrMetricsDashboard(snapshotId: string): EmbeddedScene { return new EmbeddedScene({ - body: new SceneFlexLayout({ - minHeight: 50, // Intentional to allow the layout to be visible when no data is available + body: createFlexLayout({ + minHeight: 50, direction: 'row', wrap: 'wrap', children: [ diff --git a/cbmonitor/src/pages/snapshotViewPage.ts b/cbmonitor/src/pages/snapshotViewPage.ts index f00a627..47b123b 100644 --- a/cbmonitor/src/pages/snapshotViewPage.ts +++ b/cbmonitor/src/pages/snapshotViewPage.ts @@ -6,11 +6,11 @@ import { locationService } from '@grafana/runtime'; import { SnapshotSearchScene } from './SnapshotSearch'; import { FormatMetadataSummary } from '../components/SnapshotDisplay/metadataSummary'; import { Phase } from '../types/snapshot'; -import { LayoutToggle } from '../components/LayoutToggle/LayoutToggle'; -import { DataSourceToggle } from '../components/DataSourceToggle/DataSourceToggle'; +import { SettingsDropdown } from '../components/SettingsDropdown/SettingsDropdown'; import { createNoUrlSyncTimeRange, buildQuickRanges, initializeTimeRange } from '../utils/timeRange'; import { loadSnapshot } from '../services/snapshotLoader'; import { sceneCacheService } from '../services/sceneCache'; +import { clusterFilterService } from '../services/clusterFilterService'; import { Spinner } from '@grafana/ui'; // Simple loading scene to show while snapshot is being loaded @@ -84,6 +84,8 @@ snapshotViewPage.addActivationHandler(() => { // Clear scene cache when loading a different snapshot if (currentLoadedSnapshotId !== null && currentLoadedSnapshotId !== snapshotId) { sceneCacheService.clearAll(); + // Reset cluster filter when loading a different snapshot + clusterFilterService.reset(); } // Update the currently loaded snapshot @@ -160,6 +162,28 @@ snapshotViewPage.addActivationHandler(() => { }); }; + // Handler for cluster filter change - regenerate tabs with cluster-filtered queries + const handleClusterChange = (clusterId: string | null) => { + // Update the cluster filter service + clusterFilterService.setCurrentCluster(clusterId); + // Clear scene cache so scenes are recreated with new cluster filter + sceneCacheService.clearAll(); + // Regenerate tabs with current services and snapshotId + snapshotViewPage.setState({ + tabs: getDashboardsForServices(metadata.services, snapshotId), + }); + }; + + // Handler for hide empty toggle - regenerate tabs to apply new visibility + const handleHideEmptyChange = () => { + // Clear scene cache so scenes are recreated + sceneCacheService.clearAll(); + // Regenerate tabs + snapshotViewPage.setState({ + tabs: getDashboardsForServices(metadata.services, snapshotId), + }); + }; + // Create controls array with time picker (with quick ranges) and layout toggle const controls: any[] = [ new SceneTimePicker({ @@ -168,7 +192,7 @@ snapshotViewPage.addActivationHandler(() => { }) ]; - // If we have active snapshot, display the refresh picker before the layout toggle + // If we have active snapshot, display the refresh picker before the settings dropdown if (metadata.ts_end && metadata.ts_end.startsWith("now")) { controls.push(new SceneRefreshPicker({ intervals: ['5s', '10s', '30s', '1m', '2m', '5m', '10m'], @@ -176,15 +200,14 @@ snapshotViewPage.addActivationHandler(() => { })); } - // Add the layout toggle to the controls - controls.push(new LayoutToggle({ - onLayoutChange: handleLayoutChange, - })); - - // Add datasource toggle (Couchbase SQL++ ↔ PromQL) - controls.push(new DataSourceToggle({ + // Add settings dropdown (combines layout, datasource, cluster, and hide empty toggles) + controls.push(new SettingsDropdown({ snapshotId, + clusters: metadata.clusters || [], + onLayoutChange: handleLayoutChange, onDataSourceChange: handleDataSourceChange, + onClusterChange: handleClusterChange, + onHideEmptyChange: handleHideEmptyChange, })); // Update page with snapshot data diff --git a/cbmonitor/src/services/clusterFilterService.ts b/cbmonitor/src/services/clusterFilterService.ts new file mode 100644 index 0000000..d5bba6b --- /dev/null +++ b/cbmonitor/src/services/clusterFilterService.ts @@ -0,0 +1,57 @@ +type ClusterFilterChangeListener = (clusterId: string | null) => void; + +/** + * Singleton service for managing cluster filter state. + * When a cluster is selected, panels will filter data to show only nodes from that cluster. + * When null, all clusters are shown. + */ +class ClusterFilterService { + private currentCluster: string | null = null; + private listeners: Set = new Set(); + + /** + * Get the current cluster filter. + * @returns The cluster ID to filter by, or null for all clusters. + */ + getCurrentCluster(): string | null { + return this.currentCluster; + } + + /** + * Set the current cluster filter. + * @param clusterId - The cluster ID to filter by, or null for all clusters. + */ + setCurrentCluster(clusterId: string | null): void { + if (this.currentCluster !== clusterId) { + this.currentCluster = clusterId; + this.notifyListeners(); + } + } + + /** + * Subscribe to cluster filter changes. + * @param listener - Callback to invoke when cluster filter changes. + * @returns Unsubscribe function. + */ + subscribe(listener: ClusterFilterChangeListener): () => void { + this.listeners.add(listener); + return () => { + this.listeners.delete(listener); + }; + } + + /** + * Reset the cluster filter to show all clusters. + */ + reset(): void { + this.setCurrentCluster(null); + } + + private notifyListeners(): void { + for (const listener of this.listeners) { + listener(this.currentCluster); + } + } +} + +export const clusterFilterService = new ClusterFilterService(); diff --git a/cbmonitor/src/services/layoutService.ts b/cbmonitor/src/services/layoutService.ts index 374ee53..04f1ec5 100644 --- a/cbmonitor/src/services/layoutService.ts +++ b/cbmonitor/src/services/layoutService.ts @@ -3,9 +3,14 @@ export type LayoutMode = 'grid' | 'rows'; +type LayoutChangeListener = (layout: LayoutMode) => void; +type HideEmptyChangeListener = (hideEmpty: boolean) => void; + class LayoutService { private layout: LayoutMode = 'grid'; - private listeners: Set<(layout: LayoutMode) => void> = new Set(); + private hideEmptyPanels: boolean = false; + private layoutListeners: Set = new Set(); + private hideEmptyListeners: Set = new Set(); constructor() { // Load from localStorage if available @@ -13,6 +18,8 @@ class LayoutService { if (stored === 'grid' || stored === 'rows') { this.layout = stored; } + const storedHideEmpty = localStorage.getItem('cbmonitor-hide-empty'); + this.hideEmptyPanels = storedHideEmpty === 'true'; } getLayout(): LayoutMode { @@ -24,14 +31,31 @@ class LayoutService { // Persist to localStorage localStorage.setItem('cbmonitor-layout', layout); // Notify all listeners - this.listeners.forEach(listener => listener(layout)); + this.layoutListeners.forEach(listener => listener(layout)); } - subscribe(listener: (layout: LayoutMode) => void): () => void { - this.listeners.add(listener); + subscribe(listener: LayoutChangeListener): () => void { + this.layoutListeners.add(listener); // Return unsubscribe function return () => { - this.listeners.delete(listener); + this.layoutListeners.delete(listener); + }; + } + + getHideEmptyPanels(): boolean { + return this.hideEmptyPanels; + } + + setHideEmptyPanels(hide: boolean) { + this.hideEmptyPanels = hide; + localStorage.setItem('cbmonitor-hide-empty', String(hide)); + this.hideEmptyListeners.forEach(listener => listener(hide)); + } + + subscribeHideEmpty(listener: HideEmptyChangeListener): () => void { + this.hideEmptyListeners.add(listener); + return () => { + this.hideEmptyListeners.delete(listener); }; } diff --git a/cbmonitor/src/services/pageBuilder.ts b/cbmonitor/src/services/pageBuilder.ts index ee1999d..0dc028a 100644 --- a/cbmonitor/src/services/pageBuilder.ts +++ b/cbmonitor/src/services/pageBuilder.ts @@ -2,6 +2,8 @@ import { SceneAppPage, EmbeddedScene, SceneFlexLayout, SceneFlexItem, SceneTimeR import { prefixRoute } from '../utils/utils.routing'; import { getServiceConfigs, getServiceConfig } from '../config/services'; import { sceneCacheService } from './sceneCache'; +import { clusterFilterService } from './clusterFilterService'; +import { layoutService } from './layoutService'; import { SnapshotPhaseRegionsLayer } from '../layers/SnapshotPhaseRegionsLayer'; import { StatusScene } from '../components/SceneComponents/StatusScene'; import { PlaceholderScene } from '../components/SceneComponents/PlaceholderScene'; @@ -101,10 +103,14 @@ function buildSingleSnapshotPage( url: prefixRoute(urlPath), routePath, getScene: () => { + // Include cluster filter and hideEmpty in cache key so scenes are recreated when settings change + const currentCluster = clusterFilterService.getCurrentCluster(); + const hideEmpty = layoutService.getHideEmptyPanels(); const cacheKey = { snapshotId, serviceKey, - dashboardType: config.segment || 'system' + dashboardType: config.segment || 'system', + additional: `cluster:${currentCluster ?? 'all'}_hideEmpty:${hideEmpty}` }; // Check cache first diff --git a/cbmonitor/src/types/snapshot.ts b/cbmonitor/src/types/snapshot.ts index 0f06dfa..99735a3 100644 --- a/cbmonitor/src/types/snapshot.ts +++ b/cbmonitor/src/types/snapshot.ts @@ -32,9 +32,16 @@ export interface Phase { ts_end: string; } +export interface Cluster { + uid: string; + name?: string; + targets?: string[]; +} + export interface SnapshotMetadata { snapshotId: string; services: string[]; + clusters?: Cluster[]; version: string; ts_start: string; ts_end: string; diff --git a/cbmonitor/src/utils/utils.panel.ts b/cbmonitor/src/utils/utils.panel.ts index c7e6529..701fa8a 100644 --- a/cbmonitor/src/utils/utils.panel.ts +++ b/cbmonitor/src/utils/utils.panel.ts @@ -2,14 +2,70 @@ // SQL++ queries are still generated from parameters via CBQueryBuilder when that datasource is active. // In the future, SQL++ queries will be derived from the PromQL expressions. -import { PanelBuilders, SceneDataTransformer, SceneFlexItem, SceneQueryRunner } from '@grafana/scenes'; +import { PanelBuilders, SceneDataTransformer, SceneFlexItem, SceneFlexLayout, SceneQueryRunner, SceneDataState } from '@grafana/scenes'; import { TooltipDisplayMode, LegendDisplayMode } from '@grafana/schema'; import { CBQueryBuilder, AggregationQueryBuilder } from './utils.cbquery'; import { layoutService } from '../services/layoutService'; import { dataSourceService } from '../services/datasourceService'; +import { clusterFilterService } from '../services/clusterFilterService'; import { DataSourceType } from '../types/datasource'; import { PROM_DATASOURCE_REF } from '../constants'; +// Global counter for unique panel IDs +let panelIdCounter = 0; + +/** + * Check if data state has actual data values + */ +function hasDataValues(dataState: SceneDataState | undefined): boolean { + if (!dataState?.data) { + return false; + } + + const series = dataState.data.series; + if (!series || series.length === 0) { + return false; + } + + // Check if any series has actual data points (not just empty fields) + for (const s of series) { + if (!s.fields || s.fields.length === 0) { + continue; + } + // Look for value fields (skip time fields) + for (const field of s.fields) { + if (field.name !== 'Time' && field.name !== 'time' && field.values && field.values.length > 0) { + // Check if values are not all null/undefined + const hasValue = field.values.some((v: unknown) => v !== null && v !== undefined); + if (hasValue) { + return true; + } + } + } + } + + return false; +} + +/** + * Create a SceneFlexLayout - simple wrapper for consistency. + */ +export function createFlexLayout(options: { + direction?: 'row' | 'column'; + wrap?: 'wrap' | 'nowrap'; + minHeight?: number; + children: SceneFlexItem[]; +}): SceneFlexLayout { + const { direction = 'row', wrap = 'wrap', minHeight = 50, children } = options; + + return new SceneFlexLayout({ + direction, + wrap, + minHeight, + children, + }); +} + export function getNewTimeSeriesDataTransformer(queryRunner: SceneQueryRunner) { return new SceneDataTransformer({ $data: queryRunner, @@ -79,6 +135,33 @@ function makeLegendTemplate(extraFields?: string[]): string { return '${__field.labels.instance}'; } +/** + * Inject cluster filter into a PromQL expression. + * Adds `cluster_uuid=""` label selector to metric selectors that already have labels. + * + * @param expr - The PromQL expression + * @param clusterId - The cluster ID to filter by + * @returns The modified PromQL expression with cluster filter + */ +function injectClusterFilter(expr: string, clusterId: string): string { + // Only inject into metric selectors that already have a label block {....} + // This avoids matching PromQL keywords like sum, by, rate, instance, etc. + // Match: metric_name{labels...} and inject cluster_uuid before closing brace + return expr.replace(/(\w+)\{([^}]*)\}/g, (_match, metric, labels) => { + // Skip SGW metrics - they don't have cluster_uuid labels + if (metric.startsWith('sgw_')) { + return `${metric}{${labels}}`; + } + // Skip if cluster_uuid is already present + if (labels.includes('cluster_uuid=')) { + return `${metric}{${labels}}`; + } + // Inject cluster_uuid into the label set + const separator = labels.trim() ? ', ' : ''; + return `${metric}{${labels}${separator}cluster_uuid="${clusterId}"}`; + }); +} + /** * Create a metric panel with a hardcoded PromQL expression (source of truth). * @@ -120,13 +203,19 @@ export function createMetricPanel( let queryRunner: SceneQueryRunner; + // Get current cluster filter + const clusterFilter = clusterFilterService.getCurrentCluster(); + if (isPrometheus) { // --- PromQL path: use hardcoded expression directly --- + // If cluster filter is active, inject it into the PromQL expression + const finalExpr = clusterFilter ? injectClusterFilter(options.expr, clusterFilter) : options.expr; + queryRunner = new SceneQueryRunner({ datasource: PROM_DATASOURCE_REF, queries: [{ refId: metricName, - expr: options.expr, + expr: finalExpr, }], }); @@ -135,10 +224,11 @@ export function createMetricPanel( const descriptionMd = [ `**Metric:** ${metricName} \n`, `**Datasource:** PromQL \n`, + clusterFilter ? `**Cluster:** ${clusterFilter} \n` : '', '', '**Query:**', '```promql', - options.expr, + finalExpr, '```', ].join('\n'); panelBuilder.setDescription(descriptionMd); @@ -154,6 +244,12 @@ export function createMetricPanel( builder = new CBQueryBuilder(options.snapshotId, metricName); } applyCBBuilderOptions(builder, options); + + // If cluster filter is active, add it to the query + if (clusterFilter) { + builder.addLabelFilter('cluster', clusterFilter); + } + queryRunner = builder.buildQueryRunner(); // Description @@ -179,12 +275,43 @@ export function createMetricPanel( } const panel = panelBuilder.build(); + const dataTransformer = getNewTimeSeriesDataTransformer(queryRunner); - return new SceneFlexItem({ + // Generate unique panel ID + const panelId = `panel-${metricName}-${++panelIdCounter}`; + + // Check if we should hide this panel when empty + const shouldHideWhenEmpty = layoutService.getHideEmptyPanels(); + const flexItem = new SceneFlexItem({ + key: panelId, height: options.height ?? 300, width: panelWidth, minWidth: panelWidth === '100%' ? '100%' : '45%', body: panel, - $data: getNewTimeSeriesDataTransformer(queryRunner), + $data: dataTransformer, + isHidden: false, // Start visible, will hide if no data }); + + // If hideEmpty is enabled, add a behavior to watch data and toggle isHidden + if (shouldHideWhenEmpty) { + // Subscribe to data transformer state changes + dataTransformer.subscribeToState((state) => { + // Skip if still loading + if (state.data?.state === 'Loading') { + return; + } + + const hasData = hasDataValues(state); + const currentHidden = flexItem.state.isHidden; + + // Only update if state needs to change + if (hasData && currentHidden) { + flexItem.setState({ isHidden: false }); + } else if (!hasData && !currentHidden) { + flexItem.setState({ isHidden: true }); + } + }); + } + + return flexItem; } diff --git a/config-manager/internal/api/handlers.go b/config-manager/internal/api/handlers.go index c54422a..30a5a19 100644 --- a/config-manager/internal/api/handlers.go +++ b/config-manager/internal/api/handlers.go @@ -2,8 +2,10 @@ package api import ( "encoding/json" + "fmt" "net/http" "strings" + "time" "github.com/couchbase/config-manager/internal/logger" "github.com/couchbase/config-manager/internal/models" @@ -75,6 +77,16 @@ func (h *Handler) CreateSnapshot(w http.ResponseWriter, r *http.Request) { // Collect cluster metadata metadataService := services.NewMetadataService() + serviceSet := make(map[string]struct{}) + clusterSet := make(map[string]models.Cluster) + metadataRecord := &models.SnapshotMetadata{ + SnapshotID: id, + TsStart: time.Now(), + TsEnd: "now", + Label: req.Label, + } + hasMetadata := false + for _, config := range req.Configs { for _, hostname := range config.Hostnames { metadata, err := metadataService.CollectClusterMetadata( @@ -82,26 +94,55 @@ func (h *Handler) CreateSnapshot(w http.ResponseWriter, r *http.Request) { config.Port, req.Credentials.Username, req.Credentials.Password, + req.Scheme, ) if err != nil { logger.Warn("Warning: Failed to collect cluster metadata", "error", err) // Continue without metadata - don't fail the snapshot creation } else { - // Set the snapshot ID and label, then save metadata - metadata.SnapshotID = id - if req.Label != "" { - metadata.Label = req.Label + hasMetadata = true + + for _, service := range metadata.Services { + serviceSet[service] = struct{}{} + } + + for _, cluster := range metadata.Clusters { + clusterSet[cluster.UID+"|"+cluster.Name] = cluster } - if err := h.metadataStorage.SaveMetadata(metadata); err != nil { - logger.Warn("Warning: Failed to save metadata", "error", err) - } else { - logger.Info("Successfully collected and saved metadata for snapshot", "id", id) + + if metadataRecord.Server == "" && metadata.Server != "" { + metadataRecord.Server = metadata.Server } } } } + if hasMetadata { + metadataRecord.Services = make([]string, 0, len(serviceSet)) + for service := range serviceSet { + metadataRecord.Services = append(metadataRecord.Services, service) + } + + metadataRecord.Clusters = make([]models.Cluster, 0, len(clusterSet)) + for _, cluster := range clusterSet { + metadataRecord.Clusters = append(metadataRecord.Clusters, cluster) + } + + // Assign default names to clusters without names (after merge) + for i := range metadataRecord.Clusters { + if metadataRecord.Clusters[i].Name == "" { + metadataRecord.Clusters[i].Name = fmt.Sprintf("cluster%d", i+1) + } + } + + if err := h.metadataStorage.SaveMetadata(metadataRecord); err != nil { + logger.Warn("Warning: Failed to save metadata", "error", err) + } else { + logger.Info("Successfully collected and saved metadata for snapshot", "id", id) + } + } + // Create response response := models.SnapshotResponse{ ID: id, diff --git a/config-manager/internal/models/metadata.go b/config-manager/internal/models/metadata.go index 007b7a8..a55d893 100644 --- a/config-manager/internal/models/metadata.go +++ b/config-manager/internal/models/metadata.go @@ -4,26 +4,27 @@ import "time" // SnapshotMetadata represents the collected metadata from a snapshot type SnapshotMetadata struct { - SnapshotID string `json:"id"` - Services []string `json:"services"` // same thing for buckets and nodes for services - Server string `json:"server,omitempty"` - TsStart time.Time `json:"ts_start,omitempty"` - TsEnd string `json:"ts_end,omitempty"` - Phases []Phase `json:"phases,omitempty"` - Label string `json:"label,omitempty"` + SnapshotID string `json:"id"` + Services []string `json:"services"` // same thing for buckets and nodes for services + Clusters []Cluster `json:"clusters,omitempty"` + Server string `json:"server,omitempty"` + TsStart time.Time `json:"ts_start,omitempty"` + TsEnd string `json:"ts_end,omitempty"` + Phases []Phase `json:"phases,omitempty"` + Label string `json:"label,omitempty"` } -type Phase struct { - Label string `json:"label"` - TsStart time.Time `json:"ts_start,omitempty"` - TsEnd string `json:"ts_end,omitempty"` +type Phase struct { + Label string `json:"label"` + TsStart time.Time `json:"ts_start,omitempty"` + TsEnd string `json:"ts_end,omitempty"` } -type PoolsDefault struct { - Nodes []NodeInfo `json:"nodes"` +type PoolsDefault struct { + Nodes []NodeInfo `json:"nodes"` } type NodeInfo struct { - Services []string `json:"services"` - Server string `json:"version,omitempty"` + Services []string `json:"services"` + Server string `json:"version,omitempty"` } diff --git a/config-manager/internal/models/snapshot.go b/config-manager/internal/models/snapshot.go index f55bb86..fe2810b 100644 --- a/config-manager/internal/models/snapshot.go +++ b/config-manager/internal/models/snapshot.go @@ -5,36 +5,42 @@ import "time" // SnapshotRequest represents the payload for creating a snapshot // Contains information about the cluster to be monitored type SnapshotRequest struct { - Configs []ConfigObject `json:"configs"` - Credentials Credentials `json:"credentials"` - Scheme string `json:"scheme,omitempty"` - TimeStamp time.Time `json:"timestamp,omitempty"` - Label string `json:"label,omitempty"` + Configs []ConfigObject `json:"configs"` + Credentials Credentials `json:"credentials"` + Scheme string `json:"scheme,omitempty"` + TimeStamp time.Time `json:"timestamp,omitempty"` + Label string `json:"label,omitempty"` } // Credentials for cluster authentication // TODO: dont store credentials in the snapshot, find a better way type Credentials struct { - Username string `json:"username"` - Password string `json:"password"` + Username string `json:"username"` + Password string `json:"password"` } // SnapshotResponse represents the response after creating a snapshot type SnapshotResponse struct { - ID string `json:"id"` + ID string `json:"id"` } // ConfigObject represents the configuration for each different config object type type ConfigObject struct { - Hostnames []string `json:"hostnames"` - Type string `json:"type,omitempty"` - Port int `json:"port"` + Hostnames []string `json:"hostnames"` + Type string `json:"type,omitempty"` + Port int `json:"port"` } // DisplaySnapshot represents the snapshot structure for GET responses or display purposes type DisplaySnapshot struct { - Name string `json:"name"` - Urls []string `json:"urls,omitempty"` - Targets []string `json:"targets,omitempty"` - TimeStamp time.Time `json:"timestamp"` -} \ No newline at end of file + Name string `json:"name"` + Urls []string `json:"urls,omitempty"` + Targets []string `json:"targets,omitempty"` + TimeStamp time.Time `json:"timestamp"` +} + +type Cluster struct { + Name string `json:"name,omitempty"` + UID string `json:"uid"` + Targets []string `json:"targets,omitempty"` +} diff --git a/config-manager/internal/services/metadata.go b/config-manager/internal/services/metadata.go index 1f1c2ff..ca5f791 100644 --- a/config-manager/internal/services/metadata.go +++ b/config-manager/internal/services/metadata.go @@ -4,11 +4,17 @@ import ( "encoding/json" "fmt" "net/http" + "net/url" "time" "github.com/couchbase/config-manager/internal/models" ) +type prometheusSDConfigEntry struct { + Targets []string `json:"targets"` + Labels map[string]string `json:"labels"` +} + // MetadataService handles collection of Couchbase cluster metadata type MetadataService struct { httpClient *http.Client @@ -24,20 +30,30 @@ func NewMetadataService() *MetadataService { } // CollectClusterMetadata collects metadata from a Couchbase cluster -func (ms *MetadataService) CollectClusterMetadata(hostname string, port int, username, password string) (*models.SnapshotMetadata, error) { - baseURL := fmt.Sprintf("http://%s:%d", hostname, port) // "http://%s:%d"_all_dbs +func (ms *MetadataService) CollectClusterMetadata(hostname string, port int, username, password, scheme string) (*models.SnapshotMetadata, error) { + if scheme == "" { + scheme = "http" + } + + baseURL := fmt.Sprintf("%s://%s:%d", scheme, hostname, port) services, server, err := ms.GetMetadata(baseURL, username, password) if err != nil { return nil, fmt.Errorf("failed to get services: %w", err) } + clusters, err := ms.GetClusters(baseURL, username, password) + if err != nil { + return nil, fmt.Errorf("failed to get clusters: %w", err) + } + return &models.SnapshotMetadata{ SnapshotID: "", Services: services, + Clusters: clusters, Server: server, TsStart: time.Now(), - TsEnd: "now", + TsEnd: "now", }, nil } @@ -73,7 +89,7 @@ func (ms *MetadataService) GetMetadata(baseURL, username, password string) ([]st // collect unique services from all nodes for _, node := range poolInfo.Nodes { - for _, service := range node.Services { + for _, service := range node.Services { if _, exists := uniqueServices[service]; !exists { uniqueServices[service] = struct{}{} serviceList = append(serviceList, service) @@ -82,4 +98,69 @@ func (ms *MetadataService) GetMetadata(baseURL, username, password string) ([]st } // the server version is taken from the first node, because it is the same across all nodes return serviceList, poolInfo.Nodes[0].Server, nil -} \ No newline at end of file +} + +func (ms *MetadataService) GetClusters(baseURL, username, password string) ([]models.Cluster, error) { + endpoint, err := url.Parse(fmt.Sprintf("%s/prometheus_sd_config", baseURL)) + if err != nil { + return nil, err + } + + query := endpoint.Query() + query.Set("clusterLabels", "uuidOnly") + endpoint.RawQuery = query.Encode() + + req, err := http.NewRequest("GET", endpoint.String(), nil) + if err != nil { + return nil, err + } + + req.SetBasicAuth(username, password) + + resp, err := ms.httpClient.Do(req) + if err != nil { + return nil, err + } + defer resp.Body.Close() + + if resp.StatusCode != http.StatusOK { + return nil, fmt.Errorf("failed to get clusters: status %d", resp.StatusCode) + } + + var entries []prometheusSDConfigEntry + if err := json.NewDecoder(resp.Body).Decode(&entries); err != nil { + return nil, err + } + + clusters := make([]models.Cluster, 0) + seen := make(map[string]struct{}) + + for _, entry := range entries { + name := entry.Labels["cluster_name"] + if name == "" { + name = entry.Labels["__meta_couchbase_cluster_name"] + } + + uuid := entry.Labels["cluster_uuid"] + if uuid == "" { + uuid = entry.Labels["__meta_couchbase_cluster_uuid"] + } + + if name == "" && uuid == "" { + continue + } + + key := uuid + "|" + name + if _, ok := seen[key]; ok { + continue + } + + seen[key] = struct{}{} + clusters = append(clusters, models.Cluster{ + Name: name, + UID: uuid, + }) + } + + return clusters, nil +} diff --git a/config-manager/internal/storage/file.go b/config-manager/internal/storage/file.go index 87f4b6c..ca24f5f 100644 --- a/config-manager/internal/storage/file.go +++ b/config-manager/internal/storage/file.go @@ -120,7 +120,7 @@ func (fs *FileStorage) generateVMAgentConfig(clusterInfo interface{}, id string) case "sd": for _, hostname := range hostnames { httpSDConfigs = append(httpSDConfigs, map[string]interface{}{ - "url": fmt.Sprintf("%s://%s:%d/prometheus_sd_config?port=%s", scheme, hostname, port, portType), + "url": fmt.Sprintf("%s://%s:%d/prometheus_sd_config?port=%s&clusterLabels=uuidAndName", scheme, hostname, port, portType), "basic_auth": map[string]interface{}{ "username": username, "password": password, diff --git a/config-manager/main.go b/config-manager/main.go index ebf5378..b407d83 100644 --- a/config-manager/main.go +++ b/config-manager/main.go @@ -104,6 +104,8 @@ func main() { metadataStorage, err := storage.NewMetadataStorage(cfg) if err != nil { logger.Error("Failed to initialize metadata storage. Metadata will not be collected.", "error", err) + metadataStorage = storage.NewFileMetadataStorage(cfg.Agent.Directory) + logger.Info("Falling back to file metadata storage", "directory", cfg.Agent.Directory) } else { logger.Info("Metadata storage initialized", "type", metadataStorage.Type()) } diff --git a/config-manager/tests/DELETE_test.go b/config-manager/tests/DELETE_test.go deleted file mode 100644 index f5a2903..0000000 --- a/config-manager/tests/DELETE_test.go +++ /dev/null @@ -1,77 +0,0 @@ -package tests - -import ( - "net/http" - "net/http/httptest" - "os" - "testing" - - "github.com/couchbase/config-manager/internal/api" - "github.com/couchbase/config-manager/internal/models" - "github.com/couchbase/config-manager/internal/storage" -) - -func TestDeleteSnapshotRequest(t *testing.T) { - tempDir := t.TempDir() - - // Initialize storage and handler - fileStorage := storage.NewFileStorage(tempDir) - handler := api.NewHandler(fileStorage, storage.NewFileMetadataStorage(tempDir), "vmagent") - - // Create a snapshot to retrieve - request := models.SnapshotRequest{ - Configs: []models.ConfigObject{ - { - Hostnames: []string{"localhost"}, - Type: "couchbase", - Port: 8091, - }, - }, - Credentials: models.Credentials{ - Username: "admin", - Password: "password", - }, - Scheme: "http", - } - - clusterMap := map[string]interface{}{ - "configs": []interface{}{ - map[string]interface{}{ - "hostnames": request.Configs[0].Hostnames, - "type": request.Configs[0].Type, - "port": request.Configs[0].Port, - }, - }, - "credentials": map[string]interface{}{ - "username": request.Credentials.Username, - "password": request.Credentials.Password, - }, - "scheme": request.Scheme, - } - id, err := fileStorage.SaveSnapshot(clusterMap, "vmagent") - if err != nil { - t.Fatalf("Failed to save snapshot: %v", err) - } - - - // Make DELETE request to remove the snapshot - url := "/api/v1/snapshot/" + id - req := httptest.NewRequest("DELETE", url, nil) - w := httptest.NewRecorder() - - handler.DeleteSnapshotRequest(w, req) - - // Check response status - if w.Code != http.StatusNoContent { - t.Errorf("Expected status %d, got %d", http.StatusNoContent, w.Code) - t.Logf("Response body: %s", w.Body.String()) - } - - // checking that the file is gone - filepath := tempDir + "/" + id + ".yml" - if _, err := os.Stat(filepath); err == nil { - t.Errorf("Expected file %s to be deleted", filepath) - } else if !os.IsNotExist(err) { - t.Fatalf("Failed to stat file %s: %v", filepath, err) - } -} \ No newline at end of file diff --git a/config-manager/tests/GET_test.go b/config-manager/tests/GET_test.go deleted file mode 100644 index 482cdd3..0000000 --- a/config-manager/tests/GET_test.go +++ /dev/null @@ -1,113 +0,0 @@ -package tests - -import ( - "encoding/json" - "net/http" - "net/http/httptest" - "os" - "testing" - - "github.com/couchbase/config-manager/internal/api" - "github.com/couchbase/config-manager/internal/models" - "github.com/couchbase/config-manager/internal/storage" -) - -func TestGetSnapshotRequest(t *testing.T) { - tempDir := t.TempDir() - t.Logf("Using temporary directory: %s", tempDir) - - // Initialize storage and handler - fileStorage := storage.NewFileStorage(tempDir) - handler := api.NewHandler(fileStorage, storage.NewFileMetadataStorage(tempDir), "vmagent") - - // Create a snapshot to retrieve - request := models.SnapshotRequest{ - Configs: []models.ConfigObject{ - { - Hostnames: []string{"localhost"}, - Type: "couchbase", - Port: 8091, - }, - }, - Credentials: models.Credentials{ - Username: "admin", - Password: "password", - }, - Scheme: "http", - } - - clusterMap := map[string]interface{}{ - "configs": []interface{}{ - map[string]interface{}{ - "hostnames": request.Configs[0].Hostnames, - "type": request.Configs[0].Type, - "port": request.Configs[0].Port, - }, - }, - "credentials": map[string]interface{}{ - "username": request.Credentials.Username, - "password": request.Credentials.Password, - }, - "scheme": request.Scheme, - } - id, err := fileStorage.SaveSnapshot(clusterMap, "vmagent") - if err != nil { - t.Fatalf("Failed to save snapshot: %v", err) - } - - // Make GET request to retrieve the snapshot - url := "/api/v1/snapshot/" + id - req := httptest.NewRequest("GET", url, nil) - w := httptest.NewRecorder() - - handler.GetSnapshotRequest(w, req) - - // checking that the file actually exists - filepath := tempDir + "/" + id + ".yml" - if _, err := os.Stat(filepath); err != nil { - t.Errorf("Expected file %s to exist, but got error: %v", filepath, err) - } - - // Check response status - if w.Code != http.StatusOK { - t.Errorf("Expected status %d, got %d", http.StatusOK, w.Code) - t.Logf("Response body: %s", w.Body.String()) - } - - // Parse response - var response models.DisplaySnapshot - if err := json.NewDecoder(w.Body).Decode(&response); err != nil { - t.Fatalf("Failed to decode response: %v", err) - } - - // Verify response fields - // if response.Name != request.Configs[0].Hostnames[0] { - // t.Errorf("Expected hostname %s, got %s", request.Configs[0].Hostnames[0], response.Name) - // } - // if response.Port != request.Port { - // t.Errorf("Expected port %d, got %d", request.Port, response.Port) - // } - if response.Name == "" { - t.Error("Expected non-empty Name in response") - } - if response.TimeStamp.IsZero() { - t.Error("Expected non-zero TimeStamp in response") - } - - // Test error case: missing snapshot ID - reqMissing := httptest.NewRequest("GET", "/api/v1/snapshot/", nil) - wMissing := httptest.NewRecorder() - handler.GetSnapshotRequest(wMissing, reqMissing) - if wMissing.Code != http.StatusNotFound { - t.Errorf("Expected status %d for missing ID, got %d", http.StatusBadRequest, wMissing.Code) - } - - // Test error case: non-existent snapshot ID - reqNotFound := httptest.NewRequest("GET", "/api/v1/snapshot/nonexistentid", nil) - wNotFound := httptest.NewRecorder() - handler.GetSnapshotRequest(wNotFound, reqNotFound) - if wNotFound.Code != http.StatusNotFound { - t.Errorf("Expected status %d for not found, got %d", http.StatusNotFound, wNotFound.Code) - } - -} diff --git a/config-manager/tests/PATCH_test.go b/config-manager/tests/PATCH_test.go deleted file mode 100644 index 161c5f6..0000000 --- a/config-manager/tests/PATCH_test.go +++ /dev/null @@ -1,94 +0,0 @@ -package tests - -import ( - "net/http" - "net/http/httptest" - "testing" - - "github.com/couchbase/config-manager/internal/api" - "github.com/couchbase/config-manager/internal/models" - "github.com/couchbase/config-manager/internal/storage" -) - -func TestPatchSnapshot(t *testing.T) { - tempDir := t.TempDir() - - fileStorage := storage.NewFileStorage(tempDir) - handler := api.NewHandler(fileStorage, storage.NewFileMetadataStorage(tempDir), "vmagent") - - // Create a snapshot to retrieve - request := models.SnapshotRequest{ - Configs: []models.ConfigObject{ - { - Hostnames: []string{"localhost"}, - Type: "couchbase", - Port: 8091, - }, - }, - Credentials: models.Credentials{ - Username: "admin", - Password: "password", - }, - Scheme: "http", - } - - clusterMap := map[string]interface{}{ - "configs": []interface{}{ - map[string]interface{}{ - "hostnames": request.Configs[0].Hostnames, - "type": request.Configs[0].Type, - "port": request.Configs[0].Port, - }, - }, - "credentials": map[string]interface{}{ - "username": request.Credentials.Username, - "password": request.Credentials.Password, - }, - "scheme": request.Scheme, - } - id, err := fileStorage.SaveSnapshot(clusterMap, "vmagent") - if err != nil { - t.Fatalf("Failed to save snapshot: %v", err) - } - - //gets the original timestamp to make sure that they are updated - originalSnapshot, err := fileStorage.GetSnapshot(id) - if err != nil { - t.Fatalf("Failed to get original snapshot: %v", err) - } - originalTime := originalSnapshot.TimeStamp - - // send a mock patch request - url := "/api/v1/snapshot/" + id - req := httptest.NewRequest(http.MethodPatch, url, nil) - if err != nil { - t.Fatalf("Failed to create request: %v", err) - } - w := httptest.NewRecorder() - handler.PatchSnapshotRequest(w, req) - - if w.Code != http.StatusOK { - t.Fatalf("Expected status OK, got %v", w.Code) - } - - updatedSnapshot, err := fileStorage.GetSnapshot(id) - if err != nil { - t.Fatalf("Failed to get updated snapshot: %v", err) - } - - // if updatedSnapshot.Hostname != request.Hostname { - // t.Errorf("Expected hostname %s, got %s", request.Hostname, updatedSnapshot.Hostname) - // } - // if updatedSnapshot.Port != request.Port { - // t.Errorf("Expected port %d, got %d", request.Port, updatedSnapshot.Port) - // } - if updatedSnapshot.Name == "" { - t.Error("Expected non-empty Name in response") - } - if updatedSnapshot.TimeStamp.IsZero() { - t.Error("Expected non-zero TimeStamp in response") - } - if updatedSnapshot.TimeStamp.Before(originalTime) { - t.Errorf("Expected TimeStamp %v, got %v", originalTime, updatedSnapshot.TimeStamp) - } -} diff --git a/config-manager/tests/config_manager_integration_test.go b/config-manager/tests/config_manager_integration_test.go deleted file mode 100644 index 5cfca4f..0000000 --- a/config-manager/tests/config_manager_integration_test.go +++ /dev/null @@ -1,190 +0,0 @@ -package tests - -import ( - "bytes" - "encoding/json" - "fmt" - "net/http" - "net/http/httptest" - "os" - "path/filepath" - "testing" - - "github.com/couchbase/config-manager/internal/api" - "github.com/couchbase/config-manager/internal/models" - "github.com/couchbase/config-manager/internal/storage" -) - -func TestCreateSnapshot(t *testing.T) { - // Create temporary directory for test files - tempDir := t.TempDir() - - // Initialize storage - fileStorage := storage.NewFileStorage(tempDir) - - // Initialize handler - handler := api.NewHandler(fileStorage, storage.NewFileMetadataStorage(tempDir), "vmagent") - - // Create test request - request := models.SnapshotRequest{ - Configs: []models.ConfigObject{ - { - Hostnames: []string{"localhost"}, - Type: "couchbase", - Port: 8091, - }, - }, - Credentials: models.Credentials{ - Username: "admin", - Password: "password", - }, - Scheme: "http", - } - - // Convert request to JSON - requestBody, err := json.Marshal(request) - if err != nil { - t.Fatalf("Failed to marshal request: %v", err) - } - - // Create HTTP request - req := httptest.NewRequest("POST", "/api/v1/snapshot", bytes.NewBuffer(requestBody)) - req.Header.Set("Content-Type", "application/json") - - // Create response recorder - w := httptest.NewRecorder() - - // Call handler - handler.CreateSnapshot(w, req) - - // Check response status - if w.Code != http.StatusCreated { - t.Errorf("Expected status %d, got %d", http.StatusCreated, w.Code) - t.Logf("Response body: %s", w.Body.String()) - } - - // Parse response - var response models.SnapshotResponse - if err := json.NewDecoder(w.Body).Decode(&response); err != nil { - t.Fatalf("Failed to decode response: %v", err) - } - - // Verify response fields - if response.ID == "" { - t.Error("Expected non-empty ID in response") - } - - // Check if file was created - expectedFile := filepath.Join(tempDir, fmt.Sprintf("%s.yml", response.ID)) - if _, err := os.Stat(expectedFile); os.IsNotExist(err) { - t.Errorf("Expected file %s to be created", expectedFile) - } - - // Verify file content - content, err := os.ReadFile(expectedFile) - if err != nil { - t.Fatalf("Failed to read created file: %v", err) - } - - if len(content) == 0 { - t.Error("Created file is empty") - } - - // Verify the content contains expected structure - contentStr := string(content) - if !bytes.Contains(content, []byte("job_name:")) { - t.Error("Expected file to contain 'job_name:'") - } - if !bytes.Contains(content, []byte("basic_auth:")) { - t.Error("Expected file to contain 'basic_auth:'") - } - if !bytes.Contains(content, []byte("http_sd_configs:")) { - t.Error("Expected file to contain 'http_sd_configs:'") - } - if !bytes.Contains(content, []byte("http://localhost:8091/prometheus_sd_config?port=insecure")) { - t.Error("Expected file to contain the correct URL") - } - - t.Logf("Created file content: %s", contentStr) -} - -func TestCreateSnapshotInvalidRequest(t *testing.T) { - // Create temporary directory for test files - tempDir := t.TempDir() - - // Initialize storage - fileStorage := storage.NewFileStorage(tempDir) - - // Initialize handler - handler := api.NewHandler(fileStorage,storage.NewFileMetadataStorage(tempDir), "vmagent") - - // Test cases - testCases := []struct { - name string - request models.SnapshotRequest - expectedCode int - }{ - { - name: "missing hostname", - request: models.SnapshotRequest{ - Configs: []models.ConfigObject{ - { - Hostnames: []string{""}, - Type: "couchbase", - Port: 8091, - }, - }, - Credentials: models.Credentials{ - Username: "admin", - Password: "password", - }, - Scheme: "http", - }, - expectedCode: http.StatusBadRequest, - }, - { - name: "missing credentials", - request: models.SnapshotRequest{ - Configs: []models.ConfigObject{ - { - Hostnames: []string{""}, - Type: "couchbase", - Port: 8091, - }, - }, - Credentials: models.Credentials{ - Username: "", - Password: "", - }, - Scheme: "http", - }, - expectedCode: http.StatusBadRequest, - }, - } - - for _, tc := range testCases { - t.Run(tc.name, func(t *testing.T) { - // Convert request to JSON - requestBody, err := json.Marshal(tc.request) - if err != nil { - t.Fatalf("Failed to marshal request: %v", err) - } - - // Create HTTP request - req := httptest.NewRequest("POST", "/api/v1/snapshot", bytes.NewBuffer(requestBody)) - req.Header.Set("Content-Type", "application/json") - - // Create response recorder - w := httptest.NewRecorder() - - // Call handler - handler.CreateSnapshot(w, req) - - // Check response status - if w.Code != tc.expectedCode { - t.Errorf("Expected status %d, got %d", tc.expectedCode, w.Code) - t.Logf("Response body: %s", w.Body.String()) - } - }) - } -} diff --git a/config-manager/tests/config_test.go b/config-manager/tests/config_test.go deleted file mode 100644 index e3eacab..0000000 --- a/config-manager/tests/config_test.go +++ /dev/null @@ -1,142 +0,0 @@ -package tests - -import ( - "os" - "testing" - "time" - - "github.com/couchbase/config-manager/internal/config" -) - -func TestApplyFlagOverrides(t *testing.T) { - // Create a temporary config file - tempFile := createTempConfig(t) - defer os.Remove(tempFile) - - // Test cases - tests := []struct { - name string - overrides map[string]string - expected config.Config - }{ - { - name: "override server host and port", - overrides: map[string]string{ - "server.host": "127.0.0.1", - "server.port": "9090", - }, - expected: func() config.Config { - var cfg config.Config - cfg.Server.Port = 9090 - cfg.Server.Host = "127.0.0.1" - cfg.Agent.Type = "vmagent" - cfg.Agent.Directory = "./temp_path" - cfg.Logging.Level = "info" - cfg.Manager.Interval = 2 * time.Minute - cfg.Manager.MinInterval = 5 * time.Minute - cfg.Manager.StaleThreshold = 5 * time.Minute - return cfg - }(), - }, - { - name: "override agent type and logging level", - overrides: map[string]string{ - "agent.type": "prometheus", - "logging.level": "debug", - }, - expected: func() config.Config { - var cfg config.Config - cfg.Server.Port = 8080 - cfg.Server.Host = "0.0.0.0" - cfg.Agent.Type = "prometheus" - cfg.Agent.Directory = "./temp_path" - cfg.Logging.Level = "debug" - cfg.Manager.Interval = 2 * time.Minute - cfg.Manager.MinInterval = 5 * time.Minute - cfg.Manager.StaleThreshold = 5 * time.Minute - return cfg - }(), - }, - } - - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - cfg, err := config.LoadConfig(tempFile, tt.overrides) - if err != nil { - t.Fatalf("LoadConfig failed: %v", err) - } - - // Check if overrides were applied correctly - if cfg.Server.Host != tt.expected.Server.Host { - t.Errorf("Server.Host = %v, want %v", cfg.Server.Host, tt.expected.Server.Host) - } - if cfg.Server.Port != tt.expected.Server.Port { - t.Errorf("Server.Port = %v, want %v", cfg.Server.Port, tt.expected.Server.Port) - } - if cfg.Agent.Type != tt.expected.Agent.Type { - t.Errorf("Agent.Type = %v, want %v", cfg.Agent.Type, tt.expected.Agent.Type) - } - if cfg.Logging.Level != tt.expected.Logging.Level { - t.Errorf("Logging.Level = %v, want %v", cfg.Logging.Level, tt.expected.Logging.Level) - } - }) - } -} - -func TestApplyFlagOverridesErrors(t *testing.T) { - cfg := &config.Config{} - - // Test invalid path format - err := config.ApplyFlagOverrides(cfg, map[string]string{"invalid": "value"}) - if err == nil { - t.Error("Expected error for invalid path format") - } - - // Test unknown section - err = config.ApplyFlagOverrides(cfg, map[string]string{"unknown.field": "value"}) - if err == nil { - t.Error("Expected error for unknown section") - } - - // Test unknown field - err = config.ApplyFlagOverrides(cfg, map[string]string{"server.unknown": "value"}) - if err == nil { - t.Error("Expected error for unknown field") - } - - // Test invalid type conversion - err = config.ApplyFlagOverrides(cfg, map[string]string{"server.port": "not_a_number"}) - if err == nil { - t.Error("Expected error for invalid type conversion") - } -} - -func createTempConfig(t *testing.T) string { - content := `server: - port: 8080 - host: "0.0.0.0" -agent: - type: "vmagent" - directory: "./temp_path" -logging: - level: "info" -manager: - interval: "2m" - min_interval: "5m" - stale_threshold: "5m" -` - - tmpfile, err := os.CreateTemp("", "config_*.yaml") - if err != nil { - t.Fatal(err) - } - - if _, err := tmpfile.Write([]byte(content)); err != nil { - t.Fatal(err) - } - if err := tmpfile.Close(); err != nil { - t.Fatal(err) - } - - return tmpfile.Name() -} diff --git a/config-manager/tests/manager_test.go b/config-manager/tests/manager_test.go deleted file mode 100644 index 05cd87d..0000000 --- a/config-manager/tests/manager_test.go +++ /dev/null @@ -1,53 +0,0 @@ -package tests - -import ( - "os" - "path/filepath" - "testing" - "time" - - "github.com/couchbase/config-manager/internal/config" - "github.com/couchbase/config-manager/internal/manager" -) - -func TestStaleConfigRemoval(t *testing.T) { - tempDir := t.TempDir() - - // create a mock yml file that will be fresh - fresh := filepath.Join(tempDir, "fresh.yml") - if err := os.WriteFile(fresh, []byte("test"), 0644); err != nil { - t.Fatalf("Failed to create fresh file: %v", err) - } - - // create a mock yml file that will be stale - stale := filepath.Join(tempDir, "stale.yml") - if err := os.WriteFile(stale, []byte("test"), 0644); err != nil { - t.Fatalf("Failed to create stale file: %v", err) - } - - // set the modified time of the stale file in the past - oldTime := time.Now().Add(-5 * time.Minute) - if err := os.Chtimes(stale, oldTime, oldTime); err != nil { - t.Fatalf("Failed to set modified time for stale file: %v", err) - } - - // Create a test config with metadata disabled to avoid Couchbase dependencies in tests - cfg := &config.Config{} - cfg.Metadata.Enabled = false - - go manager.StartManagerWithInterval(manager.Information{ - Interval: 1 * time.Minute, - MinInterval: 5 * time.Minute, - StaleThreshold: 5 * time.Minute, - }, tempDir, cfg) - - time.Sleep(5 * time.Second) - - // check that stale file is gone and then check that fresh file still exists - if _, err := os.Stat(stale); !os.IsNotExist(err) { - t.Errorf("Expected stale file to be deleted, but it still exists") - } - if _, err := os.Stat(fresh); os.IsNotExist(err) { - t.Errorf("Expected fresh file to still exist, but it was deleted") - } -} diff --git a/config-manager/tests/metadata_test.go b/config-manager/tests/metadata_test.go deleted file mode 100644 index d942096..0000000 --- a/config-manager/tests/metadata_test.go +++ /dev/null @@ -1,98 +0,0 @@ -package tests - -import ( - "testing" - "time" - - "github.com/couchbase/config-manager/internal/config" - "github.com/couchbase/config-manager/internal/models" - "github.com/couchbase/config-manager/internal/storage" -) - -func TestCouchbaseMetadataStorage(t *testing.T) { - // Skip this test if Couchbase is not available - // This test requires a running Couchbase instance - t.Skip("Skipping Couchbase test - requires running Couchbase instance") - - // Create test configuration - cfg := &config.Config{} - cfg.Metadata.Enabled = true - cfg.Metadata.Host = "localhost" - cfg.Metadata.Bucket = "metadata" - cfg.Metadata.Timeout = 30 * time.Second - - // Initialize Couchbase storage - couchbaseStorage, err := storage.NewCouchbaseStorage(cfg) - if err != nil { - t.Fatalf("Failed to create Couchbase storage: %v", err) - } - defer couchbaseStorage.Close() - - // Create test metadata - metadata := &models.SnapshotMetadata{ - SnapshotID: "test-snapshot-123", - Services: []string{"kv", "index", "query"}, - Server: "7.6.8-7151-enterprise", - TsStart: time.Now(), - TsEnd: "now", - } - - // Test saving metadata - err = couchbaseStorage.SaveMetadata(metadata) - if err != nil { - t.Fatalf("Failed to save metadata: %v", err) - } - - // Test retrieving metadata - retrievedMetadata, err := couchbaseStorage.GetMetadata("test-snapshot-123") - if err != nil { - t.Fatalf("Failed to get metadata: %v", err) - } - - // Verify retrieved metadata matches original - if retrievedMetadata.SnapshotID != metadata.SnapshotID { - t.Errorf("Expected SnapshotID %s, got %s", metadata.SnapshotID, retrievedMetadata.SnapshotID) - } - - if len(retrievedMetadata.Services) != len(metadata.Services) { - t.Errorf("Expected %d services, got %d", len(metadata.Services), len(retrievedMetadata.Services)) - } -} - -func TestFileMetadataStorageFallback(t *testing.T) { - // Test file storage fallback when metadata is disabled - cfg := &config.Config{} - cfg.Metadata.Enabled = false - cfg.Agent.Directory = "./test_data" - - // Initialize metadata storage (should use file fallback) - metadataStorage, err := storage.NewMetadataStorage(cfg) - if err != nil { - t.Fatalf("Failed to create metadata storage: %v", err) - } - defer metadataStorage.Close() - - // Test saving metadata (should be no-op) - metadata := &models.SnapshotMetadata{ - SnapshotID: "test-snapshot-123", - Services: []string{"kv", "index", "query"}, - Server: "7.6.8-7151-enterprise", - TsStart: time.Now(), - TsEnd: "now", - } - - err = metadataStorage.SaveMetadata(metadata) - if err != nil { - t.Fatalf("Failed to save metadata: %v", err) - } - - // Test getting metadata (should return nil) - retrievedMetadata, err := metadataStorage.GetMetadata("test-snapshot-123") - if err != nil { - t.Fatalf("Failed to get metadata: %v", err) - } - - if retrievedMetadata != nil { - t.Error("Expected nil metadata from file fallback, got non-nil") - } -} diff --git a/docs/config-manager-api.md b/docs/config-manager-api.md index 68d4006..f53be05 100644 --- a/docs/config-manager-api.md +++ b/docs/config-manager-api.md @@ -92,6 +92,7 @@ curl -X POST http://localhost:8085/api/v1/snapshot \ - The service automatically collects cluster metadata (version, services, time ranges) after creating the snapshot. - Configuration files are saved with the naming convention: `{uuid}.yml` in the directory specified by the agent configuration. - The provided credentilas are used for metrics scraping, services discovery and cluster metadata collection. +- Service discovery URLs include `clusterLabels=uuidOnly` so cluster UUID labels are emitted for cluster registration. --- @@ -109,7 +110,7 @@ Retrieves a configuration snapshot by its ID. { "name": "f8c26387-77f1-490f-b9d8-88df05618b60", "urls": [ - "http://localhost:8091/prometheus_sd_config?port=insecure" + "http://localhost:8091/prometheus_sd_config?port=insecure&clusterLabels=uuidOnly" ], "timestamp": "2025-11-24T19:36:08.885173056Z" }