diff --git a/dashboards/intertwin/intertwin.json b/dashboards/intertwin/intertwin.json new file mode 100644 index 0000000..18c5230 --- /dev/null +++ b/dashboards/intertwin/intertwin.json @@ -0,0 +1,1274 @@ +{ + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": { + "type": "datasource", + "uid": "grafana" + }, + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "target": { + "limit": 100, + "matchAny": false, + "tags": [], + "type": "dashboard" + }, + "type": "dashboard" + } + ] + }, + "description": "", + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 0, + "id": 17, + "links": [ + { + "asDropdown": false, + "icon": "external link", + "includeVars": false, + "tags": [ + "main" + ], + "title": "Navigate", + "type": "dashboards" + }, + { + "icon": "info", + "tags": [], + "targetBlank": true, + "title": "InterTwin", + "type": "link", + "url": "https://www.intertwin.eu/" + } + ], + "liveNow": false, + "panels": [ + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 23, + "panels": [], + "title": "InterTwin Statistics", + "type": "row" + }, + { + "datasource": { + "type": "mysql", + "uid": "P44297857CBA41E6F" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "VM Instances, monthly", + "axisPlacement": "left", + "axisSoftMin": 0, + "fillOpacity": 80, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineWidth": 1, + "scaleDistribution": { + "type": "linear" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 1 + }, + "id": 15, + "options": { + "barRadius": 0, + "barWidth": 0.67, + "fullHighlight": false, + "groupWidth": 0.7, + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "orientation": "vertical", + "showValue": "never", + "stacking": "normal", + "tooltip": { + "mode": "multi", + "sort": "none" + }, + "xTickLabelRotation": 0, + "xTickLabelSpacing": 0 + }, + "targets": [ + { + "dataset": "intertwin_cloud", + "datasource": { + "type": "mysql", + "uid": "P44297857CBA41E6F" + }, + "editorMode": "code", + "format": "time_series", + "rawQuery": true, + "rawSql": "SELECT \r\n TIMESTAMP(STR_TO_DATE(CONCAT(Year,'-',Month,'-',1,' 00:00:00'),'%Y-%m-%d %T')) as time,\r\n SUM(NumberOfVMs) as value,\r\n VO as metric\r\nFROM VCloudSummaries\r\nWHERE \r\n VO IN ($VO) AND\r\n VOGroup IN ($VOGroup) AND\r\n SiteName IN ($Site)\r\nGROUP BY time, metric\r\nHAVING $__timeFilter(time)\r\nORDER BY time", + "refId": "A", + "sql": { + "columns": [ + { + "name": "COUNT", + "parameters": [ + { + "name": "NumberOfVMs", + "type": "functionParameter" + } + ], + "type": "function" + } + ], + "groupBy": [ + { + "property": { + "name": "Month", + "type": "string" + }, + "type": "groupBy" + } + ], + "limit": 50 + }, + "table": "VCloudSummaries" + } + ], + "title": "Number of VM (Instances, per mensis)", + "type": "barchart" + }, + { + "datasource": { + "type": "mysql", + "uid": "P44297857CBA41E6F" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + } + }, + "mappings": [], + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 1 + }, + "id": 19, + "options": { + "legend": { + "displayMode": "list", + "placement": "right", + "showLegend": true, + "values": [ + "value", + "percent" + ] + }, + "pieType": "pie", + "reduceOptions": { + "calcs": [ + "sum" + ], + "fields": "", + "values": false + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "dataset": "intertwin_cloud", + "datasource": { + "type": "mysql", + "uid": "P44297857CBA41E6F" + }, + "editorMode": "code", + "format": "time_series", + "rawQuery": true, + "rawSql": "SELECT \r\n TIMESTAMP(STR_TO_DATE(CONCAT(Year,'-',Month,'-',1,' 00:00:00'),'%Y-%m-%d %T')) as time,\r\n SiteName as metric,\r\n NumberOfVMs\r\nFROM VCloudSummaries\r\nWHERE \r\n VO IN ($VO) AND\r\n VOGroup IN ($VOGroup) AND\r\n SiteName IN ($Site)\r\nGROUP BY time, metric\r\nHAVING $__timeFilter(time)", + "refId": "A", + "sql": { + "columns": [ + { + "name": "SUM", + "parameters": [ + { + "name": "CpuCount", + "type": "functionParameter" + } + ], + "type": "function" + } + ], + "groupBy": [ + { + "property": { + "name": "VO", + "type": "string" + }, + "type": "groupBy" + } + ], + "limit": 50 + }, + "table": "VCloudSummaries" + } + ], + "title": "Total Number of VMs (by Provider)", + "type": "piechart" + }, + { + "datasource": { + "type": "mysql", + "uid": "P44297857CBA41E6F" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "Disk (GB)", + "axisPlacement": "left", + "axisSoftMin": 0, + "fillOpacity": 80, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineWidth": 1, + "scaleDistribution": { + "type": "linear" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 9 + }, + "id": 16, + "options": { + "barRadius": 0, + "barWidth": 0.67, + "fullHighlight": false, + "groupWidth": 0.7, + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "orientation": "vertical", + "showValue": "never", + "stacking": "normal", + "tooltip": { + "mode": "multi", + "sort": "none" + }, + "xTickLabelRotation": 0, + "xTickLabelSpacing": 0 + }, + "targets": [ + { + "dataset": "intertwin_cloud", + "datasource": { + "type": "mysql", + "uid": "P44297857CBA41E6F" + }, + "editorMode": "code", + "format": "time_series", + "rawQuery": true, + "rawSql": "SELECT \r\n TIMESTAMP(STR_TO_DATE(CONCAT(Year,'-',Month,'-',1,' 00:00:00'),'%Y-%m-%d %T')) as time,\r\n SUM(Disk)/1000000000 as value,\r\n VO as metric\r\nFROM VCloudSummaries\r\nWHERE \r\n VO IN ($VO) AND\r\n VOGroup IN ($VOGroup) AND\r\n SiteName IN ($Site)\r\nGROUP BY time, metric\r\nHAVING $__timeFilter(time)\r\nORDER BY time", + "refId": "A", + "sql": { + "columns": [ + { + "name": "COUNT", + "parameters": [ + { + "name": "NumberOfVMs", + "type": "functionParameter" + } + ], + "type": "function" + } + ], + "groupBy": [ + { + "property": { + "name": "Month", + "type": "string" + }, + "type": "groupBy" + } + ], + "limit": 50 + }, + "table": "VCloudSummaries" + } + ], + "title": "Disk Used (GB, per mensis)", + "type": "barchart" + }, + { + "datasource": { + "type": "mysql", + "uid": "P44297857CBA41E6F" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + } + }, + "mappings": [], + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 9 + }, + "id": 20, + "options": { + "legend": { + "displayMode": "list", + "placement": "right", + "showLegend": true, + "values": [ + "value", + "percent" + ] + }, + "pieType": "pie", + "reduceOptions": { + "calcs": [ + "sum" + ], + "fields": "", + "values": false + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "dataset": "intertwin_cloud", + "datasource": { + "type": "mysql", + "uid": "P44297857CBA41E6F" + }, + "editorMode": "code", + "format": "time_series", + "rawQuery": true, + "rawSql": "SELECT \r\n TIMESTAMP(STR_TO_DATE(CONCAT(Year,'-',Month,'-',1,' 00:00:00'),'%Y-%m-%d %T')) as time,\r\n SiteName as metric,\r\n Disk\r\nFROM VCloudSummaries\r\nWHERE \r\n VO IN ($VO) AND\r\n VOGroup IN ($VOGroup) AND\r\n SiteName IN ($Site)\r\nGROUP BY time, metric\r\nHAVING $__timeFilter(time)", + "refId": "A", + "sql": { + "columns": [ + { + "name": "SUM", + "parameters": [ + { + "name": "CpuCount", + "type": "functionParameter" + } + ], + "type": "function" + } + ], + "groupBy": [ + { + "property": { + "name": "VO", + "type": "string" + }, + "type": "groupBy" + } + ], + "limit": 50 + }, + "table": "VCloudSummaries" + } + ], + "title": "Total Disk Used (by Provider)", + "type": "piechart" + }, + { + "datasource": { + "type": "mysql", + "uid": "P44297857CBA41E6F" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "Memory (GB)", + "axisPlacement": "left", + "axisSoftMin": 0, + "fillOpacity": 80, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineWidth": 1, + "scaleDistribution": { + "type": "linear" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 17 + }, + "id": 17, + "options": { + "barRadius": 0, + "barWidth": 0.67, + "fullHighlight": false, + "groupWidth": 0.7, + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "orientation": "vertical", + "showValue": "never", + "stacking": "normal", + "tooltip": { + "mode": "multi", + "sort": "none" + }, + "xTickLabelRotation": 0, + "xTickLabelSpacing": 0 + }, + "targets": [ + { + "dataset": "intertwin_cloud", + "datasource": { + "type": "mysql", + "uid": "P44297857CBA41E6F" + }, + "editorMode": "code", + "format": "time_series", + "rawQuery": true, + "rawSql": "SELECT \r\n TIMESTAMP(STR_TO_DATE(CONCAT(Year,'-',Month,'-',1,' 00:00:00'),'%Y-%m-%d %T')) as time,\r\n SUM(Memory)/1000000000 as value,\r\n VO as metric\r\nFROM VCloudSummaries\r\nWHERE \r\n VO IN ($VO) AND\r\n VOGroup IN ($VOGroup) AND\r\n SiteName IN ($Site)\r\nGROUP BY time, metric\r\nHAVING $__timeFilter(time)\r\nORDER BY time", + "refId": "A", + "sql": { + "columns": [ + { + "name": "COUNT", + "parameters": [ + { + "name": "NumberOfVMs", + "type": "functionParameter" + } + ], + "type": "function" + } + ], + "groupBy": [ + { + "property": { + "name": "Month", + "type": "string" + }, + "type": "groupBy" + } + ], + "limit": 50 + }, + "table": "VCloudSummaries" + } + ], + "title": "Memory Used (GB, per mensis)", + "type": "barchart" + }, + { + "datasource": { + "type": "mysql", + "uid": "P44297857CBA41E6F" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + } + }, + "mappings": [], + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 17 + }, + "id": 21, + "options": { + "legend": { + "displayMode": "list", + "placement": "right", + "showLegend": true, + "values": [ + "value", + "percent" + ] + }, + "pieType": "pie", + "reduceOptions": { + "calcs": [ + "sum" + ], + "fields": "", + "values": false + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "dataset": "intertwin_cloud", + "datasource": { + "type": "mysql", + "uid": "P44297857CBA41E6F" + }, + "editorMode": "code", + "format": "time_series", + "rawQuery": true, + "rawSql": "SELECT \r\n TIMESTAMP(STR_TO_DATE(CONCAT(Year,'-',Month,'-',1,' 00:00:00'),'%Y-%m-%d %T')) as time,\r\n SiteName as metric,\r\n Memory\r\nFROM VCloudSummaries\r\nWHERE \r\n VO IN ($VO) AND\r\n VOGroup IN ($VOGroup) AND\r\n SiteName IN ($Site)\r\nGROUP BY time, metric\r\nHAVING $__timeFilter(time)", + "refId": "A", + "sql": { + "columns": [ + { + "name": "SUM", + "parameters": [ + { + "name": "CpuCount", + "type": "functionParameter" + } + ], + "type": "function" + } + ], + "groupBy": [ + { + "property": { + "name": "VO", + "type": "string" + }, + "type": "groupBy" + } + ], + "limit": 50 + }, + "table": "VCloudSummaries" + } + ], + "title": "Total Memory Used (by Provider)", + "type": "piechart" + }, + { + "datasource": { + "type": "mysql", + "uid": "P44297857CBA41E6F" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "Number of CPUs, monthly", + "axisPlacement": "left", + "axisSoftMin": 0, + "fillOpacity": 80, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineWidth": 1, + "scaleDistribution": { + "type": "linear" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 25 + }, + "id": 18, + "options": { + "barRadius": 0, + "barWidth": 0.67, + "fullHighlight": false, + "groupWidth": 0.7, + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "orientation": "vertical", + "showValue": "never", + "stacking": "normal", + "tooltip": { + "mode": "multi", + "sort": "none" + }, + "xTickLabelRotation": 0, + "xTickLabelSpacing": 0 + }, + "targets": [ + { + "dataset": "intertwin_cloud", + "datasource": { + "type": "mysql", + "uid": "P44297857CBA41E6F" + }, + "editorMode": "code", + "format": "time_series", + "rawQuery": true, + "rawSql": "SELECT \r\n TIMESTAMP(STR_TO_DATE(CONCAT(Year,'-',Month,'-',1,' 00:00:00'),'%Y-%m-%d %T')) as time,\r\n SUM(CpuCount) as value,\r\n VO as metric\r\nFROM VCloudSummaries\r\nWHERE \r\n VO IN ($VO) AND\r\n VOGroup IN ($VOGroup) AND\r\n SiteName IN ($Site)\r\nGROUP BY time, metric\r\nHAVING $__timeFilter(time)\r\nORDER BY time", + "refId": "A", + "sql": { + "columns": [ + { + "name": "COUNT", + "parameters": [ + { + "name": "NumberOfVMs", + "type": "functionParameter" + } + ], + "type": "function" + } + ], + "groupBy": [ + { + "property": { + "name": "Month", + "type": "string" + }, + "type": "groupBy" + } + ], + "limit": 50 + }, + "table": "VCloudSummaries" + } + ], + "title": "CPU Allocated (CPUs, per mensis)", + "type": "barchart" + }, + { + "datasource": { + "type": "mysql", + "uid": "P44297857CBA41E6F" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + } + }, + "mappings": [], + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 25 + }, + "id": 22, + "options": { + "legend": { + "displayMode": "list", + "placement": "right", + "showLegend": true, + "values": [ + "value", + "percent" + ] + }, + "pieType": "pie", + "reduceOptions": { + "calcs": [ + "sum" + ], + "fields": "", + "values": false + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "dataset": "intertwin_cloud", + "datasource": { + "type": "mysql", + "uid": "P44297857CBA41E6F" + }, + "editorMode": "code", + "format": "time_series", + "rawQuery": true, + "rawSql": "SELECT \r\n TIMESTAMP(STR_TO_DATE(CONCAT(Year,'-',Month,'-',1,' 00:00:00'),'%Y-%m-%d %T')) as time,\r\n SiteName as metric,\r\n CpuCount\r\nFROM VCloudSummaries\r\nWHERE \r\n VO IN ($VO) AND\r\n VOGroup IN ($VOGroup) AND\r\n SiteName IN ($Site)\r\nGROUP BY time, metric\r\nHAVING $__timeFilter(time)", + "refId": "A", + "sql": { + "columns": [ + { + "name": "SUM", + "parameters": [ + { + "name": "CpuCount", + "type": "functionParameter" + } + ], + "type": "function" + } + ], + "groupBy": [ + { + "property": { + "name": "VO", + "type": "string" + }, + "type": "groupBy" + } + ], + "limit": 50 + }, + "table": "VCloudSummaries" + } + ], + "title": "Total Number of CPUs (by Provider)", + "type": "piechart" + }, + { + "aliasColors": { + "AENEAS": "#f58231", + "Allocation": "#B877D9", + "CCFE": "#469990", + "CCP4": "#42dbb7", + "CLF": "#FF00AA", + "Capacity": "#629E51", + "Diamond": "#737373", + "EUCLID": "#bfef45", + "ISIS": "#4F8F23", + "LSST": "#8bbaf0", + "RAL-LCG2": "#AA00FF", + "UK-CAM-CUMULUS": "#35586C", + "UKI-LT2-Brunel": "#aaffc3", + "UKI-LT2-IC-HEP": "#FFF899", + "UKI-LT2-QMUL": "#FF7F00", + "UKI-LT2-RHUL": "#800000", + "UKI-NORTHGRID-LANCS-HEP": "#EDB9B9", + "UKI-NORTHGRID-LIV-HEP": "#BFFF00", + "UKI-NORTHGRID-MAN-HEP": "#00EAFF", + "UKI-NORTHGRID-SHEF-HEP": "#FFD400", + "UKI-SCOTGRID-ECDF": "#0095FF", + "UKI-SCOTGRID-GLASGOW": "#000075", + "UKI-SOUTHGRID-BHAM-HEP": "#f032e6", + "UKI-SOUTHGRID-BRIS-HEP": "#6AFF00", + "UKI-SOUTHGRID-CAM-HEP": "#808000", + "UKI-SOUTHGRID-OX-HEP": "#6B238F", + "UKI-SOUTHGRID-RALPP": "#4F8F23", + "casu": "#F0FFFF", + "ccfe": "#469990", + "clas12": "#e04848", + "cta": "#23628F", + "dirac": "#FFA6B0", + "dune": "#8F2323", + "eMERLIN": "#ffd8b1", + "eucliduk.net": "#bfef45", + "gaia": "#B7DBAB", + "gaia-dev": "#B7DBAB", + "gaia-prod": "#B7DBAB", + "gaia-test": "#B7DBAB", + "iris.ac.uk": "#6D1F62", + "jintrac": "#E24D42", + "lsst": "#8bbaf0", + "lz": "#E0B400", + "ral-cloud": "#E02F44", + "ska": "#DCB9ED", + "skatelescope.eu": "#DCB9ED", + "vcycle": "#8A2BE2", + "virgo": "#8F6A23", + "vo.cta.in2p3.fr": "#23628F" + }, + "bars": true, + "dashLength": 10, + "dashes": false, + "datasource": { + "type": "mysql", + "uid": "P44297857CBA41E6F" + }, + "fieldConfig": { + "defaults": { + "links": [ + { + "targetBlank": true, + "title": "Activity Drilldown", + "url": "../d/TfxgjgJZk/activity-view?&var-All_Sites=All&var-All_VOs=${__series.name}" + } + ] + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 12, + "w": 24, + "x": 0, + "y": 33 + }, + "hiddenSeries": false, + "id": 10, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "hideEmpty": false, + "hideZero": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false + }, + "lines": false, + "linewidth": 1, + "links": [], + "nullPointMode": "null as zero", + "options": { + "alertThreshold": true + }, + "paceLength": 10, + "percentage": false, + "pluginVersion": "10.2.3", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [ + { + "$$hashKey": "object:646", + "alias": "Capacity", + "bars": false, + "fill": 0, + "lines": true, + "linewidth": 2, + "stack": false, + "steppedLine": true + }, + { + "$$hashKey": "object:330", + "alias": "Allocation", + "bars": false, + "fill": 0, + "lines": true, + "linewidth": 2, + "stack": false, + "steppedLine": true + }, + { + "$$hashKey": "object:181", + "alias": "Estimated Total Usage", + "color": "#3a7cc780", + "stack": false + } + ], + "spaceLength": 10, + "stack": true, + "steppedLine": false, + "targets": [ + { + "datasource": { + "type": "mysql", + "uid": "P44297857CBA41E6F" + }, + "editorMode": "code", + "format": "time_series", + "group": [], + "hide": false, + "metricColumn": "none", + "rawQuery": true, + "rawSql": "SELECT\r\n TIMESTAMP(STR_TO_DATE(CONCAT(Year,'-',Month,'-',1,' 00:00:00'),'%Y-%m-%d %T')) as time,\r\n VO as metric,\r\n SUM((WallDuration*IF(CpuCount=0,1,CpuCount))/(DAYOFMONTH(LAST_DAY(STR_TO_DATE(CONCAT(Year,'-',Month,'-',1,' 00:00:00'),'%Y-%m-%d %T')))*86400)) as value\r\nFROM VCloudSummaries\r\nWHERE \r\n VO IN ($VO) AND\r\n VOGroup IN ($VOGroup) AND\r\n SiteName IN ($Site)\r\nGROUP BY time, metric\r\nHAVING $__timeFilter(time)\r\nORDER BY time", + "refId": "A", + "select": [ + [ + { + "params": [ + "SiteID" + ], + "type": "column" + } + ] + ], + "sql": { + "columns": [ + { + "parameters": [], + "type": "function" + } + ], + "groupBy": [ + { + "property": { + "type": "string" + }, + "type": "groupBy" + } + ], + "limit": 50 + }, + "table": "HybridSuperSummaries", + "timeColumn": "UpdateTime", + "timeColumnType": "timestamp", + "where": [ + { + "name": "$__timeFilter", + "params": [], + "type": "macro" + } + ] + } + ], + "thresholds": [], + "timeRegions": [], + "title": "Average Core Usage by Activity and Month", + "tooltip": { + "shared": false, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ + { + "$$hashKey": "object:663", + "format": "short", + "label": "Elapsed Time * Number of Processors (Months)", + "logBase": 1, + "show": true + }, + { + "$$hashKey": "object:664", + "format": "short", + "label": "", + "logBase": 1, + "show": true + } + ], + "yaxis": { + "align": false + } + } + ], + "refresh": false, + "revision": 1, + "schemaVersion": 39, + "tags": [ + "main" + ], + "templating": { + "list": [ + { + "current": { + "selected": false, + "text": [ + "All" + ], + "value": [ + "$__all" + ] + }, + "datasource": { + "type": "mysql", + "uid": "P44297857CBA41E6F" + }, + "definition": "SELECT DISTINCT name FROM Sites;", + "hide": 0, + "includeAll": true, + "label": "Site", + "multi": true, + "name": "Site", + "options": [], + "query": "SELECT DISTINCT name FROM Sites;", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "current": { + "selected": false, + "text": [ + "All" + ], + "value": [ + "$__all" + ] + }, + "datasource": { + "type": "mysql", + "uid": "P44297857CBA41E6F" + }, + "definition": "SELECT * FROM VOs", + "hide": 0, + "includeAll": true, + "label": "Activity", + "multi": true, + "name": "VO", + "options": [], + "query": "SELECT * FROM VOs", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "current": { + "selected": false, + "text": [ + "All" + ], + "value": [ + "$__all" + ] + }, + "datasource": { + "type": "mysql", + "uid": "P44297857CBA41E6F" + }, + "definition": "SELECT VOGroup FROM VCloudSummaries WHERE VO in ($VO)", + "hide": 0, + "includeAll": true, + "label": "Sub-Activity", + "multi": true, + "name": "VOGroup", + "options": [], + "query": "SELECT VOGroup FROM VCloudSummaries WHERE VO in ($VO)", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + } + ] + }, + "time": { + "from": "2023-01-01T00:00:00.000Z", + "to": "2024-03-08T16:25:06.251Z" + }, + "timepicker": { + "refresh_intervals": [ + "5s", + "10s", + "30s", + "1m", + "5m", + "15m", + "30m", + "1h", + "2h", + "1d" + ] + }, + "timezone": "", + "title": "InterTwin Accounting Dashboard", + "uid": "feTpkMumk", + "version": 10, + "weekStart": "" +} + diff --git a/provisioning/dashboards/intertwin.yml b/provisioning/dashboards/intertwin.yml new file mode 100644 index 0000000..d185628 --- /dev/null +++ b/provisioning/dashboards/intertwin.yml @@ -0,0 +1,11 @@ +apiVersion: 1 + +providers: +- name: InterTwin Accounting Dashboard + folder: 'intertwin' + type: file + disableDeletion: true + allowUiUpdates: false + updateIntervalSeconds: 60 #how often Grafana will scan for changed dashboards + options: + path: /var/lib/grafana/dashboards/intertwin/intertwin.json diff --git a/provisioning/datasources/intertwin.yml b/provisioning/datasources/intertwin.yml new file mode 100644 index 0000000..a900bc2 --- /dev/null +++ b/provisioning/datasources/intertwin.yml @@ -0,0 +1,10 @@ +apiVersion: 1 + +datasources: + - name: InterTwin Cloud MySQL Database + type: mysql + url: + database: + user: intertwin + secureJsonData: + password: $__file{/etc/grafana/secrets/apel_db_pwd}