Skip to content

Commit 2c86575

Browse files
committed
Prometheus: Implement suggestions by CodeRabbit
1 parent f43d09e commit 2c86575

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

docs/integrate/prometheus/compose.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ services:
1212
- "5432:5432"
1313
volumes:
1414
- cratedb-data:/data
15+
healthcheck:
16+
test: ["CMD", "curl", "-f", "http://localhost:4200/"]
17+
interval: 5s
18+
timeout: 30s
19+
retries: 5
1520
restart: unless-stopped
1621

1722
cratedb-ddl:

docs/integrate/prometheus/usage.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,20 +46,17 @@ Confirm that Prometheus monitors itself.
4646

4747
Return to the CrateDB Admin UI and select the `metrics` table you created.
4848

49-
After a few minutes, Prometheus will have gathered a few thousands of data points.
49+
After a few minutes, Prometheus will have gathered a few thousand data points.
5050

5151
![CrateDB Admin UI showing the populated metrics table](https://us1.discourse-cdn.com/flex020/uploads/crate/original/1X/22e8c7d5a90ec9240a4cb4269774e143759aa92e.jpeg)
5252

5353
Use CrateDB’s query engine to analyze and visualize this data with tools
54-
like {ref}`grafana`, see also
54+
like {ref}`grafana`. See also
5555
[Monitoring a self-managed CrateDB cluster with Prometheus and Grafana].
5656

5757

5858
[CrateDB]: https://cratedb.com/database
5959
[CrateDB Prometheus Adapter]: https://github.com/crate/cratedb-prometheus-adapter
60-
[Docker Compose]: https://docs.docker.com/compose/
61-
[Docker containers]: https://www.docker.com/resources/what-container
62-
[Docker installation guide]: https://docs.docker.com/get-docker/
6360
[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
6461
[Prometheus]: https://prometheus.io/docs/introduction/overview/
6562
[Prometheus documentation]: https://prometheus.io/docs/prometheus/latest/getting_started/

0 commit comments

Comments
 (0)