@@ -20,10 +20,12 @@ monasca_services:
20
20
mode : " http"
21
21
external : true
22
22
port : " {{ monasca_api_port }}"
23
+ # NOTE(dszumski): We can remove log_transformer and all other references after the
24
+ # Wallaby release
23
25
monasca-log-transformer :
24
26
container_name : monasca_log_transformer
25
27
group : monasca-log-transformer
26
- enabled : true
28
+ enabled : false
27
29
image : " {{ monasca_logstash_image_full }}"
28
30
volumes : " {{ monasca_log_transformer_default_volumes + monasca_log_transformer_extra_volumes }}"
29
31
dimensions : " {{ monasca_log_transformer_dimensions }}"
@@ -37,21 +39,21 @@ monasca_services:
37
39
monasca-log-metrics :
38
40
container_name : monasca_log_metrics
39
41
group : monasca-log-metrics
40
- enabled : true
42
+ enabled : " {{ monasca_enable_log_metrics_service | bool }} "
41
43
image : " {{ monasca_logstash_image_full }}"
42
44
volumes : " {{ monasca_log_metrics_default_volumes + monasca_log_metrics_extra_volumes }}"
43
45
dimensions : " {{ monasca_log_metrics_dimensions }}"
44
46
monasca-thresh :
45
47
container_name : monasca_thresh
46
48
group : monasca-thresh
47
- enabled : true
49
+ enabled : " {{ monasca_enable_alerting_pipeline | bool }} "
48
50
image : " {{ monasca_thresh_image_full }}"
49
51
volumes : " {{ monasca_thresh_default_volumes + monasca_thresh_extra_volumes }}"
50
52
dimensions : " {{ monasca_thresh_dimensions }}"
51
53
monasca-notification :
52
54
container_name : monasca_notification
53
55
group : monasca-notification
54
- enabled : true
56
+ enabled : " {{ monasca_enable_alerting_pipeline | bool }} "
55
57
image : " {{ monasca_notification_image_full }}"
56
58
volumes : " {{ monasca_notification_default_volumes + monasca_notification_extra_volumes }}"
57
59
dimensions : " {{ monasca_notification_dimensions }}"
@@ -123,6 +125,11 @@ monasca_influxdb_retention_policy:
123
125
# ###################
124
126
# Monasca
125
127
# ###################
128
+
129
+ # NOTE(dszumski): This can be removed in the Xena cycle when the
130
+ # log metrics service is removed
131
+ monasca_enable_log_metrics_service : False
132
+
126
133
monasca_kafka_servers : " {% for host in groups['kafka'] %}{{ 'api' | kolla_address(host) | put_address_in_context('url') }}:{{ kafka_port }}{% if not loop.last %},{% endif %}{% endfor %}"
127
134
monasca_zookeeper_servers : " {% for host in groups['zookeeper'] %}{{ 'api' | kolla_address(host) | put_address_in_context('url') }}:{{ zookeeper_client_port }}{% if not loop.last %},{% endif %}{% endfor %}"
128
135
monasca_memcached_servers : " {% for host in groups['memcached'] %}{{ 'api' | kolla_address(host) | put_address_in_context('memcache') }}:{{ memcached_port }}{% if not loop.last %},{% endif %}{% endfor %}"
@@ -131,7 +138,22 @@ monasca_storm_nimbus_servers: "{% for host in groups['storm-nimbus'] %}'{{ 'api'
131
138
# NOTE(dszumski): Only one NTP server is currently supported by the Monasca Agent plugin
132
139
monasca_ntp_server : " {{ external_ntp_servers | first }}"
133
140
134
- # Kafka topics used by Monasca services
141
+ # The default number of Kafka topic partitions. This effectively limits
142
+ # the maximum number of workers per topic, counted over all nodes in the
143
+ # Monasca deployment. For example, if you have a 3 node Monasca
144
+ # deployment, you will by default have 3 instances of Monasca Persister,
145
+ # with each instance having 2 workers by default for the metrics topic.
146
+ # In this case, each worker on the metrics topic will be assigned 5
147
+ # partitions of the metrics topic. If you increase the worker or instance
148
+ # count, you may need to increase the partition count to ensure that all
149
+ # workers can get a share of the work.
150
+ monasca_default_topic_partitions : 30
151
+
152
+ # The default number of topic replicas. Generally you should not change
153
+ # this.
154
+ monasca_default_topic_replication_factor : " {{ kafka_broker_count if kafka_broker_count|int < 3 else 3 }}"
155
+
156
+ # Kafka topic names used by Monasca services
135
157
monasca_metrics_topic : " metrics"
136
158
monasca_raw_logs_topic : " logs"
137
159
monasca_transformed_logs_topic : " transformed-logs"
@@ -141,6 +163,47 @@ monasca_alarm_notifications_topic: "alarm-notifications"
141
163
monasca_alarm_notifications_retry_topic : " retry-notifications"
142
164
monasca_periodic_notifications_topic : " 60-seconds-notifications"
143
165
166
+ # Kafka topic configuration. Most users will not need to modify these
167
+ # settings, however for deployments where resources are tightly
168
+ # constrained, or very large deployments where there are many parallel
169
+ # workers, it is worth considering changing them. Note that if you do
170
+ # change these settings, then you will need to manually remove each
171
+ # topic from the Kafka deployment for the change to take effect when
172
+ # the Monasca service is reconfigured.
173
+ monasca_all_topics :
174
+ - name : " {{ monasca_metrics_topic }}"
175
+ partitions : " {{ monasca_default_topic_partitions }}"
176
+ replication_factor : " {{ monasca_default_topic_replication_factor }}"
177
+ enabled : True
178
+ - name : " {{ monasca_raw_logs_topic }}"
179
+ partitions : " {{ monasca_default_topic_partitions }}"
180
+ replication_factor : " {{ monasca_default_topic_replication_factor }}"
181
+ enabled : True
182
+ - name : " {{ monasca_transformed_logs_topic }}"
183
+ partitions : " {{ monasca_default_topic_partitions }}"
184
+ replication_factor : " {{ monasca_default_topic_replication_factor }}"
185
+ enabled : False
186
+ - name : " {{ monasca_events_topic }}"
187
+ partitions : " {{ monasca_default_topic_partitions }}"
188
+ replication_factor : " {{ monasca_default_topic_replication_factor }}"
189
+ enabled : " {{ monasca_enable_alerting_pipeline | bool }}"
190
+ - name : " {{ monasca_alarm_state_transitions_topic }}"
191
+ partitions : " {{ monasca_default_topic_partitions }}"
192
+ replication_factor : " {{ monasca_default_topic_replication_factor }}"
193
+ enabled : " {{ monasca_enable_alerting_pipeline | bool }}"
194
+ - name : " {{ monasca_alarm_notifications_topic }}"
195
+ partitions : " {{ monasca_default_topic_partitions }}"
196
+ replication_factor : " {{ monasca_default_topic_replication_factor }}"
197
+ enabled : " {{ monasca_enable_alerting_pipeline | bool }}"
198
+ - name : " {{ monasca_alarm_notifications_retry_topic }}"
199
+ partitions : " {{ monasca_default_topic_partitions }}"
200
+ replication_factor : " {{ monasca_default_topic_replication_factor }}"
201
+ enabled : " {{ monasca_enable_alerting_pipeline | bool }}"
202
+ - name : " {{ monasca_periodic_notifications_topic }}"
203
+ partitions : " {{ monasca_default_topic_partitions }}"
204
+ replication_factor : " {{ monasca_default_topic_replication_factor }}"
205
+ enabled : " {{ monasca_enable_alerting_pipeline | bool }}"
206
+
144
207
# NOTE(dszumski): Due to the way monasca-notification is currently
145
208
# implemented it is not recommended to change this period.
146
209
monasca_periodic_notifications_period : 60
0 commit comments