Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
85 changes: 85 additions & 0 deletions modules/otel-collector-components.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,91 @@ The Jaeger receiver ingests traces in the Jaeger formats.
<4> The Jaeger Thrift Binary endpoint. If omitted, the default `+0.0.0.0:6832+` is used.
<5> The server-side TLS configuration. See the OTLP receiver configuration section for more details.

[id="hostmetrics-receiver_{context}"]
=== Host Metrics Receiver

:FeatureName: The Host Metrics Receiver
include::snippets/technology-preview.adoc[]

The Host Metrics Receiver ingests metrics in the OTLP format.

.OpenTelemetry Collector custom resource with an enabled Host Metrics Receiver
[source,yaml]
----
apiVersion: v1
kind: ServiceAccount
metadata:
name: otel-hostfs-daemonset
namespace: <namespace>
---
apiVersion: security.openshift.io/v1
kind: SecurityContextConstraints
allowHostDirVolumePlugin: true
allowHostIPC: false
allowHostNetwork: false
allowHostPID: true
allowHostPorts: false
allowPrivilegeEscalation: true
allowPrivilegedContainer: true
allowedCapabilities: null
defaultAddCapabilities:
- SYS_ADMIN
fsGroup:
type: RunAsAny
groups: []
metadata:
name: otel-hostmetrics
readOnlyRootFilesystem: true
runAsUser:
type: RunAsAny
seLinuxContext:
type: RunAsAny
supplementalGroups:
type: RunAsAny
users:
- system:serviceaccount:<namespace>:otel-hostfs-daemonset
volumes:
- configMap
- emptyDir
- hostPath
- projected
---
apiVersion: opentelemetry.io/v1alpha1
kind: OpenTelemetryCollector
metadata:
name: otel
namespace: <namespace>
spec:
serviceAccount: otel-hostfs-daemonset
mode: daemonset
volumeMounts:
- mountPath: /hostfs
name: host
readOnly: true
volumes:
- hostPath:
path: /
name: host
config: |
receivers:
hostmetrics:
collection_interval: 10s # <1>
initial_delay: 1s # <2>
root_path: / # <3>
scrapers: # <4>
cpu:
memory:
disk:
service:
pipelines:
metrics:
receivers: [hostmetrics]
----
<1> Sets the time interval for host metrics collection. If omitted, the default value is `+1m+`.
<2> Sets the initial time delay for host metrics collection. If omitted, the default value is `+1s+`.
<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.
<4> Lists the enabled host metrics scrapers. Available scrapers are `cpu`, `disk`, `load`, `filesystem`, `memory`, `network`, `paging`, `processes`, and `process`.

[id="k8sobjectsreceiver-receiver_{context}"]
=== Kubernetes Objects Receiver

Expand Down