Class PrometheusMonitoringSetup.PrometheusSetup

java.lang.Object
de.iip_ecosphere.platform.monitoring.prometheus.PrometheusMonitoringSetup.PrometheusSetup
Enclosing class:
PrometheusMonitoringSetup

public static class PrometheusMonitoringSetup.PrometheusSetup extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private de.iip_ecosphere.platform.support.iip_aas.config.ServerAddressHolder
     
    private int
     
    private de.iip_ecosphere.platform.support.iip_aas.config.ServerAddressHolder
     
    private int
     
    private int
     
    private de.iip_ecosphere.platform.support.iip_aas.config.ServerAddressHolder
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    de.iip_ecosphere.platform.support.iip_aas.config.ServerAddressHolder
    Returns the port for the prometheus alert manager.
    int
    Returns the evaluation interval.
    de.iip_ecosphere.platform.support.iip_aas.config.ServerAddressHolder
    Returns the address for the prometheus exporter.
    int
    Returns the scrape interval.
    int
    Returns the scrape timeout.
    int
    Returns the safe scrape timeout, i.e., bounded by getScrapeInterval().
    de.iip_ecosphere.platform.support.iip_aas.config.ServerAddressHolder
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 by getScrapeInterval().
      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