Skip to content

Commit 93f55a2

Browse files
committed
collectd: Implement suggestions by CodeRabbit
1 parent 2d49faf commit 93f55a2

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

docs/integrate/collectd/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ FROM docker.io/debian:13-slim
44
ENV DEBIAN_FRONTEND=noninteractive
55

66
# Install collectd.
7-
RUN apt update --yes
8-
RUN apt install --yes collectd
7+
RUN apt update --yes && apt install --yes collectd
98

109
# Run collectd in foreground.
1110
ENTRYPOINT ["collectd", "-f"]

docs/integrate/collectd/collectd-cratedb.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ LoadPlugin postgresql
1010
</Writer>
1111
<Database cratedb>
1212
Writer sqlstore
13+
# Commit every 30 seconds (adjust based on write volume)
1314
CommitInterval 30
1415
Host cratedb
1516
User crate

docs/integrate/collectd/collectd-telegraf.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@
33

44
<Plugin "network">
55
Server "telegraf"
6+
# Optional: ServerPort 25826
7+
# Optional: SecurityLevel "sign" or "encrypt"
68
</Plugin>

docs/integrate/collectd/tutorial-telegraf.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ docker run --name=cratedb --rm -it --network=cratedb-demo \
5858

5959
collectd is not available per OCI image, so either install standalone,
6060
or use these instructions for building an OCI to invoke on Docker or Podman.
61-
Store this file under the name `Dockername`, then invoke the command
61+
Store this file under the name `Dockerfile`, then invoke the command
6262
displayed below.
6363

6464
:::{literalinclude} Dockerfile

0 commit comments

Comments
 (0)