- 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 of the the 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