Skip to content

Commit 5abcad0

Browse files
authored
Merge pull request #75426 from max-cx/OBSDOCS-865
OBSDOCS-865/TRACING-3962: Documentation for hostmetrics receiver
2 parents 44840c5 + fac42b3 commit 5abcad0

File tree

1 file changed

+85
-0
lines changed

1 file changed

+85
-0
lines changed

modules/otel-collector-components.adoc

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,91 @@ The Jaeger receiver ingests traces in the Jaeger formats.
8282
<4> The Jaeger Thrift Binary endpoint. If omitted, the default `+0.0.0.0:6832+` is used.
8383
<5> The server-side TLS configuration. See the OTLP receiver configuration section for more details.
8484

85+
[id="hostmetrics-receiver_{context}"]
86+
=== Host Metrics Receiver
87+
88+
:FeatureName: The Host Metrics Receiver
89+
include::snippets/technology-preview.adoc[]
90+
91+
The Host Metrics Receiver ingests metrics in the OTLP format.
92+
93+
.OpenTelemetry Collector custom resource with an enabled Host Metrics Receiver
94+
[source,yaml]
95+
----
96+
apiVersion: v1
97+
kind: ServiceAccount
98+
metadata:
99+
name: otel-hostfs-daemonset
100+
namespace: <namespace>
101+
---
102+
apiVersion: security.openshift.io/v1
103+
kind: SecurityContextConstraints
104+
allowHostDirVolumePlugin: true
105+
allowHostIPC: false
106+
allowHostNetwork: false
107+
allowHostPID: true
108+
allowHostPorts: false
109+
allowPrivilegeEscalation: true
110+
allowPrivilegedContainer: true
111+
allowedCapabilities: null
112+
defaultAddCapabilities:
113+
- SYS_ADMIN
114+
fsGroup:
115+
type: RunAsAny
116+
groups: []
117+
metadata:
118+
name: otel-hostmetrics
119+
readOnlyRootFilesystem: true
120+
runAsUser:
121+
type: RunAsAny
122+
seLinuxContext:
123+
type: RunAsAny
124+
supplementalGroups:
125+
type: RunAsAny
126+
users:
127+
- system:serviceaccount:<namespace>:otel-hostfs-daemonset
128+
volumes:
129+
- configMap
130+
- emptyDir
131+
- hostPath
132+
- projected
133+
---
134+
apiVersion: opentelemetry.io/v1alpha1
135+
kind: OpenTelemetryCollector
136+
metadata:
137+
name: otel
138+
namespace: <namespace>
139+
spec:
140+
serviceAccount: otel-hostfs-daemonset
141+
mode: daemonset
142+
volumeMounts:
143+
- mountPath: /hostfs
144+
name: host
145+
readOnly: true
146+
volumes:
147+
- hostPath:
148+
path: /
149+
name: host
150+
config: |
151+
receivers:
152+
hostmetrics:
153+
collection_interval: 10s # <1>
154+
initial_delay: 1s # <2>
155+
root_path: / # <3>
156+
scrapers: # <4>
157+
cpu:
158+
memory:
159+
disk:
160+
service:
161+
pipelines:
162+
metrics:
163+
receivers: [hostmetrics]
164+
----
165+
<1> Sets the time interval for host metrics collection. If omitted, the default value is `+1m+`.
166+
<2> Sets the initial time delay for host metrics collection. If omitted, the default value is `+1s+`.
167+
<3> Configures the `root_path` so that the Host Metrics Receiver knows where the root filesystem is. If running multiple instances of the Host Metrics Receiver, set the same `root_path` value for each instance.
168+
<4> Lists the enabled host metrics scrapers. Available scrapers are `cpu`, `disk`, `load`, `filesystem`, `memory`, `network`, `paging`, `processes`, and `process`.
169+
85170
[id="k8sobjectsreceiver-receiver_{context}"]
86171
=== Kubernetes Objects Receiver
87172

0 commit comments

Comments
 (0)