Skip to content
Snippets Groups Projects
Commit 56a1e4d4 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

WebUI - Grafana:

- Updated device details dashboard (to be completed)
parent 7e2d2336
No related branches found
No related tags found
2 merge requests!142Release TeraFlowSDN 2.1,!99Device and WebUI components - Improve AddDevice performance metrics
...@@ -25,8 +25,8 @@ ...@@ -25,8 +25,8 @@
"editable": true, "editable": true,
"fiscalYearStartMonth": 0, "fiscalYearStartMonth": 0,
"graphTooltip": 0, "graphTooltip": 0,
"id": null, "id": 6,
"iteration": 1682697941779, "iteration": 1682697941785,
"links": [], "links": [],
"liveNow": false, "liveNow": false,
"panels": [ "panels": [
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
"dataFormat": "tsbuckets", "dataFormat": "tsbuckets",
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "prometheus" "uid": "b1BgiIsVz"
}, },
"gridPos": { "gridPos": {
"h": 22, "h": 22,
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "prometheus" "uid": "b1BgiIsVz"
}, },
"exemplar": true, "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_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)",
...@@ -94,7 +94,7 @@ ...@@ -94,7 +94,7 @@
"yBucketBound": "auto" "yBucketBound": "auto"
} }
], ],
"refresh": "5s", "refresh": "",
"schemaVersion": 36, "schemaVersion": 36,
"style": "dark", "style": "dark",
"tags": [], "tags": [],
...@@ -104,26 +104,30 @@ ...@@ -104,26 +104,30 @@
"allValue": ".*", "allValue": ".*",
"current": { "current": {
"selected": true, "selected": true,
"text": "adddevice", "text": [
"value": "adddevice" "All"
],
"value": [
"$__all"
]
}, },
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "prometheus" "uid": "b1BgiIsVz"
}, },
"definition": "metrics(tfs_device_exec_details_)", "definition": "label_values(tfs_device_execution_details_histogram_duration_bucket, pod)",
"hide": 0, "hide": 0,
"includeAll": false, "includeAll": true,
"label": "Method", "label": "Pod",
"multi": false, "multi": true,
"name": "method", "name": "pod",
"options": [], "options": [],
"query": { "query": {
"query": "metrics(tfs_device_exec_details_)", "query": "label_values(tfs_device_execution_details_histogram_duration_bucket, pod)",
"refId": "StandardVariableQuery" "refId": "StandardVariableQuery"
}, },
"refresh": 2, "refresh": 2,
"regex": "/tfs_device_exec_details_(.+)_histogram_duration_bucket/", "regex": "",
"skipUrlSync": false, "skipUrlSync": false,
"sort": 0, "sort": 0,
"tagValuesQuery": "", "tagValuesQuery": "",
...@@ -134,37 +138,15 @@ ...@@ -134,37 +138,15 @@
{ {
"allValue": ".*", "allValue": ".*",
"current": { "current": {
"selected": true, "selected": false,
"text": [ "text": "All",
"endpoint_checks", "value": "$__all"
"execution",
"get_device",
"get_driver",
"populate_config_rules",
"populate_endpoints",
"populate_monit_rsrc",
"set_device",
"total",
"wait_queue"
],
"value": [
"endpoint_checks",
"execution",
"get_device",
"get_driver",
"populate_config_rules",
"populate_endpoints",
"populate_monit_rsrc",
"set_device",
"total",
"wait_queue"
]
}, },
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "prometheus" "uid": "b1BgiIsVz"
}, },
"definition": "label_values(tfs_device_exec_details_[[method]]_histogram_duration_bucket, step)", "definition": "label_values(tfs_device_execution_details_histogram_duration_bucket, step)",
"hide": 0, "hide": 0,
"includeAll": true, "includeAll": true,
"label": "Step", "label": "Step",
...@@ -172,7 +154,7 @@ ...@@ -172,7 +154,7 @@
"name": "step", "name": "step",
"options": [], "options": [],
"query": { "query": {
"query": "label_values(tfs_device_exec_details_[[method]]_histogram_duration_bucket, step)", "query": "label_values(tfs_device_execution_details_histogram_duration_bucket, step)",
"refId": "StandardVariableQuery" "refId": "StandardVariableQuery"
}, },
"refresh": 2, "refresh": 2,
...@@ -187,27 +169,23 @@ ...@@ -187,27 +169,23 @@
{ {
"allValue": ".*", "allValue": ".*",
"current": { "current": {
"selected": true, "selected": false,
"text": [ "text": "All",
"All" "value": "$__all"
],
"value": [
"$__all"
]
}, },
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "prometheus" "uid": "b1BgiIsVz"
}, },
"definition": "label_values(tfs_device_exec_details_[[method]]_histogram_duration_bucket, pod)", "definition": "label_values(tfs_device_execution_details_histogram_duration_bucket, operation)",
"hide": 0, "hide": 0,
"includeAll": true, "includeAll": true,
"label": "Pod", "label": "Operation",
"multi": true, "multi": true,
"name": "pod", "name": "operation",
"options": [], "options": [],
"query": { "query": {
"query": "label_values(tfs_device_exec_details_[[method]]_histogram_duration_bucket, pod)", "query": "label_values(tfs_device_execution_details_histogram_duration_bucket, operation)",
"refId": "StandardVariableQuery" "refId": "StandardVariableQuery"
}, },
"refresh": 2, "refresh": 2,
...@@ -222,14 +200,14 @@ ...@@ -222,14 +200,14 @@
] ]
}, },
"time": { "time": {
"from": "now-15m", "from": "now-2d",
"to": "now" "to": "now"
}, },
"timepicker": {}, "timepicker": {},
"timezone": "", "timezone": "",
"title": "TFS / Device Details", "title": "TFS / Device Details",
"uid": "tfs-dev-confdev", "uid": "tfs-dev-confdev",
"version": 6, "version": 7,
"weekStart": "" "weekStart": ""
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment