oraclejdk镜像基础上增加jmx-exporter和监控配置
This commit is contained in:
parent
52ae2735bb
commit
4b13eae054
|
@ -0,0 +1,16 @@
|
|||
ARG baseOracleJDK=pi4k8s/oraclejdk:8u201-jdk-ubuntu-18-04
|
||||
FROM $baseOracleJDK
|
||||
|
||||
ADD config.yaml /opt
|
||||
|
||||
RUN cd /opt && apt update && apt install -y wget \
|
||||
&& wget -q "https://repo1.maven.org/maven2/io/prometheus/jmx/jmx_prometheus_javaagent/0.13.0/jmx_prometheus_javaagent-0.13.0.jar" \
|
||||
&& apt remove -y --purge wget && apt clean \
|
||||
&& rm -rf /tmp/* /var/cache/* /usr/share/doc/* /usr/share/man/* /var/lib/apt/lists/*
|
||||
|
||||
|
||||
# arm64v8
|
||||
# docker build . -t pi4k8s/oraclejdk-jmx:8u201-jdk-ubuntu-18-04
|
||||
|
||||
# x86
|
||||
# docker build . -t fastjrun/oraclejdk-jmx:8u201-jdk-ubuntu-18-04 --build-arg baseOracleJDK=fastjrun/oraclejdk:8u201-jdk-ubuntu-18-04
|
|
@ -0,0 +1,14 @@
|
|||
startDelaySeconds: 0
|
||||
lowercaseOutputName: false
|
||||
lowercaseOutputLabelNames: false
|
||||
whitelistObjectNames: ["org.apache.cassandra.metrics:*"]
|
||||
blacklistObjectNames: ["org.apache.cassandra.metrics:type=ColumnFamily,*"]
|
||||
rules:
|
||||
- pattern: 'org.apache.cassandra.metrics<type=(\w+), name=(\w+)><>Value: (\d+)'
|
||||
name: cassandra_$1_$2
|
||||
value: $3
|
||||
valueFactor: 0.001
|
||||
labels: {}
|
||||
help: "Cassandra metric $1 $2"
|
||||
type: GAUGE
|
||||
attrNameSnakeCase: false
|
Loading…
Reference in New Issue