Skip to content

Latest commit

 

History

History
59 lines (37 loc) · 1.58 KB

DEVELOPMENT.md

File metadata and controls

59 lines (37 loc) · 1.58 KB

Development

Prerequisites

Access to a druid cluster

First, you'll need connections to a cluster of druids. Docker-compose is the easiest way to get started.

  • Docker - Layer on which druid cluster will run
  • Docker Compose - to create druid cluster over docker containers

Tools to build and test druid exporter

Build Locally

To achieve this, execute this command:-

make build-code

Build Docker Image

Druid exporter for running on Kubernetes cluster is packaged as a container file. These instructions will help you in the image making process.

make build-image

Testing

First we need a cluster of druid to check the druid-exporter. We will use the official docker-compose druid file to build the cluster:-

https://github.com/apache/druid/blob/master/distribution/docker/docker-compose.yml

Before creating the druid cluster we have to make few changes in environment file of druid docker compose.

https://github.com/apache/druid/blob/master/distribution/docker/environment

druid_emitter_http_recipientBaseUrl=http://<druid_exporter_url>:<druid_exporter_port>/druid
druid_emitter=http

After making these changes you can up the cluster by executing this command:-

docker-compose up -d

Run Tests

make test