Merge branch '2.7.x'

pull/31027/head
Andy Wilkinson 3 years ago
commit a496cb9298

@ -53,8 +53,8 @@ public class DatadogProperties extends StepRegistryProperties {
private String hostTag = "instance"; private String hostTag = "instance";
/** /**
* URI to ship metrics to. If you need to publish metrics to an internal proxy * URI to ship metrics to. Set this if you need to publish metrics to a Datadog site
* en-route to Datadog, you can define the location of the proxy with this. * other than US, or to an internal proxy en-route to Datadog.
*/ */
private String uri = "https://api.datadoghq.com"; private String uri = "https://api.datadoghq.com";

@ -128,6 +128,30 @@ To export metrics to {micrometer-registry-docs}/datadog[Datadog], you must provi
api-key: "YOUR_KEY" api-key: "YOUR_KEY"
---- ----
If you additionally provide an application key (optional), then metadata such as meter descriptions, types, and base units will also be exported:
[source,yaml,indent=0,subs="verbatim",configprops,configblocks]
----
management:
datadog:
metrics:
export:
api-key: "YOUR_API_KEY"
application-key: "YOUR_APPLICATION_KEY"
----
By default, metrics are sent to the Datadog US https://docs.datadoghq.com/getting_started/site[site] (`https://api.datadoghq.com`).
If your Datadog project is hosted on one of the other sites, or you need to send metrics through a proxy, configure the URI accordingly:
[source,yaml,indent=0,subs="verbatim",configprops,configblocks]
----
management:
datadog:
metrics:
export:
uri: "https://api.datadoghq.eu"
----
You can also change the interval at which metrics are sent to Datadog: You can also change the interval at which metrics are sent to Datadog:
[source,yaml,indent=0,subs="verbatim",configprops,configblocks] [source,yaml,indent=0,subs="verbatim",configprops,configblocks]

Loading…
Cancel
Save