gnocchi/devstack/settings
gord chung 5e71480f87 add support for coordination
use tooz to track all metricd agents. grab a block based on number
of agents active. block size is based on the largest agent with
the largest number of workers

if coordination fails or is not supported, by default, all agents
work against same block with block size based on workers of each
agent.

Change-Id: I291b30f896f5e538040bf8f64d879eb1ad949395
2016-07-28 08:43:51 -04:00

63 lines
2.5 KiB
Plaintext

enable_service gnocchi-api
enable_service gnocchi-metricd
enable_service gnocchi-statsd
# Set up default directories
GNOCCHI_DIR=$DEST/gnocchi
GNOCCHI_CONF_DIR=/etc/gnocchi
GNOCCHI_CONF=$GNOCCHI_CONF_DIR/gnocchi.conf
GNOCCHI_PASTE_CONF=$GNOCCHI_CONF_DIR/api-paste.ini
GNOCCHI_LOG_DIR=/var/log/gnocchi
GNOCCHI_AUTH_CACHE_DIR=${GNOCCHI_AUTH_CACHE_DIR:-/var/cache/gnocchi}
GNOCCHI_WSGI_DIR=${GNOCCHI_WSGI_DIR:-/var/www/gnocchi}
GNOCCHI_DATA_DIR=${GNOCCHI_DATA_DIR:-${DATA_DIR}/gnocchi}
GNOCCHI_COORDINATOR_URL=${GNOCCHI_COORDINATOR_URL:-redis://localhost:6379}
# GNOCCHI_DEPLOY defines how Gnocchi is deployed, allowed values:
# - mod_wsgi : Run Gnocchi under Apache HTTPd mod_wsgi
# - werkzeug : Run gnocchi-api
# - uwsgi : Run Gnocchi under uwsgi
# - <empty>: Fallback to GNOCCHI_USE_MOD_WSGI or ENABLE_HTTPD_MOD_WSGI_SERVICES
GNOCCHI_DEPLOY=${GNOCCHI_DEPLOY}
# Toggle for deploying Gnocchi with/without Keystone
GNOCCHI_USE_KEYSTONE=$(trueorfalse True GNOCCHI_USE_KEYSTONE)
# Support potential entry-points console scripts and venvs
if [[ ${USE_VENV} = True ]]; then
PROJECT_VENV["gnocchi"]=${GNOCCHI_DIR}.venv
GNOCCHI_BIN_DIR=${PROJECT_VENV["gnocchi"]}/bin
else
GNOCCHI_BIN_DIR=$(get_python_exec_prefix)
fi
# Gnocchi connection info.
GNOCCHI_SERVICE_PROTOCOL=http
# NOTE(chdent): If you are not using mod wsgi you need to set port!
GNOCCHI_SERVICE_PORT=${GNOCCHI_SERVICE_PORT:-8041}
GNOCCHI_SERVICE_PREFIX=${GNOCCHI_SERVICE_PREFIX:-'/metric'}
GNOCCHI_SERVICE_HOST=${GNOCCHI_SERVICE_HOST:-${SERVICE_HOST}}
# Gnocchi statsd info
GNOCCHI_STATSD_RESOURCE_ID=${GNOCCHI_STATSD_RESOURCE_ID:-$(uuidgen)}
GNOCCHI_STATSD_USER_ID=${GNOCCHI_STATSD_USER_ID:-$(uuidgen)}
GNOCCHI_STATSD_PROJECT_ID=${GNOCCHI_STATSD_PROJECT_ID:-$(uuidgen)}
# ceph gnocchi info
GNOCCHI_CEPH_USER=${GNOCCHI_CEPH_USER:-gnocchi}
GNOCCHI_CEPH_POOL=${GNOCCHI_CEPH_POOL:-gnocchi}
GNOCCHI_CEPH_POOL_PG=${GNOCCHI_CEPH_POOL_PG:-8}
GNOCCHI_CEPH_POOL_PGP=${GNOCCHI_CEPH_POOL_PGP:-8}
# Gnocchi backend
GNOCCHI_STORAGE_BACKEND=${GNOCCHI_STORAGE_BACKEND:-file}
# Grafana settings
GRAFANA_RPM_PKG=${GRAFANA_RPM_PKG:-https://grafanarel.s3.amazonaws.com/builds/grafana-3.0.4-1464167696.x86_64.rpm}
GRAFANA_DEB_PKG=${GRAFANA_DEB_PKG:-https://grafanarel.s3.amazonaws.com/builds/grafana_3.0.4-1464167696_amd64.deb}
GRAFANA_PLUGIN_VERSION=${GRAFANA_PLUGIN_VERSION}
GRAFANA_PLUGINS_DIR=${GRAFANA_PLUGINS_DIR:-$DEST/grafana-gnocchi-datasource}
GRAFANA_PLUGINS_REPO=${GRAFANA_PLUGINS_REPO:-http://github.com/sileht/grafana-gnocchi-datasource.git}
GRAFANA_URL=${GRAFANA_URL:-http://$HOST_IP:3000}