public static class PrometheusMonitoringSetup.PrometheusSetup extends Object
| Modifier and Type | Field and Description |
|---|---|
private de.iip_ecosphere.platform.support.iip_aas.config.ServerAddressHolder |
alertMgr |
private int |
evaluationInterval |
private de.iip_ecosphere.platform.support.iip_aas.config.ServerAddressHolder |
exporter |
private int |
scrapeInterval |
private int |
scrapeTimeout |
private de.iip_ecosphere.platform.support.iip_aas.config.ServerAddressHolder |
server |
| Constructor and Description |
|---|
PrometheusSetup() |
| Modifier and Type | Method and Description |
|---|---|
de.iip_ecosphere.platform.support.iip_aas.config.ServerAddressHolder |
getAlertMgr()
Returns the port for the prometheus alert manager.
|
int |
getEvaluationInterval()
Returns the evaluation interval.
|
de.iip_ecosphere.platform.support.iip_aas.config.ServerAddressHolder |
getExporter()
Returns the address for the prometheus exporter.
|
int |
getScrapeInterval()
Returns the scrape interval.
|
int |
getScrapeTimeout()
Returns the scrape timeout.
|
int |
getScrapeTimeoutSafe()
Returns the safe scrape timeout, i.e., bounded by
getScrapeInterval(). |
de.iip_ecosphere.platform.support.iip_aas.config.ServerAddressHolder |
getServer()
Returns the Prometheus server information.
|
void |
setAlertMgr(de.iip_ecosphere.platform.support.iip_aas.config.ServerAddressHolder alertMgr)
Defines the alert manager address.
|
void |
setEvaluationInterval(int evaluationInterval)
Defines the evaluation interval.
|
void |
setExporter(de.iip_ecosphere.platform.support.iip_aas.config.ServerAddressHolder exporter)
Defines the address for the prometheus exporter.
|
void |
setScrapeInterval(int scrapeInterval)
Defines the scrape interval.
|
void |
setScrapeTimeout(int scrapeTimeout)
Defines the scrape timeout.
|
void |
setServer(de.iip_ecosphere.platform.support.iip_aas.config.ServerAddressHolder server)
Returns the Prometheus server information.
|
private de.iip_ecosphere.platform.support.iip_aas.config.ServerAddressHolder server
private de.iip_ecosphere.platform.support.iip_aas.config.ServerAddressHolder exporter
private de.iip_ecosphere.platform.support.iip_aas.config.ServerAddressHolder alertMgr
private int scrapeInterval
private int scrapeTimeout
private int evaluationInterval
public de.iip_ecosphere.platform.support.iip_aas.config.ServerAddressHolder getServer()
public void setServer(de.iip_ecosphere.platform.support.iip_aas.config.ServerAddressHolder server)
server - the Prometheus server informationpublic int getScrapeInterval()
public void setScrapeInterval(int scrapeInterval)
scrapeInterval - in mspublic int getEvaluationInterval()
public void setEvaluationInterval(int evaluationInterval)
evaluationInterval - in mspublic int getScrapeTimeout()
public int getScrapeTimeoutSafe()
getScrapeInterval().public void setScrapeTimeout(int scrapeTimeout)
scrapeTimeout - in mspublic de.iip_ecosphere.platform.support.iip_aas.config.ServerAddressHolder getExporter()
public void setExporter(de.iip_ecosphere.platform.support.iip_aas.config.ServerAddressHolder exporter)
exporter - the exporter address, may have a negative port for ephemeralpublic de.iip_ecosphere.platform.support.iip_aas.config.ServerAddressHolder getAlertMgr()
public void setAlertMgr(de.iip_ecosphere.platform.support.iip_aas.config.ServerAddressHolder alertMgr)
alertMgr - the alert manger addressCopyright © 2022. All rights reserved.