Class MetricsReplicationEnvironmentPostProcessor
java.lang.Object
org.springframework.cloud.dataflow.server.config.MetricsReplicationEnvironmentPostProcessor
- All Implemented Interfaces:
org.springframework.boot.env.EnvironmentPostProcessor
,Ordered
public class MetricsReplicationEnvironmentPostProcessor
extends Object
implements org.springframework.boot.env.EnvironmentPostProcessor, Ordered
This post-processor helps to replicate the metrics property defined for the DataFlow server to the
spring.cloud.dataflow.applicationProperties.stream.* and spring.cloud.dataflow.applicationProperties.task.* as well.
This allows to reuse the same metrics configuration for all deployed stream applications and launched tasks.
The post-processor also automatically computes some Monitoring Dashboard properties from the server's metrics properties.
Only the properties not explicitly set are updated. That means that you can explicitly set any monitoring dashboard or stream/task metrics and your settings will be honored.
The post-processor also automatically computes some Monitoring Dashboard properties from the server's metrics properties.
Only the properties not explicitly set are updated. That means that you can explicitly set any monitoring dashboard or stream/task metrics and your settings will be honored.
- Author:
- Christian Tzolov, Chris Bono
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getOrder()
void
postProcessEnvironment
(ConfigurableEnvironment environment, org.springframework.boot.SpringApplication application)
-
Constructor Details
-
MetricsReplicationEnvironmentPostProcessor
public MetricsReplicationEnvironmentPostProcessor()
-
-
Method Details
-
postProcessEnvironment
public void postProcessEnvironment(ConfigurableEnvironment environment, org.springframework.boot.SpringApplication application) - Specified by:
postProcessEnvironment
in interfaceorg.springframework.boot.env.EnvironmentPostProcessor
-
getOrder
public int getOrder()
-