Skip to content

qubic/go-events-consumer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-events-consumer

Service for consuming qubic events from a message broker

Build

go build in the root directory will create the go-events-consumer executable.

Run tests

go test -p 1 -tags ci ./... will run all unit tests.

Configuration options

You can use command line properties or environment variables. Environment variables need to be prefixed with QUBIC_EVENTS_CONSUMER_.

The following properties (with defaults) can be set:

--elastic-addresses=[https://localhost:9200]
--elastic-username=qubic-ingestion
--elastic-password=
--elastic-index-name=qubic-events-alias
--elastic-certificate=http_ca.crt
--elastic-max-retries=15
--broker-bootstrap-servers=localhost:9092
--broker-metrics-port=9999
--broker-metrics-namespace=qubic-kafka
--broker-consume-topic=qubic-events
--broker-consumer-group=qubic-elastic

--elastic-addresses= Elasticsearch url(s). Typically, https and port 9200.

--elastic-username= Elasticsearch username that is allowed to index documents.

--elastic-password= Password of the elasticsearch user.

--elastic-index-name The name of the elasticsearch index to write to. Must be an alias.

--elastic-certificate= Path to the ssl certificate of the elasticsearch server.

--elastic-max-retries= Number of maximum retries for indexing elasticsearch documents.

--broker-bootstrap-servers= Kafka bootstrap server urls. Typically, http and port 9092.

--broker-metrics-port= Port for exposing prometheus metrics. Defaults to 9999. Access default with curl localhost:9999/metrics for example.

--broker-metrics-namespace= Namespace (prefix) for prometheus metrics.

--broker-consume-topic= Topic name consuming event kafka messages from.

--broker-consumer-group= Group name used for consuming messages.

About

Service for consuming qubic events from a message broker

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors