Files
ceilometer/devstack/settings
Takashi Kajinami 241ec556cd Use wsgi module to run gnocchi api
devstack deprecated support for wsgi script. Use the new wsgi module
which was added recently and is available in the latest stable/4.7
branch[1].

[1] https://github.com/gnocchixyz/gnocchi/commit/02c39352dc6c876f96ea0d

Change-Id: Iad0fe37af46b81e831791f8cf8467efc675c64da
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
2025-10-27 23:53:52 +09:00

72 lines
2.7 KiB
Plaintext

# turn on all the ceilometer services by default (except for ipmi pollster)
# Pollsters
enable_service ceilometer-acompute ceilometer-acentral
# Notification Agent
enable_service ceilometer-anotification
# Default directories
CEILOMETER_DIR=$DEST/ceilometer
CEILOMETER_CONF_DIR=/etc/ceilometer
CEILOMETER_CONF=$CEILOMETER_CONF_DIR/ceilometer.conf
# Gnocchi is the default backind if both "CEILOMETER_BACKEND"
# and "CEILOMETER_BACKENDS" are empty
CEILOMETER_BACKEND=${CEILOMETER_BACKEND:""}
if ! [[ "$CEILOMETER_BACKENDS" =~ "$CEILOMETER_BACKEND" ]]; then
CEILOMETER_BACKENDS+=","$CEILOMETER_BACKEND
fi
CEILOMETER_BACKENDS=${CEILOMETER_BACKENDS:-"gnocchi"}
if [[ "$CEILOMETER_BACKENDS" =~ "gnocchi" ]]; then
enable_service gnocchi-api gnocchi-metricd
fi
if [[ "$CEILOMETER_BACKENDS" =~ "sg-core" ]]; then
enable_service sg-core
fi
GNOCCHI_DIR=${GNOCCHI_DIR:-${DEST}/gnocchi}
GNOCCHI_BRANCH=${GNOCCHI_BRANCH:-"master"}
GNOCCHI_REPO=${GNOCCHI_REPO:-https://github.com/gnocchixyz/gnocchi}
# Gnocchi default archive_policy for Ceilometer
if [ -n "$GNOCCHI_ARCHIVE_POLICY_TEMPEST" ]; then
GNOCCHI_ARCHIVE_POLICY=$GNOCCHI_ARCHIVE_POLICY_TEMPEST
else
GNOCCHI_ARCHIVE_POLICY=${GNOCCHI_ARCHIVE_POLICY:-ceilometer-low}
fi
GNOCCHI_CONF_DIR=${GNOCCHI_CONF_DIR:-/etc/gnocchi}
GNOCCHI_CONF=${GNOCCHI_CONF:-${GNOCCHI_CONF_DIR}/gnocchi.conf}
GNOCCHI_WSGI=gnocchi.wsgi.api:application
GNOCCHI_COORDINATOR_URL=${CEILOMETER_COORDINATOR_URL:-redis://localhost:6379}
GNOCCHI_METRICD_PROCESSING_DELAY=${GNOCCHI_METRICD_PROCESSING_DELAY:-5}
GNOCCHI_UWSGI_FILE=${GNOCCHI_UWSGI_FILE:-${GNOCCHI_CONF_DIR}/uwsgi.ini}
GNOCCHI_SERVICE_PROTOCOL=http
GNOCCHI_SERVICE_HOST=${GNOCCHI_SERVICE_HOST:-${SERVICE_HOST}}
# FIXME(sileht): put 300 by default to match the archive policy
# when the gate job have overrided this.
CEILOMETER_ALARM_GRANULARITY=${CEILOMETER_ALARM_GRANULARITY:-60}
CEILOMETER_ALARM_AGGREGATION_METHOD=${CEILOMETER_ALARM_AGGREGATION_METHOD:-rate:mean}
CEILOMETER_ALARM_METRIC_NAME=${CEILOMETER_ALARM_METRIC_NAME:-cpu}
CEILOMETER_ALARM_THRESHOLD=${CEILOMETER_ALARM_THRESHOLD:-10000000}
# To enable OSprofiler change value of this variable to "notifications,profiler"
CEILOMETER_NOTIFICATION_TOPICS=${CEILOMETER_NOTIFICATION_TOPICS:-notifications}
CEILOMETER_COORDINATION_URL=${CEILOMETER_COORDINATION_URL:-redis://localhost:6379}
CEILOMETER_PIPELINE_INTERVAL=${CEILOMETER_PIPELINE_INTERVAL:-}
# Cache Options
# NOTE(cdent): These are incomplete and specific for this testing.
CEILOMETER_CACHE_BACKEND=${CEILOMETER_CACHE_BACKEND:-dogpile.cache.redis}
CEILOMETER_CACHE_URL=${CEILOMETER_CACHE_URL:-redis://localhost:6379}
CEILOMETER_EVENT_ALARM=${CEILOMETER_EVENT_ALARM:-False}
# Get rid of this before done.
# Tell emacs to use shell-script-mode
## Local variables:
## mode: shell-script
## End: