5ab59f7edb
The PromQL statement data for PrometheusPlugin is able to customize with external data file. The operators can use the original PromQL statement with this file. Implements: blueprint support-auto-lcm Change-Id: Ie84eef8098feabaf4a82a33610248dcae5e205c0
13 lines
427 B
Bash
13 lines
427 B
Bash
#!/bin/bash -xe
|
|
|
|
# This script is used to set up a fake prometheus server
|
|
# for functional testing.
|
|
#
|
|
|
|
cd /opt/stack/tacker/tacker/tests/functional/sol_kubernetes_v2/samples/tacker-monitoring-test
|
|
|
|
sudo docker build -t tacker-monitoring-test .
|
|
sudo docker run -v ${PWD}/src:/work/src -v ${PWD}/rules:/etc/prometheus/rules \
|
|
-p 55555:55555 -p 50022:22 -e TEST_REMOTE_URI="http://0.0.0.0" -d \
|
|
-it tacker-monitoring-test
|