Skip to content

3.0.0-M3 Actuator Metrics Export Properties #220

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
3 tasks
Tracked by #168
fabapp2 opened this issue Jul 15, 2022 · 0 comments
Closed
3 tasks
Tracked by #168

3.0.0-M3 Actuator Metrics Export Properties #220

fabapp2 opened this issue Jul 15, 2022 · 0 comments
Labels
3.0.0 Spring Boot 3.0.0 archived

Comments

@fabapp2
Copy link
Contributor

fabapp2 commented Jul 15, 2022

labels: ["good first issue","upgrade:boot-recipe","3.0.0"]

From the Release Notes:

We have moved the properties controlling the actuator metrics export. The old schema was management.metrics.export.<product>, the new one is management.<product>.metrics.export (Example: the prometheus properties moved from management.metrics.export.prometheus to management.prometheus.metrics.export). If you are using the spring-boot-properties-migrator, you will get notified at startup. See #30381 for details.

What needs to be done

  • Find properties using the old schema
  • Change the format following the new schema
  • Overwrite the old property with the new

This should be done as (integrated) declarative plain OpenRewrite recipe

See:

- type: org.springframework.sbm.engine.recipe.OpenRewriteDeclarativeRecipeAdapter
condition:
type: org.springframework.sbm.boot.common.conditions.IsSpringBootProject
versionPattern: "3\\.0\\..*"
description: Migrate SAML configuration to Spring Boot 3.0 in yaml format
openRewriteRecipe: |-
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.spring.boot2.SpringBootPropertiesManual_2_7
displayName: Migrate SAML configuration to Spring Boot 3.0 in yaml format
description: Renames spring.security.saml2.relyingparty.registration.(any).identityprovider to spring.security.saml2.relyingparty.registration.(any).assertingparty.
recipeList:
- org.openrewrite.yaml.ChangeKey:
oldKeyPath: $.spring.security.saml2.relyingparty.registration.*[?(@.identityprovider)]
newKey: assertingparty

@fabapp2 fabapp2 added this to the Spring Boot Upgrade 3.0 (M3) milestone Jul 15, 2022
@fabapp2 fabapp2 added 3.0.0 Spring Boot 3.0.0 and removed 3.0.0-M3 labels Jul 21, 2022
@fabapp2 fabapp2 added the good first issue Good for newcomers label Sep 27, 2022
@fabapp2 fabapp2 closed this as not planned Won't fix, can't repro, duplicate, stale Aug 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.0.0 Spring Boot 3.0.0 archived
Projects
None yet
Development

No branches or pull requests

1 participant