From 05c098cfb8b0fadb982fe198ad0e313b349193eb Mon Sep 17 00:00:00 2001 From: Izzy B Date: Mon, 19 Aug 2024 16:56:18 -0400 Subject: [PATCH 1/4] provisioning for versity gw dashboard --- provisioning/dashboards/influxql.yaml | 25 + .../influxql/Versity S3 Gateway.json | 1497 +++++++++++++++++ 2 files changed, 1522 insertions(+) create mode 100644 provisioning/dashboards/influxql.yaml create mode 100644 provisioning/dashboards/influxql/Versity S3 Gateway.json diff --git a/provisioning/dashboards/influxql.yaml b/provisioning/dashboards/influxql.yaml new file mode 100644 index 0000000..47c01ff --- /dev/null +++ b/provisioning/dashboards/influxql.yaml @@ -0,0 +1,25 @@ +apiVersion: 1 + +providers: + # an unique provider name. Required + - name: 'influxql' + # Org id. Default to 1 + orgId: 1 + # name of the dashboard folder. + folder: 'influxql' + # folder UID. will be automatically generated if not specified + folderUid: '' + # provider type. Default to 'file' + type: file + # disable dashboard deletion + disableDeletion: false + # how often Grafana will scan for changed dashboards + updateIntervalSeconds: 10 + # allow updating provisioned dashboards from the UI + allowUiUpdates: false + options: + # path to dashboard files on disk. Required when using the 'file' type + path: /etc/grafana/provisioning/dashboards/influxql + # use folder names from filesystem to create folders in Grafana + foldersFromFilesStructure: true + diff --git a/provisioning/dashboards/influxql/Versity S3 Gateway.json b/provisioning/dashboards/influxql/Versity S3 Gateway.json new file mode 100644 index 0000000..2f85d94 --- /dev/null +++ b/provisioning/dashboards/influxql/Versity S3 Gateway.json @@ -0,0 +1,1497 @@ +{ + "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": [], + "liveNow": true, + "panels": [ + { + "datasource": { + "type": "influxdb", + "uid": "P3C6603E967DC8568" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "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": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 0 + }, + "id": 1, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "alias": "versitygw_sucess_CompleteMultipartUpload", + "datasource": { + "type": "influxdb", + "uid": "P3C6603E967DC8568" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "0" + ], + "type": "fill" + } + ], + "measurement": "versitygw_success_count", + "orderByTime": "ASC", + "policy": "default", + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + } + ] + ], + "tags": [ + { + "key": "action::tag", + "operator": "=", + "value": "CompleteMultipartUpload" + } + ] + }, + { + "alias": "versitygw_sucess_AbortMultipartUpload", + "datasource": { + "type": "influxdb", + "uid": "P3C6603E967DC8568" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "0" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "versitygw_success_count", + "orderByTime": "ASC", + "policy": "default", + "refId": "B", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + } + ] + ], + "tags": [ + { + "key": "action::tag", + "operator": "=", + "value": "AbortMultipartUpload" + } + ] + }, + { + "alias": "versitygw_sucess_CreateBucket", + "datasource": { + "type": "influxdb", + "uid": "P3C6603E967DC8568" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "0" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "versitygw_success_count", + "orderByTime": "ASC", + "policy": "default", + "refId": "C", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + } + ] + ], + "tags": [ + { + "key": "action::tag", + "operator": "=", + "value": "CreateBucket" + } + ] + }, + { + "alias": "versitygw_sucess_CreateMultipartUpload", + "datasource": { + "type": "influxdb", + "uid": "P3C6603E967DC8568" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "0" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "versitygw_success_count", + "orderByTime": "ASC", + "policy": "default", + "refId": "D", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + } + ] + ], + "tags": [ + { + "key": "action::tag", + "operator": "=", + "value": "CreateMultipartUpload" + } + ] + }, + { + "alias": "versitygw_sucess_DeleteObject", + "datasource": { + "type": "influxdb", + "uid": "P3C6603E967DC8568" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "0" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "versitygw_success_count", + "orderByTime": "ASC", + "policy": "default", + "refId": "E", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + } + ] + ], + "tags": [ + { + "key": "action::tag", + "operator": "=", + "value": "DeleteObject" + } + ] + }, + { + "alias": "versitygw_sucess_GetObject", + "datasource": { + "type": "influxdb", + "uid": "P3C6603E967DC8568" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "0" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "versitygw_success_count", + "orderByTime": "ASC", + "policy": "default", + "refId": "F", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + } + ] + ], + "tags": [ + { + "key": "action::tag", + "operator": "=", + "value": "GetObject" + } + ] + }, + { + "alias": "versitygw_sucess_HeadObject", + "datasource": { + "type": "influxdb", + "uid": "P3C6603E967DC8568" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "0" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "versitygw_success_count", + "orderByTime": "ASC", + "policy": "default", + "refId": "G", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + } + ] + ], + "tags": [ + { + "key": "action::tag", + "operator": "=", + "value": "HeadObject" + } + ] + }, + { + "alias": "versitygw_sucess_ListObjectsV2", + "datasource": { + "type": "influxdb", + "uid": "P3C6603E967DC8568" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "0" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "versitygw_success_count", + "orderByTime": "ASC", + "policy": "default", + "refId": "H", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + } + ] + ], + "tags": [ + { + "key": "action::tag", + "operator": "=", + "value": "ListObjectsV2" + } + ] + }, + { + "alias": "versitygw_sucess_PutObject", + "datasource": { + "type": "influxdb", + "uid": "P3C6603E967DC8568" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "0" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "versitygw_success_count", + "orderByTime": "ASC", + "policy": "default", + "refId": "I", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + } + ] + ], + "tags": [ + { + "key": "action::tag", + "operator": "=", + "value": "PutObject" + } + ] + }, + { + "alias": "versitygw_sucess_UploadPart", + "datasource": { + "type": "influxdb", + "uid": "P3C6603E967DC8568" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "0" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "versitygw_success_count", + "orderByTime": "ASC", + "policy": "default", + "refId": "J", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + } + ] + ], + "tags": [ + { + "key": "action::tag", + "operator": "=", + "value": "UploadPart" + } + ] + } + ], + "title": "Success Sum by Action", + "type": "timeseries" + }, + { + "datasource": { + "type": "influxdb", + "uid": "P3C6603E967DC8568" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "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": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 0 + }, + "id": 3, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "11.1.3", + "targets": [ + { + "alias": "versitygw_failed_createBucket", + "datasource": { + "type": "influxdb", + "uid": "P3C6603E967DC8568" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "0" + ], + "type": "fill" + } + ], + "measurement": "versitygw_failed_count", + "orderByTime": "ASC", + "policy": "default", + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + } + ] + ], + "tags": [ + { + "condition": "AND", + "key": "action::tag", + "operator": "=", + "value": "CreateBucket" + } + ] + }, + { + "alias": "versitygw_failed_deleteObject", + "datasource": { + "type": "influxdb", + "uid": "P3C6603E967DC8568" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "0" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "versitygw_failed_count", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(\"value\") FROM \"versitygw_failed_count\" WHERE (\"action\"::tag = 'DeleteObject') AND $timeFilter GROUP BY time($__interval) fill(null)", + "rawQuery": false, + "refId": "B", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + } + ] + ], + "tags": [ + { + "key": "action::tag", + "operator": "=", + "value": "DeleteObject" + } + ] + }, + { + "datasource": { + "type": "influxdb", + "uid": "P3C6603E967DC8568" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "0" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "versitygw_failed_count", + "orderByTime": "ASC", + "policy": "default", + "refId": "C", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + } + ] + ], + "tags": [ + { + "key": "action::tag", + "operator": "=", + "value": "ActionUnDetected" + } + ] + }, + { + "datasource": { + "type": "influxdb", + "uid": "P3C6603E967DC8568" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "0" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "versitygw_failed_count", + "orderByTime": "ASC", + "policy": "default", + "refId": "D", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + } + ] + ], + "tags": [ + { + "key": "action::tag", + "operator": "=", + "value": "DeleteBucket" + } + ] + }, + { + "datasource": { + "type": "influxdb", + "uid": "P3C6603E967DC8568" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "0" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "versitygw_failed_count", + "orderByTime": "ASC", + "policy": "default", + "refId": "E", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + } + ] + ], + "tags": [ + { + "key": "action::tag", + "operator": "=", + "value": "HeadObject" + } + ] + }, + { + "datasource": { + "type": "influxdb", + "uid": "P3C6603E967DC8568" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "0" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "versitygw_failed_count", + "orderByTime": "ASC", + "policy": "default", + "refId": "F", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + } + ] + ], + "tags": [ + { + "key": "action::tag", + "operator": "=", + "value": "UploadPart" + } + ] + } + ], + "title": "Fail Sum by Action", + "type": "timeseries" + }, + { + "datasource": { + "type": "influxdb", + "uid": "P3C6603E967DC8568" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "fillOpacity": 70, + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineWidth": 1 + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "blue", + "value": 1000 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 8 + }, + "id": 6, + "options": { + "colWidth": 0.89, + "legend": { + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "rowHeight": 0.9, + "showValue": "auto", + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P3C6603E967DC8568" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "versitygw_bytes_written", + "orderByTime": "ASC", + "policy": "default", + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + }, + { + "params": [ + "10s" + ], + "type": "derivative" + } + ] + ], + "tags": [] + } + ], + "title": "Bytes Written Sum", + "type": "status-history" + }, + { + "datasource": { + "type": "influxdb", + "uid": "P3C6603E967DC8568" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "fillOpacity": 70, + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineWidth": 1 + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "blue", + "value": 1000 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 8 + }, + "id": 2, + "options": { + "colWidth": 0.9, + "legend": { + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "rowHeight": 0.9, + "showValue": "auto", + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P3C6603E967DC8568" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "versitygw_bytes_read", + "orderByTime": "ASC", + "policy": "default", + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + }, + { + "params": [ + "10s" + ], + "type": "derivative" + } + ] + ], + "tags": [] + } + ], + "title": "Bytes Read Sum", + "type": "status-history" + }, + { + "datasource": { + "type": "influxdb", + "uid": "P3C6603E967DC8568" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "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": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 16 + }, + "id": 4, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "right", + "showLegend": false + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "alias": "versitygw_object_created_CompleteMultipartUpload", + "datasource": { + "type": "influxdb", + "uid": "P3C6603E967DC8568" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "0" + ], + "type": "fill" + } + ], + "measurement": "versitygw_object_created_count", + "orderByTime": "ASC", + "policy": "default", + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + } + ] + ], + "tags": [ + { + "key": "action::tag", + "operator": "=", + "value": "CompleteMultipartUpload" + } + ] + }, + { + "alias": "versitygw_object_created_PutObject", + "datasource": { + "type": "influxdb", + "uid": "P3C6603E967DC8568" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "0" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "versitygw_object_created_count", + "orderByTime": "ASC", + "policy": "default", + "refId": "B", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + } + ] + ], + "tags": [ + { + "key": "action::tag", + "operator": "=", + "value": "PutObject" + } + ] + } + ], + "title": "Object Created Sum", + "type": "timeseries" + }, + { + "datasource": { + "type": "influxdb", + "uid": "P3C6603E967DC8568" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "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": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 16 + }, + "id": 5, + "options": { + "legend": { + "calcs": [], + "displayMode": "hidden", + "placement": "right", + "showLegend": false + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P3C6603E967DC8568" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "0" + ], + "type": "fill" + } + ], + "measurement": "versitygw_object_removed_count", + "orderByTime": "ASC", + "policy": "default", + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + } + ] + ], + "tags": [ + { + "key": "action::tag", + "operator": "=", + "value": "DeleteObject" + } + ] + } + ], + "title": "Object Removed Sum", + "type": "timeseries" + } + ], + "refresh": "", + "schemaVersion": 39, + "tags": [], + "templating": { + "list": [] + }, + "time": { + "from": "2024-08-12T14:31:56.524Z", + "to": "2024-08-13T12:28:08.470Z" + }, + "timepicker": {}, + "timezone": "browser", + "title": "Versity S3 Gateway", + "uid": "cdupnlwv714hsd", + "version": 2, + "weekStart": "" +} \ No newline at end of file From cd7076ccc48f3385d3a7e745c5bcda4361d337b2 Mon Sep 17 00:00:00 2001 From: Greg Cymbalski Date: Mon, 19 Aug 2024 15:35:36 -0700 Subject: [PATCH 2/4] For some reason, recreating the panels got around things- types changed somewhere --- .../influxql/Versity S3 Gateway.json | 103 +++++++++++------- 1 file changed, 66 insertions(+), 37 deletions(-) diff --git a/provisioning/dashboards/influxql/Versity S3 Gateway.json b/provisioning/dashboards/influxql/Versity S3 Gateway.json index 2f85d94..d9aba02 100644 --- a/provisioning/dashboards/influxql/Versity S3 Gateway.json +++ b/provisioning/dashboards/influxql/Versity S3 Gateway.json @@ -18,7 +18,6 @@ "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, - "id": 2, "links": [], "liveNow": true, "panels": [ @@ -962,28 +961,51 @@ "fieldConfig": { "defaults": { "color": { - "mode": "thresholds" + "mode": "palette-classic" }, "custom": { - "fillOpacity": 70, + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, - "lineWidth": 1 + "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": "red", + "color": "green", "value": null }, { - "color": "blue", - "value": 1000 + "color": "red", + "value": 80 } ] } @@ -998,14 +1020,12 @@ }, "id": 6, "options": { - "colWidth": 0.89, "legend": { + "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, - "rowHeight": 0.9, - "showValue": "auto", "tooltip": { "mode": "single", "sort": "none" @@ -1047,12 +1067,6 @@ { "params": [], "type": "sum" - }, - { - "params": [ - "10s" - ], - "type": "derivative" } ] ], @@ -1060,7 +1074,7 @@ } ], "title": "Bytes Written Sum", - "type": "status-history" + "type": "timeseries" }, { "datasource": { @@ -1070,28 +1084,51 @@ "fieldConfig": { "defaults": { "color": { - "mode": "thresholds" + "mode": "palette-classic" }, "custom": { - "fillOpacity": 70, + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, - "lineWidth": 1 + "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": "red", + "color": "green", "value": null }, { - "color": "blue", - "value": 1000 + "color": "red", + "value": 80 } ] } @@ -1104,16 +1141,14 @@ "x": 12, "y": 8 }, - "id": 2, + "id": 7, "options": { - "colWidth": 0.9, "legend": { + "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, - "rowHeight": 0.9, - "showValue": "auto", "tooltip": { "mode": "single", "sort": "none" @@ -1155,12 +1190,6 @@ { "params": [], "type": "sum" - }, - { - "params": [ - "10s" - ], - "type": "derivative" } ] ], @@ -1168,7 +1197,7 @@ } ], "title": "Bytes Read Sum", - "type": "status-history" + "type": "timeseries" }, { "datasource": { @@ -1485,13 +1514,13 @@ "list": [] }, "time": { - "from": "2024-08-12T14:31:56.524Z", - "to": "2024-08-13T12:28:08.470Z" + "from": "now-15m", + "to": "now" }, "timepicker": {}, "timezone": "browser", "title": "Versity S3 Gateway", "uid": "cdupnlwv714hsd", - "version": 2, + "version": 1, "weekStart": "" } \ No newline at end of file From f6438eb3f431eb5f4db4755a0a4b9f09b77a1f21 Mon Sep 17 00:00:00 2001 From: Greg Cymbalski Date: Mon, 19 Aug 2024 16:19:08 -0700 Subject: [PATCH 3/4] Allow UI updates to provisioned dashboards by default --- provisioning/dashboards/influxql.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/provisioning/dashboards/influxql.yaml b/provisioning/dashboards/influxql.yaml index 47c01ff..25d96ae 100644 --- a/provisioning/dashboards/influxql.yaml +++ b/provisioning/dashboards/influxql.yaml @@ -16,7 +16,7 @@ providers: # how often Grafana will scan for changed dashboards updateIntervalSeconds: 10 # allow updating provisioned dashboards from the UI - allowUiUpdates: false + allowUiUpdates: true options: # path to dashboard files on disk. Required when using the 'file' type path: /etc/grafana/provisioning/dashboards/influxql From 8869bdbd5fd857e2c246f7282f5e64865a832d11 Mon Sep 17 00:00:00 2001 From: Izzy B Date: Thu, 22 Aug 2024 14:31:59 -0400 Subject: [PATCH 4/4] Added annotations, shared crosshairs, changed bytes units --- .../influxql/Versity S3 Gateway.json | 32 +++++++++++++------ 1 file changed, 22 insertions(+), 10 deletions(-) diff --git a/provisioning/dashboards/influxql/Versity S3 Gateway.json b/provisioning/dashboards/influxql/Versity S3 Gateway.json index d9aba02..0888f31 100644 --- a/provisioning/dashboards/influxql/Versity S3 Gateway.json +++ b/provisioning/dashboards/influxql/Versity S3 Gateway.json @@ -12,12 +12,22 @@ "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations & Alerts", "type": "dashboard" + }, + { + "datasource": { + "type": "datasource", + "uid": "grafana" + }, + "enable": true, + "iconColor": "red", + "name": "Gateway Annotations" } ] }, "editable": true, "fiscalYearStartMonth": 0, - "graphTooltip": 0, + "graphTooltip": 1, + "id": 1, "links": [], "liveNow": true, "panels": [ @@ -38,7 +48,7 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, - "drawStyle": "line", + "drawStyle": "points", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { @@ -600,7 +610,7 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, - "drawStyle": "line", + "drawStyle": "points", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { @@ -1008,7 +1018,8 @@ "value": 80 } ] - } + }, + "unit": "bytes" }, "overrides": [] }, @@ -1131,7 +1142,8 @@ "value": 80 } ] - } + }, + "unit": "bytes" }, "overrides": [] }, @@ -1216,7 +1228,7 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, - "drawStyle": "line", + "drawStyle": "points", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { @@ -1394,7 +1406,7 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, - "drawStyle": "line", + "drawStyle": "points", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { @@ -1507,20 +1519,20 @@ "type": "timeseries" } ], - "refresh": "", + "refresh": "10s", "schemaVersion": 39, "tags": [], "templating": { "list": [] }, "time": { - "from": "now-15m", + "from": "now-30m", "to": "now" }, "timepicker": {}, "timezone": "browser", "title": "Versity S3 Gateway", "uid": "cdupnlwv714hsd", - "version": 1, + "version": 4, "weekStart": "" } \ No newline at end of file