Tool to export some metrics from a running kafka broker to elasticsearch
1.0K
Application to scrap a running Kafka broker and export some metrics of it to an elasticsearch database
Current features:
| Var name | Feature related | Description | Default value | Available options |
|---|---|---|---|---|
| KAFKA_BOOTSTRAP_SERVERS | 1, 2 | Kafka broker(s) to connect | [IP:PORT,...] | |
| ELASTIC_SERVER | 1, 2 | The elastic server in which the data will be written | http(s) url | |
| ZOOKEEPER_SERVERS | 1 | The zookeeper of the kafka broker above | IP:PORT | |
| KAFKA_SCHEMA_REGISTRY | 2 | Schema registry to deserialize messages | http(s) url | |
| CALCULATION_REQUEST_TOPIC_SUFFIX | 2 | Suffix that requests topics have at the end | Any string | |
| CALCULATION_RESULT_TOPIC_SUFFIX | 2 | Suffix that results topics have at the end | Any string | |
| CALCULATION_LINK_ID_PATH | 2 | Path to the value that is the ID that links the request with the result. Per example: request.id | Any string |
| Var name | Feature related | Description | Default value | Available options |
|---|---|---|---|---|
| ENABLE_SCRAPING | 1 | Enable lag and productions scraping | false | true, false |
| ENABLE_TIME_CALCULATIONS | 2 | Enable calculate of time between requests and results | false | true, false |
| LOG_LEVEL | 1, 2 | Kafka broker(s) to connect | INFO | TRACE, DEBUG, INFO, WARN, ERROR |
| EXPORT_ELASTIC_INDEX | 1, 2 | Index to write the scrapped data | kafka-real-time-data-scrapper | Any string |
| ELASTIC_SEC_USER | 1, 2 | User to authenticate on elastic | Any string | |
| ELASTIC_SEC_PASS | 1, 2 | Password to authenticate on elastic | Any string | |
| ELASTIC_SSL_CA_PATH | 1, 2 | Custom CA path to connect to elastic | ||
| REGEX_EXCLUDED_CONSUMER_GROUPS | 1 | Consumer groups which lag won't be scrapped | ||
| REGEX_FORCE_INCLUDE_CONSUMER_GROUPS | 1, | Consumers that can be excluded in the above param, can be forced to be include using this var | ||
| TIMEOUT_ON_QUERIES | 1 | Timeout when querying data on zookeeper | 15000 | Any integer milliseconds |
| INTERVAL_SECONDS_BETWEEN_SCRAPS | 1 | The interval between scraping data | 60 | Any integer seconds |
| CALCULATIONS_LISTENER_GROUP_ID | 2 | The group id that will be used to listen to messages | kafka-real-time-data-scrapper | Any string |
| CALCULATIONS_SECONDS_LIMIT_WAIT_RESULT | 2 | The maximum amount of time in seconds the calculation will wait for a result. After that, it will be cleaned | 600 | Any integer seconds |
Content type
Image
Digest
sha256:e94e1938a…
Size
565.1 MB
Last updated
almost 4 years ago
docker pull ifloor/kafka-real-time-data-scrapper:1.3.0