Docker support cassandra keyspace option

Support user configure cassandra keyspace.

Story: 2005472
Task: 30553

Change-Id: Ifd1e6787825f79c8854ea3f771a45324e89b8e6f
This commit is contained in:
zhangjianweibj 2019-04-12 15:11:47 +08:00 committed by Dobroslaw Zybort
parent 0284544aad
commit 8369c5c259
3 changed files with 3 additions and 1 deletions

View File

@ -27,6 +27,7 @@ ENV \
INFLUX_DB=mon \ INFLUX_DB=mon \
CASSANDRA_CONTACT_POINTS=cassandra \ CASSANDRA_CONTACT_POINTS=cassandra \
CASSANDRA_PORT=9042 \ CASSANDRA_PORT=9042 \
CASSANDRA_KEY_SPACE=monasca \
CASSANDRA_USER=mon_persister \ CASSANDRA_USER=mon_persister \
CASSANDRA_PASSWORD=password \ CASSANDRA_PASSWORD=password \
MYSQL_HOST=mysql \ MYSQL_HOST=mysql \

View File

@ -53,6 +53,7 @@ INFLUX_PASSWORD password
INFLUX_DB mon The influx database name INFLUX_DB mon The influx database name
CASSANDRA_CONTACT_POINTS cassandra Cassandra node addresses CASSANDRA_CONTACT_POINTS cassandra Cassandra node addresses
CASSANDRA_PORT 9042 Cassandra port number CASSANDRA_PORT 9042 Cassandra port number
CASSANDRA_KEY_SPACE monasca Cassandra keyspace where metric are stored
CASSANDRA_USER mon_persister Cassandra user name CASSANDRA_USER mon_persister Cassandra user name
CASSANDRA_PASSWORD password Cassandra password CASSANDRA_PASSWORD password Cassandra password
MYSQL_DB_HOST mysql The host for MySQL MYSQL_DB_HOST mysql The host for MySQL

View File

@ -183,7 +183,7 @@ port = {{ CASSANDRA_PORT | default('9042') }}
# #
# keyspace where metric are stored # keyspace where metric are stored
# (string value) # (string value)
keyspace = monasca keyspace = {{ CASSANDRA_KEY_SPACE }}
# #
# Cassandra user for monasca-api service # Cassandra user for monasca-api service