Skip to content
This repository has been archived by the owner on Jul 9, 2022. It is now read-only.


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Latest commit


Git stats


Failed to load latest commit information.

spring-cloud-dataflow-metrics is no longer actively maintained by VMware, Inc.

Spring Cloud Data Flow Metrics provides the foundation to help export Boot metrics that are exposed under the /metrics endpoint to a variety of external systems. It provides Spring Boot AutoConfiguration to setup the exporting process and common functionality such as defining a prefix for your metric names.

The spring-cloud-dataflow-metrics-log module provides a LogMetricWriter that writes Boot metrics into the log file. While it is a very simple MetricWriter implementation, log files are often ingested into application monitoring tools where they can be further processed to create dashboards of an application’s performance.

Most important for Spring Cloud Data Flow Stream applications are the inclusion of Spring Integration channel metrics such as message rates.

Maven configuration

Add the Maven dependency


and reference the Spring Snapshot repository

  <name>Spring Snapshot Repository</name>


The prefix that will be prepended to the names of metrics that are exposed under the /metrics endpoint can be configured using the property

The default value uses the form ${}.${}.<ID> where <ID> and the ${} placeholders are referencing standard Spring Boot Configuration properties.

If the placeholder values are not set, then the default value for ${} is group and ${} is application

The value of <ID> is resovled to one of the following placeholder expressions in the following order

  • ${vcap.application.instance_index}

  • ${spring.application.index}

  • ${PID}

Other useful property placeholder keys that you should be aware of when setting your own prefix value are

  • ${server.port}

  • ${}

  • ${}

The exporting process is controller though MetricExportProperties. This lets you control how often the metrics are exported and which metrics to include/exclude. Some documentation is available here.

Sister projects

The project Spring Cloud Data Flow Metrics Datadog exports metrics to Datadog.

Sample application

Timemonitor is an example application (a WIP) that demonstrates creating the time source application from Data Flow App Starters and adding the ability to export metrics.

Release Plans

Planning a 1.0 milestone release end of November.


No description, website, or topics provided.



Code of conduct

Security policy





No releases published


No packages published