From ade03109152a7ce3005e6a2eeaa6732407cd7dd1 Mon Sep 17 00:00:00 2001 From: Enriqueta De Leon Date: Fri, 26 Jan 2024 16:36:43 -0800 Subject: [PATCH 1/2] update metric_ingest_uri information --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index ddf7f38..85344ae 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,9 @@ start a `NewRelicReporter`. The `YOUR_SECRET_API_KEY` is referring to your New Relic Event API insert key or license key. For more information and how to obtain a key, [visit our docs](https://docs.newrelic.com/docs/insights/insights-data-sources/custom-data/send-custom-events-event-api#register). +The `METRIC_INGEST_URI` is the ingest endpoint for collected metrics. The default value will point to the US Production ingest endpoint. +For additional information on alternative ingest endpoints, [visit our docs](https://docs.newrelic.com/docs/apm/agents/java-agent/configuration/java-agent-configuration-config-file/#metric_ingest_uri). + ``` MetricRegistry metricRegistry = new MetricRegistry(); // If you're already using dropwizard-metrics you may already have one of these. ... From e492f8902e3e8b66e70990d6d056de6f54e84a2e Mon Sep 17 00:00:00 2001 From: edeleon Date: Tue, 30 Jan 2024 09:14:53 -0800 Subject: [PATCH 2/2] added more detail on when to create a NewRelicReporter --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 85344ae..94a3ad6 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ implementations communicating via HTTP using the okhttp libraries, respectively. ## Start the reporter Early in the lifecycle of your application, you will want to create and -start a `NewRelicReporter`. +start a `NewRelicReporter`. This should be created after the `MetricRegistry` is created and before any metrics have been generated. The `YOUR_SECRET_API_KEY` is referring to your New Relic Event API insert key or license key. For more information and how to obtain a key, [visit our docs](https://docs.newrelic.com/docs/insights/insights-data-sources/custom-data/send-custom-events-event-api#register).