public class PrometheusMonitoringSetup
extends de.iip_ecosphere.platform.monitoring.MonitoringSetup
| Modifier and Type | Class and Description |
|---|---|
static class |
PrometheusMonitoringSetup.PrometheusSetup |
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_ALERTMGR_PORT |
static String |
DEFAULT_PROMETHEUS_SERVER |
static int |
DEFAULT_PROMETHEUSSERVER_PORT |
private static PrometheusMonitoringSetup |
instance |
private PrometheusMonitoringSetup.PrometheusSetup |
prometheus |
| Constructor and Description |
|---|
PrometheusMonitoringSetup() |
| Modifier and Type | Method and Description |
|---|---|
static PrometheusMonitoringSetup |
getInstance()
Returns the setup instance.
|
PrometheusMonitoringSetup.PrometheusSetup |
getPrometheus()
Returns the prometheus setup.
|
static PrometheusMonitoringSetup |
readConfiguration()
Reads a
PrometheusMonitoringSetup instance from AbstractSetup.DEFAULT_FNAME in the root folder
of the jar/classpath. |
void |
setPrometheus(PrometheusMonitoringSetup.PrometheusSetup prometheus)
Defines the prometheus setup.
|
getAas, getTransport, setAas, setTransportpublic static final String DEFAULT_PROMETHEUS_SERVER
public static final int DEFAULT_PROMETHEUSSERVER_PORT
public static final int DEFAULT_ALERTMGR_PORT
private static PrometheusMonitoringSetup instance
private PrometheusMonitoringSetup.PrometheusSetup prometheus
public PrometheusMonitoringSetup.PrometheusSetup getPrometheus()
public void setPrometheus(PrometheusMonitoringSetup.PrometheusSetup prometheus)
prometheus - the prometheus setuppublic static PrometheusMonitoringSetup readConfiguration() throws IOException
PrometheusMonitoringSetup instance from AbstractSetup.DEFAULT_FNAME in the root folder
of the jar/classpath.IOException - if the file cannot be read/found, the configuration class cannot be instantiatedAbstractSetup.readFromYaml(Class)public static PrometheusMonitoringSetup getInstance()
Copyright © 2022. All rights reserved.