forked from monasca/monasca-docker
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdotenv2
182 lines (157 loc) · 7.53 KB
/
dotenv2
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
################################################################################
# This file prepares the environment for a Monasca server integrated with an
# OpenStack Keystone service.
#
# Related docker-compose files:
# - docker-compose-metric.yml (metric pipeline)
# - docker-compose-log.yml (as extension: log pipeline)
#
# Before you start:
# - make sure that the OpenStack Keystone service is up and running
# - provide the necessary configuration in this file and replace the
# placeholders "<...>" with the correct settings (see below)
# * configure the IPv4 address (MON_KEYSTONE_URL) for the OpenStack Keystone host
# * make sure that Kibana authorization is enabled (MON_MONASCA_PLUGIN_ENABLED)
# * set the path to mount Kibana to the OpenStack Horizon proxy (MON_BASE_PATH)
# * adapt the Grafana credentials for grafana-admin and grafana-user
# (see MON_GRAFANA_*)
# * adapt the user credentials for agent and admin to your
# OpenStack Keystone installation (MON_AGENT_*)
# * set the path for the data directories (MON_DOCKER_VOL_ROOT)
# * set the path for the backup directories (MON_BACKUP_DIR)
# * configure data retention for the Elasticsearch and InfluxDB databases
# * configure the Notification Engine plugins
################################################################################
################################################################################
# Set the IPv4 address of the OpenStack Keystone host
################################################################################
MON_KEYSTONE_URL=http://<ipv4_address>:5000
################################################################################
# Specify the URL of the OpenStack Horizon host
# The URL is needed for setting the Monasca data source in Grafana
################################################################################
HORIZON_URL=http://<ipv4_address>:<port>
HORIZON_PATH=/dashboard
################################################################################
# Enable Kibana authorization via OpenStack Horizon
################################################################################
MON_MONASCA_PLUGIN_ENABLED=True
################################################################################
# Set the path to mount Kibana to the OpenStack Horizon proxy
################################################################################
MON_BASE_PATH=/dashboard/monitoring/logs_proxy
################################################################################
# Define Grafana administrator settings
################################################################################
MON_GRAFANA_ADMIN_USER=<grafana_admin_user_name>
MON_GRAFANA_ADMIN_PASSWORD=<grafana_admin_password>
################################################################################
# Set the OpenStack Keystone credentials
################################################################################
# Credentials of the user used for authenticating the agents against Keystone
MON_AGENT_USERNAME=<user_name>
MON_AGENT_PASSWORD=<password>
MON_AGENT_PROJECT_NAME=<project_name>
# Credentials of the OpenStack admin
MON_KEYSTONE_ADMIN_USER=<OpenStack_admin_user_name>
MON_KEYSTONE_ADMIN_PASSWORD=<OpenStack_admin_password>
################################################################################
# Set the path for the data directories of Elasticsearch, InfluxDB, MySQL,
# Kafka, and Grafana
################################################################################
MON_DOCKER_VOL_ROOT=/opt/monasca-containers
################################################################################
# Set the path for the backup directories of Elasticsearch, InfluxDB and MySQL
################################################################################
MON_BACKUP_DIR=/mount/backup
################################################################################
# Configure data retention
################################################################################
# Retention period for Elasticsearch database
# Delete job is executed every day at 12 a.m. UTC
MON_ELASTICSEARCH_DATA_RETENTION_DAYS=31
# Retention period for InfluxDB database
MON_INFLUXDB_RETENTION=31d
# Interval in hours to check the max amount of transactional-logs and snapshots
MON_ZK_PURGE_INTERVAL=168
################################################################################
# Configure Elasticsearch heap size
# - For a 2GB heap size use: -Xms2g -Xmx2g
# - For a 512MB heap size use: -Xms512m -Xmx512m
# - https://www.elastic.co/guide/en/elasticsearch/reference/7.3/heap-size.html
################################################################################
MON_ELASTICSEARCH_HEAP_SIZE=-Xms4g -Xmx4g
################################################################################
# Enable the Notification Engine plugins
# - Available plugins: email, webhook, pagerduty, hipchat, and slack
# - Specify the names of the plugins to be enabled as comma-separated list
# for the NF_PLUGINS parameter
# - Specify the plugin-specific configuration parameters
################################################################################
NF_PLUGINS=webhook
# Configure the Email plugin
# The host name or IP address of the SMTP mail server.
NF_EMAIL_SERVER=
# The port number of the SMTP mail server. Default port number: 25.
NF_EMAIL_PORT=
# Optional. The name of a user to be used for authentication against the
# SMTP mail system.
NF_EMAIL_USER=
# Password of the user specified in NF_EMAIL_USER.
NF_EMAIL_PASSWORD=
# Email address from which to send the emails. Example: [email protected]
NF_EMAIL_FROM_ADDR=
# The URL of Grafana. It will be included in the mail message.
NF_EMAIL_GRAFANA_URL=http://<ipv4_address>/grafana
# Configure the WebHook plugin
# Timeout period in seconds the notification engine tries to call a WebHook
# when an alarm is triggered. Default: 5
NF_WEBHOOK_TIMEOUT=5
# Configure the PagerDuty plugin
# Timeout period in seconds the notification engine tries to call PagerDuty
# when an alarm is triggered. Default: 5
NF_PAGERDUTY_TIMEOUT=5
# Configure the Slack plugin
# Timeout period in seconds the notification engine tries to call Slack
# when an alarm is triggered. Default: 5
NF_SLACK_TIMEOUT=5
# Path to the SSL certificates. By default, the system certificates are used.
NF_SLACK_CERTS=
# If set to false, the SSL certificates are verified.
NF_SLACK_INSECURE=
# Optional. IP address and port of the HTTP(S) proxy server to be used for sending
# notifications. Example: https://12.12.12.20:2222
NF_SLACK_PROXY=
################################################################################
# Image versions
################################################################################
# Metric pipeline
INFLUXDB_VERSION=1.8-alpine
INFLUXDB_INIT_VERSION=2.1.0
MYSQL_VERSION=5.7
MYSQL_INIT_VERSION=2.0.14-1
MEMCACHED_VERSION=1.5-alpine
CADVISOR_VERSION=v0.33.0
ZOOKEEPER_VERSION=3.4.14
MON_KAFKA_VERSION=2.12-2.0.1-0.0.2
MON_KAFKA_INIT_VERSION=2.0.0
MON_GRAFANA_VERSION=7.4.3-1.4.0-0.0.3
MON_GRAFANA_INIT_VERSION=2.1.2
MON_API_VERSION=2.0.14-1
MON_PERSISTER_VERSION=2.0.14-1
MON_THRESH_VERSION=2.0.14-2
MON_NOTIFICATION_VERSION=2.0.14-2
MON_STATSD_VERSION=2.0.14-1
MON_AGENT_FORWARDER_VERSION=2.0.14-1
MON_AGENT_COLLECTOR_VERSION=2.0.14-1
# Log pipeline
MON_LOG_METRICS_VERSION=2.1.1
MON_LOG_PERSISTER_VERSION=2.1.3
MON_LOG_TRANSFORMER_VERSION=2.1.1
MON_ELASTICSEARCH_VERSION=2.1.0
MON_ELASTICSEARCH_INIT_VERSION=2.0.0
MON_ELASTICSEARCH_CURATOR_VERSION=5.8.3-0.0.1
MON_LOG_API_VERSION=2.0.14-1
MON_KIBANA_VERSION=2.0.14-1
MON_LOG_AGENT_VERSION=2.0.14-1
MON_LOGSPOUT_VERSION=2.1.3