Skip to content

Commit 0b781d8

Browse files
viktorardeleansnicoll
authored andcommitted
Add consistent quotes in YAML samples of reference doc
See gh-28911
1 parent 8f3659c commit 0b781d8

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

spring-boot-project/spring-boot-docs/src/docs/asciidoc/actuator/metrics.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -461,10 +461,10 @@ The following example `scrape_config` adds to `prometheus.yml`:
461461
[source,yaml,indent=0,subs="verbatim"]
462462
----
463463
scrape_configs:
464-
- job_name: 'spring'
465-
metrics_path: '/actuator/prometheus'
464+
- job_name: "spring"
465+
metrics_path: "/actuator/prometheus"
466466
static_configs:
467-
- targets: ['HOST:PORT']
467+
- targets: ["HOST:PORT"]
468468
----
469469

470470
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.

spring-boot-project/spring-boot-docs/src/docs/asciidoc/actuator/monitoring.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ For example, doing so lets a management server be available over HTTP while the
7777
ssl:
7878
enabled: true
7979
key-store: "classpath:store.jks"
80-
key-password: secret
80+
key-password: "secret"
8181
management:
8282
server:
8383
port: 8080

spring-boot-project/spring-boot-docs/src/docs/asciidoc/data/nosql.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -308,8 +308,8 @@ You can further tune how `Sniffer` is configured, as shown in the following exam
308308
elasticsearch:
309309
restclient:
310310
sniffer:
311-
interval: 10m
312-
delay-after-failure: 30s
311+
interval: "10m"
312+
delay-after-failure: "30s"
313313
----
314314

315315

@@ -327,7 +327,7 @@ In addition to the properties described previously, the `spring.elasticsearch.we
327327
spring:
328328
elasticsearch:
329329
webclient:
330-
max-in-memory-size: 1MB
330+
max-in-memory-size: "1MB"
331331
----
332332

333333
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
604604
[source,yaml,indent=0,subs="verbatim",configprops,configblocks]
605605
----
606606
spring.ldap.embedded.base-dn:
607-
- dc=spring,dc=io
608-
- dc=pivotal,dc=io
607+
- "dc=spring,dc=io"
608+
- "dc=pivotal,dc=io"
609609
----
610610
====
611611

0 commit comments

Comments
 (0)