diff options
author | 2021-09-11 14:38:38 +0000 | |
---|---|---|
committer | 2021-09-11 14:38:38 +0000 | |
commit | e9ad5b6ef856c4965c9047a9f2bd2199c44e0eb1 (patch) | |
tree | c1a0d3397474d3a811a4e1f83ed7d30ecbe6fd89 /ms/command-executor/src/main/docker/start.sh | |
parent | d929b3be347ccc3265af9b787ee0f3822efbfb0b (diff) | |
parent | 5b68e8c85f9d9148b0d6a9a86cfa62125d25e88c (diff) |
Merge "CCSDK-3451 Prometheus Metrics for command-executor"
Diffstat (limited to 'ms/command-executor/src/main/docker/start.sh')
-rwxr-xr-x | ms/command-executor/src/main/docker/start.sh | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/ms/command-executor/src/main/docker/start.sh b/ms/command-executor/src/main/docker/start.sh index 38357a091..d49adf7a5 100755 --- a/ms/command-executor/src/main/docker/start.sh +++ b/ms/command-executor/src/main/docker/start.sh @@ -22,6 +22,19 @@ then export APP_PORT=50051 fi +if [ -z "${PROMETHEUS_PORT}" ] +then + echo "PROMETHEUS_PORT environment variable is not set, using default(10005)." + export PROMETHEUS_PORT=10005 +fi + +if [ -z "${PROMETHEUS_METRICS_ENABLED}" ] +then + echo "PROMETHEUS_METRICS_ENABLED environment variable is not set, using default(false)." + #enable this feature via charts. + export PROMETHEUS_METRICS_ENABLED=false +fi + if [ -z "${BASIC_AUTH}" ] then echo "BASIC_AUTH environment variable is not set, using default." @@ -39,4 +52,4 @@ then fi cd /opt/app/onap/python/ -python server.py ${APP_PORT} ${BASIC_AUTH}
\ No newline at end of file +python server.py ${APP_PORT} ${BASIC_AUTH} |