# Horizontally scalable prometheus - support for duplicate data

**URL:** <https://discuss.prometheus.io/t/horizontally-scalable-prometheus-support-for-duplicate-data/2294>\
**Category:** Prometheus server\
**Created:** [June 7, 2024, 5:50pm UTC](https://discuss.prometheus.io/t/horizontally-scalable-prometheus-support-for-duplicate-data/2294 "2024-06-07T17:50:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![velu4689](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.prometheus.io/velu4689/32/976_2.png) [@velu4689](https://discuss.prometheus.io/u/velu4689)\
**Post date:** [June 7, 2024, 5:50pm UTC](https://discuss.prometheus.io/t/horizontally-scalable-prometheus-support-for-duplicate-data/2294/1 "2024-06-07T17:50:35Z")

</div>

Hello everyone,

We are currently facing an issue where scrape targets are being duplicated across multiple replicas.

Prometheus - Run as operator in server mode  
Shards - 4  
Replica - 1  
Modulus - 4  
Includes recording rules as well

Below config:  
relabel\_configs:  
- source\_labels: [\_\_meta\_kubernetes\_pod\_annotation\_prometheus\_io\_scrape]  
regex: “true”  
replacement: $1  
action: keep  
- source\_labels: [\_\_meta\_kubernetes\_pod\_annotation\_prometheus\_io\_path]  
regex: (.+)  
target\_label: **metrics\_path**  
action: replace  
- source\_labels: [**address** , \_\_meta\_kubernetes\_pod\_annotation\_prometheus\_io\_port]  
regex: ([^:]+)(?::\d+)?;(\d+)  
target\_label: **address**  
replacement: $1:$2  
action: replace  
- source\_labels: [\_\_meta\_kubernetes\_pod\_label\_nfId]\*\*  
modulus: 4  
target\_label: \_\_tmp\_hash\*\*  
action: hashmod\*\*  
- source\_labels: [\_\_tmp\_hash]\*\*  
action: keep\*\*  
- action: labelmap  
regex: \__meta\_kubernetes\_pod\_label_(.+)  
- source\_labels: [\_\_meta\_kubernetes\_namespace]  
regex: (._)  
target\_label: kubernetes\_namespace  
action: replace  
- source\_labels: [\_\_meta\_kubernetes\_pod\_name]  
regex: (._)  
target\_label: kubernetes\_pod\_name  
action: replace

Concerns:

1. Scrape targets are duplicated across multiple replica
2. Duplicates have been observed in the metrics scraped

Kindly share your inputs or if anyone faced a similar issue
