Cut New Relic ingest above the 100 GB free tier

Published · OhChimp Engineering

Telemetry flowing past a gauge reading 100 GB free then $0.40 per GB, with a valve diverting the debug logs

New Relic charges $0.40 for every GB you ingest past the free 100 GB a month, so an account sending 1,000 GB a month pays $360 for data alone. Cut the 370 GB of debug logs and process samples nobody queries, and that line drops to $212. Here is how to find the noisy sources with NRQL, cut them, and confirm the rules you already had are still running.

Why New Relic ingest costs what it does

New Relic's usage-based pricing has two meters: users and data. The data meter counts every GB of telemetry the platform stores, whether it is logs, spans, events or dimensional metrics. The first 100 GB each month are free. After that, the pricing page lists $0.40 per GB on the original Data option and $0.60 per GB on Data Plus, which adds longer retention and compliance features. Storing data in the EU region adds a per-GB surcharge on top, listed at $0.05.

Billing counts what ends up stored, after any drop and transformation rules run. The data ingest billing docs also round monthly GB up to the nearest whole GB, and they exclude a list of usage types such as NrConsumption itself and most alerting data.

Monthly data cost is (GB stored minus 100) times the per-GB rate. The cost is linear past the free tier, so every GB you stop sending saves the full rate: $0.40 on the Data option and $0.60 on Data Plus.

Monthly ingest Billable GB Data option ($0.40) Data Plus ($0.60)
1,000 GB 900 $360 $540
630 GB, after cutting 370 GB 530 $212 $318
Saving per month 370 $148 $222

The table is a worked example, not anyone's real account. In most accounts a few sources carry most of the volume. Logs usually lead, then spans, then infrastructure samples, and inside logs a single service at DEBUG level can outweigh the rest of the fleet. Commitment contracts negotiate a lower rate, so use your own per-GB figure when you price a cut.

The same shape shows up on other platforms. Datadog bills indexed log events on a separate meter from ingest, so the fix there is an exclusion filter on the index. New Relic has one meter, and the fix is to stop the data before it is stored.

Your drop rules may have been switched off on August 31, 2026

New Relic shut off the NRQL Drop Filter Rules API (nrqlDropRulesCreate) on August 31, 2026, and migrated existing drop rules to Pipeline Control cloud rules automatically. Per the end-of-life notice, Pay As You Go and free-tier accounts without the Advanced Compute add-on had their migrated drop rules disabled that day. Accounts on a commitment contract keep them until their next renewal, then lose them unless Advanced Compute is on the contract.

For years the standard advice for New Relic ingest was "write a drop rule", and any paid account could do it at no extra cost.

A disabled rule stops dropping data at once, and the notice describes no alert for it, so check the rule state yourself. If your New Relic data bill jumped in September with no new services behind it, check this first. The Pipeline Control cloud rules API states two more conditions that change the math:

Cloud rules have the same limits the old drop rules had. They apply only to data that arrives after the rule exists. They cannot drop APM metric timeslice data, and they do not touch metrics produced by the events-to-metrics service (disable or edit that rule instead). The NRQL cannot use FACET, LIMIT, TIMESERIES or SINCE, and it is capped at 4,096 characters. Dropped data cannot be recovered.

The cheapest cut is still the one made at the source: an agent setting, a log level, or a collector filter. It needs no add-on, and the data never leaves your network.

Find your biggest ingest sources by hand

Facet NrConsumption by usageMetric to find the heaviest bucket (logs, spans, infrastructure or APM events), then rank the services inside it with bytecountestimate(). Every query below runs in the query builder, or through NerdGraph with a user API key. Set up the key and account first. EU accounts use https://api.eu.newrelic.com/graphql instead.

export NR_API_KEY="NRAK-your-user-key"
export NR_ACCOUNT_ID="1234567"

nrql() {
  jq -n --arg q "$1" --argjson a "$NR_ACCOUNT_ID" \
    '{query: "query($a: Int!, $q: Nrql!) { actor { account(id: $a) { nrql(query: $q) { results } } } }",
      variables: {a: $a, q: $q}}' |
  curl -s https://api.newrelic.com/graphql \
    -H "API-Key: $NR_API_KEY" -H "Content-Type: application/json" -d @- |
  jq '.data.actor.account.nrql.results'
}

Start with the month so far. NrMTDConsumption carries a running total, and GigabytesIngestedBillable has the free tier already taken off.

nrql "FROM NrMTDConsumption SELECT latest(GigabytesIngested), latest(GigabytesIngestedBillable) WHERE productLine = 'DataPlatform'"

Then split the last 30 days by source. usageMetric names the bucket, such as logs, APM events, tracing or infrastructure hosts.

nrql "FROM NrConsumption SELECT sum(GigabytesIngested) WHERE productLine = 'DataPlatform' FACET usageMetric SINCE 30 days ago"

A bucket tells you where to look, and bytecountestimate() tells you which service or attribute inside it is heavy. It estimates stored bytes per row, so dividing by 10e8 gives GB, and the result can differ slightly from billed GB. Log attribute names depend on your forwarder, so run FROM Log SELECT keyset() first and facet on whichever of service, service.name or entity.name is populated. Run it over a week to keep the query fast, then multiply by about 4.3 for a month.

nrql "FROM Log SELECT bytecountestimate()/10e8 AS 'GB' FACET service, level SINCE 1 week ago LIMIT 20"
nrql "FROM Span SELECT bytecountestimate()/10e8 AS 'GB' FACET service.name SINCE 1 week ago LIMIT 20"
nrql "FROM ProcessSample SELECT bytecountestimate()/10e8 AS 'GB' FACET entityName SINCE 1 week ago LIMIT 20"

Before you cut anything, find out who reads it. An alert condition or dashboard that queries the data you drop will go quiet without warning. Search alert conditions by query text through NerdGraph. The search does not cover dashboards, so open the dashboards for that service and read their queries by hand.

jq -n --argjson a "$NR_ACCOUNT_ID" \
  '{query: "query($a: Int!) { actor { account(id: $a) { alerts { nrqlConditionsSearch(searchCriteria: {queryLike: \"Log\"}) { nrqlConditions { name nrql { query } } } } } } }",
    variables: {a: $a}}' |
curl -s https://api.newrelic.com/graphql \
  -H "API-Key: $NR_API_KEY" -H "Content-Type: application/json" -d @- |
jq -r '.data.actor.account.alerts.nrqlConditionsSearch.nrqlConditions[] | "\(.name)\t\(.nrql.query)"'

Finally, check whether your old drop rules survived the migration. Every rule, migrated or new, is a PIPELINE_CLOUD_RULE entity, and the enabled field shows whether it still drops data.

jq -n '{query: "{ actor { entityManagement { entitySearch(query: \"type = '\''PIPELINE_CLOUD_RULE'\''\") { results { entities { id name enabled } } } } } }"}' |
curl -s https://api.newrelic.com/graphql \
  -H "API-Key: $NR_API_KEY" -H "Content-Type: application/json" -d @- |
jq -r '.data.actor.entityManagement.entitySearch.results.entities[] | "\(.enabled)\t\(.name)\t\(.id)"'

A row reading false that nobody on your team disabled is ingest you used to drop and now pay for.

Cut the ingest with no downtime

Work through the cuts from cheapest to most expensive to run. Each one changes only what gets stored, so nothing your services do changes, but check the alert search above before each one.

Cut at the source first

Fix the log level on the noisy service. A service shipping DEBUG in production is a config change in the app, and rolling it back is the same change reversed.

Slow down the infrastructure agent's samplers on hosts where five-second resolution buys nothing. The infrastructure agent settings take an interval in seconds for each sampler (at least 5 for system and storage, 10 for network), or -1 to switch one off. Process samples default to off, but accounts created before July 20, 2020 and agents set up with guided install have them on, which is where a large ProcessSample bill usually comes from.

# /etc/newrelic-infra.yml
metrics_system_sample_rate: 30 # default 5
metrics_storage_sample_rate: 60 # default 20
metrics_network_sample_rate: 60 # default 10
enable_process_metrics: false

Restart the agent to apply it (sudo systemctl restart newrelic-infra). Going from 5 to 30 seconds stores one sixth of the SystemSample rows. Rollback is the old values and another restart.

If your telemetry passes through an OpenTelemetry Collector, drop low-value records there with the filter processor before they are exported. Health checks and readiness probes are the usual first target in span data.

Then use a cloud rule for what you cannot fix at the source

Some data comes from places you do not control, such as a vendor agent or a shared cluster. If your account has Advanced Compute, a cloud rule drops it on arrival. Preview the match first with a SELECT, and confirm the count is what you expect.

nrql "FROM Log SELECT count(*) WHERE service = 'checkout' AND level = 'DEBUG' SINCE 1 day ago"

Then create the rule with the same filter, written as a DELETE:

jq -n --arg acct "$NR_ACCOUNT_ID" \
  '{query: ("mutation { entityManagementCreatePipelineCloudRule(pipelineCloudRuleEntity: {"
    + "name: \"Drop checkout DEBUG logs\", "
    + "description: \"Never queried, about 60 GB a month\", "
    + "nrql: \"DELETE FROM Log WHERE service = '\''checkout'\'' AND level = '\''DEBUG'\''\", "
    + "scope: {id: \"" + $acct + "\", type: ACCOUNT}}) { entity { id name nrql enabled } } }")}' |
curl -s https://api.newrelic.com/graphql \
  -H "API-Key: $NR_API_KEY" -H "Content-Type: application/json" -d @-

To keep the rows but shrink them, drop only the heavy attributes, such as a stack trace field or a raw request body: DELETE stack_trace, request_body FROM Log WHERE service = 'checkout'.

Verify the rule with a TIMESERIES version of the preview query. The line should fall to zero within minutes. Invert the WHERE clause and run it again to confirm nothing else dropped.

nrql "FROM Log SELECT count(*) WHERE service = 'checkout' AND level = 'DEBUG' SINCE 3 hours ago TIMESERIES"

Rollback is a disable, which stops the rule without deleting it. Data dropped while it ran is gone for good, so roll back as soon as someone misses it.

jq -n --arg id "your-rule-entity-id" \
  '{query: ("mutation { entityManagementUpdatePipelineCloudRule(id: \"" + $id
    + "\", pipelineCloudRuleEntity: {enabled: false}) { entity { id enabled } } }")}' |
curl -s https://api.newrelic.com/graphql \
  -H "API-Key: $NR_API_KEY" -H "Content-Type: application/json" -d @-

If Terraform manages your rules, make the change there instead, or the next apply puts it back. The old newrelic_nrql_drop_rule resources need importing as newrelic_pipeline_cloud_rule, per New Relic's Terraform migration guide.

A week later, re-run the NrConsumption facet query over the days since the change and compare the bucket you cut.

A quick decision tree

graph TD
  A[Monthly ingest above 100 GB] --> B{Did ingest jump in September?}
  B -- Yes --> C[List PIPELINE_CLOUD_RULE entities and look for enabled false]
  B -- No --> D[Rank sources: NrConsumption by usageMetric, then bytecountestimate by service]
  C --> D
  D --> E{Does an alert or dashboard read the heavy source?}
  E -- Yes --> F[Keep it, or drop only the heavy attributes]
  E -- No --> G{Can you change the agent, log level or collector?}
  G -- Yes --> H[Cut at the source: log level, sample rate, filter processor]
  G -- No --> I{Account has Advanced Compute?}
  I -- Yes --> J[Create a cloud rule, then watch a TIMESERIES query fall to zero]
  I -- No --> K[Price Advanced Compute against the GB saved before adding it]

Common questions

How much free data ingest does New Relic include?

New Relic includes 100 GB of free data ingest every month. Ingest past that bills per GB: $0.40 on the original Data option and $0.60 on Data Plus at list price. The GigabytesIngestedBillable field in NrMTDConsumption shows your billable GB for the month so far, with the free tier already taken off.

Does dropped data count toward New Relic ingest?

No. New Relic bills the data it stores after drop and transformation rules run, so data removed by a cloud rule does not count as ingest. Cloud rules themselves now generate Advanced Compute usage, so the rule has a cost of its own.

Are New Relic NRQL drop rules deprecated?

Yes. The NRQL Drop Filter Rules API shut off on August 31, 2026, and Pipeline Control cloud rules replaced it. New Relic migrated existing rules automatically, but Pay As You Go and free-tier accounts without Advanced Compute had those rules disabled on that date. Commitment-contract accounts lose them at renewal unless Advanced Compute is added.

Which New Relic data can't be dropped with a cloud rule?

APM metric timeslice data cannot be dropped with a cloud rule, and metrics created by the events-to-metrics service are not affected by one. Cloud rules also cannot delete data already stored, because they apply only to data that arrives after the rule exists. Cut timeslice volume in the APM agent configuration instead.

How do I find which service sends the most data to New Relic?

Facet NrConsumption by usageMetric to find the heaviest bucket, then run SELECT bytecountestimate()/10e8 FROM Log FACET service (or Span and service.name) over a week to rank services inside it. Multiply a week's figure by about 4.3 for a monthly estimate, and price it at your per-GB rate.

How OhChimp approaches this

OhChimp reads NrConsumption for every account your New Relic key can see, ranks the ingest sources by GB, and projects each one to a monthly figure. It subtracts the 100 GB free tier and estimates the overage at the Data option list price, noting that Data Plus and committed contracts bill differently. The plan points at the low-value sources to cut, with the rollback written out, and nothing changes until you click apply. OhChimp cannot yet measure what a single New Relic cut saved, so the saving stays an estimate. The New Relic integration page covers the connection.

All OhChimp posts