Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to load community extensions? #294

Open
vishalgarg837 opened this issue Jun 29, 2022 · 5 comments
Open

How to load community extensions? #294

vishalgarg837 opened this issue Jun 29, 2022 · 5 comments

Comments

@vishalgarg837
Copy link

We are planning to expose the Prometheus metrics via prometheus-emitter but for this to work, promtheus-emitter extension has to be loaded which is a community extension.

Can anyone please tell me how can we load community extension through druid-operator?

@acherla
Copy link

acherla commented Jul 1, 2022

prometheus emitter now ships as a part of 0.23.0 version of druid by default. Optionally you can create a custom docker image with the extensions loaded into the image if you are using an older version of druid:

FROM apache/druid:0.22.1
RUN mkdir -p /opt/druid/extensions/prometheus-emitter
COPY deps/prometheus-emitter-0.22.1.jar /opt/druid/extensions/prometheus-emitter
COPY deps/simpleclient-0.7.0.jar /opt/druid/extensions/prometheus-emitter
COPY deps/simpleclient_pushgateway-0.7.0.jar /opt/druid/extensions/prometheus-emitter
COPY deps/simpleclient_httpserver-0.7.0.jar /opt/druid/extensions/prometheus-emitter
COPY deps/simpleclient_common-0.7.0.jar /opt/druid/extensions/prometheus-emitter
VOLUME /tmp

@vishalgarg837
Copy link
Author

Thanks, @acherla. Upgrading Druid to 0.23.0 worked fine, I can see the metrics now.
I'll also explore creating a custom docker image, just one question, what instruction do I need to pass in ENTRYPOINT?
Is it possible for you to share the complete Doclerfile?

@AdheipSingh
Copy link
Contributor

Custom dockerfile is workaround and fine, ideally the operator should support init container for pulling in dependency with custom scripts.

@acherla
Copy link

acherla commented Jul 11, 2022

Thanks, @acherla. Upgrading Druid to 0.23.0 worked fine, I can see the metrics now. I'll also explore creating a custom docker image, just one question, what instruction do I need to pass in ENTRYPOINT? Is it possible for you to share the complete Doclerfile?

Dockerfile above is the complete one. By default im using the apache druid base image which already has an entrypoint configured.

@bharathkuppala
Copy link

Hello, am building druid custom docker image using 0.23.0 released binary. Now that 0.23.0 ships this I removed deps related to prometheus-emitter. While installing it is throwing error complaining about prometheus-emitter not present in extension load list.

What am I doing wrong? is my understanding correct @acherla

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants