devstack: add support for Gnocchi backend
Change-Id: Ie5beee502ab07e4fca3353dae03c2f1f524a48c7
This commit is contained in:
parent
9e236cc668
commit
014fa900cd
@ -245,6 +245,17 @@ function _ceilometer_configure_storage_backend {
|
|||||||
elif [ "$CEILOMETER_BACKEND" = 'mongodb' ] ; then
|
elif [ "$CEILOMETER_BACKEND" = 'mongodb' ] ; then
|
||||||
iniset $CEILOMETER_CONF database event_connection mongodb://localhost:27017/ceilometer
|
iniset $CEILOMETER_CONF database event_connection mongodb://localhost:27017/ceilometer
|
||||||
iniset $CEILOMETER_CONF database metering_connection mongodb://localhost:27017/ceilometer
|
iniset $CEILOMETER_CONF database metering_connection mongodb://localhost:27017/ceilometer
|
||||||
|
elif [ "$CEILOMETER_BACKEND" = 'gnocchi' ] ; then
|
||||||
|
gnocchi_url=$(gnocchi_service_url)
|
||||||
|
iniset $CEILOMETER_CONF DEFAULT meter_dispatchers gnocchi
|
||||||
|
iniset $CEILOMETER_CONF dispatcher_gnocchi url $gnocchi_url
|
||||||
|
iniset $CEILOMETER_CONF dispatcher_gnocchi archive_policy ${GNOCCHI_ARCHIVE_POLICY}
|
||||||
|
if is_service_enabled swift && [[ "$GNOCCHI_STORAGE_BACKEND" = 'swift' ]] ; then
|
||||||
|
iniset $CEILOMETER_CONF dispatcher_gnocchi filter_service_activity "True"
|
||||||
|
iniset $CEILOMETER_CONF dispatcher_gnocchi filter_project "gnocchi_swift"
|
||||||
|
else
|
||||||
|
iniset $CEILOMETER_CONF dispatcher_gnocchi filter_service_activity "False"
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
die $LINENO "Unable to configure unknown CEILOMETER_BACKEND $CEILOMETER_BACKEND"
|
die $LINENO "Unable to configure unknown CEILOMETER_BACKEND $CEILOMETER_BACKEND"
|
||||||
fi
|
fi
|
||||||
|
@ -19,6 +19,9 @@ CEILOMETER_WSGI_DIR=${CEILOMETER_WSGI_DIR:-/var/www/ceilometer}
|
|||||||
# Set up database backend
|
# Set up database backend
|
||||||
CEILOMETER_BACKEND=${CEILOMETER_BACKEND:-mysql}
|
CEILOMETER_BACKEND=${CEILOMETER_BACKEND:-mysql}
|
||||||
|
|
||||||
|
# Gnocchi default archive_policy for Ceilometer
|
||||||
|
GNOCCHI_ARCHIVE_POLICY=${GNOCCHI_ARCHIVE_POLICY:-low}
|
||||||
|
|
||||||
# Ceilometer connection info.
|
# Ceilometer connection info.
|
||||||
CEILOMETER_SERVICE_PROTOCOL=http
|
CEILOMETER_SERVICE_PROTOCOL=http
|
||||||
CEILOMETER_SERVICE_HOST=$SERVICE_HOST
|
CEILOMETER_SERVICE_HOST=$SERVICE_HOST
|
||||||
|
Loading…
x
Reference in New Issue
Block a user