mirror of
https://github.com/akvorado/akvorado.git
synced 2025-12-11 22:14:02 +01:00
This removes the last Bitnami image. This has been some time that Bitnami was starting to be hostile, but this recently became even worse: https://github.com/bitnami/containers/issues/83267. Moreover, this is the recommended way to export JMX metrics to Prometheus.
18 lines
468 B
Bash
Executable File
18 lines
468 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
VERSION=1.3.0
|
|
NAME=jmx_prometheus_javaagent-${VERSION}.jar
|
|
URL=https://github.com/prometheus/jmx_exporter/releases/download/${VERSION}/${NAME}
|
|
|
|
cd /opt/jmx-exporter
|
|
|
|
# Check if target version already exist
|
|
[ ! -s jmx_prometheus_javaagent-${VERSION}.jar ] || exit 0
|
|
|
|
# Retrieve it
|
|
apk add --no-cache curl
|
|
curl --retry 10 --retry-connrefused --remove-on-error --remote-name --fail --silent --location $URL
|
|
ln -vsf ${NAME} jmx_prometheus_javaagent.jar
|