From 3222a6e246d4df6206ff7caf94549e20180dd391 Mon Sep 17 00:00:00 2001 From: Batuhan Apaydin Date: Sat, 13 Jan 2024 00:46:19 +0300 Subject: [PATCH] metric-collector-for-apache-cassandra Signed-off-by: Batuhan Apaydin Co-authored-by: Furkan Turkal Signed-off-by: Batuhan Apaydin --- metric-collector-for-apache-cassandra.yaml | 46 +++++++++++++++++++ .../upgrade-deps.patch | 26 +++++++++++ 2 files changed, 72 insertions(+) create mode 100644 metric-collector-for-apache-cassandra.yaml create mode 100644 metric-collector-for-apache-cassandra/upgrade-deps.patch 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) +