From 0b781d87b1d241a75ab70a051eaba932436d3686 Mon Sep 17 00:00:00 2001 From: Viktor Ardelean Date: Mon, 6 Dec 2021 11:46:15 +0200 Subject: [PATCH] Add consistent quotes in YAML samples of reference doc See gh-28911 --- .../src/docs/asciidoc/actuator/metrics.adoc | 6 +++--- .../src/docs/asciidoc/actuator/monitoring.adoc | 2 +- .../spring-boot-docs/src/docs/asciidoc/data/nosql.adoc | 10 +++++----- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/actuator/metrics.adoc b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/actuator/metrics.adoc index 0c86b2560e72..da953e32d726 100644 --- a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/actuator/metrics.adoc +++ b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/actuator/metrics.adoc @@ -461,10 +461,10 @@ The following example `scrape_config` adds to `prometheus.yml`: [source,yaml,indent=0,subs="verbatim"] ---- scrape_configs: - - job_name: 'spring' - metrics_path: '/actuator/prometheus' + - job_name: "spring" + metrics_path: "/actuator/prometheus" static_configs: - - targets: ['HOST:PORT'] + - targets: ["HOST:PORT"] ---- For ephemeral or batch jobs that may not exist long enough to be scraped, you can use https://github.com/prometheus/pushgateway[Prometheus Pushgateway] support to expose the metrics to Prometheus. diff --git a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/actuator/monitoring.adoc b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/actuator/monitoring.adoc index e58179cadce1..877f39541df1 100644 --- a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/actuator/monitoring.adoc +++ b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/actuator/monitoring.adoc @@ -77,7 +77,7 @@ For example, doing so lets a management server be available over HTTP while the ssl: enabled: true key-store: "classpath:store.jks" - key-password: secret + key-password: "secret" management: server: port: 8080 diff --git a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/data/nosql.adoc b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/data/nosql.adoc index 7d312822f236..2c01cffebc25 100644 --- a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/data/nosql.adoc +++ b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/data/nosql.adoc @@ -308,8 +308,8 @@ You can further tune how `Sniffer` is configured, as shown in the following exam elasticsearch: restclient: sniffer: - interval: 10m - delay-after-failure: 30s + interval: "10m" + delay-after-failure: "30s" ---- @@ -327,7 +327,7 @@ In addition to the properties described previously, the `spring.elasticsearch.we spring: elasticsearch: webclient: - max-in-memory-size: 1MB + max-in-memory-size: "1MB" ---- If the `spring.elasticsearch.*` and `spring.elasticsearch.webclient.*` configuration properties are not enough and you'd like to fully control the client configuration, you can register a custom `ClientConfiguration` bean. @@ -604,8 +604,8 @@ In yaml files, you can use the yaml list notation. In properties files, you must [source,yaml,indent=0,subs="verbatim",configprops,configblocks] ---- spring.ldap.embedded.base-dn: - - dc=spring,dc=io - - dc=pivotal,dc=io + - "dc=spring,dc=io" + - "dc=pivotal,dc=io" ---- ====