Class StandardExports


  • public class StandardExports
    extends io.prometheus.client.Collector
    Exports the standard exports common across all prometheus clients.

    This includes stats like CPU time spent and memory usage.

    Example usage:

     
       new StandardExports().register();
     
     
    • 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 inherited from class io.prometheus.client.Collector

        MILLISECONDS_PER_SECOND, NANOSECONDS_PER_SECOND
    • Constructor Summary

      Constructors 
      Constructor Description
      StandardExports()  
    • Method Detail

      • collect

        public List<io.prometheus.client.Collector.MetricFamilySamples> collect()
        Specified by:
        collect in class io.prometheus.client.Collector