api-token: "YOUR_TOKEN" # should be read from a secure source and not hard-coded.
api-token: "YOUR_TOKEN"
----
When using the Dynatrace v2 API, the following optional features are available:
@ -188,13 +192,16 @@ When using the Dynatrace v2 API, the following optional features are available:
@@ -188,13 +192,16 @@ When using the Dynatrace v2 API, the following optional features are available:
* Default dimensions: Specify key-value pairs that are added to all exported metrics.
If tags with the same key are specified with Micrometer, they overwrite the default dimensions.
In the example below URI and API token are not specified, therefore the local OneAgent endpoint is used.
It is also possible to explicitly use the `uri` and `api-token` properties as shown in the examples above.
# specify token and uri or leave blank for OneAgent export
# Specify uri and api-token here if not using the local OneAgent endpoint.
v2:
metric-key-prefix: "your.key.prefix"
enrich-with-dynatrace-metadata: true
@ -217,9 +224,8 @@ To export metrics to {micrometer-registry-docs}/dynatrace[Dynatrace], your API t
@@ -217,9 +224,8 @@ To export metrics to {micrometer-registry-docs}/dynatrace[Dynatrace], your API t
metrics:
export:
dynatrace:
# uri: "https://{your-domain}/e/{your-environment-id}" on managed deployments.