Skip to content

Commit

Permalink
Add New Relic query examples
Browse files Browse the repository at this point in the history
  • Loading branch information
hammady committed Jun 9, 2021
1 parent b338dd6 commit 09030e0
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,27 @@ configuration file.

If you prefer to use New Relic monitoring, replace the `-g` parameter with `--enable-newrelic-reporting`.
If enabled, must set the environment variables `NEW_RELIC_LICENSE_KEY` and `NEW_RELIC_APP_NAME` (see below).
Once enabled, the below will be reported:

- `Custom/WebReplicas/service`
- `Custom/WorkerReplicas/service`
- `Custom/WebMetric/service`
- `Custom/WorkerMetric/service`
- `Custom/Scaltainer/ticks`

Where `service` is a placeholder for each service defined in `yourconfig.yml`.

Here is an example NRQL to query the metrics:

```
FROM Metric
SELECT max(newrelic.timeslice.value)
WHERE appName = 'YOUR APP NAME'
WITH METRIC_FORMAT 'Custom/WebReplicas/{web}'
FACET web
SINCE 1 day ago TIMESERIES MAX
```

## Configuration

### Environment variables
Expand Down

0 comments on commit 09030e0

Please sign in to comment.