summaryrefslogtreecommitdiffstats
path: root/tests/unit/benchmark/scenarios/availability/test_basemonitor.py
blob: 92ae8aa88c2e33704edd91a33c23afafa444fae9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
#!/usr/bin/env python

##############################################################################
# Copyright (c) 2015 Huawei Technologies Co.,Ltd and others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################

# Unittest for
# yardstick.benchmark.scenarios.availability.monitor.monitor_command

from __future__ import absolute_import
import mock
import unittest

from yardstick.benchmark.scenarios.availability.monitor import basemonitor


@mock.patch(
    'yardstick.benchmark.scenarios.availability.monitor.basemonitor'
    '.BaseMonitor')
class MonitorMgrTestCase(unittest.TestCase):

    def setUp(self):
        self.monitor_configs = [
            {
                "monitor_type": "openstack-cmd",
                "command_name": "openstack router list",
                "monitor_time": 10,
                "monitor_number": 3,
                "sla": {
                    "max_outage_time": 5
                }
            },
            {
                "monitor_type": "process",
                "process_name": "neutron-server",
                "host": "node1",
                "monitor_time": 20,
                "monitor_number": 3,
                "sla": {
                    "max_recover_time": 20
                }
            }
        ]
        self.MonitorMgr = basemonitor.MonitorMgr([])
        self.MonitorMgr.init_monitors(self.monitor_configs, None)
        self.monitor_list = self.MonitorMgr._monitor_list
        for mo in self.monitor_list:
            mo._result = {"outage_time": 10}

    def test__MonitorMgr_setup_successful(self, mock_monitor):
        instance = basemonitor.MonitorMgr({"nova-api": 10})
        instance.init_monitors(self.monitor_configs, None)
        instance.start_monitors()
        instance.wait_monitors()

        ret = instance.verify_SLA()

    def test_MonitorMgr_getitem(self, mock_monitor):
        monitorMgr = basemonitor.MonitorMgr({"nova-api": 10})
        monitorMgr.init_monitors(self.monitor_configs, None)

    def test_store_result(self, mock_monitor):
        expect = {'process_neutron-server_outage_time': 10,
                  'openstack-router-list_outage_time': 10}
        result = {}
        self.MonitorMgr.store_result(result)
        self.assertDictEqual(result, expect)


class BaseMonitorTestCase(unittest.TestCase):

    class MonitorSimple(basemonitor.BaseMonitor):
        __monitor_type__ = "MonitorForTest"

        def setup(self):
            self.monitor_result = False

        def monitor_func(self):
            return self.monitor_result

    def setUp(self):
        self.monitor_cfg = {
            'monitor_type': 'MonitorForTest',
            'command_name': 'nova image-list',
            'monitor_time': 0.01,
            'sla': {'max_outage_time': 5}
        }

    def test__basemonitor_start_wait_successful(self):
        ins = basemonitor.BaseMonitor(self.monitor_cfg, None, {"nova-api": 10})
        ins.start_monitor()
        ins.wait_monitor()

    def test__basemonitor_all_successful(self):
        ins = self.MonitorSimple(self.monitor_cfg, None, {"nova-api": 10})
        ins.setup()
        ins.run()
        ins.verify_SLA()

    @mock.patch(
        'yardstick.benchmark.scenarios.availability.monitor.basemonitor'
        '.multiprocessing')
    def test__basemonitor_func_false(self, mock_multiprocess):
        ins = self.MonitorSimple(self.monitor_cfg, None, {"nova-api": 10})
        ins.setup()
        mock_multiprocess.Event().is_set.return_value = False
        ins.run()
        ins.verify_SLA()

    def test__basemonitor_getmonitorcls_successfule(self):
        cls = None
        try:
            cls = basemonitor.BaseMonitor.get_monitor_cls(self.monitor_cfg)
        except Exception:
            pass
        self.assertIsNone(cls)


if __name__ == "__main__":
    unittest.main()
leted */ .highlight .ge { font-style: italic } /* Generic.Emph */ .highlight .gi { color: #a6e22e } /* Generic.Inserted */ .highlight .gs { font-weight: bold } /* Generic.Strong */ .highlight .gu { color: #75715e } /* Generic.Subheading */ .highlight .kc { color: #66d9ef } /* Keyword.Constant */ .highlight .kd { color: #66d9ef } /* Keyword.Declaration */ .highlight .kn { color: #f92672 } /* Keyword.Namespace */ .highlight .kp { color: #66d9ef } /* Keyword.Pseudo */ .highlight .kr { color: #66d9ef } /* Keyword.Reserved */ .highlight .kt { color: #66d9ef } /* Keyword.Type */ .highlight .ld { color: #e6db74 } /* Literal.Date */ .highlight .m { color: #ae81ff } /* Literal.Number */ .highlight .s { color: #e6db74 } /* Literal.String */ .highlight .na { color: #a6e22e } /* Name.Attribute */ .highlight .nb { color: #f8f8f2 } /* Name.Builtin */ .highlight .nc { color: #a6e22e } /* Name.Class */ .highlight .no { color: #66d9ef } /* Name.Constant */ .highlight .nd { color: #a6e22e } /* Name.Decorator */ .highlight .ni { color: #f8f8f2 } /* Name.Entity */ .highlight .ne { color: #a6e22e } /* Name.Exception */ .highlight .nf { color: #a6e22e } /* Name.Function */ .highlight .nl { color: #f8f8f2 } /* Name.Label */ .highlight .nn { color: #f8f8f2 } /* Name.Namespace */ .highlight .nx { color: #a6e22e } /* Name.Other */ .highlight .py { color: #f8f8f2 } /* Name.Property */ .highlight .nt { color: #f92672 } /* Name.Tag */ .highlight .nv { color: #f8f8f2 } /* Name.Variable */ .highlight .ow { color: #f92672 } /* Operator.Word */ .highlight .w { color: #f8f8f2 } /* Text.Whitespace */ .highlight .mb { color: #ae81ff } /* Literal.Number.Bin */ .highlight .mf { color: #ae81ff } /* Literal.Number.Float */ .highlight .mh { color: #ae81ff } /* Literal.Number.Hex */ .highlight .mi { color: #ae81ff } /* Literal.Number.Integer */ .highlight .mo { color: #ae81ff } /* Literal.Number.Oct */ .highlight .sa { color: #e6db74 } /* Literal.String.Affix */ .highlight .sb { color: #e6db74 } /* Literal.String.Backtick */ .highlight .sc { color: #e6db74 } /* Literal.String.Char */ .highlight .dl { color: #e6db74 } /* Literal.String.Delimiter */ .highlight .sd { color: #e6db74 } /* Literal.String.Doc */ .highlight .s2 { color: #e6db74 } /* Literal.String.Double */ .highlight .se { color: #ae81ff } /* Literal.String.Escape */ .highlight .sh { color: #e6db74 } /* Literal.String.Heredoc */ .highlight .si { color: #e6db74 } /* Literal.String.Interpol */ .highlight .sx { color: #e6db74 } /* Literal.String.Other */ .highlight .sr { color: #e6db74 } /* Literal.String.Regex */ .highlight .s1 { color: #e6db74 } /* Literal.String.Single */ .highlight .ss { color: #e6db74 } /* Literal.String.Symbol */ .highlight .bp { color: #f8f8f2 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #a6e22e } /* Name.Function.Magic */ .highlight .vc { color: #f8f8f2 } /* Name.Variable.Class */ .highlight .vg { color: #f8f8f2 } /* Name.Variable.Global */ .highlight .vi { color: #f8f8f2 } /* Name.Variable.Instance */ .highlight .vm { color: #f8f8f2 } /* Name.Variable.Magic */ .highlight .il { color: #ae81ff } /* Literal.Number.Integer.Long */ } @media (prefers-color-scheme: light) { .highlight .hll { background-color: #ffffcc } .highlight .c { color: #888888 } /* Comment */ .highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */ .highlight .k { color: #008800; font-weight: bold } /* Keyword */ .highlight .ch { color: #888888 } /* Comment.Hashbang */ .highlight .cm { color: #888888 } /* Comment.Multiline */ .highlight .cp { color: #cc0000; font-weight: bold } /* Comment.Preproc */ .highlight .cpf { color: #888888 } /* Comment.PreprocFile */ .highlight .c1 { color: #888888 } /* Comment.Single */ .highlight .cs { color: #cc0000; font-weight: bold; background-color: #fff0f0 } /* Comment.Special */ .highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */ .highlight .ge { font-style: italic } /* Generic.Emph */ .highlight .gr { color: #aa0000 } /* Generic.Error */ .highlight .gh { color: #333333 } /* Generic.Heading */ .highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */ .highlight .go { color: #888888 } /* Generic.Output */ .highlight .gp { color: #555555 } /* Generic.Prompt */ .highlight .gs { font-weight: bold } /* Generic.Strong */ .highlight .gu { color: #666666 } /* Generic.Subheading */ .highlight .gt { color: #aa0000 } /* Generic.Traceback */ .highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ .highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ .highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ .highlight .kp { color: #008800 } /* Keyword.Pseudo */ .highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ .highlight .kt { color: #888888; font-weight: bold } /* Keyword.Type */ .highlight .m { color: #0000DD; font-weight: bold } /* Literal.Number */ .highlight .s { color: #dd2200; background-color: #fff0f0 } /* Literal.String */ .highlight .na { color: #336699 } /* Name.Attribute */ .highlight .nb { color: #003388 } /* Name.Builtin */ .highlight .nc { color: #bb0066; font-weight: bold } /* Name.Class */ .highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ .highlight .nd { color: #555555 } /* Name.Decorator */ .highlight .ne { color: #bb0066; font-weight: bold } /* Name.Exception */ .highlight .nf { color: #0066bb; font-weight: bold } /* Name.Function */ .highlight .nl { color: #336699; font-style: italic } /* Name.Label */ .highlight .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */ .highlight .py { color: #336699; font-weight: bold } /* Name.Property */ .highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */ .highlight .nv { color: #336699 } /* Name.Variable */ .highlight .ow { color: #008800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ }
{
  "__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": []
  },
  "editable": true,
  "gnetId": null,
  "graphTooltip": 0,
  "hideControls": false,
  "id": null,
  "links": [],
  "refresh": false,
  "rows": [
    {
      "collapse": false,
      "height": 702,
      "panels": [
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "yardstick",
          "fill": 0,
          "id": 1,
          "legend": {
            "alignAsTable": false,
            "avg": false,
            "current": false,
            "max": true,
            "min": true,
            "rightSide": true,
            "show": true,
            "sideWidth": 220,
            "total": false,
            "values": true
          },
          "lines": false,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null",
          "percentage": false,
          "pointradius": 5,
          "points": true,
          "renderer": "flot",
          "seriesOverrides": [
            {
              "alias": "16MB",
              "yaxis": 1
            }
          ],
          "spaceLength": 10,
          "span": 12,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "alias": "512B",
              "dsType": "influxdb",
              "groupBy": [],
              "measurement": "opnfv_yardstick_tc010",
              "orderByTime": "ASC",
              "policy": "default",
              "refId": "A",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "latencies0.latency"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": []
            },
            {
              "alias": "1KB",
              "dsType": "influxdb",
              "groupBy": [],
              "measurement": "opnfv_yardstick_tc010",
              "orderByTime": "ASC",
              "policy": "default",
              "refId": "B",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "latencies1.latency"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": []
            },
            {
              "alias": "2KB",
              "dsType": "influxdb",
              "groupBy": [],
              "measurement": "opnfv_yardstick_tc010",
              "orderByTime": "ASC",
              "policy": "default",
              "refId": "C",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "latencies2.latency"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": []
            },
            {
              "alias": "3KB",
              "dsType": "influxdb",
              "groupBy": [],
              "measurement": "opnfv_yardstick_tc010",
              "orderByTime": "ASC",
              "policy": "default",
              "refId": "D",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "latencies3.latency"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": []
            },
            {
              "alias": "4KB",
              "dsType": "influxdb",
              "groupBy": [],
              "measurement": "opnfv_yardstick_tc010",
              "orderByTime": "ASC",
              "policy": "default",
              "refId": "E",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "latencies4.size"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": []
            },
            {
              "alias": "6KB",
              "dsType": "influxdb",
              "groupBy": [],
              "measurement": "opnfv_yardstick_tc010",
              "orderByTime": "ASC",
              "policy": "default",
              "refId": "F",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "latencies5.latency"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": []
            },
            {
              "alias": "8KB",
              "dsType": "influxdb",
              "groupBy": [],
              "measurement": "opnfv_yardstick_tc010",
              "orderByTime": "ASC",
              "policy": "default",
              "refId": "G",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "latencies6.latency"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": []
            },
            {
              "alias": "12KB",
              "dsType": "influxdb",
              "groupBy": [],
              "measurement": "opnfv_yardstick_tc010",
              "orderByTime": "ASC",
              "policy": "default",
              "refId": "H",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "latencies7.latency"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": []
            },
            {
              "alias": "16KB",
              "dsType": "influxdb",
              "groupBy": [],
              "measurement": "opnfv_yardstick_tc010",
              "orderByTime": "ASC",
              "policy": "default",
              "refId": "I",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "latencies8.latency"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": []
            },
            {
              "alias": "24KB",
              "dsType": "influxdb",
              "groupBy": [],
              "measurement": "opnfv_yardstick_tc010",
              "orderByTime": "ASC",
              "policy": "default",
              "refId": "J",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "latencies9.latency"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": []
            },
            {
              "alias": "32KB",
              "dsType": "influxdb",
              "groupBy": [],
              "measurement": "opnfv_yardstick_tc010",
              "orderByTime": "ASC",
              "policy": "default",
              "refId": "K",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "latencies10.latency"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": []
            },
            {
              "alias": "48KB",
              "dsType": "influxdb",
              "groupBy": [],
              "measurement": "opnfv_yardstick_tc010",
              "orderByTime": "ASC",
              "policy": "default",
              "refId": "L",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "latencies11.latency"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": []
            },
            {
              "alias": "64KB",
              "dsType": "influxdb",
              "groupBy": [],
              "measurement": "opnfv_yardstick_tc010",
              "orderByTime": "ASC",
              "policy": "default",
              "refId": "M",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "latencies12.latency"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": []
            },
            {
              "alias": "96KB",
              "dsType": "influxdb",
              "groupBy": [],
              "measurement": "opnfv_yardstick_tc010",
              "orderByTime": "ASC",
              "policy": "default",
              "refId": "N",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "latencies13.latency"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": []
            },
            {
              "alias": "128KB",
              "dsType": "influxdb",
              "groupBy": [],
              "measurement": "opnfv_yardstick_tc010",
              "orderByTime": "ASC",
              "policy": "default",
              "refId": "O",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "latencies14.latency"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": []
            },
            {
              "alias": "192KB",
              "dsType": "influxdb",
              "groupBy": [],
              "measurement": "opnfv_yardstick_tc010",
              "orderByTime": "ASC",
              "policy": "default",
              "refId": "P",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "latencies15.latency"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": []
            },
            {
              "alias": "256KB",
              "dsType": "influxdb",
              "groupBy": [],
              "measurement": "opnfv_yardstick_tc010",
              "orderByTime": "ASC",
              "policy": "default",
              "refId": "Q",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "latencies16.latency"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": []
            },
            {
              "alias": "384KB",
              "dsType": "influxdb",
              "groupBy": [],
              "measurement": "opnfv_yardstick_tc010",
              "orderByTime": "ASC",
              "policy": "default",
              "refId": "R",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "latencies17.latency"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": []
            },
            {
              "alias": "512KB",
              "dsType": "influxdb",
              "groupBy": [],
              "measurement": "opnfv_yardstick_tc010",
              "orderByTime": "ASC",
              "policy": "default",
              "refId": "S",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "latencies18.latency"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": []
            },
            {
              "alias": "768KB",
              "dsType": "influxdb",
              "groupBy": [],
              "measurement": "opnfv_yardstick_tc010",
              "orderByTime": "ASC",
              "policy": "default",
              "refId": "T",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "latencies19.latency"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": []
            },
            {
              "alias": "1MB",
              "dsType": "influxdb",
              "groupBy": [],
              "measurement": "opnfv_yardstick_tc010",
              "orderByTime": "ASC",
              "policy": "default",
              "refId": "U",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "latencies20.latency"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": []
            },
            {
              "alias": "1.5MB",
              "dsType": "influxdb",
              "groupBy": [],
              "measurement": "opnfv_yardstick_tc010",
              "orderByTime": "ASC",
              "policy": "default",
              "refId": "V",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "latencies21.latency"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": []
            },
            {
              "alias": "2MB",
              "dsType": "influxdb",
              "groupBy": [],
              "measurement": "opnfv_yardstick_tc010",
              "orderByTime": "ASC",
              "policy": "default",
              "refId": "W",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "latencies22.latency"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": []
            },
            {
              "alias": "3MB",
              "dsType": "influxdb",
              "groupBy": [],
              "measurement": "opnfv_yardstick_tc010",
              "orderByTime": "ASC",
              "policy": "default",
              "refId": "X",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "latencies23.latency"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": []
            },
            {
              "alias": "4MB",
              "dsType": "influxdb",
              "groupBy": [],
              "measurement": "opnfv_yardstick_tc010",
              "orderByTime": "ASC",
              "policy": "default",
              "refId": "Y",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "latencies24.latency"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": []
            },
            {
              "alias": "6MB",
              "dsType": "influxdb",
              "groupBy": [],
              "measurement": "opnfv_yardstick_tc010",
              "orderByTime": "ASC",
              "policy": "default",
              "refId": "Z",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "latencies25.latency"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": []
            },
            {
              "alias": "8MB",
              "dsType": "influxdb",
              "groupBy": [],
              "measurement": "opnfv_yardstick_tc010",
              "orderByTime": "ASC",
              "policy": "default",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "latencies26.latency"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": []
            },
            {
              "alias": "12MB",
              "dsType": "influxdb",
              "groupBy": [],
              "measurement": "opnfv_yardstick_tc010",
              "orderByTime": "ASC",
              "policy": "default",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "latencies27.latency"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": []
            },
            {
              "alias": "16MB",
              "dsType": "influxdb",
              "groupBy": [],
              "measurement": "opnfv_yardstick_tc010",
              "orderByTime": "ASC",
              "policy": "default",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "latencies28.latency"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": []
            },
            {
              "alias": "24MB",
              "dsType": "influxdb",
              "groupBy": [],
              "measurement": "opnfv_yardstick_tc010",
              "orderByTime": "ASC",
              "policy": "default",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "latencies29.latency"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": []
            },
            {
              "alias": "32MB",
              "dsType": "influxdb",
              "groupBy": [],
              "measurement": "opnfv_yardstick_tc010",
              "orderByTime": "ASC",
              "policy": "default",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "latencies30.latency"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": []
            },
            {
              "alias": "48MB",
              "dsType": "influxdb",
              "groupBy": [],
              "measurement": "opnfv_yardstick_tc010",
              "orderByTime": "ASC",
              "policy": "default",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "latencies31.latency"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": []
            },
            {
              "alias": "64MB",
              "dsType": "influxdb",
              "groupBy": [],
              "measurement": "opnfv_yardstick_tc010",
              "orderByTime": "ASC",
              "policy": "default",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "latencies32.latency"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": []
            }
          ],
          "thresholds": [
            {
              "colorMode": "warning",
              "fill": true,
              "line": true,
              "op": "gt",
              "value": 30
            },
            {
              "colorMode": "ok",
              "fill": true,
              "line": true,
              "op": "lt",
              "value": 30
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Memory Read Latency - Lmbench",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "format": "ns",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ]
        }
      ],
      "repeat": null,
      "repeatIteration": null,
      "repeatRowId": null,
      "showTitle": false,
      "title": "Dashboard Row",
      "titleSize": "h6"
    }
  ],
  "schemaVersion": 14,
  "style": "dark",
  "tags": [
    "Compute"
  ],
  "templating": {
    "list": []
  },
  "time": {
    "from": "now/d",
    "to": "now/d"
  },
  "timepicker": {
    "refresh_intervals": [
      "5s",
      "10s",
      "30s",
      "1m",
      "5m",
      "15m",
      "30m",
      "1h",
      "2h",
      "1d"
    ],
    "time_options": [
      "5m",
      "15m",
      "1h",
      "6h",
      "12h",
      "24h",
      "2d",
      "7d",
      "30d"
    ]
  },
  "timezone": "",
  "title": "opnfv_yardstick_tc010",
  "version": 12
}