diff options
author | chenjiankun <chenjiankun1@huawei.com> | 2016-12-02 00:30:58 +0000 |
---|---|---|
committer | chenjiankun <chenjiankun1@huawei.com> | 2016-12-02 12:40:40 +0000 |
commit | 78d6cbd462fc7db9dcdab4d2478f6c27437d4c88 (patch) | |
tree | 9bc3cab415a49e37ed89bff9736082dc4286d2c4 /yardstick | |
parent | dfe01b8db0d51bcaaa6c5ddc67eaf250458c6409 (diff) |
Add API to create Grafana container
JIRA: YARDSTICK-441
Change-Id: Ia848c4af072915ef252e8e03100dd7a4e4a6c3c2
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
Diffstat (limited to 'yardstick')
-rw-r--r-- | yardstick/cmd/commands/env.py | 5 | ||||
-rw-r--r-- | yardstick/common/constants.py | 6 |
2 files changed, 11 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) diff --git a/yardstick/common/constants.py b/yardstick/common/constants.py index 8fbc82f0e..07d869755 100644 --- a/yardstick/common/constants.py +++ b/yardstick/common/constants.py @@ -8,3 +8,9 @@ DOCKER_URL = 'unix://var/run/docker.sock' USER = 'root' PASSWORD = 'root' DATABASE = 'yardstick' + +INFLUXDB_IMAGE = 'tutum/influxdb' +INFLUXDB_TAG = '0.13' + +GRAFANA_IMAGE = 'grafana/grafana' +GRAFANA_TAGS = '3.1.1' |