# Shards of prometheus metrics table are in underreplicated state

**URL:** <https://community.cratedb.com/t/shards-of-prometheus-metrics-table-are-in-underreplicated-state/1728>\
**Category:** CrateDB\
**Created:** [February 28, 2024, 3:26am UTC](https://community.cratedb.com/t/shards-of-prometheus-metrics-table-are-in-underreplicated-state/1728 "2024-02-28T03:26:51Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Baur](https://sea2.discourse-cdn.com/flex020/user_avatar/community.cratedb.com/baur/32/284_2.png) [@Baur](https://community.cratedb.com/u/Baur)\
**Post date:** [March 5, 2024, 1:04pm UTC](https://community.cratedb.com/t/shards-of-prometheus-metrics-table-are-in-underreplicated-state/1728/6 "2024-03-05T13:04:03Z")

</div>

Thanks for the update.

On 2 - do you use stock version of the adapter or some custom modification?

Asking since I saw [Prometheus failed to write data into CrateDB after encountering error 'A document with the same primary key exists already' - #2 by proddata](https://community.cratedb.com/t/prometheus-failed-to-write-data-into-cratedb-after-encountering-error-a-document-with-the-same-primary-key-exists-already/1724/2) with a suggestion to change query to INSERT ON CONFLICT

---

_[View the full topic](https://community.cratedb.com/t/shards-of-prometheus-metrics-table-are-in-underreplicated-state/1728)._
