skipcheck

TM1 Spring Boot starter · Docs · The client

Tm1SessionPoolMetrics

import io.skipcheck.tm1.spring.boot.autoconfigure.Tm1SessionPoolMetrics;

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 pool
  • tm1.session.pool.closing (gauge): evicted sessions in their grace period
  • tm1.session.pool.created (counter): sessions created
  • tm1.session.pool.evicted (counter, tagged reason: idle, age, size): sessions evicted
  • tm1.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.

Members

Tm1SessionPoolMetrics constructorMetrics for pool.
Tm1SessionPoolMetrics constructorMetrics for pool, with tags on every meter, such as the server's name when there are several.
bindTo

Tm1SessionPoolMetrics

constructor
Tm1SessionPoolMetrics(Tm1SessionPool pool)

Metrics for pool.

Parameters

pool
the pool to report on

Tm1SessionPoolMetrics

constructor
Tm1SessionPoolMetrics(Tm1SessionPool pool, Iterable<Tag> tags)

Metrics for pool, with tags on every meter, such as the server's name when there are several.

Parameters

pool
the pool to report on
tags
the tags to add

bindTo

void bindTo(MeterRegistry registry)

Also in the Javadoc.