Debian Codegraph @

extension/zpagesextension/README.md

raw symbols SCIP
1 # zPages
2
3 <!-- status autogenerated section -->
4 | Status | |
5 | ------------- |-----------|
6 | Stability | [beta] |
7 | Distributions | [core], [contrib], [k8s] |
8 | Warnings | [The zPages extension is incompatible with `service::telemetry::traces::level` set to `none`](#warnings) |
9 | Issues | [![Open issues](https://img.shields.io/github/issues-search/open-telemetry/opentelemetry-collector?query=is%3Aissue%20is%3Aopen%20label%3Aextension%2Fzpages%20&label=open&color=orange&logo=opentelemetry)](https://github.com/open-telemetry/opentelemetry-collector/issues?q=is%3Aopen+is%3Aissue+label%3Aextension%2Fzpages) [![Closed issues](https://img.shields.io/github/issues-search/open-telemetry/opentelemetry-collector?query=is%3Aissue%20is%3Aclosed%20label%3Aextension%2Fzpages%20&label=closed&color=blue&logo=opentelemetry)](https://github.com/open-telemetry/opentelemetry-collector/issues?q=is%3Aclosed+is%3Aissue+label%3Aextension%2Fzpages) |
10
11 [beta]: https://github.com/open-telemetry/opentelemetry-collector/blob/main/docs/component-stability.md#beta
12 [core]: https://github.com/open-telemetry/opentelemetry-collector-releases/tree/main/distributions/otelcol
13 [contrib]: https://github.com/open-telemetry/opentelemetry-collector-releases/tree/main/distributions/otelcol-contrib
14 [k8s]: https://github.com/open-telemetry/opentelemetry-collector-releases/tree/main/distributions/otelcol-k8s
15 <!-- end autogenerated section -->
16
17 Enables an extension that serves zPages, an HTTP endpoint that provides live
18 data for debugging different components that were properly instrumented for such.
19 All core exporters and receivers provide some zPage instrumentation.
20
21 zPages are useful for in-process diagnostics without having to depend on any
22 backend to examine traces or metrics.
23
24 The following settings are required:
25
26 - `endpoint` (default = localhost:55679): Specifies the HTTP endpoint that serves
27 zPages. Use localhost:<port> to make it available only locally, or ":<port>" to
28 make it available on all network interfaces.
29
30 The following settings can be optionally configured:
31
32 - `expvar`
33 - `enabled` (default = false): Enable the expvar services. For detail see [ExpvarZ](#expvarz).
34
35 Example:
36 ```yaml
37 extensions:
38 zpages:
39 ```
40
41 The full list of settings exposed for this extension are documented [here](./config.go)
42 with detailed sample configurations [here](./testdata/config.yaml).
43
44 ## Exposed zPages routes
45
46 The collector exposes the following zPage routes:
47
48 ### ServiceZ
49
50 ServiceZ gives an overview of the collector services and quick access to the
51 `pipelinez`, `extensionz`, and `featurez` zPages. The page also provides build
52 and runtime information.
53
54 Example URL: http://localhost:55679/debug/servicez
55
56 ### PipelineZ
57
58 PipelineZ brings insight on the running pipelines running in the collector. You can
59 find information on type, if data is mutated and the receivers, processors and exporters
60 that are used for each pipeline.
61
62 Example URL: http://localhost:55679/debug/pipelinez
63
64 ### ExtensionZ
65
66 ExtensionZ shows the extensions that are active in the collector.
67
68 Example URL: http://localhost:55679/debug/extensionz
69
70 ### FeatureZ
71
72 FeatureZ lists the feature gates available along with their current status
73 and description.
74
75 Example URL: http://localhost:55679/debug/featurez
76
77 ### TraceZ
78 The TraceZ route is available to examine and bucketize spans by latency buckets for
79 example
80
81 (0us, 10us, 100us, 1ms, 10ms, 100ms, 1s, 10s, 1m]
82 They also allow you to quickly examine error samples
83
84 Example URL: http://localhost:55679/debug/tracez
85
86 ### ExpvarZ
87
88 The ExpvarZ exposes the useful information about Go runtime, OTel components could leverage [expvar](https://pkg.go.dev/expvar) library to expose their own state.
89
90 Example URL: http://localhost:55679/debug/expvarz
91
92 ## Warnings
93
94 This extension registers a SpanProcessor to record all the spans created inside
95 the Collector. This depends on a TracerProvider that supports
96 the SDK methods RegisterSpanProcessor and UnregisterSpanProcessor. Setting
97 `service::telemetry::traces::level` to `none` configures a No-Op
98 TracerProvider that does not support these methods, and therefore the zPages
99 extension cannot work in this mode.