Class VulkanMetricsHandler

java.lang.Object
com.io7m.jcoronado.utility.prometheus.internal.VulkanMetricsHandler
All Implemented Interfaces:
io.helidon.webserver.http.Handler, io.helidon.webserver.ServerLifecycle

public final class VulkanMetricsHandler extends Object implements io.helidon.webserver.http.Handler
The metrics handler. The handler holds a registry with two long-lived collectors, one for instances and one for logical devices. Each collector is registered once and, on every scrape, reads the current set of live instances/devices and emits one labeled data point per item. Items that have been closed are pruned from the lists, so they simply stop being reported.
  • Constructor Summary

    Constructors
    Constructor
    Description
    The metrics handler.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    handle(io.helidon.webserver.http.ServerRequest request, io.helidon.webserver.http.ServerResponse response)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.helidon.webserver.ServerLifecycle

    afterStart, afterStop, beforeStart
  • Constructor Details

    • VulkanMetricsHandler

      public VulkanMetricsHandler()
      The metrics handler.
  • Method Details

    • handle

      public void handle(io.helidon.webserver.http.ServerRequest request, io.helidon.webserver.http.ServerResponse response) throws Exception
      Specified by:
      handle in interface io.helidon.webserver.http.Handler
      Throws:
      Exception