-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Description
Hi there,
We're making use of the JMX exporter in combination with Tomcat and Cassandra. While using it, we've noticed that none of the examples contain any generic rules for extracting properties out of the JVM, like memory usage. Right now we're planning on adding something like this to our configs:
- pattern: 'java.lang<type=Memory><(\w+)MemoryUsage>(\w+):'
name: java_memory_usage_$2_bytes
labels:
area: "$1"
help: Java $2 $1 memory usage
type: GAUGE
Resulting in metrics like these:
java_memory_usage_committed_bytes{area="Heap",} 1.489731584E9
java_memory_usage_committed_bytes{area="NonHeap",} 3.9223296E8
java_memory_usage_max_bytes{area="Heap",} 4.294770688E9
java_memory_usage_max_bytes{area="NonHeap",} 4.17333248E8
java_memory_usage_init_bytes{area="Heap",} 2.73888048E8
java_memory_usage_init_bytes{area="NonHeap",} 3.69557504E8
java_memory_usage_used_bytes{area="Heap",} 9.61119192E8
java_memory_usage_used_bytes{area="NonHeap",} 2.09771528E8
Question: would it make sense to have some kind of examples file containing rules like these?
agolomoodysaada, alanorth, dcwangmit01, mmouterde, Misterhex and 5 more
Metadata
Metadata
Assignees
Labels
No labels