Supporting configuring Monasca Kafka topics
Multiple Monasca services will need to access these topics. We can use these variables to make sure that they all use the correct ones. Change-Id: I9f40090287542a78dc7d7c6bdd3933abb32918d7 Partially-Implements: blueprint monasca-roles
This commit is contained in:
parent
4ed0573172
commit
b76f40166a
@ -36,6 +36,9 @@ monasca_influxdb_http_port: "{{ influxdb_http_port }}"
|
||||
monasca_kafka: "{% for host in groups['kafka'] %}{{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ kafka_port }}{% if not loop.last %},{% endif %}{% endfor %}"
|
||||
monasca_memcached_servers: "{% for host in groups['memcached'] %}{{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ memcached_port }}{% if not loop.last %},{% endif %}{% endfor %}"
|
||||
|
||||
monasca_metrics_topic: "metrics"
|
||||
monasca_raw_logs_topic: "logs"
|
||||
|
||||
####################
|
||||
# Docker
|
||||
####################
|
||||
|
@ -14,6 +14,7 @@ ip_address = {{ monasca_influxdb_address }}
|
||||
port = {{ monasca_influxdb_http_port }}
|
||||
|
||||
[kafka]
|
||||
metrics_topic = {{ monasca_metrics_topic }}
|
||||
partitions = 0
|
||||
uri = {{ monasca_kafka }}
|
||||
|
||||
|
@ -4,9 +4,11 @@ log_dir = /var/log/kolla/monasca
|
||||
debug = {{ monasca_logging_debug }}
|
||||
|
||||
[kafka_healthcheck]
|
||||
kafka_topics = {{ monasca_raw_logs_topic }}
|
||||
kafka_url = {{ monasca_kafka }}
|
||||
|
||||
[log_publisher]
|
||||
topics = {{ monasca_raw_logs_topic }}
|
||||
kafka_url = {{ monasca_kafka }}
|
||||
|
||||
[monitoring]
|
||||
|
Loading…
Reference in New Issue
Block a user