File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 1+ FROM openjdk:11-jre-slim-buster
2+ ARG EXPORTER_VERSION=0.9.10
3+ RUN mkdir -p /opt/cassandra_exporter
4+ ADD https://github.com/instaclustr/cassandra-exporter/releases/download/v${EXPORTER_VERSION}/cassandra-exporter-standalone-${EXPORTER_VERSION}.jar /opt/cassandra_exporter/cassandra_exporter.jar
5+ COPY ./entrypoint.sh /opt/cassandra_exporter/entrypoint.sh
6+ RUN chmod g+wrX,o+rX -R /opt/cassandra_exporter
7+ CMD sh /opt/cassandra_exporter/entrypoint.sh
Original file line number Diff line number Diff line change 1+ # /bin/sh
2+ if [ -z ${CASSANDRA_EXPORTER_USER} ] && [ -z ${CASSANDRA_EXPORTER_PASSWORD} ]; then
3+ java -jar /opt/cassandra_exporter/cassandra_exporter.jar
4+ else
5+ java -jar /opt/cassandra_exporter/cassandra_exporter.jar --jmx-user=CASSANDRA_EXPORTER_USER --jmx-password=CASSANDRA_EXPORTER_PASSWORD --table-labels=TABLE_TYPE --global-labels=CLUSTER,NODE
6+ fi
You can’t perform that action at this time.
0 commit comments