Class TikaServerMetrics
java.lang.Object
org.apache.tika.server.core.metrics.TikaServerMetrics
- All Implemented Interfaces:
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final Duration[]One bucket set for every duration timer. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbindAsyncPool(AsyncProcessor asyncProcessor) /async's own forks: restart counters plus queue depth.voidbindJvm()No GC/CPU binders: this JVM does not parse, so they would suggest headroom that is not there.voidbindServerStatus(ServerStatus serverStatus) voidbindSyncPool(PipesParser pipesParser) The sync endpoints' forks: restart counters plus busy/idle slots.voidclose()scrape()Prometheus text exposition (format 0.0.4).
-
Field Details
-
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
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
-
bindSyncPool
The sync endpoints' forks: restart counters plus busy/idle slots. -
bindAsyncPool
/async's own forks: restart counters plus queue depth. -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-