|
| 1 | += Telemetry signals in operators |
| 2 | + |
| 3 | +Since SDP 25.7.0, all Stackable operators emit telemetry data in the following ways: |
| 4 | + |
| 5 | +* Console logs in plain and JSON format |
| 6 | +* File logs in JSON format (with the option of Rolling files) |
| 7 | +* OpenTelemetry logs exported via OTLP |
| 8 | +* OpenTelemetry traces exported via OTLP |
| 9 | +
|
| 10 | +Every subscriber can be toggled and customized using Helm values. |
| 11 | +All fields are grouped under the top-level `telemetry` section. |
| 12 | + |
| 13 | +[NOTE] |
| 14 | +==== |
| 15 | +The following sections describe the available fields as well as their default and supported values. |
| 16 | +If the Helm values explained below are not overridden, the following operator defaults apply: |
| 17 | +
|
| 18 | +* Levels for all signals are set to `INFO`. |
| 19 | +* Console logs are enabled |
| 20 | +* File logs are disabled |
| 21 | +* File logs rotation period is set to `Never` |
| 22 | +* File logs max files is unset |
| 23 | +* OpenTelemetry logs and traces are disabled |
| 24 | +* OTLP endpoints are set to `http://localhost:4317` |
| 25 | +==== |
| 26 | + |
| 27 | +== Console logs |
| 28 | + |
| 29 | +This signal prints log messages at the selected level and in the selected format to STDOUT. |
| 30 | +These logs are useful for quick debugging. |
| 31 | +For a more complete debugging experience, we recommend the OpenTelemetry signals. |
| 32 | + |
| 33 | +[source,yaml] |
| 34 | +---- |
| 35 | +telemetry: |
| 36 | + consoleLog: |
| 37 | + enabled: true # <1> |
| 38 | + level: null # <2> |
| 39 | + format: null # <3> |
| 40 | +---- |
| 41 | + |
| 42 | +<1> Boolean: `true, false` |
| 43 | +<2> Enum: `error, warning, info, debug, trace` |
| 44 | +<3> Enum: `plain, json` |
| 45 | + |
| 46 | +== File logs |
| 47 | + |
| 48 | +This signal writes log messages at the selected level in JSON to (rolling) log file(s). |
| 49 | +These logs can be picked up by a log aggregation system, like Vector. |
| 50 | + |
| 51 | +[source,yaml] |
| 52 | +---- |
| 53 | +telemetry: |
| 54 | + fileLog: |
| 55 | + enabled: false # <1> |
| 56 | + level: null # <2> |
| 57 | + rotationPeriod: hourly # <3> |
| 58 | + maxFiles: 6 # <4> |
| 59 | +---- |
| 60 | + |
| 61 | +<1> Boolean: `true, false` |
| 62 | +<2> Enum: `error, warning, info, debug, trace` |
| 63 | +<3> Enum: `never, daily, hourly, minutely` |
| 64 | +<4> Unsigned Integer |
| 65 | + |
| 66 | +== OpenTelemetry logs and traces |
| 67 | + |
| 68 | +These two signal export OpenTelemetry logs and traces to OTLP enabled collectors. |
| 69 | +These signals can be visualized using tools, like Grafana, Loki, and Jaeger. |
| 70 | + |
| 71 | +[source,yaml] |
| 72 | +---- |
| 73 | +telemetry: |
| 74 | + otelLogExporter: |
| 75 | + enabled: false # <1> |
| 76 | + level: null # <2> |
| 77 | + endpoint: null # <3> |
| 78 | + otelTraceExporter: |
| 79 | + enabled: false # <1> |
| 80 | + level: null # <2> |
| 81 | + endpoint: null # <3> |
| 82 | +---- |
| 83 | + |
| 84 | +<1> Boolean: `true, false` |
| 85 | +<2> Enum: `error, warning, info, debug, trace` |
| 86 | +<3> String: E.g. `my-collector:4317` |
0 commit comments