Skip to content

Commit

Permalink
metric-collector-for-apache-cassandra
Browse files Browse the repository at this point in the history
Signed-off-by: Batuhan Apaydin <[email protected]>
Co-authored-by: Furkan Turkal <[email protected]>
Signed-off-by: Batuhan Apaydin <[email protected]>
  • Loading branch information
developer-guy and Dentrax committed Jan 13, 2024
1 parent e18d412 commit 3222a6e
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 0 deletions.
46 changes: 46 additions & 0 deletions metric-collector-for-apache-cassandra.yaml
Original file line number Diff line number Diff line change
@@ -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
26 changes: 26 additions & 0 deletions metric-collector-for-apache-cassandra/upgrade-deps.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
From a4c6a6527daa536a2cf52849ea3ce7113c61592e Mon Sep 17 00:00:00 2001
From: Batuhan Apaydin <[email protected]>
Date: Sat, 13 Jan 2024 00:50:37 +0300
Subject: [PATCH] upgrade deps

Signed-off-by: Batuhan Apaydin <[email protected]>
---
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 @@
<dependency>
<groupId>org.yaml</groupId>
<artifactId>snakeyaml</artifactId>
- <version>1.26</version>
+ <version>1.33</version>
</dependency>
<dependency>
<groupId>com.github.docker-java</groupId>
--
2.39.3 (Apple Git-145)

0 comments on commit 3222a6e

Please sign in to comment.