@cryptotaxi247 / netdata-1 / commits / 83ac4e53c

Document logs functionality of otel plugin (#21705)

vkalintiris committed Feb 4, 2026 at 13:45 UTC 83ac4e53cbc7903a77acb9d817a3c3d7a4fc3bac
1 file changed +31 -2
src/crates/netdata-otel/otel-plugin/README.md
+31 -2
@@ -36,7 +36,7 @@ endpoint:
36 tls_ca_cert_path: null
37 ```
38
39 -### Metrics
39 +## Metrics
40
41 The `metrics` section allows users to specify the directory containing
42 configuration files for mapping OpenTelemetry metrics to Netdata chart
@@ -53,7 +53,7 @@ metrics:
53 buffer_samples: 10
54 ```
55
56 -## Mapping OpenTelemetry metrics to Netdata chart instances
56 +### Mapping OpenTelemetry metrics to Netdata chart instances
57
58 Without an explicit mapping, the `otel.plugin` defaults to creating distinct
59 chart instances based on the attributes of each data point in a metric. Users
@@ -80,3 +80,32 @@ corresponding regular expressions specified in the values of the
80 `instrumentation_scope_name` and `metric_name` keys. Similarly, the values of
81 the `protocol` and `state` attributes of each data point in the matched metric
82 will be used to create a new chart instance with the proper dimension names.
83 +
84 +## Logs
85 +
86 +The `logs` section configures how `otel.plugin` receives, stores, and manages
87 +OpenTelemetry logs. Logs are stored in `systemd`-compatible journal files that
88 +support rotation and retention policies for efficient storage management.
89 +
90 +### Rotation
91 +
92 +Rotation controls when a new journal file is created. A new file is created
93 +when **any** of the following limits is exceeded:
94 +
95 +| Option | Default | Description |
96 +|------------------------------|-----------|----------------------------------------------|
97 +| `size_of_journal_file` | `100MB` | Maximum file size before rotating |
98 +| `entries_of_journal_file` | `50000` | Maximum log entries per file |
99 +| `duration_of_journal_file` | `2 hours` | Maximum time span within a single file |
100 +
101 +### Retention
102 +
103 +Retention controls when old journal files are deleted, allowing you to limit
104 +the overall size of the logs directory. Files are removed (starting with the
105 +oldest) to satisfy **all** of the following limits:
106 +
107 +| Option | Default | Description |
108 +|------------------------------|----------|-----------------------------------|
109 +| `number_of_journal_files` | `10` | Maximum number of files to keep |
110 +| `size_of_journal_files` | `1GB` | Maximum total size of all files |
111 +| `duration_of_journal_files` | `7 days` | Maximum age of files |