Class ThreadExports


  • public class ThreadExports
    extends io.prometheus.client.Collector
    Exports metrics about JVM thread areas.

    Example usage:

     
       new ThreadExports().register();
     
     
    Example metrics being exported:
       jvm_threads_current{} 300
       jvm_threads_daemon{} 200
       jvm_threads_peak{} 410
       jvm_threads_started_total{} 1200
     
    • Nested Class Summary

      • Nested classes/interfaces inherited from class io.prometheus.client.Collector

        io.prometheus.client.Collector.Describable, io.prometheus.client.Collector.MetricFamilySamples, io.prometheus.client.Collector.Type
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String JVM_THREADS_STATE  
      static String UNKNOWN  
      • Fields inherited from class io.prometheus.client.Collector

        MILLISECONDS_PER_SECOND, NANOSECONDS_PER_SECOND