Fix Grafana dashboards for RFC2544 51/67251/1
authorMyron Sosyak <myronx.sosyak@intel.com>
Wed, 13 Mar 2019 15:07:15 +0000 (15:07 +0000)
committerMyron Sosyak <myronx.sosyak@intel.com>
Wed, 13 Mar 2019 15:07:15 +0000 (15:07 +0000)
Fixed dashboards for RFC2544 and for RFC2544 multiframesize

YARDSTICK-1592

Change-Id: I8dfc835804e8e33fbb926dbc76168c58a1f9dd2f
Signed-off-by: Myron Sosyak <myronx.sosyak@intel.com>
dashboard/RFC2544_2Port.json
dashboard/RFC2544_2Port_Multiframesize.json

index e6f3265..de9448c 100644 (file)
@@ -1,14 +1,50 @@
 {
+  "__inputs": [
+    {
+      "name": "DS_YARDSTICK",
+      "label": "yardstick",
+      "description": "",
+      "type": "datasource",
+      "pluginId": "influxdb",
+      "pluginName": "InfluxDB"
+    }
+  ],
+  "__requires": [
+    {
+      "type": "grafana",
+      "id": "grafana",
+      "name": "Grafana",
+      "version": "4.4.3"
+    },
+    {
+      "type": "panel",
+      "id": "graph",
+      "name": "Graph",
+      "version": ""
+    },
+    {
+      "type": "datasource",
+      "id": "influxdb",
+      "name": "InfluxDB",
+      "version": "1.0.0"
+    },
+    {
+      "type": "panel",
+      "id": "table",
+      "name": "Table",
+      "version": ""
+    }
+  ],
   "annotations": {
     "list": [
       {
-        "datasource": "yardstick",
+        "datasource": "${DS_YARDSTICK}",
         "enable": true,
         "hide": false,
         "iconColor": "rgb(248, 255, 0)",
         "limit": 100,
         "name": "status",
-        "query": "SELECT tg__0.collect_stats.Status FROM \"tc_heat_rfc2544_ipv4_1rule_1flow_trex\" WHERE \"tg__0.collect_stats.Status\"='Success' AND task_id='$task_id'",
+        "query": "SELECT tg__0.collect_stats.Status FROM $test_name WHERE \"tg__0.collect_stats.Status\"='Success' AND task_id='$task_id'",
         "showIn": 0,
         "titleColumn": "Status",
         "type": "alert"
@@ -19,7 +55,7 @@
   "gnetId": null,
   "graphTooltip": 0,
   "hideControls": false,
-  "id": 6,
+  "id": null,
   "links": [],
   "refresh": false,
   "rows": [
@@ -32,7 +68,7 @@
           "bars": false,
           "dashLength": 10,
           "dashes": false,
-          "datasource": "yardstick",
+          "datasource": "${DS_YARDSTICK}",
           "fill": 0,
           "hideTimeOverride": true,
           "id": 3,
               "measurement": "/^$test_name$/",
               "orderByTime": "ASC",
               "policy": "default",
-              "query": "SELECT \"tg__0.collect_stats.xe0.InBytes\", \"tg__0.collect_stats.xe0.OutBytes\", \"tg__0.collect_stats.xe1.InBytes\", \"tg__0.collect_stats.xe1.OutBytes\" FROM /^$test_name$/ WHERE \"task_id\" =~ /^$task_id$/ AND \"tg__0.collect_stats.PktSize\" =~ /^$framesize$/ AND $timeFilter",
-              "rawQuery": false,
+              "query": "SELECT \"tg__0.collect_stats.xe0.InBytes\", \"tg__0.collect_stats.xe0.OutBytes\", \"tg__0.collect_stats.xe1.InBytes\", \"tg__0.collect_stats.xe1.OutBytes\" FROM /^$test_name$/ WHERE \"task_id\" =~ /^$task_id$/ AND $timeFilter",
+              "rawQuery": true,
               "refId": "A",
               "resultFormat": "time_series",
               "select": [
           "bars": false,
           "dashLength": 10,
           "dashes": false,
-          "datasource": "yardstick",
+          "datasource": "${DS_YARDSTICK}",
           "fill": 1,
           "id": 1,
           "legend": {
               "alias": "$col",
               "dsType": "influxdb",
               "groupBy": [],
-              "measurement": "tc_heat_rfc2544_ipv4_1rule_1flow_trex",
+              "measurement": "/^$test_name$/",
               "orderByTime": "ASC",
               "policy": "default",
               "refId": "A",
           "bars": false,
           "dashLength": 10,
           "dashes": false,
-          "datasource": null,
+          "datasource": "${DS_YARDSTICK}",
           "fill": 1,
           "id": 5,
           "legend": {
     "list": [
       {
         "allValue": null,
-        "current": {
-          "text": "tc_heat_rfc2544_ipv4_1rule_1flow_trex",
-          "value": "tc_heat_rfc2544_ipv4_1rule_1flow_trex"
-        },
-        "datasource": "yardstick",
+        "current": {},
+        "datasource": "${DS_YARDSTICK}",
         "hide": 0,
         "includeAll": false,
         "label": "test_name",
       },
       {
         "allValue": null,
-        "current": {
-          "text": "004b5387-74b3-4cf0-9597-5198db9e2731",
-          "value": "004b5387-74b3-4cf0-9597-5198db9e2731"
-        },
-        "datasource": "yardstick",
+        "current": {},
+        "datasource": "${DS_YARDSTICK}",
         "hide": 0,
         "includeAll": false,
         "label": "task_id",
         "multi": false,
         "name": "task_id",
         "options": [],
-        "query": "SHOW TAG VALUES FROM $test_name WITH KEY = \"task_id\" ",
+        "query": "SHOW TAG VALUES FROM $test_name WITH KEY = \"task_id\"  ",
         "refresh": 2,
         "regex": "",
         "sort": 0,
     ]
   },
   "time": {
-    "from": "2019-03-05T12:44:02.829Z",
-    "to": "2019-03-05T13:32:27.585Z"
+    "from": "2019-03-06T13:54:13.610Z",
+    "to": "2019-03-06T13:56:59.693Z"
   },
   "timepicker": {
     "refresh_intervals": [
   },
   "timezone": "",
   "title": "RFC2544",
-  "version": 2
+  "version": 4
 }
index f08cf3d..2d8e952 100644 (file)
@@ -1,14 +1,44 @@
 {
+  "__inputs": [
+    {
+      "name": "DS_YARDSTICK",
+      "label": "yardstick",
+      "description": "",
+      "type": "datasource",
+      "pluginId": "influxdb",
+      "pluginName": "InfluxDB"
+    }
+  ],
+  "__requires": [
+    {
+      "type": "grafana",
+      "id": "grafana",
+      "name": "Grafana",
+      "version": "4.4.3"
+    },
+    {
+      "type": "panel",
+      "id": "graph",
+      "name": "Graph",
+      "version": ""
+    },
+    {
+      "type": "datasource",
+      "id": "influxdb",
+      "name": "InfluxDB",
+      "version": "1.0.0"
+    }
+  ],
   "annotations": {
     "list": [
       {
-        "datasource": "yardstick",
+        "datasource": "${DS_YARDSTICK}",
         "enable": true,
         "hide": false,
         "iconColor": "rgb(248, 255, 0)",
         "limit": 100,
         "name": "status",
-        "query": "SELECT tg__0.collect_stats.Status FROM \"tc_heat_rfc2544_ipv4_1rule_1flow_trex\" WHERE \"tg__0.collect_stats.Status\"='Success' AND task_id='$task_id'",
+        "query": "SELECT tg__0.collect_stats.Status FROM $test_name WHERE \"tg__0.collect_stats.Status\"='Success' AND task_id='$task_id'",
         "showIn": 0,
         "titleColumn": "Status",
         "type": "alert"
@@ -19,7 +49,7 @@
   "gnetId": null,
   "graphTooltip": 0,
   "hideControls": false,
-  "id": 2,
+  "id": null,
   "links": [],
   "refresh": false,
   "rows": [
@@ -32,7 +62,7 @@
           "bars": false,
           "dashLength": 10,
           "dashes": false,
-          "datasource": "yardstick",
+          "datasource": "${DS_YARDSTICK}",
           "fill": 0,
           "hideTimeOverride": true,
           "id": 3,
           "bars": false,
           "dashLength": 10,
           "dashes": false,
-          "datasource": "yardstick",
+          "datasource": "${DS_YARDSTICK}",
           "fill": 1,
           "id": 1,
           "legend": {
               "alias": "$col",
               "dsType": "influxdb",
               "groupBy": [],
-              "measurement": "tc_heat_rfc2544_ipv4_1rule_1flow_trex",
+              "measurement": "/^$test_name$/",
               "orderByTime": "ASC",
               "policy": "default",
               "refId": "A",
           "bars": false,
           "dashLength": 10,
           "dashes": false,
-          "datasource": null,
+          "datasource": "${DS_YARDSTICK}",
           "fill": 1,
           "id": 5,
           "legend": {
           "bars": true,
           "dashLength": 10,
           "dashes": false,
-          "datasource": null,
+          "datasource": "${DS_YARDSTICK}",
           "fill": 1,
           "id": 4,
           "legend": {
     "list": [
       {
         "allValue": null,
-        "current": {
-          "text": "tc_heat_rfc2544_ipv4_1rule_1flow_trex",
-          "value": "tc_heat_rfc2544_ipv4_1rule_1flow_trex"
-        },
-        "datasource": "yardstick",
+        "current": {},
+        "datasource": "${DS_YARDSTICK}",
         "hide": 0,
         "includeAll": false,
         "label": "test_name",
       },
       {
         "allValue": null,
-        "current": {
-          "text": "fdb337ec-11ea-410f-b45e-83f30edb7590",
-          "value": "fdb337ec-11ea-410f-b45e-83f30edb7590"
-        },
-        "datasource": "yardstick",
+        "current": {},
+        "datasource": "${DS_YARDSTICK}",
         "hide": 0,
         "includeAll": false,
         "label": "task_id",
       {
         "allValue": null,
         "current": {
-          "tags": [],
           "text": "64B + 128B + 512B",
           "value": [
             "64B",
   },
   "timezone": "",
   "title": "RFC2544 Multi framesize",
-  "version": 14
+  "version": 15
 }