# Duplicate data getting pulled from Prometheus

**URL:** <https://community.influxdata.com/t/duplicate-data-getting-pulled-from-prometheus/3815>\
**Category:** Systems\
**Tags:** influxdb, telegraf, prometheus\
**Created:** [January 29, 2018, 4:29pm UTC](https://community.influxdata.com/t/duplicate-data-getting-pulled-from-prometheus/3815 "2018-01-29T16:29:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidferdinand](https://avatars.discourse-cdn.com/v4/letter/d/d6d6ee/32.png) [@davidferdinand](https://community.influxdata.com/u/davidferdinand)\
**Post date:** [January 29, 2018, 4:29pm UTC](https://community.influxdata.com/t/duplicate-data-getting-pulled-from-prometheus/3815/1 "2018-01-29T16:29:12Z")

</div>

I currently have prometheus set as an input, and im using influx for long term storage of my metrics.

When i query in influx the result is 2x of that in prometheus…

my telegraph config is as below, but i cant work out if this is due to the intervals or not… anyone had anything similar?

# Configuration for telegraf agent

[agent]  
interval = "10s"  
round\_interval = true  
metric\_batch\_size = 1000  
metric\_buffer\_limit = 10000  
collection\_jitter = "3s"  
flush\_interval = "10s"  
flush\_jitter = "5s"  
precision = ""  
debug = false  
quiet = true  
logfile = ""  
hostname = ""  
omit\_hostname = true

###############################################################################

# OUTPUT PLUGINS

###############################################################################

[[outputs.influxdb]]  
urls = ["{{ env “INFLUXDB\_ENDPOINT” }}"]  
database = "prometheus"  
retention\_policy = ""  
write\_consistency = "any"  
timeout = “10s”

---

<div class="post-metadata">

**Author:** ![daniel](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/daniel/32/142_2.png) [@daniel](https://community.influxdata.com/u/daniel)\
**Post date:** [February 7, 2018, 6:55pm UTC](https://community.influxdata.com/t/duplicate-data-getting-pulled-from-prometheus/3815/2 "2018-02-07T18:55:05Z")

</div>

I’m not sure what could be going on, by 2x of that do you mean that a value of 2 from the source would be stored as a 4 in InfluxDB?

---

<div class="post-metadata">

**Author:** ![davidferdinand](https://avatars.discourse-cdn.com/v4/letter/d/d6d6ee/32.png) [@davidferdinand](https://community.influxdata.com/u/davidferdinand)\
**Post date:** [February 7, 2018, 7:07pm UTC](https://community.influxdata.com/t/duplicate-data-getting-pulled-from-prometheus/3815/3 "2018-02-07T19:07:48Z")

</div>

yes so if prometheus is display a value of 2 at time x then influx is showing 4 at time x… not sure if its pulling in the data twice… before i upgraded influx it was 5 times the amount… seems to grow over time…

---

<div class="post-metadata">

**Author:** ![daniel](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/daniel/32/142_2.png) [@daniel](https://community.influxdata.com/u/daniel)\
**Post date:** [February 7, 2018, 7:27pm UTC](https://community.influxdata.com/t/duplicate-data-getting-pulled-from-prometheus/3815/4 "2018-02-07T19:27:55Z")

</div>

Are you using an aggregation function when you query the data from InfluxDB? Perhaps multiple sources are being summed?
