Change the function imposed on instances/tasks 05/58105/1
authorYang (Gabriel) Yu <Gabriel.yuyang@huawei.com>
Tue, 29 May 2018 06:44:03 +0000 (14:44 +0800)
committerYu Yang (Gabriel) <Gabriel.yuyang@huawei.com>
Thu, 31 May 2018 07:45:43 +0000 (07:45 +0000)
The number of instances/tasks should be cumulated instead of
averaging.

Change-Id: If63244ea086de8ba6a74865e5bad23feec01b3d6
Signed-off-by: Yang (Gabriel) Yu <Gabriel.yuyang@huawei.com>
(cherry picked from commit f6ca90e950a3b007b118cad702616267fab91916)

monitor/dashboard/openstack_stats.json

index b73f18e..ce2c360 100644 (file)
               "format": "time_series",
               "intervalFactor": 2,
               "refId": "A",
-              "step": 60
+              "step": 40
             }
           ],
           "thresholds": "20,40",
               "value": "null"
             }
           ],
-          "valueName": "avg"
+          "valueName": "current"
         },
         {
           "cacheTimeout": null,
               "format": "time_series",
               "intervalFactor": 2,
               "refId": "A",
-              "step": 60
+              "step": 40
             }
           ],
           "thresholds": "20,40",
               "value": "null"
             }
           ],
-          "valueName": "avg"
+          "valueName": "current"
         },
         {
           "aliasColors": {},
               "intervalFactor": 2,
               "legendFormat": "{{region}} : {{host}}: {{state}} ",
               "refId": "A",
-              "step": 20
+              "step": 10
             }
           ],
           "thresholds": [],
               "intervalFactor": 2,
               "legendFormat": "{{region}} : {{host}}: {{state}} ",
               "refId": "A",
-              "step": 20
+              "step": 10
             }
           ],
           "thresholds": [],
               "format": "time_series",
               "intervalFactor": 2,
               "refId": "A",
-              "step": 60
+              "step": 40
             }
           ],
           "thresholds": "20,40",
               "value": "null"
             }
           ],
-          "valueName": "avg"
+          "valueName": "current"
         },
         {
           "cacheTimeout": null,
           "colorBackground": true,
           "colorValue": false,
           "colors": [
-            "rgba(245, 54, 54, 0.9)",
+            "rgba(50, 172, 45, 0.97)",
             "rgba(237, 129, 40, 0.89)",
-            "rgba(50, 172, 45, 0.97)"
+            "rgba(245, 54, 54, 0.9)"
           ],
           "datasource": "automated-ds",
           "format": "none",
               "format": "time_series",
               "intervalFactor": 2,
               "refId": "A",
-              "step": 60
+              "step": 40
             }
           ],
           "thresholds": "20,40",
               "value": "null"
             }
           ],
-          "valueName": "avg"
+          "valueName": "current"
         },
         {
           "aliasColors": {},
               "intervalFactor": 2,
               "legendFormat": "{{region}} : {{host}}: {{state}} ",
               "refId": "A",
-              "step": 20
+              "step": 10
             }
           ],
           "thresholds": [],
               "intervalFactor": 2,
               "legendFormat": "{{region}} : {{host}}: {{state}} ",
               "refId": "A",
-              "step": 20
+              "step": 10
             }
           ],
           "thresholds": [],
           "colorBackground": true,
           "colorValue": false,
           "colors": [
-            "rgba(245, 54, 54, 0.9)",
+            "rgba(50, 172, 45, 0.97)",
             "rgba(237, 129, 40, 0.89)",
-            "rgba(50, 172, 45, 0.97)"
+            "rgba(245, 54, 54, 0.9)"
           ],
           "datasource": "automated-ds",
           "format": "decmbytes",
               "format": "time_series",
               "intervalFactor": 2,
               "refId": "A",
-              "step": 60
+              "step": 40
             }
           ],
           "thresholds": "20000,40000",
               "value": "null"
             }
           ],
-          "valueName": "avg"
+          "valueName": "current"
         },
         {
           "cacheTimeout": null,
               "format": "time_series",
               "intervalFactor": 2,
               "refId": "A",
-              "step": 60
+              "step": 40
             }
           ],
           "thresholds": "20000,40000",
               "value": "null"
             }
           ],
-          "valueName": "avg"
+          "valueName": "current"
         },
         {
           "aliasColors": {},
               "intervalFactor": 2,
               "legendFormat": "{{region}} : {{host}}: {{state}} ",
               "refId": "A",
-              "step": 20
+              "step": 10
             }
           ],
           "thresholds": [],
               "intervalFactor": 2,
               "legendFormat": "{{region}} : {{host}}: {{state}} ",
               "refId": "A",
-              "step": 20
+              "step": 10
             }
           ],
           "thresholds": [],
               "format": "time_series",
               "intervalFactor": 2,
               "refId": "A",
-              "step": 60
+              "step": 40
             }
           ],
           "thresholds": "100,500",
               "value": "null"
             }
           ],
-          "valueName": "avg"
+          "valueName": "current"
         },
         {
           "cacheTimeout": null,
               "format": "time_series",
               "intervalFactor": 2,
               "refId": "A",
-              "step": 60
+              "step": 40
             }
           ],
           "thresholds": "100,500",
               "value": "null"
             }
           ],
-          "valueName": "avg"
+          "valueName": "current"
         },
         {
           "aliasColors": {},
               "intervalFactor": 2,
               "legendFormat": "{{region}} : {{host}}: {{state}} ",
               "refId": "A",
-              "step": 20
+              "step": 10
             }
           ],
           "thresholds": [],
               "intervalFactor": 2,
               "legendFormat": "{{region}} : {{host}}: {{state}} ",
               "refId": "A",
-              "step": 20
+              "step": 10
             }
           ],
           "thresholds": [],
               "format": "time_series",
               "intervalFactor": 2,
               "refId": "A",
-              "step": 60
+              "step": 40
             }
           ],
           "thresholds": "50,80",
               "value": "null"
             }
           ],
-          "valueName": "avg"
+          "valueName": "current"
         },
         {
           "cacheTimeout": null,
               "format": "time_series",
               "intervalFactor": 2,
               "refId": "A",
-              "step": 60
+              "step": 40
             }
           ],
           "thresholds": "50,80",
               "value": "null"
             }
           ],
-          "valueName": "avg"
+          "valueName": "current"
         },
         {
           "aliasColors": {},
               "intervalFactor": 2,
               "legendFormat": "{{region}} : {{host}}: {{state}} ",
               "refId": "A",
-              "step": 20
+              "step": 10
             }
           ],
           "thresholds": [],
               "intervalFactor": 2,
               "legendFormat": "{{region}} : {{host}}: {{state}} ",
               "refId": "A",
-              "step": 20
+              "step": 10
             }
           ],
           "thresholds": [],
               "format": "time_series",
               "intervalFactor": 2,
               "refId": "A",
-              "step": 60
+              "step": 40
             }
           ],
           "thresholds": "50,80",
               "value": "null"
             }
           ],
-          "valueName": "avg"
+          "valueName": "current"
         },
         {
           "cacheTimeout": null,
               "format": "time_series",
               "intervalFactor": 2,
               "refId": "A",
-              "step": 60
+              "step": 40
             }
           ],
           "thresholds": "50,80",
               "value": "null"
             }
           ],
-          "valueName": "avg"
+          "valueName": "current"
         },
         {
           "aliasColors": {},
               "intervalFactor": 2,
               "legendFormat": "{{region}} : {{host}}: {{state}} ",
               "refId": "A",
-              "step": 20
+              "step": 10
             }
           ],
           "thresholds": [],
               "intervalFactor": 2,
               "legendFormat": "{{region}} : {{host}}: {{state}} ",
               "refId": "A",
-              "step": 20
+              "step": 10
             }
           ],
           "thresholds": [],
               "format": "time_series",
               "intervalFactor": 2,
               "refId": "A",
-              "step": 60
+              "step": 40
             }
           ],
           "thresholds": "50,80",
               "value": "null"
             }
           ],
-          "valueName": "avg"
+          "valueName": "current"
         },
         {
           "aliasColors": {},
               "format": "time_series",
               "intervalFactor": 2,
               "refId": "A",
-              "step": 60
+              "step": 40
             }
           ],
           "thresholds": "50,80",
               "value": "null"
             }
           ],
-          "valueName": "avg"
+          "valueName": "current"
         },
         {
           "cacheTimeout": null,
               "format": "time_series",
               "intervalFactor": 2,
               "refId": "A",
-              "step": 60
+              "step": 40
             }
           ],
           "thresholds": "50,80",
               "value": "null"
             }
           ],
-          "valueName": "avg"
+          "valueName": "current"
         },
         {
           "aliasColors": {},
               "intervalFactor": 2,
               "legendFormat": "{{region}} : {{host}}: {{state}} ",
               "refId": "A",
-              "step": 30
+              "step": 20
             }
           ],
           "thresholds": [],
               "intervalFactor": 2,
               "legendFormat": "{{region}} : {{host}}: {{state}} ",
               "refId": "A",
-              "step": 10
+              "step": 4
             }
           ],
           "thresholds": [],
               "format": "time_series",
               "intervalFactor": 2,
               "refId": "A",
-              "step": 60
+              "step": 40
             }
           ],
           "thresholds": "50,80",
               "value": "null"
             }
           ],
-          "valueName": "avg"
+          "valueName": "current"
         },
         {
           "cacheTimeout": null,
               "format": "time_series",
               "intervalFactor": 2,
               "refId": "A",
-              "step": 60
+              "step": 40
             }
           ],
           "thresholds": "50,80",
               "value": "null"
             }
           ],
-          "valueName": "avg"
+          "valueName": "current"
         },
         {
           "aliasColors": {},
               "intervalFactor": 2,
               "legendFormat": "{{region}} : {{host}}: {{state}} ",
               "refId": "A",
-              "step": 20
+              "step": 10
             }
           ],
           "thresholds": [],
               "intervalFactor": 2,
               "legendFormat": "{{region}} : {{host}}: {{state}} ",
               "refId": "A",
-              "step": 20
+              "step": 10
             }
           ],
           "thresholds": [],
               "format": "time_series",
               "intervalFactor": 2,
               "refId": "A",
-              "step": 60
+              "step": 40
             }
           ],
           "thresholds": "50,80",
               "value": "null"
             }
           ],
-          "valueName": "avg"
+          "valueName": "current"
         },
         {
           "cacheTimeout": null,
               "format": "time_series",
               "intervalFactor": 2,
               "refId": "A",
-              "step": 60
+              "step": 40
             }
           ],
           "thresholds": "50,80",
               "value": "null"
             }
           ],
-          "valueName": "avg"
+          "valueName": "current"
         },
         {
           "aliasColors": {},
               "intervalFactor": 2,
               "legendFormat": "{{region}} : {{host}}: {{state}} ",
               "refId": "A",
-              "step": 20
+              "step": 10
             }
           ],
           "thresholds": [],
               "intervalFactor": 2,
               "legendFormat": "{{region}} : {{host}}: {{state}} ",
               "refId": "A",
-              "step": 20
+              "step": 10
             }
           ],
           "thresholds": [],
   },
   "timezone": "browser",
   "title": "OpenStack Stats",
-  "version": 3
+  "version": 4
 }
\ No newline at end of file