forked from dokku/dokku-graphite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config
26 lines (25 loc) · 1.32 KB
/
config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/env bash
export GRAPHITE_IMAGE=${GRAPHITE_IMAGE:="dokku/docker-grafana-graphite"}
export GRAPHITE_IMAGE_VERSION=${GRAPHITE_IMAGE_VERSION:="6.4.4"}
export GRAPHITE_ROOT=${GRAPHITE_ROOT:="$DOKKU_LIB_ROOT/services/grafana-graphite-statsd"}
export GRAPHITE_HOST_ROOT=${GRAPHITE_HOST_ROOT:=$GRAPHITE_ROOT}
export PLUGIN_UNIMPLEMENTED_SUBCOMMANDS=("backup" "backup-auth" "backup-deauth" "backup-schedule" "backup-schedule-cat" "backup-set-encryption" "backup-unschedule" "backup-unset-encryption" "clone" "connect" "export" "import")
export PLUGIN_COMMAND_PREFIX="graphite"
export PLUGIN_CONFIG_ROOT=${PLUGIN_CONFIG_ROOT:="$DOKKU_LIB_ROOT/config/$PLUGIN_COMMAND_PREFIX"}
export PLUGIN_DATA_ROOT=$GRAPHITE_ROOT
export PLUGIN_DATA_HOST_ROOT=$GRAPHITE_HOST_ROOT
export PLUGIN_DATASTORE_PORTS=(8125 8126 80 2003)
export PLUGIN_DATASTORE_WAIT_PORT=80
export PLUGIN_DEFAULT_ALIAS="STATSD"
export PLUGIN_DISABLE_PULL=${GRAPHITE_DISABLE_PULL:=}
export PLUGIN_DISABLE_PULL_VARIABLE="GRAPHITE_DISABLE_PULL"
export PLUGIN_ALT_ALIAS="DOKKU_STATSD"
export PLUGIN_IMAGE=$GRAPHITE_IMAGE
export PLUGIN_IMAGE_VERSION=$GRAPHITE_IMAGE_VERSION
export PLUGIN_SCHEME="statsd"
export PLUGIN_SERVICE="Graphite"
export PLUGIN_VARIABLE="STATSD"
export PLUGIN_BASE_PATH="$PLUGIN_PATH"
if [[ -n $DOKKU_API_VERSION ]]; then
export PLUGIN_BASE_PATH="$PLUGIN_ENABLED_PATH"
fi