Skip to content

Commit 184599e

Browse files
Added missing examples
1 parent a5e5f75 commit 184599e

File tree

1 file changed

+29
-4
lines changed

1 file changed

+29
-4
lines changed

gdi/opentelemetry/otel-other/other-ingestion-collectd.rst

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ Install a collectd daemon in your host and connect it to an OpenTelemetry Collec
3131
2. Configure the OpenTelemetry Collector
3232
3. Build and run
3333

34-
3534
1. Install and configure collectd
3635
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3736

@@ -52,8 +51,8 @@ In this example, the host is represented by an Ubuntu 24.04 docker image.
5251
depends_on:
5352
- otelcollector
5453
volumes:
55-
- ./collectd/http.conf:/etc/collectd/collectd.conf.d/http.conf
56-
- ./collectd/metrics.conf:/etc/collectd/collectd.conf.d/metrics.conf
54+
- ./collectd/http.conf:/etc/collectd/collectd.conf.d/http.conf
55+
- ./collectd/metrics.conf:/etc/collectd/collectd.conf.d/metrics.conf
5756
5857
# OpenTelemetry Collector
5958
otelcollector:
@@ -63,7 +62,33 @@ In this example, the host is represented by an Ubuntu 24.04 docker image.
6362
volumes:
6463
- ./otel-collector-config.yml:/etc/otel-collector-config.yml
6564
66-
2. Configure the OpenTelemetry Collector
65+
The http and metrics configuration files look like this:
66+
67+
.. code:: yaml
68+
69+
# http.conf
70+
# The minimal configuration required to have collectd send data to an OpenTelemetry Collector
71+
# with a collectdreceiver deployed on port 8081.
72+
LoadPlugin write_http
73+
<Plugin "write_http">
74+
<Node "collector">
75+
URL "http://otelcollector:8081"
76+
Format JSON
77+
VerifyPeer false
78+
VerifyHost false
79+
</Node>
80+
</Plugin>
81+
82+
# metrics.conf
83+
# An example of collectd plugin configuration reporting free disk space on the host.
84+
<LoadPlugin df>
85+
Interval 3600
86+
</LoadPlugin>
87+
<Plugin df>
88+
ValuesPercentage true
89+
</Plugin>
90+
91+
1. Configure the OpenTelemetry Collector
6792
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6893

6994
Set up your Collector instance to listen for traffic from the collectd daemon over HTTP with the :ref:`collectd-receiver`:

0 commit comments

Comments
 (0)