Browse Source

Add starters for Micrometer Metrics

This commit adds spring-boot-starter-micrometer-metrics and
spring-boot-starter-micrometer-metrics-test.

It also uses the new starters in smoke tests and in other starters,
which depended on spring-boot-micrometer-metrics.

Closes gh-48161
pull/48170/head
Moritz Halbritter 4 weeks ago
parent
commit
4af532b8ee
  1. 2
      platform/spring-boot-dependencies/build.gradle
  2. 2
      settings.gradle
  3. 2
      smoke-test/spring-boot-smoke-test-prometheus/build.gradle
  4. 3
      starter/spring-boot-starter-actuator-test/build.gradle
  5. 2
      starter/spring-boot-starter-actuator/build.gradle
  6. 28
      starter/spring-boot-starter-micrometer-metrics-test/build.gradle
  7. 27
      starter/spring-boot-starter-micrometer-metrics/build.gradle
  8. 2
      starter/spring-boot-starter-opentelemetry-test/build.gradle
  9. 2
      starter/spring-boot-starter-opentelemetry/build.gradle

2
platform/spring-boot-dependencies/build.gradle

@ -2205,6 +2205,8 @@ bom {
"spring-boot-starter-logging", "spring-boot-starter-logging",
"spring-boot-starter-mail", "spring-boot-starter-mail",
"spring-boot-starter-mail-test", "spring-boot-starter-mail-test",
"spring-boot-starter-micrometer-metrics",
"spring-boot-starter-micrometer-metrics-test",
"spring-boot-starter-mongodb", "spring-boot-starter-mongodb",
"spring-boot-starter-mongodb-test", "spring-boot-starter-mongodb-test",
"spring-boot-starter-mustache", "spring-boot-starter-mustache",

2
settings.gradle

@ -303,6 +303,8 @@ include "starter:spring-boot-starter-logback"
include "starter:spring-boot-starter-logging" include "starter:spring-boot-starter-logging"
include "starter:spring-boot-starter-mail" include "starter:spring-boot-starter-mail"
include "starter:spring-boot-starter-mail-test" include "starter:spring-boot-starter-mail-test"
include "starter:spring-boot-starter-micrometer-metrics"
include "starter:spring-boot-starter-micrometer-metrics-test"
include "starter:spring-boot-starter-mongodb" include "starter:spring-boot-starter-mongodb"
include "starter:spring-boot-starter-mongodb-test" include "starter:spring-boot-starter-mongodb-test"
include "starter:spring-boot-starter-mustache" include "starter:spring-boot-starter-mustache"

2
smoke-test/spring-boot-smoke-test-prometheus/build.gradle

@ -28,7 +28,7 @@ dependencies {
runtimeOnly('io.micrometer:micrometer-registry-prometheus') runtimeOnly('io.micrometer:micrometer-registry-prometheus')
testImplementation(project(":module:spring-boot-micrometer-metrics-test")) testImplementation(project(":starter:spring-boot-starter-micrometer-metrics-test"))
testImplementation(project(":starter:spring-boot-starter-webmvc-test")) testImplementation(project(":starter:spring-boot-starter-webmvc-test"))
} }

3
starter/spring-boot-starter-actuator-test/build.gradle

@ -23,6 +23,5 @@ description = "Starter for testing Spring Boot's Actuator which provides product
dependencies { dependencies {
api(project(":starter:spring-boot-starter-actuator")) api(project(":starter:spring-boot-starter-actuator"))
api(project(":starter:spring-boot-starter-test")) api(project(":starter:spring-boot-starter-test"))
api(project(":starter:spring-boot-starter-micrometer-metrics-test"))
api(project(":module:spring-boot-micrometer-metrics-test"))
} }

2
starter/spring-boot-starter-actuator/build.gradle

@ -22,10 +22,10 @@ description = "Starter for using Spring Boot's Actuator which provides productio
dependencies { dependencies {
api(project(":starter:spring-boot-starter")) api(project(":starter:spring-boot-starter"))
api(project(":starter:spring-boot-starter-micrometer-metrics"))
api(project(":module:spring-boot-actuator-autoconfigure")) api(project(":module:spring-boot-actuator-autoconfigure"))
api(project(":module:spring-boot-health")) api(project(":module:spring-boot-health"))
api(project(":module:spring-boot-micrometer-metrics"))
api("io.micrometer:micrometer-observation") api("io.micrometer:micrometer-observation")
api("io.micrometer:micrometer-jakarta9") api("io.micrometer:micrometer-jakarta9")

28
starter/spring-boot-starter-micrometer-metrics-test/build.gradle

@ -0,0 +1,28 @@
/*
* Copyright 2012-present the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
plugins {
id "org.springframework.boot.starter"
}
description = "Starter for testing Micrometer Metrics"
dependencies {
api(project(":starter:spring-boot-starter-micrometer-metrics"))
api(project(":starter:spring-boot-starter-test"))
api(project(":module:spring-boot-micrometer-metrics-test"))
}

27
starter/spring-boot-starter-micrometer-metrics/build.gradle

@ -0,0 +1,27 @@
/*
* Copyright 2012-present the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
plugins {
id "org.springframework.boot.starter"
}
description = "Starter for using Micrometer Metrics"
dependencies {
api(project(":starter:spring-boot-starter"))
api(project(":module:spring-boot-micrometer-metrics"))
}

2
starter/spring-boot-starter-opentelemetry-test/build.gradle

@ -23,7 +23,7 @@ description = "Starter for testing OpenTelemetry"
dependencies { dependencies {
api(project(":starter:spring-boot-starter-opentelemetry")) api(project(":starter:spring-boot-starter-opentelemetry"))
api(project(":starter:spring-boot-starter-test")) api(project(":starter:spring-boot-starter-test"))
api(project(":starter:spring-boot-starter-micrometer-metrics-test"))
api(project(":module:spring-boot-micrometer-metrics-test"))
api(project(":module:spring-boot-micrometer-tracing-test")) api(project(":module:spring-boot-micrometer-tracing-test"))
} }

2
starter/spring-boot-starter-opentelemetry/build.gradle

@ -22,7 +22,7 @@ description = "Starter for using OpenTelemetry"
dependencies { dependencies {
api(project(":starter:spring-boot-starter")) api(project(":starter:spring-boot-starter"))
api(project(":module:spring-boot-micrometer-metrics")) api(project(":starter:spring-boot-starter-micrometer-metrics"))
api(project(":module:spring-boot-micrometer-tracing-opentelemetry")) api(project(":module:spring-boot-micrometer-tracing-opentelemetry"))
api(project(":module:spring-boot-opentelemetry")) api(project(":module:spring-boot-opentelemetry"))

Loading…
Cancel
Save