# 使用remote\_wirte时，如何将值为NaN的指标过滤掉

**URL:** <https://discuss.prometheus.io/t/remote-wirte-nan/2071>\
**Category:** Prometheus server\
**Created:** [December 20, 2023, 9:59am UTC](https://discuss.prometheus.io/t/remote-wirte-nan/2071 "2023-12-20T09:59:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gaongithub](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.prometheus.io/gaongithub/32/874_2.png) [@gaongithub](https://discuss.prometheus.io/u/gaongithub)\
**Post date:** [December 20, 2023, 9:59am UTC](https://discuss.prometheus.io/t/remote-wirte-nan/2071/1 "2023-12-20T09:59:46Z")

</div>

现在我在不同的数据中心部署了多个prometheus,最后想把所有数据集中到同一个数据中心，现在开启remote\_write后，发现好多值为NaN的指标也被同步到了远程数据中心，如何可以过滤调这些值为NaN的指标
