The monasca_events_api.app.common.events_publisher Module

class monasca_events_api.app.common.events_publisher.EventPublisher[source]

Bases: object

Publishes events data to Kafka

EventPublisher is able to send single message to multiple configured topic. It uses following configuration written in conf file

[event_publisher]
topics = 'monevents'
kafka_url = 'localhost:8900'
Note:

Uses monasca_common.kafka.producer.KafkaProducer to ship events to kafka. For more details see monasca-common github repository.