Skip to content

Commit 09030e0

Browse files
committed
Add New Relic query examples
1 parent b338dd6 commit 09030e0

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,27 @@ configuration file.
7575

7676
If you prefer to use New Relic monitoring, replace the `-g` parameter with `--enable-newrelic-reporting`.
7777
If enabled, must set the environment variables `NEW_RELIC_LICENSE_KEY` and `NEW_RELIC_APP_NAME` (see below).
78+
Once enabled, the below will be reported:
79+
80+
- `Custom/WebReplicas/service`
81+
- `Custom/WorkerReplicas/service`
82+
- `Custom/WebMetric/service`
83+
- `Custom/WorkerMetric/service`
84+
- `Custom/Scaltainer/ticks`
85+
86+
Where `service` is a placeholder for each service defined in `yourconfig.yml`.
87+
88+
Here is an example NRQL to query the metrics:
89+
90+
```
91+
FROM Metric
92+
SELECT max(newrelic.timeslice.value)
93+
WHERE appName = 'YOUR APP NAME'
94+
WITH METRIC_FORMAT 'Custom/WebReplicas/{web}'
95+
FACET web
96+
SINCE 1 day ago TIMESERIES MAX
97+
```
98+
7899
## Configuration
79100

80101
### Environment variables

0 commit comments

Comments
 (0)