Subject: Re: [prometheus-users] Any examples of configs for jmx_exporter for standard JVM beans?

  Gregory Golberg 2019-12-15, 02:34
  Brian Brazil 2019-12-15, 08:01
  Brian Candler 2019-12-15, 09:57
  Gregory Golberg 2019-12-04, 23:23
Hi all,

Using JMX exporter and looking at config examples
<> I
am still having trouble with some rules. For example, with these rules:

  - pattern: 'java.lang:type=OperatingSystem,OpenFileDescriptorCount'
  - pattern: 'java.lang:type=OperatingSystem,SystemLoadAverage'
  - pattern: 'java.lang:type=OperatingSystem,SystemCPULoad'
  - pattern: 'java.lang:type=OperatingSystem,ProcessCPULoad'

I do get the FD count but not the rest. For memory usage, these work as I

 - pattern: 'java.lang:type=Memory,HeapMemoryUsage<used=(\w)>'
   value: $1
 - pattern: 'java.lang:type=Memory,NonHeapMemoryUsage<used=(\w)>'
   value: $1
But I cannot figure out how to get garbage collection metrics (in
particular, say, I wanted
java_lang_GarbageCollector_LastGcInfo_duration{name="ParNew",} and
java_lang_GarbageCollector_CollectionTime ?

Thank you.


  Brian Brazil 2019-12-04, 23:16
  Brian Brazil 2019-12-05, 09:17