# spring-cloud-dataflow-metrics **Repository Path**: mirrors_spring-cloud/spring-cloud-dataflow-metrics ## Basic Information - **Project Name**: spring-cloud-dataflow-metrics - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-18 - **Last Updated**: 2025-09-06 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 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 http://docs.spring.io/spring-integration/reference/html/system-management-chapter.html#mgmt-channel-features[Spring Integration channel metrics] such as message rates. == Maven configuration Add the Maven dependency [source,xml,indent=0] ---- org.springframework.cloud spring-cloud-dataflow-metrics-log 1.0.0.BUILD-SNAPSHOT ---- and reference the Spring Snapshot repository [source,xml,indent=0] ---- spring-libs-snapshot Spring Snapshot Repository http://repo.spring.io/libs-snapshot ---- == Configuration The prefix that will be prepended to the names of metrics that are exposed under the `/metrics` endpoint can be configured using the property `spring.cloud.dataflow.metrics.prefix`. The default value uses the form `${spring.cloud.application.group}.${spring.cloud.application.name}.` where `` and the `${}` placeholders are referencing standard Spring Boot Configuration properties. If the `spring.cloud.application` placeholder values are not set, then the default value for `${spring.cloud.application.group}` is `group` and `${spring.cloud.application.name}` is `application` The value of `` 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}` * `${spring.cloud.client.ipAddress}` * `${spring.cloud.client.hostname}` The exporting process is controller though https://github.com/spring-projects/spring-boot/blob/master/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/export/MetricExportProperties.java[MetricExportProperties]. This lets you control how often the metrics are exported and which metrics to include/exclude. Some documentation is available http://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#production-ready-metric-writers[here]. == Sister projects The project https://github.com/spring-cloud/spring-cloud-dataflow-metrics-datadog[Spring Cloud Data Flow Metrics Datadog] exports metrics to Datadog. == Sample application https://github.com/markpollack/timemonitor[Timemonitor] is an example application (a WIP) that demonstrates creating the time source application from http://start-scs.cfapps.io/[Data Flow App Starters] and adding the ability to export metrics. == Release Plans Planning a 1.0 milestone release end of November.