Skip to content

Commit

Permalink
fix(docker-jans-all-in-one): applications are failing to start when p…
Browse files Browse the repository at this point in the history
…rometheus metrics are enabled

Signed-off-by: moabu <[email protected]>
  • Loading branch information
moabu committed Dec 19, 2024
1 parent b9d337f commit 7ab06a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker-jans-all-in-one/app/bin/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ set -e

get_prometheus_lib() {
if [ -n "${CN_PROMETHEUS_PORT}" ]; then
prom_agent_version="0.17.2"
agent_version=${PROMETHEUS_AGENT_VERSION:-1.0.1}

if [ ! -f /opt/prometheus/jmx_prometheus_javaagent.jar ]; then
wget -q https://repo1.maven.org/maven2/io/prometheus/jmx/jmx_prometheus_javaagent/${prom_agent_version}/jmx_prometheus_javaagent-${prom_agent_version}.jar -O /opt/prometheus/jmx_prometheus_javaagent.jar
curl -sS "https://repo1.maven.org/maven2/io/prometheus/jmx/jmx_prometheus_javaagent/${agent_version}/jmx_prometheus_javaagent-${agent_version}.jar" -o /opt/prometheus/jmx_prometheus_javaagent.jar
fi
fi
}
Expand Down

0 comments on commit 7ab06a4

Please sign in to comment.