# \#prometheus

**URL:** https://community.cratedb.com/tag/prometheus/15.md

[Latest](https://community.cratedb.com/latest.md) · [Categories](https://community.cratedb.com/categories.md) · [Tags](https://community.cratedb.com/tags.md)

---

## [ERROR: A document with the same primary key exists already (SQLSTATE 23505)](https://community.cratedb.com/t/error-a-document-with-the-same-primary-key-exists-already-sqlstate-23505/1810)

<div class="topic-metadata">

**Author:** [@tsgaah](https://community.cratedb.com/u/tsgaah)\
**Replies:** 2\
**Last updated:** [August 1, 2024, 11:30am UTC](https://community.cratedb.com/t/error-a-document-with-the-same-primary-key-exists-already-sqlstate-23505/1810 "2024-08-01T11:30:08Z")

</div>

Using CrateDB with the adapter for Prometheus metric LTS. The table has been created as follows: CREATE TABLE "metrics" ( "timestamp" TIMESTAMP, "labels\_hash" STRING, "labels" OBJECT(DYNAMIC), "value" D…

---

## [Caller=server.go:349 level=error msg="Failed to write data to CrateDB" err="error closing write batch: timeout: context deadline exceeded"](https://community.cratedb.com/t/caller-server-go-349-level-error-msg-failed-to-write-data-to-cratedb-err-error-closing-write-batch-timeout-context-deadline-exceeded/1809)

<div class="topic-metadata">

**Author:** [@tsgaah](https://community.cratedb.com/u/tsgaah)\
**Replies:** 6\
**Last updated:** [July 18, 2024, 12:33pm UTC](https://community.cratedb.com/t/caller-server-go-349-level-error-msg-failed-to-write-data-to-cratedb-err-error-closing-write-batch-timeout-context-deadline-exceeded/1809 "2024-07-18T12:33:25Z")

</div>

Have configured a single node CrateDB cluster with cratedb-prometheus-adapter as a proof of concept for LTS of Prometheus metrics. The following error is produced after starting the adapter: caller=server.go:349 level=…

---

## [Monitoring a self-managed CrateDB cluster with Prometheus and Grafana](https://community.cratedb.com/t/monitoring-a-self-managed-cratedb-cluster-with-prometheus-and-grafana/1236)

<div class="topic-metadata">

**Author:** [@hernanc](https://community.cratedb.com/u/hernanc)\
**Replies:** 0\
**Last updated:** [September 30, 2022, 11:14am UTC](https://community.cratedb.com/t/monitoring-a-self-managed-cratedb-cluster-with-prometheus-and-grafana/1236 "2022-09-30T11:14:43Z")

</div>

If you are running CrateDB in a production environment, you have probably wondered what would be the best way to monitor the servers to identify issues before they become problematic and to collect statistics that you …
