-
Notifications
You must be signed in to change notification settings - Fork 159
/
Copy pathjmx-cassandra.discovery.yaml
28 lines (28 loc) · 1.39 KB
/
jmx-cassandra.discovery.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
#####################################################################################
# Do not edit manually! #
# All changes must be made to associated .tmpl file before running 'make bundle.d'. #
#####################################################################################
jmx/cassandra:
enabled: true
rule:
docker_observer: type == "container" and any([name, image, command], {# matches "(?i)cassandra.*"}) and not (command matches "splunk.discovery")
host_observer: type == "hostport" and command matches "(?i)cassandra.*" and not (command matches "splunk.discovery")
k8s_observer: type == "port" and pod.name matches "(?i)cassandra.*"
config:
default:
jar_path: /opt/opentelemetry-java-contrib-jmx-metrics.jar
endpoint: "service:jmx:rmi:///jndi/rmi://`endpoint`/jmxrmi"
target_system: cassandra
collection_interval: 10s
status:
metrics:
- status: successful
strict: cassandra.client.request.count
message: jmx/cassandra receiver is working!
statements:
- status: failed
regexp: 'connect: network is unreachable'
message: The container cannot be reached by the Collector. Make sure they're in the same network.
- status: failed
regexp: 'connect: connection refused'
message: The container is refusing cassandra server connections.