Class TikaServerMetrics

java.lang.Object
org.apache.tika.server.core.metrics.TikaServerMetrics
All Implemented Interfaces:
AutoCloseable

public final class TikaServerMetrics extends Object implements AutoCloseable
Owns the process's PrometheusMeterRegistry and every meter recorded against it. Every tag value comes from a bounded set; nothing request-derived becomes a tag.
  • Field Details

    • DURATION_SLOS

      public static final Duration[] DURATION_SLOS
      One bucket set for every duration timer. Twelve explicit boundaries instead of Micrometer's percentile histogram, which would emit roughly 70 per series.
  • Constructor Details

    • TikaServerMetrics

      public TikaServerMetrics()
  • Method Details

    • scrape

      public String scrape()
      Prometheus text exposition (format 0.0.4).
    • bindJvm

      public void bindJvm()
      No GC/CPU binders: this JVM does not parse, so they would suggest headroom that is not there.
    • bindServerStatus

      public void bindServerStatus(ServerStatus serverStatus)
    • bindSyncPool

      public void bindSyncPool(PipesParser pipesParser)
      The sync endpoints' forks: restart counters plus busy/idle slots.
    • bindAsyncPool

      public void bindAsyncPool(AsyncProcessor asyncProcessor)
      /async's own forks: restart counters plus queue depth.
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable