public class PrometheusPushGatewayManager extends ObjectSE
Prometheus PushGateway
へのメトリクスのプッシュを管理するために使用できるクラス。プッシュ操作、エラー処理、シャットダウン操作のスケジューリングを処理します。修飾子と型 | クラスと説明 |
---|---|
static class | PrometheusPushGatewayManager.ShutdownOperation シャットダウン時に実行する必要がある操作。 |
コンストラクターと説明 |
---|
PrometheusPushGatewayManager(io.prometheus.client.exporter.PushGateway pushGateway, io.prometheus.client.CollectorRegistry registry, DurationSE pushRate, StringSE job, MapSE<StringSE, StringSE> groupingKeys, PrometheusPushGatewayManager.ShutdownOperation shutdownOperation) シングルスレッドの TaskScheduler を使用して、新しい PrometheusPushGatewayManager インスタンスを作成します。 |
PrometheusPushGatewayManager(io.prometheus.client.exporter.PushGateway pushGateway, io.prometheus.client.CollectorRegistry registry, TaskScheduler scheduler, DurationSE pushRate, StringSE job, MapSE<StringSE, StringSE> groupingKey, PrometheusPushGatewayManager.ShutdownOperation shutdownOperation) 新しい PrometheusPushGatewayManager インスタンスを作成します。 |
修飾子と型 | メソッドと説明 |
---|---|
void | shutdown() PrometheusPushGatewayManager.ShutdownOperation を実行しているマネージャーをシャットダウンします。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public PrometheusPushGatewayManager(io.prometheus.client.exporter.PushGateway pushGateway, io.prometheus.client.CollectorRegistry registry, DurationSE pushRate, StringSE job, MapSE<StringSE,StringSE> groupingKeys, PrometheusPushGatewayManager.ShutdownOperation shutdownOperation)
TaskScheduler
を使用して、新しい PrometheusPushGatewayManager
インスタンスを作成します。pushGateway
- ソースプッシュゲートウェイ registry
- プッシュするコレクターレジストリ pushRate
- プッシュ操作が発生する割合 job
- 操作のジョブ IDgroupingKeys
- 操作用のオプションのグループ化キーのセット shutdownOperation
- コンテキストが閉じられたときに実行する必要があるシャットダウン操作。public PrometheusPushGatewayManager(io.prometheus.client.exporter.PushGateway pushGateway, io.prometheus.client.CollectorRegistry registry, TaskScheduler scheduler, DurationSE pushRate, StringSE job, MapSE<StringSE,StringSE> groupingKey, PrometheusPushGatewayManager.ShutdownOperation shutdownOperation)
PrometheusPushGatewayManager
インスタンスを作成します。pushGateway
- ソースプッシュゲートウェイ registry
- プッシュするコレクターレジストリ scheduler
- 操作に使用されるスケジューラー pushRate
- プッシュ操作が発生する割合 job
- 操作のジョブ IDgroupingKey
- 操作用のオプションのグループ化キーのセット shutdownOperation
- コンテキストが閉じられたときに実行する必要があるシャットダウン操作。public void shutdown()
PrometheusPushGatewayManager.ShutdownOperation
を実行しているマネージャーをシャットダウンします。