# Remote-write to Newrelic works if it is stopped

**URL:** <https://discuss.prometheus.io/t/remote-write-to-newrelic-works-if-it-is-stopped/1009>\
**Category:** General Help/Support\
**Created:** [May 24, 2022, 8:44pm UTC](https://discuss.prometheus.io/t/remote-write-to-newrelic-works-if-it-is-stopped/1009 "2022-05-24T20:44:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![beelesnik](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.prometheus.io/beelesnik/32/436_2.png) [@beelesnik](https://discuss.prometheus.io/u/beelesnik)\
**Post date:** [May 24, 2022, 8:44pm UTC](https://discuss.prometheus.io/t/remote-write-to-newrelic-works-if-it-is-stopped/1009/1 "2022-05-24T20:44:27Z")

</div>

Hi  
Sorry for long question, but I try to describe the situation.  
I’m not an expert in Prometheus but I’ve got a task to decrease amount of metrics that prometheus are sending to Nerwrelic by remote\_write.  
I use [Quay](http://quay.io/prometheus/prometheus:v2.35.0) in my infrastructure.

I have special config for remote-writes where metrics divided into groups. Each group has specific regexp like:

```auto
      - url: someurl
        name: groupname
        bearerToken: mybearertoekn
        writeRelabelConfigs:
          - sourceLabels: [' __name__']
            regex: ^metric_.*
            action: keep

```

I removed some groups from config, applied it to prometheus but still see that metrics are going to Newrelic.  
Of course I looked into the prometheus config - there is no section that I’ve deleted.  
Also after applying in the prometheus logs I see that remote storage was stopped:

```auto
2022-05-24 19:27:17,"ts=2022-05-24T19:27:17.530Z caller=dedupe.go:112 component=remote level=info remote_name=mymetric url=""https://metric-api.newrelic.com/prometheus/v1/write?prometheus_server=mymetric"" msg=""Remote storage stopped."""
2022-05-24 19:27:17,"ts=2022-05-24T19:27:17.529Z caller=dedupe.go:112 component=remote level=info remote_name=mymetric url=""https://metric-api.newrelic.com/prometheus/v1/write?prometheus_server=mymetric"" msg=""Stopping remote storage..."""
2022-05-24 19:27:17,"ts=2022-05-24T19:27:17.529Z caller=dedupe.go:112 component=remote level=info remote_name=mymetric url=""https://metric-api.newrelic.com/prometheus/v1/write?prometheus_server=mymetric"" msg=""WAL watcher stopped"" queue=mymetric"
2022-05-24 19:27:17,"ts=2022-05-24T19:27:17.529Z caller=dedupe.go:112 component=remote level=info remote_name=mymetric url=""https://metric-api.newrelic.com/prometheus/v1/write?prometheus_server=mymetric"" msg=""Stopping metadata watcher..."""
2022-05-24 19:27:17,"ts=2022-05-24T19:27:17.529Z caller=dedupe.go:112 component=remote level=info remote_name=mymetric url=""https://metric-api.newrelic.com/prometheus/v1/write?prometheus_server=mymetric"" msg=""Scraped metadata watcher stopped"""

```

I tried to delete/recreate pod with prometheus to apply new config to the new pod - but situation is the same.  
Tried googling such problems but met only reverse task, like “my remote-write does not pass data to remote storage”.  
How is it possible?  
What I need to analyze to investigate this issue further?  
Thank You
