Troubleshooting

Collect custom metrics

Custom metrics allow you to report any metric that passes through your code and to unify your monitoring inside New Relic. Create custom metrics to record arbitrary performance data via an API call; for example:

Browser does not support custom metrics. For options on adding custom data to Browser, see Browser instrumentation.

Avoid grouping issues

Collecting too many metric timeslices can impact the performance of both your application and New Relic. For example, if you have thousands of individual users, avoid creating metrics to track the performance of their unique user IDs. This could result in such a large number of metrics that it becomes nearly impossible to navigate or make sense of the data. Instead, use a placeholder, such as an asterisk (*), instead of individual user IDs.

To avoid potential data problems, try to keep the total number of unique metric timeslices introduced by custom metrics under 2000.

When the total number of unique metric names exceeds 2000, limits begin to apply automatically that affect how data appears in the user interface, such as in charts and tables. For more information, see Metric grouping issues.