Skip to content

Commit cc70872

Browse files
TechassiNickLarsenNZnightkr
authored
docs: Add telemetry documentation page (#731)
* docs: Add initial telemetry docs * docs: Use code callouts * docs: Add section for file logs * docs: Add OpenTelemetry logs and traces section * docs: Add admonition about default and supported values * docs: Add operator default values * docs: Adjust available signals section * docs: Remove metrics signal * chore: Apply suggestion Co-authored-by: Nick <[email protected]> * docs: Adjust note about operator defaults * chore: Apply suggestion Co-authored-by: Natalie Klestrup Röijezon <[email protected]> --------- Co-authored-by: Nick <[email protected]> Co-authored-by: Natalie Klestrup Röijezon <[email protected]>
1 parent 2e15a94 commit cc70872

File tree

2 files changed

+90
-3
lines changed

2 files changed

+90
-3
lines changed

modules/concepts/nav.adoc

+4-3
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
*** xref:operations/graceful_shutdown.adoc[]
2323
*** xref:operations/temporary_credentials_lifetime.adoc[]
2424
** Observability
25-
*** xref:labels.adoc[]
26-
*** xref:logging.adoc[]
27-
*** xref:containerdebug.adoc[]
25+
*** xref:labels.adoc[Labels]
26+
*** xref:logging.adoc[Logging]
27+
*** xref:containerdebug.adoc[Container environment]
28+
*** xref:observability/telemetry.adoc[Telemetry]
2829
** xref:container-images.adoc[]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
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

Comments
 (0)