Skip to content

Commit f3d1e78

Browse files
authored
Merge pull request #82621 from iblancasa/TRACING-4456
TRACING-4456: improve documentation about zPages extension
2 parents 78c0b93 + b7de559 commit f3d1e78

File tree

1 file changed

+24
-5
lines changed

1 file changed

+24
-5
lines changed

observability/otel/otel-collector/otel-collector-extensions.adoc

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -425,9 +425,8 @@ include::snippets/technology-preview.adoc[]
425425
[id="zpages-extension_{context}"]
426426
== zPages Extension
427427

428-
The zPages Extension provides an HTTP endpoint for extensions that serve zPages. At the endpoint, this extension serves live data for debugging instrumented components. All core exporters and receivers provide some zPages instrumentation.
428+
The zPages Extension provides an HTTP endpoint that serves live data for debugging instrumented components in real time. You can use this extension for in-process diagnostics and insights into traces and metrics without relying on an external backend. With this extension, you can monitor and troubleshoot the behavior of the OpenTelemetry Collector and related components by watching the diagnostic information at the provided endpoint.
429429

430-
zPages are useful for in-process diagnostics without having to depend on a back end to examine traces or metrics.
431430

432431
:FeatureName: The zPages Extension
433432
include::snippets/technology-preview.adoc[]
@@ -446,18 +445,38 @@ include::snippets/technology-preview.adoc[]
446445
protocols:
447446
http: {}
448447
exporters:
449-
otlp:
448+
debug:
450449
451450
service:
452451
extensions: [zpages]
453452
pipelines:
454453
traces:
455454
receivers: [otlp]
456-
exporters: [otlp]
455+
exporters: [debug]
457456
# ...
458457
----
459458

460-
<1> Specifies the HTTP endpoint that serves zPages. Use `localhost:` to make it available only locally, or `":"` to make it available on all network interfaces. The default is `localhost:55679`.
459+
<1> Specifies the HTTP endpoint for serving the zPages extension. The default is `localhost:55679`.
460+
461+
[IMPORTANT]
462+
====
463+
Accessing the HTTP endpoint requires port-forwarding because the {OTELOperator} does not expose this route.
464+
465+
You can enable port-forwarding by running the following `oc` command:
466+
467+
[source,terminal]
468+
----
469+
$ oc port-forward pod/$(oc get pod -l app.kubernetes.io/name=instance-collector -o=jsonpath='{.items[0].metadata.name}') 55679
470+
----
471+
====
472+
473+
The Collector provides the following zPages for diagnostics:
474+
475+
*ServiceZ*:: Shows an overview of the Collector services and links to the following zPages: *PipelineZ*, *ExtensionZ*, and *FeatureZ*. This page also displays information about the build version and runtime. An example of this page's URL is `http://localhost:55679/debug/servicez`.
476+
*PipelineZ*:: Shows detailed information about the active pipelines in the Collector. This page displays the pipeline type, whether data are modified, and the associated receivers, processors, and exporters for each pipeline. An example of this page's URL is `http://localhost:55679/debug/pipelinez`.
477+
*ExtensionZ*:: Shows the currently active extensions in the Collector. An example of this page's URL is `http://localhost:55679/debug/extensionz`.
478+
*FeatureZ*:: Shows the feature gates enabled in the Collector along with their status and description. An example of this page's URL is `http://localhost:55679/debug/featurez`.
479+
*TraceZ*:: Shows spans categorized by latency. Available time ranges include 0 µs, 10 µs, 100 µs, 1 ms, 10 ms, 100 ms, 1 s, 10 s, 1 m. This page also allows for quick inspection of error samples. An example of this page's URL is `http://localhost:55679/debug/tracez`.
461480

462481
[role="_additional-resources"]
463482
[id="additional-resources_otel-collector-extensions_{context}"]

0 commit comments

Comments
 (0)