Loading deploy/tfs.sh +3 −3 Original line number Diff line number Diff line Loading @@ -486,11 +486,11 @@ if [[ "$TFS_COMPONENTS" == *"webui"* ]]; then curl -X POST ${GRAFANA_URL_UPDATED}/api/user/stars/dashboard/${DASHBOARD_ID} echo # Dashboard: Device ConfigureDevice Details curl -X POST -H "Content-Type: application/json" -d '@src/webui/grafana_prom_device_config_exec_details.json' \ # Dashboard: Device Execution Details curl -X POST -H "Content-Type: application/json" -d '@src/webui/grafana_prom_device_exec_details.json' \ ${GRAFANA_URL_UPDATED}/api/dashboards/db echo DASHBOARD_URL="${GRAFANA_URL_UPDATED}/api/dashboards/uid/tfs-dev-confdev" DASHBOARD_URL="${GRAFANA_URL_UPDATED}/api/dashboards/uid/tfs-dev-exec" DASHBOARD_ID=$(curl -s "${DASHBOARD_URL}" | jq '.dashboard.id') curl -X POST ${GRAFANA_URL_UPDATED}/api/user/stars/dashboard/${DASHBOARD_ID} echo Loading src/webui/grafana_prom_device_exec_details.json +72 −27 Original line number Diff line number Diff line Loading @@ -25,8 +25,8 @@ "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, "id": 6, "iteration": 1682697941785, "id": null, "iteration": 1683036452435, "links": [], "liveNow": false, "panels": [ Loading @@ -43,7 +43,7 @@ "dataFormat": "tsbuckets", "datasource": { "type": "prometheus", "uid": "b1BgiIsVz" "uid": "prometheus" }, "gridPos": { "h": 22, Loading @@ -65,15 +65,17 @@ { "datasource": { "type": "prometheus", "uid": "b1BgiIsVz" "uid": "prometheus" }, "editorMode": "code", "exemplar": true, "expr": "sum(\r\n max_over_time(tfs_device_exec_details_[[method]]_histogram_duration_bucket{pod=~\"[[pod]]\", step=~\"[[step]]\"}[1m]) -\r\n min_over_time(tfs_device_exec_details_[[method]]_histogram_duration_bucket{pod=~\"[[pod]]\", step=~\"[[step]]\"}[1m])\r\n) by (le)", "expr": "sum(\r\n max_over_time(tfs_device_execution_details_histogram_duration_bucket{driver=~\"[[driver]]\", operation=~\"[[operation]]\", step=~\"[[step]]\"}[1m]) -\r\n min_over_time(tfs_device_execution_details_histogram_duration_bucket{driver=~\"[[driver]]\", operation=~\"[[operation]]\", step=~\"[[step]]\"}[1m])\r\n) by (le)", "format": "heatmap", "instant": false, "interval": "1m", "intervalFactor": 1, "legendFormat": "{{le}}", "range": true, "refId": "A" } ], Loading @@ -94,7 +96,7 @@ "yBucketBound": "auto" } ], "refresh": "", "refresh": "5s", "schemaVersion": 36, "style": "dark", "tags": [], Loading @@ -113,17 +115,52 @@ }, "datasource": { "type": "prometheus", "uid": "b1BgiIsVz" "uid": "prometheus" }, "definition": "label_values(tfs_device_execution_details_histogram_duration_bucket, pod)", "definition": "label_values(tfs_device_execution_details_histogram_duration_bucket, operation)", "hide": 0, "includeAll": true, "label": "Pod", "label": "Operation", "multi": true, "name": "pod", "name": "operation", "options": [], "query": { "query": "label_values(tfs_device_execution_details_histogram_duration_bucket, pod)", "query": "label_values(tfs_device_execution_details_histogram_duration_bucket, operation)", "refId": "StandardVariableQuery" }, "refresh": 2, "regex": "", "skipUrlSync": false, "sort": 0, "tagValuesQuery": "", "tagsQuery": "", "type": "query", "useTags": false }, { "allValue": ".*", "current": { "selected": true, "text": [ "All" ], "value": [ "$__all" ] }, "datasource": { "type": "prometheus", "uid": "prometheus" }, "definition": "label_values(tfs_device_execution_details_histogram_duration_bucket, driver)", "hide": 0, "includeAll": true, "label": "Driver", "multi": true, "name": "driver", "options": [], "query": { "query": "label_values(tfs_device_execution_details_histogram_duration_bucket, driver)", "refId": "StandardVariableQuery" }, "refresh": 2, Loading @@ -138,13 +175,17 @@ { "allValue": ".*", "current": { "selected": false, "text": "All", "value": "$__all" "selected": true, "text": [ "All" ], "value": [ "$__all" ] }, "datasource": { "type": "prometheus", "uid": "b1BgiIsVz" "uid": "prometheus" }, "definition": "label_values(tfs_device_execution_details_histogram_duration_bucket, step)", "hide": 0, Loading @@ -169,23 +210,27 @@ { "allValue": ".*", "current": { "selected": false, "text": "All", "value": "$__all" "selected": true, "text": [ "All" ], "value": [ "$__all" ] }, "datasource": { "type": "prometheus", "uid": "b1BgiIsVz" "uid": "prometheus" }, "definition": "label_values(tfs_device_execution_details_histogram_duration_bucket, operation)", "definition": "label_values(tfs_device_execution_details_histogram_duration_bucket, pod)", "hide": 0, "includeAll": true, "label": "Operation", "label": "Pod", "multi": true, "name": "operation", "name": "pod", "options": [], "query": { "query": "label_values(tfs_device_execution_details_histogram_duration_bucket, operation)", "query": "label_values(tfs_device_execution_details_histogram_duration_bucket, pod)", "refId": "StandardVariableQuery" }, "refresh": 2, Loading @@ -200,14 +245,14 @@ ] }, "time": { "from": "now-2d", "from": "now-15m", "to": "now" }, "timepicker": {}, "timezone": "", "title": "TFS / Device Details", "uid": "tfs-dev-confdev", "version": 7, "title": "TFS / Device Execution Details", "uid": "tfs-dev-exec", "version": 4, "weekStart": "" } } Loading
deploy/tfs.sh +3 −3 Original line number Diff line number Diff line Loading @@ -486,11 +486,11 @@ if [[ "$TFS_COMPONENTS" == *"webui"* ]]; then curl -X POST ${GRAFANA_URL_UPDATED}/api/user/stars/dashboard/${DASHBOARD_ID} echo # Dashboard: Device ConfigureDevice Details curl -X POST -H "Content-Type: application/json" -d '@src/webui/grafana_prom_device_config_exec_details.json' \ # Dashboard: Device Execution Details curl -X POST -H "Content-Type: application/json" -d '@src/webui/grafana_prom_device_exec_details.json' \ ${GRAFANA_URL_UPDATED}/api/dashboards/db echo DASHBOARD_URL="${GRAFANA_URL_UPDATED}/api/dashboards/uid/tfs-dev-confdev" DASHBOARD_URL="${GRAFANA_URL_UPDATED}/api/dashboards/uid/tfs-dev-exec" DASHBOARD_ID=$(curl -s "${DASHBOARD_URL}" | jq '.dashboard.id') curl -X POST ${GRAFANA_URL_UPDATED}/api/user/stars/dashboard/${DASHBOARD_ID} echo Loading
src/webui/grafana_prom_device_exec_details.json +72 −27 Original line number Diff line number Diff line Loading @@ -25,8 +25,8 @@ "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, "id": 6, "iteration": 1682697941785, "id": null, "iteration": 1683036452435, "links": [], "liveNow": false, "panels": [ Loading @@ -43,7 +43,7 @@ "dataFormat": "tsbuckets", "datasource": { "type": "prometheus", "uid": "b1BgiIsVz" "uid": "prometheus" }, "gridPos": { "h": 22, Loading @@ -65,15 +65,17 @@ { "datasource": { "type": "prometheus", "uid": "b1BgiIsVz" "uid": "prometheus" }, "editorMode": "code", "exemplar": true, "expr": "sum(\r\n max_over_time(tfs_device_exec_details_[[method]]_histogram_duration_bucket{pod=~\"[[pod]]\", step=~\"[[step]]\"}[1m]) -\r\n min_over_time(tfs_device_exec_details_[[method]]_histogram_duration_bucket{pod=~\"[[pod]]\", step=~\"[[step]]\"}[1m])\r\n) by (le)", "expr": "sum(\r\n max_over_time(tfs_device_execution_details_histogram_duration_bucket{driver=~\"[[driver]]\", operation=~\"[[operation]]\", step=~\"[[step]]\"}[1m]) -\r\n min_over_time(tfs_device_execution_details_histogram_duration_bucket{driver=~\"[[driver]]\", operation=~\"[[operation]]\", step=~\"[[step]]\"}[1m])\r\n) by (le)", "format": "heatmap", "instant": false, "interval": "1m", "intervalFactor": 1, "legendFormat": "{{le}}", "range": true, "refId": "A" } ], Loading @@ -94,7 +96,7 @@ "yBucketBound": "auto" } ], "refresh": "", "refresh": "5s", "schemaVersion": 36, "style": "dark", "tags": [], Loading @@ -113,17 +115,52 @@ }, "datasource": { "type": "prometheus", "uid": "b1BgiIsVz" "uid": "prometheus" }, "definition": "label_values(tfs_device_execution_details_histogram_duration_bucket, pod)", "definition": "label_values(tfs_device_execution_details_histogram_duration_bucket, operation)", "hide": 0, "includeAll": true, "label": "Pod", "label": "Operation", "multi": true, "name": "pod", "name": "operation", "options": [], "query": { "query": "label_values(tfs_device_execution_details_histogram_duration_bucket, pod)", "query": "label_values(tfs_device_execution_details_histogram_duration_bucket, operation)", "refId": "StandardVariableQuery" }, "refresh": 2, "regex": "", "skipUrlSync": false, "sort": 0, "tagValuesQuery": "", "tagsQuery": "", "type": "query", "useTags": false }, { "allValue": ".*", "current": { "selected": true, "text": [ "All" ], "value": [ "$__all" ] }, "datasource": { "type": "prometheus", "uid": "prometheus" }, "definition": "label_values(tfs_device_execution_details_histogram_duration_bucket, driver)", "hide": 0, "includeAll": true, "label": "Driver", "multi": true, "name": "driver", "options": [], "query": { "query": "label_values(tfs_device_execution_details_histogram_duration_bucket, driver)", "refId": "StandardVariableQuery" }, "refresh": 2, Loading @@ -138,13 +175,17 @@ { "allValue": ".*", "current": { "selected": false, "text": "All", "value": "$__all" "selected": true, "text": [ "All" ], "value": [ "$__all" ] }, "datasource": { "type": "prometheus", "uid": "b1BgiIsVz" "uid": "prometheus" }, "definition": "label_values(tfs_device_execution_details_histogram_duration_bucket, step)", "hide": 0, Loading @@ -169,23 +210,27 @@ { "allValue": ".*", "current": { "selected": false, "text": "All", "value": "$__all" "selected": true, "text": [ "All" ], "value": [ "$__all" ] }, "datasource": { "type": "prometheus", "uid": "b1BgiIsVz" "uid": "prometheus" }, "definition": "label_values(tfs_device_execution_details_histogram_duration_bucket, operation)", "definition": "label_values(tfs_device_execution_details_histogram_duration_bucket, pod)", "hide": 0, "includeAll": true, "label": "Operation", "label": "Pod", "multi": true, "name": "operation", "name": "pod", "options": [], "query": { "query": "label_values(tfs_device_execution_details_histogram_duration_bucket, operation)", "query": "label_values(tfs_device_execution_details_histogram_duration_bucket, pod)", "refId": "StandardVariableQuery" }, "refresh": 2, Loading @@ -200,14 +245,14 @@ ] }, "time": { "from": "now-2d", "from": "now-15m", "to": "now" }, "timepicker": {}, "timezone": "", "title": "TFS / Device Details", "uid": "tfs-dev-confdev", "version": 7, "title": "TFS / Device Execution Details", "uid": "tfs-dev-exec", "version": 4, "weekStart": "" } }