-
Notifications
You must be signed in to change notification settings - Fork 289
/
Copy pathmetric-collector-for-apache-cassandra.yaml
48 lines (43 loc) · 1.44 KB
/
metric-collector-for-apache-cassandra.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package:
name: metric-collector-for-apache-cassandra
version: 0.3.5
epoch: 2
description: Drop-in metrics collection and dashboards for Apache Cassandra
copyright:
- license: Apache-2.0
dependencies:
runtime:
- collectd
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/lib/datastax-mcac-agent.jar
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