Skip to content

Commit

Permalink
Issue #0000 fix: updated the kafka group name (#1745)
Browse files Browse the repository at this point in the history
* Issue #0000 fix: updated the kafka group name

* Issue #0000 fix: added the vars in defaults

* Issue #0000 fix: added the vars in defaults

* Issue #0000 fix: corrected the syntax error

* Issue #0000 fix: corrected the syntax error

* Issue #0000 fix: corrected the syntax error

* Issue #0000 fix: corrected the syntax error

* Issue #0000 fix: corrected the syntax error

* Issue #0000 fix: corrected the syntax error

* Issue #0000 fix: updated the exporter vars
  • Loading branch information
Kaali09 authored Jul 22, 2020
1 parent c8274ac commit aab9597
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions kubernetes/ansible/roles/sunbird-monitoring/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,3 +167,6 @@ kafka_druid_events_summary_backup_threshold: 10000
kafka_telemetry_extractor_duplicate_backup_threshold: 1000
kafka_telemetry_duplicate_backup_threshold: 1000

### kafka exporters related vars
processing_cluster_zookeeper: "{{ groups['processing-cluster-zookeepers'] | difference(['localhost']) | map('regex_replace', '^(.*)$', '\\1:2181') | list}}"
processing_cluster_kafka: "{{ groups['processing-cluster-kafka'] | difference(['localhost']) | map('regex_replace', '^(.*)$', '\\1:9092') | list}}"
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
kafkaExporter:
zookeeper:
servers: ["{{ groups['processing-cluster-zookeepers'] | difference(["localhost"]) | map('regex_replace', '^(.*)$', '\\1:2181') | list | join("\", \"") }}"]
servers: ["{{ processing_cluster_zookeeper | join('","') }}"]
kafka:
servers: ["{{ groups['processing-cluster-kafka'] | difference(["localhost"]) | map('regex_replace', '^(.*)$', '\\1:9092') | list | join("\", \"") }}"]
servers: ["{{ processing_cluster_kafka | join('","') }}"]
additionalFlags:
- --use.consumelag.zookeeper

Expand Down

0 comments on commit aab9597

Please sign in to comment.