forked from scylladb/scylla-monitoring
-
Notifications
You must be signed in to change notification settings - Fork 0
/
start-all.sh
executable file
·532 lines (485 loc) · 18.3 KB
/
start-all.sh
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
#!/usr/bin/env bash
. versions.sh
if [ -f env.sh ]; then
. env.sh
fi
CURRENT_VERSION="master"
if [ -f CURRENT_VERSION.sh ]; then
CURRENT_VERSION=`cat CURRENT_VERSION.sh`
fi
if [ "$1" = "-e" ]; then
DEFAULT_VERSION=${DEFAULT_ENTERPRISE_VERSION[$BRANCH_VERSION]}
fi
if [ -z "$BRANCH_VERSION" ]; then
BRANCH_VERSION=$CURRENT_VERSION
fi
if [ -z ${DEFAULT_VERSION[$CURRENT_VERSION]} ]; then
BRANCH_VERSION=`echo $CURRENT_VERSION|cut -d'.' -f1,2`
fi
if [ -z "$MANAGER_VERSION" ];then
MANAGER_VERSION=${MANAGER_DEFAULT_VERSION[$BRANCH_VERSION]}
fi
if [ "$1" = "--version" ]; then
echo "Scylla-Monitoring Stack version: $CURRENT_VERSION"
echo "Supported versions:" ${SUPPORTED_VERSIONS[$BRANCH_VERSION]}
echo "Manager supported versions:" ${MANAGER_SUPPORTED_VERSIONS[$BRANCH_VERSION]}
exit
fi
if [ "$CURRENT_VERSION" = "master" ]; then
echo ""
echo "*****************************************************"
echo "* WARNING: You are using the unstable master branch *"
echo "* Check the README.md file for the stable releases *"
echo "*****************************************************"
echo ""
echo "Make sure you run generate-dashboards.sh to generate your dashboards."
echo 'For example to use Scylla 2021.1 run `./generate-dashboards.sh -F -v 2021.1`'
echo ""
fi
if [ "`id -u`" -eq 0 ]; then
echo "Running as root is not advised, please check the documentation on how to run as non-root user"
else
GROUPID=`id -g`
USER_PERMISSIONS="-u $UID:$GROUPID"
fi
group_args=()
is_podman="$(docker --help | grep -o podman)"
if [ ! -z "$is_podman" ]; then
group_args+=(--userns=keep-id)
fi
function usage {
__usage="Usage: $(basename $0) [-h] [--version] [-e] [-d Prometheus data-dir] [-L resolve the servers from the manger running on the given address] [-G path to grafana data-dir] [-s scylla-target-file] [-n node-target-file] [-l] [-v comma separated versions] [-j additional dashboard to load to Grafana, multiple params are supported] [-c grafana environment variable, multiple params are supported] [-b Prometheus command line options] [-g grafana port ] [ -p prometheus port ] [-a admin password] [-m alertmanager port] [ -M scylla-manager version ] [-D encapsulate docker param] [-r alert-manager-config] [-R prometheus-alert-file] [-N manager target file] [-A bind-to-ip-address] [-C alertmanager commands] [-Q Grafana anonymous role (Admin/Editor/Viewer)] [-S start with a system specific dashboard set] [-T additional-prometheus-targets] [--no-loki] [--auto-restart] [--no-renderer] [-f alertmanager-dir]
Options:
-h print this help and exit
--version print the current monitoring version and the supported versions and exit.
-e
-d path/to/Prometheus/data/dir - Set an external data directory for the Prometheus data
-L ip - Resolve the servers from a Scylla Manager running on the given address.
-G path/to/Grafana/data-dir - Set an external data directory for the Grafana data.
-s path/to/scylla-target-file - Read Scylla's target from the given file.
-n path/to/node-target-file - Override scylla target file for node_exporter.
-l - If Set use the local host network, especially useful when a container needs
to access the local host.
-v comma separated versions - Specify one or more Scylla versions, check --version for the supported versions.
-j additional dashboard - List additional dashboards to load to Grafana, multiple params are supported.
-c grafana_environment - Grafana environment variable, multiple params are supported.
-b Prometheus command - Prometheus command line options.
-g grafana port - Override the default Grafana port.
-p prometheus port - Override the default Prometheus port.
-a admin password - Set Grafna's Admin password.
-m alertmanager port - Override the default Prometheus port.
-M scylla-manager version - Override the default Scylla Manager version to use.
-D docker param - Encapsulate docker param, the parameter will be used by all containers.
-r alert-manager-config - Override the default alert-manager configuration file.
-f path/to/alertmanager/data - If set, the alertmanager would store its data in the given directory.
-R prometheus-alert-file - Override the default Prometheus alerts configuration file.
-N path/to/manager/target file - Set the location of the target file for Scylla Manager.
-A bind-to-ip-address - Bind to a specific interface.
-C alertmanager commands - Pass the command to the alertmanager.
-Q Grafana anonymous role - Set the Grafana anonymous role to one of Admin/Editor/Viewer.
-S dashbards-list - Override the default set of dashboards with the spcefied one.
-T path/to/prometheus-targets - Adds additional Prometheus target files.
-k path/to/loki/storage - When set, will use the given directory for Loki's data
--no-loki - If set, do not run Loki and promtail.
--auto-restart - If set, auto restarts the containers on failure.
--no-renderer - If set, do not run the Grafana renderer container.
--thanos-sc - If set, run thanos side car with the Prometheus server.
--limit container,param - Allow to set a specific Docker parameter for a container, where container can be:
prometheus, grafana, alertmanager, loki, sidecar, grafanarender
The script starts Scylla Monitoring stack.
"
echo "$__usage"
}
is_local () {
for var in "$@"; do
if grep -q '\s127.' $1; then
echo "Local host found in $1"
grep '\s127.' $1
return 0
fi
if grep -q 'localhost' $1; then
return 0
fi
done
return 1
}
if [ -z "$PROMETHEUS_RULES" ]; then
PROMETHEUS_RULES="$PWD/prometheus/prom_rules/:/etc/prometheus/prom_rules/"
fi
if [ -z "$VERSIONS" ]; then
VERSIONS=${DEFAULT_VERSION[$BRANCH_VERSION]}
fi
if [ -z "$SCYLLA_TARGET_FILES" ]; then
SCYLLA_TARGET_FILES=($PWD/prometheus/scylla_servers.yml $PWD/scylla_servers.yml)
fi
if [ -z "$SCYLLA_MANGER_TARGET_FILES" ]; then
SCYLLA_MANGER_TARGET_FILES=($PWD/prometheus/scylla_manager_servers.yml $PWD/scylla_manager_servers.yml $PWD/prometheus/scylla_manager_servers.example.yml)
fi
if [ -z "$GRAFANA_ADMIN_PASSWORD" ]; then
GRAFANA_ADMIN_PASSWORD=""
fi
if [ -z "$ALERTMANAGER_PORT" ]; then
ALERTMANAGER_PORT=""
fi
if [ -z "$DOCKER_PARAM" ]; then
DOCKER_PARAM=""
fi
if [ -z "$DATA_DIR" ]; then
DATA_DIR=""
fi
if [ -z "$DATA_DIR_CMD" ]; then
DATA_DIR_CMD=""
fi
if [ -z "$CONSUL_ADDRESS" ]; then
CONSUL_ADDRESS=""
fi
if [ -z "$PROMETHEUS_TARGETS" ]; then
PROMETHEUS_TARGETS=""
fi
if [ -z "$BIND_ADDRESS" ]; then
BIND_ADDRESS=""
fi
if [ -z "$BIND_ADDRESS_CONFIG" ]; then
BIND_ADDRESS_CONFIG=""
fi
if [ -z "$GRAFNA_ANONYMOUS_ROLE" ]; then
GRAFNA_ANONYMOUS_ROLE=""
fi
if [ -z "$SPECIFIC_SOLUTION" ]; then
SPECIFIC_SOLUTION=""
fi
if [ -z "$LDAP_FILE" ]; then
LDAP_FILE=""
fi
if [ -z "$RUN_RENDERER" ]; then
RUN_RENDERER="-E"
fi
if [ -z "$RUN_LOKI" ]; then
RUN_LOKI=1
fi
if [ -z "$RUN_THANOS_SC" ]; then
RUN_THANOS_SC=0
fi
if [ -z "$ALERT_MANAGER_DIR" ]; then
ALERT_MANAGER_DIR=""
fi
if [ -z "$LOKI_DIR" ]; then
LOKI_DIR=""
fi
LIMITS=""
VOLUMES=""
PARAMS=""
for arg; do
shift
if [ -z "$LIMIT" ]; then
case $arg in
(--no-loki) RUN_LOKI=0
;;
(--no-renderer) RUN_RENDERER=""
;;
(--thanos-sc) RUN_THANOS_SC=1
;;
(--auto-restart) DOCKER_PARAM="--restart=unless-stopped"
;;
(--limit)
LIMIT="1"
;;
(--volume)
LIMIT="1"
VOLUME="1"
;;
(--param)
LIMIT="1"
PARAM="1"
;;
(*) set -- "$@" "$arg"
;;
esac
else
DOCR=`echo $arg|cut -d',' -f1`
VALUE=`echo $arg|cut -d',' -f2-|sed 's/#/ /g'`
NOSPACE=`echo $arg|sed 's/ /#/g'`
if [ "$PARAM" = "1" ]; then
if [ -z "${DOCKER_PARAMS[$DOCR]}" ]; then
DOCKER_PARAMS[$DOCR]=""
fi
DOCKER_PARAMS[$DOCR]="${DOCKER_PARAMS[$DOCR]} $VALUE"
PARAMS="$PARAMS --param $NOSPACE"
unset PARAM
else
if [ -z "${DOCKER_LIMITS[$DOCR]}" ]; then
DOCKER_LIMITS[$DOCR]=""
fi
if [ "$VOLUME" = "1" ]; then
SRC=`echo $VALUE|cut -d':' -f1`
DST=`echo $VALUE|cut -d':' -f2-`
SRC=$(readlink -m $SRC)
DOCKER_LIMITS[$DOCR]="${DOCKER_LIMITS[$DOCR]} -v $SRC:$DST"
VOLUMES="$VOLUMES --volume $NOSPACE"
unset VOLUME
else
DOCKER_LIMITS[$DOCR]="${DOCKER_LIMITS[$DOCR]} $VALUE"
LIMITS="$LIMITS --limit $NOSPACE"
fi
fi
unset LIMIT
fi
done
while getopts ':hleEd:g:p:v:s:n:a:c:j:b:m:r:R:M:G:D:L:N:C:Q:A:f:P:S:T:k:' option; do
case "$option" in
h) usage
exit
;;
v) VERSIONS=$OPTARG
;;
M) MANAGER_VERSION=$OPTARG
;;
d) DATA_DIR=$OPTARG
;;
G) EXTERNAL_VOLUME="-G $OPTARG"
;;
A) BIND_ADDRESS="$OPTARG:"
BIND_ADDRESS_CONFIG="-A $OPTARG"
;;
r) ALERT_MANAGER_RULE_CONFIG="-r $OPTARG"
;;
R) if [[ -d "$OPTARG" ]]; then
PROMETHEUS_RULES=`readlink -m $OPTARG`":/etc/prometheus/prom_rules/"
else
PROMETHEUS_RULES=`readlink -m $OPTARG`":/etc/prometheus/prometheus.rules.yml"
fi
;;
g) GRAFANA_PORT="-g $OPTARG"
;;
m) ALERTMANAGER_PORT="-p $OPTARG"
;;
T) PROMETHEUS_TARGETS="$PROMETHEUS_TARGETS -T $OPTARG"
;;
Q) GRAFNA_ANONYMOUS_ROLE="-Q $OPTARG"
;;
p) PROMETHEUS_PORT=$OPTARG
;;
s) SCYLLA_TARGET_FILES=("$OPTARG")
;;
n) NODE_TARGET_FILE=$OPTARG
;;
l) DOCKER_PARAM="$DOCKER_PARAM --net=host"
;;
L) CONSUL_ADDRESS="-L $OPTARG"
;;
P) LDAP_FILE="-P $OPTARG"
;;
a) GRAFANA_ADMIN_PASSWORD="-a $OPTARG"
;;
j) GRAFANA_DASHBOARD_ARRAY+=("$OPTARG")
;;
c) GRAFANA_ENV_ARRAY+=("$OPTARG")
;;
C) ALERTMANAGER_COMMANDS+=("$OPTARG")
;;
D) DOCKER_PARAM="$DOCKER_PARAM $OPTARG"
;;
b) PROMETHEUS_COMMAND_LINE_OPTIONS_ARRAY+=("$OPTARG")
;;
N) SCYLLA_MANGER_TARGET_FILES=($OPTARG)
;;
S) SPECIFIC_SOLUTION="-S $OPTARG"
;;
E) RUN_RENDERER="-E"
;;
f) ALERT_MANAGER_DIR="-f $OPTARG"
;;
k) LOKI_DIR="-k $OPTARG"
;;
:) printf "missing argument for -%s\n" "$OPTARG" >&2
echo "$usage" >&2
exit 1
;;
\?) printf "illegal option: -%s\n" "$OPTARG" >&2
echo "$usage" >&2
exit 1
;;
esac
done
if [ -z "$VERSIONS" ]; then
echo "Scylla-version was not not found, add the -v command-line with a specific version (i.e. -v 2021.1)"
exit 1
fi
if [[ $DOCKER_PARAM = *"--net=host"* ]]; then
if [ ! -z "$ALERTMANAGER_PORT" ] || [ ! -z "$GRAFANA_PORT" ] || [ ! -z $PROMETHEUS_PORT ]; then
echo "Port mapping is not supported with host network, remove the -l flag from the command line"
exit 1
fi
HOST_NETWORK=1
fi
if [ -z "$CONSUL_ADDRESS" ]; then
for f in ${SCYLLA_TARGET_FILES[@]}; do
if [ -f $f ]; then
SCYLLA_TARGET_FILE=$f
break
fi
done
if [ -z $SCYLLA_TARGET_FILE ]; then
echo "Scylla target file '${SCYLLA_TARGET_FILES}' does not exist, you can use prometheus/scylla_servers.example.yml as an example."
exit 1
fi
if [ -z $NODE_TARGET_FILE ]; then
NODE_TARGET_FILE=$SCYLLA_TARGET_FILE
fi
if [ ! -f $NODE_TARGET_FILE ]; then
echo "Node target file '${NODE_TARGET_FILE}' does not exist"
exit 1
fi
for f in ${SCYLLA_MANGER_TARGET_FILES[@]}; do
if [ -f $f ]; then
SCYLLA_MANGER_TARGET_FILE=$f
break
fi
done
if [ -z $SCYLLA_MANGER_TARGET_FILE ]; then
echo "Scylla-Manager target file '${SCYLLA_MANGER_TARGET_FILES}' does not exist, you can use prometheus/scylla_manager_servers.example.yml as an example."
exit 1
fi
if [ -z "$HOST_NETWORK" ]; then
if is_local $SCYLLA_TARGET_FILE $SCYLLA_MANGER_TARGET_FILE $NODE_TARGET_FILE; then
echo "Warning: It seems that you are trying to connect to localhost (either localhost or IP on the 127.x.x.x range)."
echo " For example, maybe Scylla Manager is running on the localhost."
echo "If that is the case, you should set your Docker to use the host network. You can do that with the -l flag."
echo ""
fi
fi
SCYLLA_TARGET_FILE="-v "$(readlink -m $SCYLLA_TARGET_FILE)":/etc/scylla.d/prometheus/scylla_servers.yml:Z"
SCYLLA_MANGER_TARGET_FILE="-v "$(readlink -m $SCYLLA_MANGER_TARGET_FILE)":/etc/scylla.d/prometheus/scylla_manager_servers.yml:Z"
NODE_TARGET_FILE="-v "$(readlink -m $NODE_TARGET_FILE)":/etc/scylla.d/prometheus/node_exporter_servers.yml:Z"
else
SCYLLA_TARGET_FILE=""
SCYLLA_MANGER_TARGET_FILE=""
NODE_TARGET_FILE=""
fi
if [ -z $DATA_DIR ]
then
USER_PERMISSIONS=""
echo "Warning: without an external Prometheus directory, Prometheus data will be deleted on shutdown, use the -d command line flag for data persistence."
else
if [ -d $DATA_DIR ]; then
echo "Loading prometheus data from $DATA_DIR"
else
echo "Creating data directory $DATA_DIR"
mkdir -p $DATA_DIR
fi
DATA_DIR_CMD="-v "$(readlink -m $DATA_DIR)":/prometheus/data:Z"
fi
if [ "$VERSIONS" = "latest" ]; then
if [ -z "$BRANCH_VERSION" ] || [ "$BRANCH_VERSION" = "master" ]; then
echo "Default versions (-v latest) is not supported on the master branch, use specific version instead"
exit 1
fi
VERSIONS=${DEFAULT_VERSION[$BRANCH_VERSION]}
echo "The use of -v latest is deprecated. Use a specific version instead."
else
if [ "$VERSIONS" = "all" ]; then
VERSIONS=$ALL
fi
fi
ALERTMANAGER_COMMAND=""
for val in "${ALERTMANAGER_COMMANDS[@]}"; do
ALERTMANAGER_COMMAND="$ALERTMANAGER_COMMAND -C $val"
done
echo "Wait for alert manager container to start"
AM_ADDRESS=`./start-alertmanager.sh $ALERTMANAGER_PORT $ALERT_MANAGER_DIR -D "$DOCKER_PARAM" $LIMITS $VOLUMES $PARAMS $ALERTMANAGER_COMMAND $BIND_ADDRESS_CONFIG $ALERT_MANAGER_RULE_CONFIG`
if [ $? -ne 0 ]; then
echo "$AM_ADDRESS"
exit 1
fi
echo "Wait for Loki container to start."
LOKI_ADDRESS="127.0.0.1"
if [ $RUN_LOKI -eq 1 ]; then
LOKI_ADDRESS=`./start-loki.sh $BIND_ADDRESS_CONFIG $LOKI_DIR -D "$DOCKER_PARAM" $LIMITS $VOLUMES $PARAMS -m $AM_ADDRESS`
if [ $? -ne 0 ]; then
echo "$LOKI_ADDRESS"
exit 1
fi
fi
if [ -z $PROMETHEUS_PORT ]; then
PROMETHEUS_PORT=9090
PROMETHEUS_NAME=aprom
else
PROMETHEUS_NAME=aprom-$PROMETHEUS_PORT
fi
docker container inspect $PROMETHEUS_NAME > /dev/null 2>&1
if [ $? -eq 0 ]; then
printf "\nSome of the monitoring docker instances ($PROMETHEUS_NAME) exist. Make sure all containers are killed and removed. You can use kill-all.sh for that\n"
exit 1
fi
# Exit if Docker engine is not running
if [ ! "$(docker ps)" ]
then
echo "Error: Docker engine is not running"
exit 1
fi
for val in "${PROMETHEUS_COMMAND_LINE_OPTIONS_ARRAY[@]}"; do
if [[ $val = "--"* ]]; then
PROMETHEUS_COMMAND_LINE_OPTIONS+=" $val"
else
echo "Using single hyphen is depricated and will be removed in future version use -$val instead"
PROMETHEUS_COMMAND_LINE_OPTIONS+=" -$val"
fi
done
./prometheus-config.sh -m $AM_ADDRESS $CONSUL_ADDRESS $PROMETHEUS_TARGETS
if [ -z $HOST_NETWORK ]; then
PORT_MAPPING="-p $BIND_ADDRESS$PROMETHEUS_PORT:9090"
fi
docker run -d $DOCKER_PARAM ${DOCKER_LIMITS["prometheus"]} $USER_PERMISSIONS \
$DATA_DIR_CMD \
"${group_args[@]}" \
-v $PWD/prometheus/build/prometheus.yml:/etc/prometheus/prometheus.yml:Z \
-v $PROMETHEUS_RULES:z \
$SCYLLA_TARGET_FILE \
$SCYLLA_MANGER_TARGET_FILE \
$NODE_TARGET_FILE \
$PORT_MAPPING --name $PROMETHEUS_NAME docker.io/prom/prometheus:$PROMETHEUS_VERSION \
--web.enable-lifecycle --config.file=/etc/prometheus/prometheus.yml $PROMETHEUS_COMMAND_LINE_OPTIONS \
${DOCKER_PARAMS["prometheus"]}
if [ $? -ne 0 ]; then
echo "Error: Prometheus container failed to start"
echo "For more information use: docker logs $PROMETHEUS_NAME"
exit 1
fi
# Number of retries waiting for a Docker container to start
RETRIES=7
# Wait till Prometheus is available
printf "Wait for Prometheus container to start."
TRIES=0
until $(curl --output /dev/null -f --silent http://localhost:$PROMETHEUS_PORT) || [ $TRIES -eq $RETRIES ]; do
printf '.'
((TRIES=TRIES+1))
sleep 5
done
echo
if [ ! "$(docker ps -q -f name=$PROMETHEUS_NAME)" ]
then
echo "Error: Prometheus container failed to start"
echo "For more information use: docker logs $PROMETHEUS_NAME"
exit 1
fi
# Can't use localhost here, because the monitoring may be running remotely.
# Also note that the port to which we need to connect is 9090, regardless of which port we bind to at localhost.
DB_ADDRESS="$(docker inspect --format '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $PROMETHEUS_NAME):9090"
if [ ! -z "$is_podman" ] && [ "$DB_ADDRESS" = ":9090" ]; then
HOST_IP=`hostname -I | awk '{print $1}'`
DB_ADDRESS="$HOST_IP:9090"
fi
if [ $RUN_THANOS_SC -eq 1 ]; then
if [ -z $DATA_DIR ]; then
echo "You must use external prometheus directory to use the thanos side cart"
else
./start-thanos-sc.sh -d $DATA_DIR -a $DB_ADDRESS $LIMITS $VOLUMES $PARAMS $BIND_ADDRESS_CONFIG
fi
fi
for val in "${GRAFANA_ENV_ARRAY[@]}"; do
GRAFANA_ENV_COMMAND="$GRAFANA_ENV_COMMAND -c $val"
done
for val in "${GRAFANA_DASHBOARD_ARRAY[@]}"; do
GRAFANA_DASHBOARD_COMMAND="$GRAFANA_DASHBOARD_COMMAND -j $val"
done
./start-grafana.sh $LDAP_FILE -L $LOKI_ADDRESS $LIMITS $VOLUMES $PARAMS $BIND_ADDRESS_CONFIG $RUN_RENDERER $SPECIFIC_SOLUTION -p $DB_ADDRESS $GRAFNA_ANONYMOUS_ROLE -D "$DOCKER_PARAM" $GRAFANA_PORT $EXTERNAL_VOLUME -m $AM_ADDRESS -M $MANAGER_VERSION -v $VERSIONS $GRAFANA_ENV_COMMAND $GRAFANA_DASHBOARD_COMMAND $GRAFANA_ADMIN_PASSWORD