Skip to content

Commit

Permalink
Update Dynatrace docs with metric metadata (#340)
Browse files Browse the repository at this point in the history
  • Loading branch information
pirgeo authored Nov 15, 2023
1 parent 6cec0f8 commit 51d7451
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/docs/implementations/dynatrace.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,15 @@ management.dynatrace.metrics.export:
api-token: YOUR_METRICS_INGEST_TOKEN
----

=== Meter metadata

Starting with Micrometer 1.12.0, the Dynatrace registry v2 exports meter metadata to Dynatrace.
Currently supported types of metadata are *unit* (called "base unit" in Micrometer) and *description*.
No changes are required to start exporting Metadata to Dynatrace - upgrading to version 1.12.0 or above is enough.
Find more information about metrics metadata in the https://www.dynatrace.com/support/help/extend-dynatrace/extend-metrics/reference/metric-ingestion-protocol#metadata[Dynatrace documentation].

The export of metrics metadata can be disabled by setting the `exportMeterMetadata` property on the `DynatraceConfig` (see <<bookmark-available-properties, the section on available properties>> below) to `false`.

== API Versions

=== API v2 [[bookmark-apiv2]]
Expand Down Expand Up @@ -213,6 +222,12 @@ DynatraceConfig dynatraceConfig = new DynatraceConfig() {
return false;
}
// Only available in Micrometer 1.12.0 and above
@Override
public boolean exportMeterMetadata() {
return true;
}
@Override
@Nullable
public String get(String k) {
Expand Down Expand Up @@ -255,6 +270,9 @@ management.dynatrace.metrics.export:
# Set to false, this will restore the previous (1.8.x) behavior for Timers and DistributionSummaries.
use-dynatrace-summary-instruments: true
# (since 1.12.0) Determines whether meter metadata (unit, description) should be exported.
export-meter-metadata: true
# The export interval in which metrics are sent to Dynatrace (default: 60s).
step: 60s
----
Expand Down

0 comments on commit 51d7451

Please sign in to comment.