Package io.quarkus.kubernetes.deployment
Class PrometheusConfig
java.lang.Object
io.quarkus.kubernetes.deployment.PrometheusConfig
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) booleanWhen true (the default), emit a set of annotations to identify services that should be scraped by prometheus for metrics.(package private) booleanWhen true (the default), emit a set of annotations to identify services that should be scraped by prometheus for metrics.Define the annotation used to indicate the path to scrape.Define the annotation used to indicate the port to scrape.(package private) StringDefine the annotation prefix used for scrape values, this value will be used as the base for other annotation name defaults.Define the annotation used to indicate the scheme to use for scraping By default,/schemewill be appended to the defined prefix.Define the annotation used to indicate services that should be scraped. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
annotations
@ConfigItem(defaultValue="true") boolean annotationsWhen true (the default), emit a set of annotations to identify services that should be scraped by prometheus for metrics. In configurations that use the Prometheus operator with ServiceMonitor, annotations may not be necessary. -
generateServiceMonitor
@ConfigItem(defaultValue="true") boolean generateServiceMonitorWhen true (the default), emit a set of annotations to identify services that should be scraped by prometheus for metrics. In configurations that use the Prometheus operator with ServiceMonitor, annotations may not be necessary. -
prefix
Define the annotation prefix used for scrape values, this value will be used as the base for other annotation name defaults. Altering the base for generated annotations can make it easier to define re-labeling rules and avoid unexpected knock-on effects. The default value isprometheus.ioSee Prometheus example: https://github.com/prometheus/prometheus/blob/main/documentation/examples/prometheus-kubernetes.yml -
scrape
Define the annotation used to indicate services that should be scraped. By default,/scrapewill be appended to the defined prefix. -
path
Define the annotation used to indicate the path to scrape. By default,/pathwill be appended to the defined prefix. -
port
Define the annotation used to indicate the port to scrape. By default,/portwill be appended to the defined prefix. -
scheme
Define the annotation used to indicate the scheme to use for scraping By default,/schemewill be appended to the defined prefix.
-
-
Constructor Details
-
PrometheusConfig
public PrometheusConfig()
-