I’m looking for a way to record custom metrics with multiple dimensions using the node.js new-relic agent. From what I see, the API for custom metrics includes only a name and a value.
Is it possible to add labels to a metric so it can be queried according to multiple dimensions? For example, when I record metrics with Prometheus for my caching system, I add labels like:
- server name
- cache entry name
- tenant ID
- web API route
This allows me to aggregate my data according to different labels for different KPI dashboards (by tenant, by web API, etc).
Is this possible directly with New Relic? (I’m not asking about New Relic Prometheus integration)
It seems odd that the API is so simplistic when New Relic clearly supports dimensional metrics.