Skip to content

Commit 0509f20

Browse files
committed
Clarify use of environment variables and fix an error
1 parent 1a67277 commit 0509f20

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/docs/implementations/dynatrace.adoc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Micrometer's Spring Boot support binds properties prefixed with `management.metr
5454
This allows configuring the Dynatrace exporter by using the <<bookmark-available-properties, the available properties>>.
5555

5656
To use the Dynatrace metrics exporter for Micrometer in your Spring Boot project, it is enough to include the `runtimeOnly 'io.micrometer:micrometer-registry-dynatrace'` dependency.
57-
In this default configuration, metrics will be exported to the v2 endpoint.
57+
In this default configuration, metrics will be exported to the local OneAgent endpoint.
5858

5959
=== Using a custom endpoint
6060

@@ -102,18 +102,18 @@ Metrics.addRegistry(registry);
102102
----
103103

104104
These properties can also be set via Spring Boot, using the properties file.
105-
It is possible to reference environment variables using the Spring property placeholder notation here (`${VAR_NAME}`).
105+
It is possible to reference environment variables using the Spring property placeholder notation here (e.g. `uri: ${DT_METRICS_INGEST_URL}`), if they are set up in your environment.
106106
`v2` is used as the default API version unless a deviceId is set (<<bookmark-apiv1, see below>>).
107107

108108
[source,yml]
109109
----
110110
management.metrics.export.dynatrace:
111111
# for SaaS: https://{your-environment-id}.live.dynatrace.com/api/v2/metrics/ingest
112112
# for managed deployments: https://{your-domain}/e/{your-environment-id}/api/v2/metrics/ingest
113-
uri: ${DT_METRICS_INGEST_URL}
113+
uri: YOUR_METRICS_INGEST_URL
114114
115115
# should not be hardcoded but rather read from a secure source, like environment variables.
116-
api-token: ${DT_METRICS_INGEST_API_TOKEN}
116+
api-token: YOUR_METRICS_INGEST_TOKEN
117117
----
118118

119119
== API Versions
@@ -150,12 +150,12 @@ management.metrics.export.dynatrace:
150150
# Required only if not using the OneAgent endpoint
151151
# For SaaS: https://{your-environment-id}.live.dynatrace.com/api/v2/metrics/ingest
152152
# For managed deployments: https://{your-domain}/e/{your-environment-id}/api/v2/metrics/ingest
153-
uri: ${DT_METRICS_INGEST_URL}
153+
uri: YOUR_METRICS_INGEST_URL
154154
155155
# It is *not* recommended to put the token into the YAML or properties file directly.
156156
# It should be read from a secure source instead, e.g. from environment variables.
157157
# E.g. using `api-token: ${DT_METRICS_INGEST_API_TOKEN}` to read from the environment.
158-
api-token: ${DT_METRICS_INGEST_API_TOKEN}
158+
api-token: YOUR_METRICS_INGEST_TOKEN
159159
160160
# These properties can only be used with the v2 exporter.
161161
v2:

0 commit comments

Comments
 (0)