Class PrometheusMonitoringSetup
java.lang.Object
de.iip_ecosphere.platform.support.setup.AbstractSetup
de.iip_ecosphere.platform.monitoring.MonitoringSetup
de.iip_ecosphere.platform.monitoring.prometheus.PrometheusMonitoringSetup
public class PrometheusMonitoringSetup
extends de.iip_ecosphere.platform.monitoring.MonitoringSetup
Extended prometheus monitoring setup.
- Author:
- Holger Eichelberger, SSE
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final Stringstatic final intprivate static PrometheusMonitoringSetupFields inherited from class de.iip_ecosphere.platform.support.setup.AbstractSetup
DEFAULT_FNAME, DEFAULT_NAME, DEFAULT_OVERRIDE_FNAME, PARAM_PLUGINS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PrometheusMonitoringSetupReturns the setup instance.Returns the prometheus setup.static PrometheusMonitoringSetupReads aPrometheusMonitoringSetupinstance fromAbstractSetup.DEFAULT_FNAMEin the root folder of the jar/classpath.voidDefines the prometheus setup.Methods inherited from class de.iip_ecosphere.platform.monitoring.MonitoringSetup
getAas, getTransport, setAas, setTransportMethods inherited from class de.iip_ecosphere.platform.support.setup.AbstractSetup
getDefaultFileName, getPluginsFolder, isNotEmpty, readFromYaml, readFromYaml, readFromYaml, readFromYaml, readFromYaml, readFromYamlWithPath, readFromYamlWithPath, readFromYamlWithPath, readFromYamlWithPath, readMappingFromYaml, readMappingFromYaml, setDefaultFileName, setPluginsFolder, setPluginsFolderFile
-
Field Details
-
DEFAULT_PROMETHEUS_SERVER
- See Also:
-
DEFAULT_PROMETHEUSSERVER_PORT
public static final int DEFAULT_PROMETHEUSSERVER_PORT- See Also:
-
DEFAULT_ALERTMGR_PORT
public static final int DEFAULT_ALERTMGR_PORT- See Also:
-
instance
-
prometheus
-
-
Constructor Details
-
PrometheusMonitoringSetup
public PrometheusMonitoringSetup()
-
-
Method Details
-
getPrometheus
Returns the prometheus setup.- Returns:
- the prometheus setup
-
setPrometheus
Defines the prometheus setup. [snakeyaml]- Parameters:
prometheus- the prometheus setup
-
readConfiguration
Reads aPrometheusMonitoringSetupinstance fromAbstractSetup.DEFAULT_FNAMEin the root folder of the jar/classpath.- Returns:
- the configuration instance
- Throws:
IOException- if the file cannot be read/found, the configuration class cannot be instantiated- See Also:
-
getInstance
Returns the setup instance.- Returns:
- the instance
-