-
Notifications
You must be signed in to change notification settings - Fork 47
/
.env
202 lines (175 loc) · 8.35 KB
/
.env
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
################################################################################
# This file prepares the environment for a Monasca server integrated with an
# OpenStack Keystone service or a standalone Keystone service.
#
# Related docker-compose files:
# - docker-compose-dev.yml (standalone Keystone service with own MySQL
# - 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)
#
# If you use the OpenStack Keystone service:
# * 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
#
# If you use the standalone Keystone service:
# * configure the IPv4 addresses (MON_KEYSTONE_URL and MON_KEYSTONE_IP_ADDR)
# of the Keystone host
# * configure the Monasca Endpoint URL in Keystone (MON_MONASCA_API_URL)
# * leave the default values for the rest of the configuration parameters
################################################################################
################################################################################
# Set the IPv4 address of the OpenStack Keystone host and the Monasca endpoint URL
################################################################################
MON_KEYSTONE_URL=http://192.168.188.110:5000
MON_KEYSTONE_IP_ADDR=192.168.188.110
# Set the Monasca Endpoint URL in Keystone
MON_MONASCA_API_URL=http://192.168.188.110:8070/v2.0
################################################################################
# Specify the URL of the OpenStack Horizon host
# The URL is needed for setting the Monasca data source in Grafana
################################################################################
HORIZON_URL=http://192.168.188.110:80
HORIZON_PATH=/
################################################################################
# Horizon <-> Grafana integration
################################################################################
MON_GRAFANA_IP=192.168.188.110
MON_GRAFANA_PORT=3000
################################################################################
# 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=/monitoring/logs_proxy
################################################################################
# Define Grafana administrator settings
################################################################################
MON_GRAFANA_ADMIN_USER=grafana-admin
MON_GRAFANA_ADMIN_PASSWORD=admin
################################################################################
# Set the OpenStack Keystone credentials
################################################################################
# Credentials of the user used for authenticating the agents against Keystone
MON_AGENT_USERNAME=monasca-agent
MON_AGENT_PASSWORD=password
MON_AGENT_PROJECT_NAME=mini-mon
# Credentials of the OpenStack admin
MON_KEYSTONE_ADMIN_USER=admin
MON_KEYSTONE_ADMIN_PASSWORD=secretadmin
################################################################################
# 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 and InfluxDB
################################################################################
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=2
# Retention period for InfluxDB database
MON_INFLUXDB_RETENTION=2d
# Interval in hours to check the max amount of transactional-logs and snapshots
MON_ZK_PURGE_INTERVAL=12
################################################################################
# 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=-Xms1g -Xmx1g
################################################################################
# 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,email
# Configure the Email plugin
# The host name or IP address of the SMTP mail server.
NF_EMAIL_SERVER=mailhog
# The port number of the SMTP mail server. Default port number: 25.
NF_EMAIL_PORT=1025
# Optional. The name of a user to be used for authentication against the
# SMTP mail system.
NF_EMAIL_USER=notification
# Password of the user specified in NF_EMAIL_USER.
NF_EMAIL_PASSWORD=mail-password
# Email address from which to send the emails. Example: name@example.com
NF_EMAIL_FROM_ADDR=alarm@notification-cmm.com
# Grafana URL.
# The URL of Grafana. It will be included in the mail message.
NF_EMAIL_GRAFANA_URL=http://192.168.188.110/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-master
MON_GRAFANA_INIT_VERSION=master
MON_API_VERSION=master
MON_PERSISTER_VERSION=master
MON_THRESH_VERSION=master
MON_NOTIFICATION_VERSION=master
MON_STATSD_VERSION=master
MON_AGENT_FORWARDER_VERSION=master
MON_AGENT_COLLECTOR_VERSION=master
# 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=7.3.0-master
MON_ELASTICSEARCH_INIT_VERSION=master
MON_ELASTICSEARCH_CURATOR_VERSION=5.8.3-0.0.1
MON_LOG_API_VERSION=master
MON_KIBANA_VERSION=2.0.14-1
MON_LOG_AGENT_VERSION=2.0.14-1
MON_LOGSPOUT_VERSION=2.1.3