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
To achieve this, execute this command:-
make build-code
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
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
make test