Class PrometheusMonitoringSetup.PrometheusSetup
java.lang.Object
de.iip_ecosphere.platform.monitoring.prometheus.PrometheusMonitoringSetup.PrometheusSetup
- Enclosing class:
PrometheusMonitoringSetup
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate de.iip_ecosphere.platform.support.iip_aas.config.ServerAddressHolderprivate intprivate de.iip_ecosphere.platform.support.iip_aas.config.ServerAddressHolderprivate intprivate intprivate de.iip_ecosphere.platform.support.iip_aas.config.ServerAddressHolder -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionde.iip_ecosphere.platform.support.iip_aas.config.ServerAddressHolderReturns the port for the prometheus alert manager.intReturns the evaluation interval.de.iip_ecosphere.platform.support.iip_aas.config.ServerAddressHolderReturns the address for the prometheus exporter.intReturns the scrape interval.intReturns the scrape timeout.intReturns the safe scrape timeout, i.e., bounded bygetScrapeInterval().de.iip_ecosphere.platform.support.iip_aas.config.ServerAddressHolderReturns the Prometheus server information.voidsetAlertMgr(de.iip_ecosphere.platform.support.iip_aas.config.ServerAddressHolder alertMgr) Defines the alert manager address.voidsetEvaluationInterval(int evaluationInterval) Defines the evaluation interval.voidsetExporter(de.iip_ecosphere.platform.support.iip_aas.config.ServerAddressHolder exporter) Defines the address for the prometheus exporter.voidsetScrapeInterval(int scrapeInterval) Defines the scrape interval.voidsetScrapeTimeout(int scrapeTimeout) Defines the scrape timeout.voidsetServer(de.iip_ecosphere.platform.support.iip_aas.config.ServerAddressHolder server) Returns the Prometheus server information.
-
Field Details
-
server
private de.iip_ecosphere.platform.support.iip_aas.config.ServerAddressHolder server -
exporter
private de.iip_ecosphere.platform.support.iip_aas.config.ServerAddressHolder exporter -
alertMgr
private de.iip_ecosphere.platform.support.iip_aas.config.ServerAddressHolder alertMgr -
scrapeInterval
private int scrapeInterval -
scrapeTimeout
private int scrapeTimeout -
evaluationInterval
private int evaluationInterval
-
-
Constructor Details
-
PrometheusSetup
public PrometheusSetup()
-
-
Method Details
-
getServer
public de.iip_ecosphere.platform.support.iip_aas.config.ServerAddressHolder getServer()Returns the Prometheus server information.- Returns:
- the Prometheus server information
-
setServer
public void setServer(de.iip_ecosphere.platform.support.iip_aas.config.ServerAddressHolder server) Returns the Prometheus server information. [snakeyaml]- Parameters:
server- the Prometheus server information
-
getScrapeInterval
public int getScrapeInterval()Returns the scrape interval.- Returns:
- the scrape interval in ms
-
setScrapeInterval
public void setScrapeInterval(int scrapeInterval) Defines the scrape interval. [snakeyaml]- Parameters:
scrapeInterval- in ms
-
getEvaluationInterval
public int getEvaluationInterval()Returns the evaluation interval.- Returns:
- the evaluation interval in ms
-
setEvaluationInterval
public void setEvaluationInterval(int evaluationInterval) Defines the evaluation interval. [snakeyaml]- Parameters:
evaluationInterval- in ms
-
getScrapeTimeout
public int getScrapeTimeout()Returns the scrape timeout.- Returns:
- the scrape timeout in ms
-
getScrapeTimeoutSafe
public int getScrapeTimeoutSafe()Returns the safe scrape timeout, i.e., bounded bygetScrapeInterval().- Returns:
- the scrape timeout in ms
-
setScrapeTimeout
public void setScrapeTimeout(int scrapeTimeout) Defines the scrape timeout. [snakeyaml]- Parameters:
scrapeTimeout- in ms
-
getExporter
public de.iip_ecosphere.platform.support.iip_aas.config.ServerAddressHolder getExporter()Returns the address for the prometheus exporter.- Returns:
- the address, port may be negative for ephemeral
-
setExporter
public void setExporter(de.iip_ecosphere.platform.support.iip_aas.config.ServerAddressHolder exporter) Defines the address for the prometheus exporter. [snakeyaml]- Parameters:
exporter- the exporter address, may have a negative port for ephemeral
-
getAlertMgr
public de.iip_ecosphere.platform.support.iip_aas.config.ServerAddressHolder getAlertMgr()Returns the port for the prometheus alert manager.- Returns:
- the port, may be negative for disabled
-
setAlertMgr
public void setAlertMgr(de.iip_ecosphere.platform.support.iip_aas.config.ServerAddressHolder alertMgr) Defines the alert manager address. [snakeyaml]- Parameters:
alertMgr- the alert manger address
-