-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add default JVM Metrics using new helpers
- Loading branch information
Ryan Fitzpatrick
committed
Oct 22, 2020
1 parent
3f22f82
commit 2ef6504
Showing
7 changed files
with
305 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
# JVM Metrics | ||
|
||
The JMX Metric Gatherer provides built in JVM metric gathering capabilities. | ||
These metrics are sourced from Cassandra's exposed Dropwizard Metrics for each node: https://cassandra.apache.org/doc/latest/operating/metrics.html. | ||
|
||
## Metrics | ||
|
||
### Client Request Metrics | ||
|
||
* Name: `jvm.classes.loaded` | ||
* Description: The number of loaded classes | ||
* Unit: `1` | ||
* Instrument Type: LongUpDownCounter | ||
|
||
* Name: `jvm.gc.collections.count` | ||
* Description: The total number of garbage collections that have occurred | ||
* Unit: `1` | ||
* Instrument Type: LongCounter | ||
|
||
* Name: `jvm.gc.collections.elapsed` | ||
* Description: The approximate accumulated collection elapsed time | ||
* Unit: `ms` | ||
* Instrument Type: LongCounter | ||
|
||
* Name: `jvm.memory.heap.init` | ||
* Description: The initial amount of memory that the JVM requests from the operating system for the heap | ||
* Unit: `by` | ||
* Instrument Type: LongUpDownCounter | ||
|
||
* Name: `jvm.memory.heap.max` | ||
* Description: The maximum amount of memory can be used for the heap | ||
* Unit: `by` | ||
* Instrument Type: LongUpDownCounter | ||
|
||
* Name: `jvm.memory.heap.used` | ||
* Description: The current heap memory usage | ||
* Unit: `by` | ||
* Instrument Type: LongUpDownCounter | ||
|
||
* Name: `jvm.memory.heap.committed` | ||
* Description: The amount of memory that is guaranteed to be available for the heap | ||
* Unit: `by` | ||
* Instrument Type: LongUpDownCounter | ||
|
||
* Name: `jvm.memory.nonheap.init` | ||
* Description: The initial amount of memory that the JVM requests from the operating system for non-heap purposes | ||
* Unit: `by` | ||
* Instrument Type: LongUpDownCounter | ||
|
||
* Name: `jvm.memory.nonheap.max` | ||
* Description: The maximum amount of memory can be used for non-heap purposes | ||
* Unit: `by` | ||
* Instrument Type: LongUpDownCounter | ||
|
||
* Name: `jvm.memory.nonheap.used` | ||
* Description: The current non-heap memory usage | ||
* Unit: `by` | ||
* Instrument Type: LongUpDownCounter | ||
|
||
* Name: `jvm.memory.nonheap.committed` | ||
* Description: The amount of memory that is guaranteed to be available for non-heap purposes | ||
* Unit: `by` | ||
* Instrument Type: LongUpDownCounter | ||
|
||
* Name: `jvm.memory.pool.init` | ||
* Description: The initial amount of memory that the JVM requests from the operating system for the memory pool | ||
* Unit: `by` | ||
* Instrument Type: LongUpDownCounter | ||
|
||
* Name: `jvm.memory.pool.max` | ||
* Description: The maximum amount of memory can be used for the memory pool | ||
* Unit: `by` | ||
* Instrument Type: LongUpDownCounter | ||
|
||
* Name: `jvm.memory.pool.used` | ||
* Description: The current memory pool memory usage | ||
* Unit: `by` | ||
* Instrument Type: LongUpDownCounter | ||
|
||
* Name: `jvm.memory.pool.committed` | ||
* Description: The amount of memory that is guaranteed to be available for the memory pool | ||
* Unit: `by` | ||
* Instrument Type: LongUpDownCounter | ||
|
||
* Name: `jvm.threads.count` | ||
* Description: The current number of threads | ||
* Unit: `1` | ||
* Instrument Type: LongUpDownCounter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 2 additions & 3 deletions
5
.../src/test/resources/jvm_config.properties → ...t/resources/target-systems/jvm.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
otel.jmx.interval.milliseconds = 3000 | ||
otel.exporter = prometheus | ||
otel.prometheus.host = 0.0.0.0 | ||
otel.prometheus.port = 9123 | ||
otel.exporter = otlp | ||
otel.jmx.service.url = service:jmx:rmi:///jndi/rmi://cassandra:7199/jmxrmi | ||
otel.jmx.target.system = jvm | ||
|
||
# these will be overridden by cmd line | ||
otel.jmx.username = wrong_username | ||
otel.jmx.password = wrong_password | ||
otel.otlp.endpoint = host.testcontainers.internal:80 |