Docker support influxdb parse point error

Add option 'ignore_parse_point_error' for docker env. Refer(
github.com/openstack/monasca-persister/blob/master/
monasca_persister/conf/repositories.py).

Change-Id: Ia19c45a34c56dcb50d2a39cf42efc53f70a6c2db
This commit is contained in:
zhangjianweibj 2019-03-27 10:44:04 +08:00
parent 5c690dccc7
commit 9900e18422
3 changed files with 34 additions and 29 deletions

View File

@ -29,6 +29,7 @@ ENV \
INFLUX_USER=mon_persister \ INFLUX_USER=mon_persister \
INFLUX_PASSWORD=password \ INFLUX_PASSWORD=password \
INFLUX_DB=mon \ INFLUX_DB=mon \
INFLUX_IGNORE_PARSE_POINT_ERROR="false" \
CASSANDRA_HOSTS=cassandra \ CASSANDRA_HOSTS=cassandra \
CASSANDRA_PORT=8086 \ CASSANDRA_PORT=8086 \
CASSANDRA_USER=mon_persister \ CASSANDRA_USER=mon_persister \

View File

@ -43,35 +43,36 @@ BASE_TAG Dockerfile
Environment variables (child) Environment variables (child)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
============================== =============================== ================================================ =============================== =============================== ================================================
Variable Default Description Variable Default Description
============================== =============================== ================================================ =============================== =============================== ================================================
DEBUG false If true, enable debug logging DEBUG false If true, enable debug logging
VERBOSE true If true, enable info logging VERBOSE true If true, enable info logging
ZOOKEEPER_URI zookeeper:2181 The host and port for zookeeper ZOOKEEPER_URI zookeeper:2181 The host and port for zookeeper
KAFKA_URI kafka:9092 The host and port for kafka KAFKA_URI kafka:9092 The host and port for kafka
KAFKA_WAIT_FOR_TOPICS alarm-state-transitions,metrics Topics to wait on at startup KAFKA_WAIT_FOR_TOPICS alarm-state-transitions,metrics Topics to wait on at startup
KAFKA_WAIT_RETRIES 24 Number of kafka connect attempts KAFKA_WAIT_RETRIES 24 Number of kafka connect attempts
KAFKA_WAIT_DELAY 5 Seconds to wait between attempts KAFKA_WAIT_DELAY 5 Seconds to wait between attempts
KAFKA_ALARM_HISTORY_BATCH_SIZE 1000 Kafka consumer takes messages in a batch KAFKA_ALARM_HISTORY_BATCH_SIZE 1000 Kafka consumer takes messages in a batch
KAFKA_ALARM_HISTORY_WAIT_TIME 15 Seconds to wait if the batch size is not reached KAFKA_ALARM_HISTORY_WAIT_TIME 15 Seconds to wait if the batch size is not reached
KAFKA_METRICS_BATCH_SIZE 1000 Kafka consumer takes messages in a batch KAFKA_METRICS_BATCH_SIZE 1000 Kafka consumer takes messages in a batch
KAFKA_METRICS_WAIT_TIME 15 Seconds to wait if the batch size is not reached KAFKA_METRICS_WAIT_TIME 15 Seconds to wait if the batch size is not reached
DATABASE_BACKEND influxdb Select for backend database DATABASE_BACKEND influxdb Select for backend database
INFLUX_HOST influxdb The host for influxdb INFLUX_HOST influxdb The host for influxdb
INFLUX_PORT 8086 The port for influxdb INFLUX_PORT 8086 The port for influxdb
INFLUX_USER mon_persister The influx username INFLUX_USER mon_persister The influx username
INFLUX_PASSWORD password The influx password INFLUX_PASSWORD password The influx password
INFLUX_DB mon The influx database name INFLUX_DB mon The influx database name
CASSANDRA_HOSTS cassandra Cassandra node addresses INFLUX_IGNORE_PARSE_POINT_ERROR false Don't exit on InfluxDB parse point errors
CASSANDRA_PORT 8086 Cassandra port number CASSANDRA_HOSTS cassandra Cassandra node addresses
CASSANDRA_USER mon_persister Cassandra user name CASSANDRA_PORT 8086 Cassandra port number
CASSANDRA_PASSWORD password Cassandra password CASSANDRA_USER mon_persister Cassandra user name
CASSANDRA_KEY_SPACE monasca Keyspace name where metrics are stored CASSANDRA_PASSWORD password Cassandra password
CASSANDRA_CONNECTION_TIMEOUT 5 Cassandra timeout in seconds CASSANDRA_KEY_SPACE monasca Keyspace name where metrics are stored
CASSANDRA_RETENTION_POLICY 45 Data retention period in days CASSANDRA_CONNECTION_TIMEOUT 5 Cassandra timeout in seconds
STAY_ALIVE_ON_FAILURE false If true, container runs 2 hours even start fails CASSANDRA_RETENTION_POLICY 45 Data retention period in days
============================== =============================== ================================================ STAY_ALIVE_ON_FAILURE false If true, container runs 2 hours even start fails
=============================== =============================== ================================================
Provide Configuration templates Provide Configuration templates

View File

@ -21,6 +21,9 @@ metrics_driver = monasca_persister.repositories.influxdb.metrics_repository:Metr
# The influxdb driver to use for the alarm state history repository # The influxdb driver to use for the alarm state history repository
alarm_state_history_driver = monasca_persister.repositories.influxdb.alarm_state_history_repository:AlarmStateHistInfluxdbRepository alarm_state_history_driver = monasca_persister.repositories.influxdb.alarm_state_history_repository:AlarmStateHistInfluxdbRepository
# Don't exit on InfluxDB parse point errors
ignore_parse_point_error = {{ INFLUX_IGNORE_PARSE_POINT_ERROR }}
{% endif %} {% endif %}
[zookeeper] [zookeeper]