aboutsummaryrefslogtreecommitdiffstats
path: root/yardstick/cmd
diff options
context:
space:
mode:
authorchenjiankun <chenjiankun1@huawei.com>2016-12-02 00:30:58 +0000
committerchenjiankun <chenjiankun1@huawei.com>2016-12-02 12:40:40 +0000
commit78d6cbd462fc7db9dcdab4d2478f6c27437d4c88 (patch)
tree9bc3cab415a49e37ed89bff9736082dc4286d2c4 /yardstick/cmd
parentdfe01b8db0d51bcaaa6c5ddc67eaf250458c6409 (diff)
Add API to create Grafana container
JIRA: YARDSTICK-441 Change-Id: Ia848c4af072915ef252e8e03100dd7a4e4a6c3c2 Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
Diffstat (limited to 'yardstick/cmd')
-rw-r--r--yardstick/cmd/commands/env.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/yardstick/cmd/commands/env.py b/yardstick/cmd/commands/env.py
index d9c0c0a3f..ed46b84c4 100644
--- a/yardstick/cmd/commands/env.py
+++ b/yardstick/cmd/commands/env.py
@@ -15,3 +15,8 @@ class EnvCommand(object):
url = 'http://localhost:5000/yardstick/env/action'
data = {'action': 'createInfluxDBContainer'}
HttpClient().post(url, data)
+
+ def do_grafana(self, args):
+ url = 'http://localhost:5000/yardstick/env/action'
+ data = {'action': 'createGrafanaContainer'}
+ HttpClient().post(url, data)