diff --git a/config/grafana/dashboards/usecases/all_flash.json b/config/grafana/dashboards/usecases/all_flash.json index 4e16150..93b315d 100644 --- a/config/grafana/dashboards/usecases/all_flash.json +++ b/config/grafana/dashboards/usecases/all_flash.json @@ -1,5 +1,11 @@ { "__requires": [ + { + "type": "panel", + "id": "bargauge", + "name": "Bar gauge", + "version": "" + }, { "type": "grafana", "id": "grafana", @@ -64,9 +70,23 @@ "fieldConfig": { "defaults": { "color": { - "mode": "thresholds" + "fixedColor": "yellow", + "mode": "fixed" }, - "mappings": [], + "links": [], + "mappings": [ + { + "options": { + "match": "null", + "result": { + "color": "#299c46", + "text": "0" + } + }, + "type": "special" + } + ], + "noValue": "N/A", "thresholds": { "mode": "absolute", "steps": [ @@ -75,11 +95,12 @@ "value": null }, { - "color": "red", - "value": 50 + "color": "dark-red", + "value": 5000 } ] - } + }, + "unit": "short" }, "overrides": [] }, @@ -89,21 +110,39 @@ "x": 0, "y": 0 }, - "id": 2, + "id": 82, + "links": [], + "maxDataPoints": 100, "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "center", - "orientation": "auto", + "displayMode": "basic", + "minVizHeight": 10, + "minVizWidth": 0, + "orientation": "vertical", "reduceOptions": { - "calcs": [], + "calcs": [ + "lastNotNull" + ], "fields": "", "values": false }, - "textMode": "value" + "showUnfilled": true }, "pluginVersion": "9.3.2", "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_AEROSPIKE_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "min (\n (aerospike_namespace_master_objects {job=\"$job_name\", cluster_name=~\"$cluster\", service=~\"$node|$^\",ns=~\"$namespace|$^\"} / 4096) \n / \n (aerospike_namespace_partition_tree_sprigs{job=\"$job_name\", cluster_name=~\"$cluster\", service=~\"$node|$^\",ns=~\"$namespace|$^\"}!=0)\n)", + "format": "time_series", + "hide": false, + "instant": true, + "intervalFactor": 1, + "legendFormat": "Min", + "refId": "object_per_sprig_min" + }, { "datasource": { "type": "prometheus", @@ -111,14 +150,29 @@ }, "editorMode": "code", "expr": "avg (\n (aerospike_namespace_master_objects {job=\"$job_name\", cluster_name=~\"$cluster\", service=~\"$node|$^\",ns=~\"$namespace|$^\"} / 4096) \n / \n (aerospike_namespace_partition_tree_sprigs{job=\"$job_name\", cluster_name=~\"$cluster\", service=~\"$node|$^\",ns=~\"$namespace|$^\"}!=0)\n)", + "format": "time_series", + "instant": true, + "intervalFactor": 1, + "legendFormat": "Avg", + "refId": "object_per_sprig_avg" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_AEROSPIKE_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "max (\n (aerospike_namespace_master_objects {job=\"$job_name\", cluster_name=~\"$cluster\", service=~\"$node|$^\",ns=~\"$namespace|$^\"} / 4096) \n / \n (aerospike_namespace_partition_tree_sprigs{job=\"$job_name\", cluster_name=~\"$cluster\", service=~\"$node|$^\",ns=~\"$namespace|$^\"}!=0)\n)", + "format": "time_series", "hide": false, - "legendFormat": "{{ns}}", - "range": true, - "refId": "A" + "instant": true, + "intervalFactor": 1, + "legendFormat": "Max", + "refId": "object_per_sprig_max" } ], - "title": "Average Objects per Sprig (Primary Index) - $namespace", - "type": "stat" + "title": "Objects per Sprig (Primary Index)", + "type": "bargauge" }, { "datasource": { @@ -144,15 +198,20 @@ "mode": "absolute", "steps": [ { - "color": "green", + "color": "#299c46", "value": null }, { "color": "#EAB839", "value": 4 + }, + { + "color": "red", + "value": 5 } ] - } + }, + "unit": "none" }, "overrides": [] }, @@ -164,7 +223,7 @@ }, "id": 46, "options": { - "colorMode": "value", + "colorMode": "background", "graphMode": "none", "justifyMode": "center", "orientation": "auto", @@ -208,7 +267,7 @@ "refId": "read_latency" } ], - "title": "Latencies > 4ms", + "title": "Latencies > 4ms (total)", "type": "stat" }, { @@ -227,15 +286,16 @@ "mode": "absolute", "steps": [ { - "color": "green", + "color": "#299c46", "value": null }, { "color": "red", - "value": 80 + "value": 1 } ] - } + }, + "unit": "none" }, "overrides": [] }, @@ -247,7 +307,7 @@ }, "id": 3, "options": { - "colorMode": "value", + "colorMode": "background", "graphMode": "none", "justifyMode": "auto", "orientation": "auto", @@ -274,7 +334,7 @@ "refId": "A" } ], - "title": "HWM Breached", + "title": "HWM Breached (total)", "type": "stat" }, { @@ -293,7 +353,7 @@ "mode": "absolute", "steps": [ { - "color": "green", + "color": "#299c46", "value": null }, { @@ -313,7 +373,7 @@ }, "id": 11, "options": { - "colorMode": "value", + "colorMode": "background", "graphMode": "none", "justifyMode": "auto", "orientation": "auto", @@ -341,7 +401,7 @@ "refId": "B" } ], - "title": "Stop Writes", + "title": "Stop Writes (total)", "type": "stat" }, { @@ -360,7 +420,7 @@ "mode": "absolute", "steps": [ { - "color": "green", + "color": "#299c46", "value": null } ] @@ -395,13 +455,13 @@ }, "gridPos": { "h": 4, - "w": 8, + "w": 16, "x": 8, "y": 4 }, "id": 55, "options": { - "colorMode": "value", + "colorMode": "background", "graphMode": "none", "justifyMode": "center", "orientation": "auto", @@ -422,10 +482,12 @@ "uid": "${DS_AEROSPIKE_PROMETHEUS}" }, "editorMode": "code", + "exemplar": false, "expr": "(aerospike_namespace_index_pressure_total_memory {job=\"$job_name\", cluster_name=\"$cluster\", service=~\"$node|$^\", ns=~\"$namespace\"})", "hide": false, + "instant": true, "legendFormat": "{{ns}} : Total Memory", - "range": true, + "range": false, "refId": "A" }, { @@ -434,10 +496,12 @@ "uid": "${DS_AEROSPIKE_PROMETHEUS}" }, "editorMode": "code", + "exemplar": false, "expr": "(aerospike_namespace_index_pressure_dirty_memory {job=\"$job_name\", cluster_name=\"$cluster\", service=~\"$node|$^\", ns=~\"$namespace\"})", "hide": false, + "instant": true, "legendFormat": "{{ns}} : Dirty Memory", - "range": true, + "range": false, "refId": "B" } ], @@ -508,7 +572,7 @@ } ] }, - "unit": "none" + "unit": "short" }, "overrides": [] }, @@ -523,8 +587,9 @@ "legend": { "calcs": [ "last", - "mean", - "max" + "min", + "max", + "mean" ], "displayMode": "table", "placement": "right", @@ -549,7 +614,7 @@ "refId": "evict_objects" } ], - "title": "Evictions (rate)", + "title": "Evictions (rate) (total)", "type": "timeseries" }, { @@ -620,8 +685,9 @@ "legend": { "calcs": [ "last", - "mean", - "max" + "min", + "max", + "mean" ], "displayMode": "table", "placement": "right", @@ -640,12 +706,12 @@ }, "editorMode": "code", "expr": " sum by (service, ns) (\n rate(aerospike_namespace_stop_writes{job=\"$job_name\", cluster_name=\"$cluster\",service=~\"$node|$^\",ns=~\"$namespace|$^\"}[$__rate_interval] )\n)", - "legendFormat": "{{service}} : {{ns}}", + "legendFormat": "{{service}}/{{ns}}", "range": true, "refId": "A" } ], - "title": "Stop Writes (rate)", + "title": "Stop Writes (rate) (total)", "type": "timeseries" }, { @@ -716,8 +782,9 @@ "legend": { "calcs": [ "last", - "mean", - "max" + "min", + "max", + "mean" ], "displayMode": "table", "placement": "right", @@ -736,12 +803,12 @@ }, "editorMode": "code", "expr": " sum by (service, ns) (\n rate(aerospike_namespace_hwm_breached {job=\"$job_name\", cluster_name=~\"$cluster\", service=~\"$node|$^\",ns=~\"$namespace|$^\"}[$__rate_interval] )\n)", - "legendFormat": "{{service}} : {{ns}}", + "legendFormat": "{{service}}/{{ns}", "range": true, "refId": "A" } ], - "title": "HWM Breaches (rate)", + "title": "HWM Breaches (rate) (total)", "type": "timeseries" } ], @@ -749,7 +816,7 @@ "type": "row" }, { - "collapsed": false, + "collapsed": true, "gridPos": { "h": 1, "w": 24, @@ -757,434 +824,470 @@ "y": 9 }, "id": 15, - "panels": [], - "title": "Resources - Primary Index - $namespace", - "type": "row" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_AEROSPIKE_PROMETHEUS}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": 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": null - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 5, - "w": 12, - "x": 0, - "y": 10 - }, - "id": 48, - "options": { - "legend": { - "calcs": [], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_AEROSPIKE_PROMETHEUS}" - }, - "editorMode": "code", - "expr": "avg by (ns) (\n (aerospike_namespace_master_objects {job=\"$job_name\", cluster_name=~\"$cluster\", service=~\"$node|$^\",ns=~\"$namespace|$^\"} / 4096) \n / \n (aerospike_namespace_partition_tree_sprigs{job=\"$job_name\", cluster_name=~\"$cluster\", service=~\"$node|$^\",ns=~\"$namespace|$^\"}!=0)\n)", - "legendFormat": "{{ns}}", - "range": true, - "refId": "A" - }, + "panels": [ { "datasource": { "type": "prometheus", "uid": "${DS_AEROSPIKE_PROMETHEUS}" }, - "editorMode": "code", - "expr": "vector(2)", - "hide": false, - "legendFormat": "Threshold (2)", - "range": true, - "refId": "B" - } - ], - "title": "Average Object per Sprig", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_AEROSPIKE_PROMETHEUS}" - }, - "description": "Represents how much used memory is consumed against the High Water Memory configured, the lower it is the better,\nNOTE: no data will be shown if High Water Pct is not configured.", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 7, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineStyle": { - "fill": "solid" - }, - "lineWidth": 3, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": 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": null + } + ] + } }, - "showPoints": "auto", - "spanNulls": true, - "stacking": { - "group": "A", - "mode": "none" + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 12, + "x": 0, + "y": 10 + }, + "id": 48, + "options": { + "legend": { + "calcs": [ + "last", + "min", + "max", + "mean" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true }, - "thresholdsStyle": { - "mode": "off" + "tooltip": { + "mode": "single", + "sort": "none" } }, - "mappings": [], - "max": 100, - "noValue": "Not configured", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "percent" - }, - "overrides": [] - }, - "gridPos": { - "h": 5, - "w": 12, - "x": 12, - "y": 10 - }, - "id": 17, - "options": { - "legend": { - "calcs": [ - "last", - "mean", - "max" + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_AEROSPIKE_PROMETHEUS}" + }, + "editorMode": "code", + "expr": " (\n (aerospike_namespace_master_objects {job=\"$job_name\", cluster_name=~\"$cluster\", service=~\"$node|$^\",ns=~\"$namespace|$^\"} / 4096) \n / \n (aerospike_namespace_partition_tree_sprigs{job=\"$job_name\", cluster_name=~\"$cluster\", service=~\"$node|$^\",ns=~\"$namespace|$^\"}!=0)\n)", + "legendFormat": "{{service}}/{{ns}}", + "range": true, + "refId": "A" + } ], - "displayMode": "table", - "placement": "right", - "showLegend": true + "title": "Object per Sprig", + "type": "timeseries" }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_AEROSPIKE_PROMETHEUS}" }, - "editorMode": "code", - "expr": "(((aerospike_namespace_index_flash_used_pct{job=\"$job_name\", cluster_name=\"$cluster\",service=~\"$node|$^\",ns=~\"$namespace|$^\"})\n/ on ( job, clusrer_name, service, ns)\naerospike_namespace_index_type_mounts_high_water_pct{job=\"$job_name\", cluster_name=\"$cluster\",service=~\"$node|$^\",ns=~\"$namespace|$^\"} !=0)*100\n)", - "hide": false, - "interval": "", - "legendFormat": "{{service}}:{{ns}}", - "range": true, - "refId": "C" - } - ], - "title": "Used Memory Pct vs High Water Mark Pct", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_AEROSPIKE_PROMETHEUS}" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 7, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineStyle": { - "fill": "solid" - }, - "lineWidth": 3, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" + "description": "Represents how much used memory is consumed against the High Water Memory configured, the lower it is the better,\nNOTE: no data will be shown if High Water Pct is not configured.", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 7, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 3, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "max": 100, + "noValue": "Not configured", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "percent" }, - "showPoints": "auto", - "spanNulls": true, - "stacking": { - "group": "A", - "mode": "none" + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 12, + "x": 12, + "y": 10 + }, + "id": 60, + "options": { + "legend": { + "calcs": [ + "last", + "min", + "max", + "mean" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true }, - "thresholdsStyle": { - "mode": "off" + "tooltip": { + "mode": "single", + "sort": "none" } }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "percent" - }, - "overrides": [] - }, - "gridPos": { - "h": 5, - "w": 12, - "x": 0, - "y": 15 - }, - "id": 21, - "options": { - "legend": { - "calcs": [ - "last", - "mean", - "max" + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_AEROSPIKE_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "((aerospike_namespace_index_flash_used_pct{job=\"$job_name\", cluster_name=\"$cluster\",service=~\"$node|$^\",ns=~\"$namespace|$^\"})\n/ on ( job, cluster_name, service, ns)\n(aerospike_namespace_index_type_mounts_high_water_pct{job=\"$job_name\", cluster_name=\"$cluster\",service=~\"$node|$^\",ns=~\"$namespace|$^\"} !=0)*100\n)", + "hide": false, + "interval": "", + "legendFormat": "{{service}}/{{ns}} (pre 7x)", + "range": true, + "refId": "6_memory_by_high_water_pct" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_AEROSPIKE_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "((aerospike_namespace_index_mounts_used_pct{job=\"$job_name\", cluster_name=\"$cluster\",service=~\"$node|$^\",ns=~\"$namespace|$^\"})\n/ on ( job, cluster_name, service, ns)\n(aerospike_namespace_index_type_evict_mounts_pct{job=\"$job_name\", cluster_name=\"$cluster\",service=~\"$node|$^\",ns=~\"$namespace|$^\"} !=0)*100\n)", + "hide": false, + "interval": "", + "legendFormat": "{{service}}/{{ns}}", + "range": true, + "refId": "7_data_by_evict_mount_pct" + } ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_AEROSPIKE_PROMETHEUS}" - }, - "editorMode": "code", - "expr": "aerospike_namespace_index_flash_alloc_pct{job=\"$job_name\", cluster_name=\"$cluster\",service=~\"$node|$^\",ns=~\"$namespace|$^\"}", - "hide": false, - "interval": "", - "legendFormat": "{{service}}:{{ns}} : Allocated", - "range": true, - "refId": "B" + "title": "Used % vs High Water Mark % ", + "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "${DS_AEROSPIKE_PROMETHEUS}" }, - "editorMode": "code", - "expr": "aerospike_namespace_index_flash_used_pct{job=\"$job_name\", cluster_name=\"$cluster\",service=~\"$node|$^\",ns=~\"$namespace|$^\"}", - "hide": false, - "interval": "", - "legendFormat": "{{service}}:{{ns}} - Used", - "range": true, - "refId": "A" - } - ], - "title": "% Index - Alloc, Used", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_AEROSPIKE_PROMETHEUS}" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 7, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 7, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 3, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "percent" }, - "lineInterpolation": "linear", - "lineStyle": { - "fill": "solid" + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 12, + "x": 0, + "y": 15 + }, + "id": 62, + "options": { + "legend": { + "calcs": [ + "last", + "min", + "max", + "mean" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true }, - "lineWidth": 3, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_AEROSPIKE_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "aerospike_namespace_index_flash_alloc_pct{job=\"$job_name\", cluster_name=\"$cluster\",service=~\"$node|$^\",ns=~\"$namespace|$^\"}", + "hide": false, + "interval": "", + "legendFormat": "{{service}}/{{ns}} : Allocated", + "range": true, + "refId": "alloc_pct" }, - "showPoints": "auto", - "spanNulls": true, - "stacking": { - "group": "A", - "mode": "none" + { + "datasource": { + "type": "prometheus", + "uid": "${DS_AEROSPIKE_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "aerospike_namespace_index_flash_used_pct{job=\"$job_name\", cluster_name=\"$cluster\",service=~\"$node|$^\",ns=~\"$namespace|$^\"}", + "hide": false, + "interval": "", + "legendFormat": "{{service}}/{{ns}} - Used (pre 7x)", + "range": true, + "refId": "6_index_flash_used_pct" }, - "thresholdsStyle": { - "mode": "off" + { + "datasource": { + "type": "prometheus", + "uid": "${DS_AEROSPIKE_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "aerospike_namespace_index_mounts_used_pct{job=\"$job_name\", cluster_name=\"$cluster\",service=~\"$node|$^\",ns=~\"$namespace|$^\"}", + "hide": false, + "interval": "", + "legendFormat": "{{service}}/{{ns}} - Used", + "range": true, + "refId": "7_index_mounts_used_pct" } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 5, - "w": 12, - "x": 12, - "y": 15 - }, - "id": 23, - "options": { - "legend": { - "calcs": [ - "last", - "mean", - "max" ], - "displayMode": "table", - "placement": "right", - "showLegend": true + "title": "% Index - alloc, used ", + "type": "timeseries" }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_AEROSPIKE_PROMETHEUS}" }, - "editorMode": "code", - "expr": "aerospike_namespace_index_flash_alloc_bytes{job=\"$job_name\", cluster_name=\"$cluster\",service=~\"$node|$^\",ns=~\"$namespace|$^\"}", - "hide": false, - "interval": "", - "legendFormat": "{{service}}:{{ns}} : Allocated", - "range": true, - "refId": "B" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_AEROSPIKE_PROMETHEUS}" + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 7, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 3, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "bytes" + }, + "overrides": [] }, - "editorMode": "code", - "expr": "aerospike_namespace_index_flash_used_bytes{job=\"$job_name\", cluster_name=\"$cluster\",service=~\"$node|$^\",ns=~\"$namespace|$^\"}", - "hide": false, - "interval": "", - "legendFormat": "{{service}}:{{ns}} - Used", - "range": true, - "refId": "A" + "gridPos": { + "h": 5, + "w": 12, + "x": 12, + "y": 15 + }, + "id": 64, + "options": { + "legend": { + "calcs": [ + "last", + "min", + "max", + "mean" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_AEROSPIKE_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "aerospike_namespace_index_flash_alloc_bytes{job=\"$job_name\", cluster_name=\"$cluster\",service=~\"$node|$^\",ns=~\"$namespace|$^\"}", + "hide": false, + "interval": "", + "legendFormat": "{{service}}/{{ns}} : Allocated", + "range": true, + "refId": "alloc_bytes" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_AEROSPIKE_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "aerospike_namespace_index_flash_used_bytes{job=\"$job_name\", cluster_name=\"$cluster\",service=~\"$node|$^\",ns=~\"$namespace|$^\"}", + "hide": false, + "interval": "", + "legendFormat": "{{service}}/{{ns}} - Used (pre 7x)", + "range": true, + "refId": "6_index_flash_used_bytes" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_AEROSPIKE_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "aerospike_namespace_index_used_bytes{job=\"$job_name\", cluster_name=\"$cluster\",service=~\"$node|$^\",ns=~\"$namespace|$^\"}", + "hide": false, + "interval": "", + "legendFormat": "{{service}}/{{ns}} - Used", + "range": true, + "refId": "7_index_mounts_used_bytes" + } + ], + "title": "Bytes - alloc, used", + "type": "timeseries" } ], - "title": "Bytes - Alloc, Used", - "type": "timeseries" + "title": "Resources - Primary Index - $namespace", + "type": "row" }, { "collapsed": true, @@ -1192,7 +1295,7 @@ "h": 1, "w": 24, "x": 0, - "y": 20 + "y": 10 }, "id": 50, "panels": [ @@ -1247,7 +1350,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null } ] }, @@ -1261,13 +1365,14 @@ "x": 0, "y": 11 }, - "id": 52, + "id": 66, "options": { "legend": { "calcs": [ "last", - "mean", - "max" + "min", + "max", + "mean" ], "displayMode": "table", "placement": "right", @@ -1285,15 +1390,28 @@ "uid": "${DS_AEROSPIKE_PROMETHEUS}" }, "editorMode": "code", - "expr": "(((aerospike_namespace_sindex_flash_used_pct{job=\"$job_name\", cluster_name=\"$cluster\",service=~\"$node|$^\",ns=~\"$namespace|$^\"})\n/ on (job, cluster, service, ns) \naerospike_namespace_index_type_mounts_high_water_pct{job=\"$job_name\", cluster_name=\"$cluster\",service=~\"$node|$^\",ns=~\"$namespace|$^\"} !=0)*100\n)", + "expr": "((aerospike_namespace_sindex_flash_used_pct{job=\"$job_name\", cluster_name=\"$cluster\",service=~\"$node|$^\",ns=~\"$namespace|$^\"})\n/ on (job, cluster, service, ns) \n(aerospike_namespace_sindex_type_mounts_high_water_pct{job=\"$job_name\", cluster_name=\"$cluster\",service=~\"$node|$^\",ns=~\"$namespace|$^\"}!=0)*100\n)", + "hide": false, + "interval": "", + "legendFormat": "{{service}}/{{ns}} (pre 7x)", + "range": true, + "refId": "6_flash_used_pct_by_mount_high_water_pct" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_AEROSPIKE_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "((aerospike_namespace_sindex_mounts_used_pct{job=\"$job_name\", cluster_name=\"$cluster\",service=~\"$node|$^\",ns=~\"$namespace|$^\"})\n/ on (job, cluster, service, ns) \n(aerospike_namespace_sindex_type_evict_mounts_pct{job=\"$job_name\", cluster_name=\"$cluster\",service=~\"$node|$^\",ns=~\"$namespace|$^\"} !=0)*100\n)", "hide": false, "interval": "", - "legendFormat": "{{service}}:{{ns}}", + "legendFormat": "{{service}}/{{ns}}", "range": true, - "refId": "C" + "refId": "7_mount_pct_by_evict_mounts_pct" } ], - "title": "Used Memory Pct vs High Water Mark Pct", + "title": "Used Data % vs High Water Mark %", "type": "timeseries" }, { @@ -1345,7 +1463,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null } ] }, @@ -1359,13 +1478,14 @@ "x": 12, "y": 11 }, - "id": 53, + "id": 68, "options": { "legend": { "calcs": [ "last", - "mean", - "max" + "min", + "max", + "mean" ], "displayMode": "table", "placement": "right", @@ -1383,12 +1503,12 @@ "uid": "${DS_AEROSPIKE_PROMETHEUS}" }, "editorMode": "code", - "expr": "aerospike_namespace_sindex_flash_alloc_bytes{job=\"$job_name\", cluster_name=\"$cluster\",service=~\"$node|$^\",ns=~\"$namespace|$^\"}", + "expr": "aerospike_namespace_sindex_flash_used_bytes{job=\"$job_name\", cluster_name=\"$cluster\",service=~\"$node|$^\",ns=~\"$namespace|$^\"}", "hide": false, "interval": "", - "legendFormat": "{{service}}:{{ns}} : Allocated", + "legendFormat": "{{service}}/{{ns}} - Used (pre 7x)", "range": true, - "refId": "B" + "refId": "6_sindex_flash_used_bytes" }, { "datasource": { @@ -1396,15 +1516,15 @@ "uid": "${DS_AEROSPIKE_PROMETHEUS}" }, "editorMode": "code", - "expr": "aerospike_namespace_sindex_flash_used_bytes{job=\"$job_name\", cluster_name=\"$cluster\",service=~\"$node|$^\",ns=~\"$namespace|$^\"}", + "expr": "aerospike_namespace_sindex_used_bytes{job=\"$job_name\", cluster_name=\"$cluster\",service=~\"$node|$^\",ns=~\"$namespace|$^\"}", "hide": false, "interval": "", - "legendFormat": "{{service}}:{{ns}} - Used", + "legendFormat": "{{service}}/{{ns}} - Used", "range": true, - "refId": "A" + "refId": "7_sindex_mounts_used_bytes" } ], - "title": "Bytes - Alloc, Used", + "title": "Bytes - used ", "type": "timeseries" }, { @@ -1456,7 +1576,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null } ] }, @@ -1470,13 +1591,14 @@ "x": 0, "y": 16 }, - "id": 54, + "id": 70, "options": { "legend": { "calcs": [ "last", - "mean", - "max" + "min", + "max", + "mean" ], "displayMode": "table", "placement": "right", @@ -1494,12 +1616,12 @@ "uid": "${DS_AEROSPIKE_PROMETHEUS}" }, "editorMode": "code", - "expr": "aerospike_namespace_sindex_flash_alloc_pct{job=\"$job_name\", cluster_name=\"$cluster\",service=~\"$node|$^\",ns=~\"$namespace|$^\"}", + "expr": "aerospike_namespace_sindex_flash_used_pct{job=\"$job_name\", cluster_name=\"$cluster\",service=~\"$node|$^\",ns=~\"$namespace|$^\"}", "hide": false, "interval": "", - "legendFormat": "{{service}}:{{ns}} : Allocated", + "legendFormat": "{{service}}/{{ns}} - Used (pre 7x)", "range": true, - "refId": "B" + "refId": "6_sindex_flash_used_pct" }, { "datasource": { @@ -1507,15 +1629,15 @@ "uid": "${DS_AEROSPIKE_PROMETHEUS}" }, "editorMode": "code", - "expr": "aerospike_namespace_sindex_flash_used_pct{job=\"$job_name\", cluster_name=\"$cluster\",service=~\"$node|$^\",ns=~\"$namespace|$^\"}", + "expr": "aerospike_namespace_sindex_mounts_used_pct{job=\"$job_name\", cluster_name=\"$cluster\",service=~\"$node|$^\",ns=~\"$namespace|$^\"}", "hide": false, "interval": "", - "legendFormat": "{{service}}:{{ns}} - Used", + "legendFormat": "{{service}}/{{ns}} - Used", "range": true, - "refId": "A" + "refId": "7_sindex_mounts_used_pct" } ], - "title": "% SIndex - Alloc, Used", + "title": "% SIndex - used ", "type": "timeseries" } ], @@ -1528,7 +1650,7 @@ "h": 1, "w": 24, "x": 0, - "y": 21 + "y": 11 }, "id": 44, "panels": [ @@ -1584,7 +1706,8 @@ "value": 80 } ] - } + }, + "unit": "percent" }, "overrides": [] }, @@ -1594,10 +1717,15 @@ "x": 0, "y": 12 }, - "id": 31, + "id": 72, "options": { "legend": { - "calcs": [], + "calcs": [ + "last", + "min", + "max", + "mean" + ], "displayMode": "table", "placement": "right", "showLegend": true @@ -1614,8 +1742,8 @@ "uid": "${DS_AEROSPIKE_PROMETHEUS}" }, "editorMode": "code", - "expr": "topk($topk_limit, aerospike_namespace_device_free_pct{cluster_name=\"$cluster\", service=~\"$node|$^\", ns=~\"$namespace|$^\"} )", - "legendFormat": "{{service}}:{{ns}} - Device Free", + "expr": "topk($topk_limit, 100 - aerospike_namespace_device_free_pct{cluster_name=\"$cluster\", service=~\"$node|$^\", ns=~\"$namespace|$^\"} )", + "legendFormat": "{{service}}/{{ns}} - Device Used", "range": true, "refId": "device_free" }, @@ -1625,9 +1753,9 @@ "uid": "${DS_AEROSPIKE_PROMETHEUS}" }, "editorMode": "code", - "expr": "topk($topk_limit,aerospike_namespace_device_available_pct {job=\"$job_name\", cluster_name=~\"$cluster\", service=~\"$node|$^\",ns=~\"$namespace|$^\"} )", + "expr": "topk($topk_limit, aerospike_namespace_device_available_pct {job=\"$job_name\", cluster_name=~\"$cluster\", service=~\"$node|$^\",ns=~\"$namespace|$^\"} )", "hide": false, - "legendFormat": "{{service}}:{{ns}} - Device Available", + "legendFormat": "{{service}}/{{ns}} - Device Available", "range": true, "refId": "device_available" }, @@ -1637,9 +1765,9 @@ "uid": "${DS_AEROSPIKE_PROMETHEUS}" }, "editorMode": "code", - "expr": "topk($topk_limit,aerospike_namespace_pmem_free_pct {job=\"$job_name\", cluster_name=~\"$cluster\", service=~\"$node|$^\",ns=~\"$namespace|$^\"})", + "expr": "topk($topk_limit,100 - aerospike_namespace_pmem_free_pct {job=\"$job_name\", cluster_name=~\"$cluster\", service=~\"$node|$^\",ns=~\"$namespace|$^\"})", "hide": false, - "legendFormat": "{{service}}:{{ns}} - Pmem Free", + "legendFormat": "{{service}}/{{ns}} - Pmem Used", "range": true, "refId": "pmem_free" }, @@ -1649,14 +1777,38 @@ "uid": "${DS_AEROSPIKE_PROMETHEUS}" }, "editorMode": "code", - "expr": "topk($topk_limit,aerospike_namespace_pmem_available_pct {job=\"$job_name\", cluster_name=~\"$cluster\", service=~\"$node|$^\",ns=~\"$namespace|$^\"} )", + "expr": "topk($topk_limit, aerospike_namespace_pmem_available_pct {job=\"$job_name\", cluster_name=~\"$cluster\", service=~\"$node|$^\",ns=~\"$namespace|$^\"} )", "hide": false, - "legendFormat": "{{service}}:{{ns}} - Device Available", + "legendFormat": "{{service}}/{{ns}} - Pmem Available", "range": true, "refId": "pmem_available" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_AEROSPIKE_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "topk($topk_limit, aerospike_namespace_data_used_pct {job=\"$job_name\", cluster_name=~\"$cluster\", service=~\"$node|$^\",ns=~\"$namespace|$^\"})", + "hide": false, + "legendFormat": "{{service}}/{{ns}} - Data Used", + "range": true, + "refId": "7.0_data_used" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_AEROSPIKE_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "topk($topk_limit, aerospike_namespace_data_avail_pct {job=\"$job_name\", cluster_name=~\"$cluster\", service=~\"$node|$^\",ns=~\"$namespace|$^\"} )", + "hide": false, + "legendFormat": "{{service}}/{{ns}} - Data Available", + "range": true, + "refId": "7.0_data_available" } ], - "title": "% Device & PMem - Free, Available", + "title": "% Data - used, available (topk)", "type": "timeseries" }, { @@ -1723,13 +1875,14 @@ "x": 12, "y": 12 }, - "id": 19, + "id": 74, "options": { "legend": { "calcs": [ "last", - "mean", - "max" + "min", + "max", + "mean" ], "displayMode": "table", "placement": "right", @@ -1752,12 +1905,12 @@ "hide": false, "instant": false, "interval": "", - "legendFormat": "{{service}} - {{ns}} - Write ", + "legendFormat": "{{service}}/{{ns}} - Write ", "range": true, "refId": "B" } ], - "title": "Latencies > $latency_time_bucket ms", + "title": "Latencie writes > $latency_time_bucket ms", "type": "timeseries" }, { @@ -1823,10 +1976,15 @@ "x": 0, "y": 17 }, - "id": 37, + "id": 76, "options": { "legend": { - "calcs": [], + "calcs": [ + "last", + "min", + "max", + "mean" + ], "displayMode": "table", "placement": "right", "showLegend": true @@ -1844,7 +2002,7 @@ }, "editorMode": "code", "expr": "aerospike_namespace_storage_engine_file_defrag_reads{job=\"$job_name\", cluster_name=~\"$cluster\", service=~\"$node|$^\",ns=~\"$namespace|$^\"}", - "legendFormat": "{{service}}:{{ns}} - File Reads", + "legendFormat": "{{service}}/{{ns}} - File Reads", "range": true, "refId": "file_defrag_reads" }, @@ -1856,7 +2014,7 @@ "editorMode": "code", "expr": "aerospike_namespace_storage_engine_device_defrag_reads{job=\"$job_name\", cluster_name=~\"$cluster\", service=~\"$node|$^\",ns=~\"$namespace|$^\"}", "hide": false, - "legendFormat": "{{service}}:{{ns}} - Device Reads", + "legendFormat": "{{service}}/{{ns}} - Device Reads", "range": true, "refId": "device_defrag_reads" }, @@ -1868,7 +2026,7 @@ "editorMode": "code", "expr": "aerospike_namespace_storage_engine_file_defrag_writes{job=\"$job_name\", cluster_name=~\"$cluster\", service=~\"$node|$^\",ns=~\"$namespace|$^\"}\nor\naerospike_namespace_storage_engine_device_defrag_writes{job=\"$job_name\", cluster_name=~\"$cluster\", service=~\"$node|$^\",ns=~\"$namespace|$^\"}\n", "hide": false, - "legendFormat": "{{service}}:{{ns}} - Writes", + "legendFormat": "{{service}}/{{ns}} - Writes", "range": true, "refId": "file_defrag_writes" }, @@ -1880,7 +2038,7 @@ "editorMode": "code", "expr": "aerospike_namespace_storage_engine_device_defrag_writes{job=\"$job_name\", cluster_name=~\"$cluster\", service=~\"$node|$^\",ns=~\"$namespace|$^\"}\n", "hide": false, - "legendFormat": "{{service}}:{{ns}} - Writes", + "legendFormat": "{{service}}/{{ns}} - Writes", "range": true, "refId": "device_defrag_writes" } @@ -1952,10 +2110,15 @@ "x": 12, "y": 17 }, - "id": 29, + "id": 78, "options": { "legend": { - "calcs": [], + "calcs": [ + "last", + "min", + "max", + "mean" + ], "displayMode": "table", "placement": "right", "showLegend": true @@ -1974,7 +2137,7 @@ "editorMode": "code", "expr": "(\naerospike_namespace_storage_engine_file_defrag_q{job=\"$job_name\", cluster_name=~\"$cluster\", service=~\"$node|$^\",ns=~\"$namespace|$^\"}\nor\naerospike_namespace_storage_engine_device_defrag_q{job=\"$job_name\", cluster_name=~\"$cluster\", service=~\"$node|$^\",ns=~\"$namespace|$^\"}\n)", "hide": false, - "legendFormat": "{{service}}:{{ns}} - Q", + "legendFormat": "{{service}}/{{ns}} - Q", "range": true, "refId": "defrag_q" } @@ -2046,11 +2209,12 @@ "x": 0, "y": 22 }, - "id": 39, + "id": 80, "options": { "legend": { "calcs": [ "last", + "min", "max", "mean" ], @@ -2072,7 +2236,7 @@ "editorMode": "code", "expr": "(aerospike_namespace_nsup_cycle_duration{job=\"$job_name\", cluster_name=~\"$cluster\", service=~\"$node|$^\", ns=~\"$namespace|$^\"})", "hide": false, - "legendFormat": "{{service}}:{{ns}} - Q", + "legendFormat": "{{service}}/{{ns}} ", "range": true, "refId": "defrag_q" } @@ -2090,7 +2254,7 @@ "h": 1, "w": 24, "x": 0, - "y": 22 + "y": 12 }, "id": 42, "panels": [ @@ -2146,7 +2310,8 @@ "value": 80 } ] - } + }, + "unit": "percent" }, "overrides": [] }, @@ -2159,7 +2324,12 @@ "id": 36, "options": { "legend": { - "calcs": [], + "calcs": [ + "last", + "min", + "max", + "mean" + ], "displayMode": "table", "placement": "right", "showLegend": true @@ -2238,7 +2408,8 @@ "value": 80 } ] - } + }, + "unit": "short" }, "overrides": [] }, @@ -2251,7 +2422,12 @@ "id": 56, "options": { "legend": { - "calcs": [], + "calcs": [ + "last", + "min", + "max", + "mean" + ], "displayMode": "table", "placement": "right", "showLegend": true @@ -2269,7 +2445,7 @@ }, "editorMode": "code", "expr": "(aerospike_namespace_index_pressure_dirty_memory {job=\"$job_name\", cluster_name=\"$cluster\", service=~\"$node|$^\", ns=~\"$namespace\"})", - "legendFormat": "{{service}} : {{ns}} : Total Memory", + "legendFormat": "{{service}}/{{ns}} : Total", "range": true, "refId": "A" }, @@ -2281,7 +2457,7 @@ "editorMode": "code", "expr": "(aerospike_namespace_index_pressure_total_memory {job=\"$job_name\", cluster_name=\"$cluster\", service=~\"$node|$^\", ns=~\"$namespace\"})", "hide": false, - "legendFormat": "{{service}} : {{ns}} : Dirty Memory", + "legendFormat": "{{service}}/{{ns}} : Dirty", "range": true, "refId": "B" } @@ -2342,7 +2518,8 @@ "value": 80 } ] - } + }, + "unit": "none" }, "overrides": [] }, @@ -2355,9 +2532,14 @@ "id": 34, "options": { "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", + "calcs": [ + "last", + "min", + "max", + "mean" + ], + "displayMode": "table", + "placement": "right", "showLegend": true }, "tooltip": { @@ -2436,7 +2618,8 @@ "value": 80 } ] - } + }, + "unit": "none" }, "overrides": [] }, @@ -2449,9 +2632,14 @@ "id": 38, "options": { "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", + "calcs": [ + "last", + "min", + "max", + "mean" + ], + "displayMode": "table", + "placement": "right", "showLegend": true }, "tooltip": { @@ -2741,13 +2929,13 @@ ] }, "time": { - "from": "now-6h", + "from": "now-1h", "to": "now" }, "timepicker": {}, "timezone": "", "title": "All Flash", "uid": "LkfaTGC4z", - "version": 2, + "version": 3, "weekStart": "" } \ No newline at end of file