diff --git a/metric-collector-for-apache-cassandra.yaml b/metric-collector-for-apache-cassandra.yaml new file mode 100644 index 00000000000..4ce102adda4 --- /dev/null +++ b/metric-collector-for-apache-cassandra.yaml @@ -0,0 +1,46 @@ +package: + name: metric-collector-for-apache-cassandra + version: 0.3.5 + epoch: 0 + description: Drop-in metrics collection and dashboards for Apache Cassandra + copyright: + - license: Apache-2.0 + +environment: + contents: + packages: + - bash + - busybox + - ca-certificates-bundle + - maven + - openjdk-11 + - openjdk-11-default-jvm + +pipeline: + - uses: git-checkout + with: + repository: https://github.com/datastax/metric-collector-for-apache-cassandra + expected-commit: f97a258ea95d055c71f762c3725061f43678ae1f + tag: v${{package.version}} + + - uses: patch + with: + patches: upgrade-deps.patch + + - runs: | + mkdir -p "${{targets.destdir}}"/opt/metrics-collector + mkdir -p "${{targets.destdir}}"/opt/metrics-collector/lib + mkdir -p "${{targets.destdir}}"/opt/metrics-collector/config + export JAVA_HOME=/usr/lib/jvm/java-11-openjdk + mvn -q -ff package -DskipTests + cp ./target/datastax-mcac-agent-*.jar "${{targets.destdir}}"/opt/metrics-collector + cp -r ./target/collectd "${{targets.destdir}}"/opt/metrics-collector/lib + cp ./config/collectd.conf.tmpl "${{targets.destdir}}"/opt/metrics-collector/config + cp ./config/metric-collector.yaml "${{targets.destdir}}"/opt/metrics-collector/config + cp -r ./scripts "${{targets.destdir}}"/opt/metrics-collector + +update: + enabled: true + github: + identifier: datastax/metric-collector-for-apache-cassandra + strip-prefix: v diff --git a/metric-collector-for-apache-cassandra/upgrade-deps.patch b/metric-collector-for-apache-cassandra/upgrade-deps.patch new file mode 100644 index 00000000000..dfa27f6e651 --- /dev/null +++ b/metric-collector-for-apache-cassandra/upgrade-deps.patch @@ -0,0 +1,26 @@ +From a4c6a6527daa536a2cf52849ea3ce7113c61592e Mon Sep 17 00:00:00 2001 +From: Batuhan Apaydin +Date: Sat, 13 Jan 2024 00:50:37 +0300 +Subject: [PATCH] upgrade deps + +Signed-off-by: Batuhan Apaydin +--- + pom.xml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/pom.xml b/pom.xml +index 25f2d82..b4f6988 100755 +--- a/pom.xml ++++ b/pom.xml +@@ -44,7 +44,7 @@ + + org.yaml + snakeyaml +- 1.26 ++ 1.33 + + + com.github.docker-java +-- +2.39.3 (Apple Git-145) +