クラス PrometheusScrapeEndpoint
java.lang.ObjectSE
org.springframework.boot.actuate.metrics.export.prometheus.PrometheusScrapeEndpoint
Prometheus サーバーがスクレイピングできる形式でメトリクスを出力する
@Endpoint
。- 導入:
- 2.0.0
- 作成者:
- Jon Schneider, Johnny Lim, Moritz Halbritter
コンストラクターのサマリー
コンストラクターコンストラクター説明PrometheusScrapeEndpoint
(io.prometheus.metrics.model.registry.PrometheusRegistry prometheusRegistry) 非推奨、削除予定: この API 要素は、将来のバージョンで削除される可能性があります。PrometheusScrapeEndpoint
(io.prometheus.metrics.model.registry.PrometheusRegistry prometheusRegistry, PropertiesSE exporterProperties) 新しいPrometheusScrapeEndpoint
を作成します。メソッドのサマリー
修飾子と型メソッド説明WebEndpointResponse<byte[]>
scrape
(PrometheusOutputFormat format, SetSE<StringSE> includedNames)
コンストラクターの詳細
PrometheusScrapeEndpoint
@DeprecatedSE(since="3.3.1", forRemoval=true) public PrometheusScrapeEndpoint(io.prometheus.metrics.model.registry.PrometheusRegistry prometheusRegistry) 非推奨、削除予定: この API 要素は、将来のバージョンで削除される可能性があります。3.3.1 以降、3.5.0 で削除されPrometheusScrapeEndpoint(PrometheusRegistry, Properties)
を推奨新しいPrometheusScrapeEndpoint
を作成します。- パラメーター:
prometheusRegistry
- 使用する Prometheus レジストリ
PrometheusScrapeEndpoint
public PrometheusScrapeEndpoint(io.prometheus.metrics.model.registry.PrometheusRegistry prometheusRegistry, PropertiesSE exporterProperties) 新しいPrometheusScrapeEndpoint
を作成します。- パラメーター:
prometheusRegistry
- the Prometheus registry to useexporterProperties
- Prometheus'ExpositionFormats
を構成するために使用されるプロパティ
メソッドの詳細
scrape
@ReadOperation(producesFrom=PrometheusOutputFormat.class) public WebEndpointResponse<byte[]> scrape(PrometheusOutputFormat format, @Nullable SetSE<StringSE> includedNames)
PrometheusScrapeEndpoint(PrometheusRegistry, Properties)
を推奨