Skip to content

Commit

Permalink
Update Install Instructions (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
deleonenriqueta authored Jan 31, 2024
1 parent 66affff commit 48c3411
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,14 @@ 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).

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.
...
Expand Down

0 comments on commit 48c3411

Please sign in to comment.