Stop collecting Metrics data

Hi,

I want to stop collecting Metrics data to reduce the amount of data that goes into NewRelic. “Data management > Data ingestion” page says that my account stores 16GB of data every day. It says that about 80% of that is Metrics data. Obviously, I don’t need this data.

I added the following lines, but it has no effect.

disable_samplers: true
browser_monitoring.auto_instrument: false

On the contrary, when I upgraded newrelic_rpm gem, the gem started sending Tracing data.

Hi there @ts_31561 -

The most effective way to target specific data to drop from your collection is by using NerdGraph. There’s an overview and a video of how to do this here:

https://docs.newrelic.com/docs/data-apis/manage-data/drop-data-using-nerdgraph/#requirements

Please let me know if that does not get you what you need.

Thanks for pointing me to that page. All I wanted to do was simply delete existing data or stop sending new data, but it didn’t solve anything but bring up a lot of new questions.

I’m very tired of looking into it, so I’m going to stop using newrelic_rpm gem.

My new questions are as follows. It’s boring that I need to learn so many NewRelic-specific concepts when all I want to do is to use “APM > Transactions”.

  • What is NRQL? Isn’t it possible to drop the existing data like a “drop table” of SQL?
  • What is NerdGraph? Where do I use “nrqlDropRulesCreate”?
  • Will only new data be dropped? Is there any way to drop existing data?

Hi, @ts_31561:

What is NRQL?

https://docs.newrelic.com/docs/query-your-data/nrql-new-relic-query-language/get-started/introduction-nrql-new-relics-query-language/

Isn’t it possible to drop the existing data like a “drop table” of SQL?

No, that is not possible.

What is NerdGraph?

https://docs.newrelic.com/docs/apis/nerdgraph/get-started/introduction-new-relic-nerdgraph/

Where do I use “nrqlDropRulesCreate”?

https://docs.newrelic.com/docs/apis/nerdgraph/get-started/introduction-new-relic-nerdgraph/#explorer

Will only new data be dropped?

Yes.

Is there any way to drop existing data?

No, but it doesn’t matter. You don’t get charged for storing data, only for ingesting it.

Also, FYI, the reason the upgraded gem started sending trace data is because distributed tracing is now enabled by default. You may disable it by setting distributed_tracing > enabled: false in your newrelic.yml configuration file.