Skip to content

Commit

Permalink
Change accept header to valid plain text in micrometer documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
manofthepeace committed Feb 2, 2023
1 parent a9070e8 commit 7cce7be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/src/main/asciidoc/micrometer.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ string. For example, setting
.Exported metrics format

By default, the metrics are exported using the Prometheus format `application/openmetrics-text`,
you can revert to the former format by specifying the `Accept` request header to `plain/text` (`curl -H "Accept: plain/text" localhost:8080/q/metrics/`).
you can revert to the former format by specifying the `Accept` request header to `plain/text` (`curl -H "Accept: text/plain" localhost:8080/q/metrics/`).

== Using MeterFilter to configure metrics

Expand Down
2 changes: 1 addition & 1 deletion docs/src/main/asciidoc/telemetry-micrometer-tutorial.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ NOTE: Metrics appear lazily, you often won't see any data for your endpoint unti
.Exported metrics format

By default, the metrics are exported using the Prometheus format `application/openmetrics-text`,
you can revert to the former format by specifying the `Accept` request header to `plain/text` (`curl -H "Accept: plain/text" localhost:8080/q/metrics/`).
you can revert to the former format by specifying the `Accept` request header to `plain/text` (`curl -H "Accept: text/plain" localhost:8080/q/metrics/`).

== Inject the MeterRegistry

Expand Down

0 comments on commit 7cce7be

Please sign in to comment.