Class Tm1SessionPoolMetrics
java.lang.Object
io.skipcheck.tm1.spring.boot.autoconfigure.Tm1SessionPoolMetrics
- All Implemented Interfaces:
io.micrometer.core.instrument.binder.MeterBinder
public final class Tm1SessionPoolMetrics
extends Object
implements io.micrometer.core.instrument.binder.MeterBinder
Metrics for a
Tm1SessionPool, from its stats(): sessions held, evicted
and closed, since every session counts against the TM1 server. Auto-configured when
Micrometer is present; bind it yourself otherwise.
tm1.session.pool.held(gauge): sessions in the pooltm1.session.pool.closing(gauge): evicted sessions in their grace periodtm1.session.pool.created(counter): sessions createdtm1.session.pool.evicted(counter, taggedreason:idle,age,size): sessions evictedtm1.session.pool.closed(counter): sessions closed on TM1
Each meter also carries the tags given to the constructor. The auto-configured ones are
tagged server with the pool's server name, default for tm1.*,
so every pool's meters have the same tag keys and a query or a dashboard can group them
by server.
-
Constructor Summary
ConstructorsConstructorDescriptionMetrics forpool.Tm1SessionPoolMetrics(Tm1SessionPool pool, Iterable<io.micrometer.core.instrument.Tag> tags) Metrics forpool, withtagson every meter, such as the server's name when there are several. -
Method Summary
Modifier and TypeMethodDescriptionvoidbindTo(io.micrometer.core.instrument.MeterRegistry registry)
-
Constructor Details
-
Tm1SessionPoolMetrics
Metrics forpool.- Parameters:
pool- the pool to report on
-
Tm1SessionPoolMetrics
Metrics forpool, withtagson every meter, such as the server's name when there are several.- Parameters:
pool- the pool to report ontags- the tags to add
-
-
Method Details
-
bindTo
public void bindTo(io.micrometer.core.instrument.MeterRegistry registry) - Specified by:
bindToin interfaceio.micrometer.core.instrument.binder.MeterBinder
-