Skip to content

Commit 4ddf36b

Browse files
arminrupirgeo
authored andcommitted
Update Spring Boot example config for Dynatrace
1 parent 78354b9 commit 4ddf36b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

samples/micrometer-samples-boot2/src/main/resources/application-dynatrace.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616

1717
management.metrics.export.dynatrace:
1818
enabled: true
19-
apiToken: my-api-token
20-
uri: https://my-environment-id.live.dynatrace.com
21-
deviceId: my-custom-device
19+
api-version: v2
20+
21+
# If you are not using the OneAgent on your host, additionally specify your Dynatrace environment and API token:
22+
uri: "https://{your-environment-id}.live.dynatrace.com/api/v2/metrics/ingest"
23+
# uri: "https://{your-domain}/e/{your-environment-id}/api/v2/metrics/ingest" for managed deployments
24+
api-token: "YOUR_TOKEN" # should be read from a secure property source

0 commit comments

Comments
 (0)