From 60c9c3e3221db4cea790ba6798e74a9994d337ab Mon Sep 17 00:00:00 2001 From: Cijo Thomas Date: Mon, 2 Dec 2024 15:44:41 -0800 Subject: [PATCH 1/3] Update Rust logs,metrics status to beta (#5716) --- data/instrumentation.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/instrumentation.yaml b/data/instrumentation.yaml index c9fb42239a77..645fbdb8858e 100644 --- a/data/instrumentation.yaml +++ b/data/instrumentation.yaml @@ -61,8 +61,8 @@ rust: name: Rust status: traces: beta - metrics: alpha - logs: alpha + metrics: beta + logs: beta swift: name: Swift status: From 449f234e1e40bd5ae1ba3ffa445df16752782d97 Mon Sep 17 00:00:00 2001 From: Alex Boten <223565+codeboten@users.noreply.github.com> Date: Tue, 3 Dec 2024 00:33:02 -0800 Subject: [PATCH 2/3] collector: update internal logs config to include OTLP export (#5702) Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com> --- .../en/docs/collector/internal-telemetry.md | 26 +++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/content/en/docs/collector/internal-telemetry.md b/content/en/docs/collector/internal-telemetry.md index b7aa01f34841..f125988bdbe8 100644 --- a/content/en/docs/collector/internal-telemetry.md +++ b/content/en/docs/collector/internal-telemetry.md @@ -104,6 +104,21 @@ journalctl | grep otelcol | grep Error {{% /tab %}} {{< /tabpane >}} +The following configuration can be used to emit internal logs from the Collector +to an OTLP/gRPC backend: + +```yaml +service: + telemetry: + logs: + processors: + - batch: + exporter: + otlp: + protocol: grpc/protobuf + endpoint: https://backend:4317 +``` + ### Configure internal traces The Collector does not expose traces by default, but it can be configured to. @@ -141,8 +156,8 @@ Note that the `tracer_provider` section there corresponds to `traces` here. The Collector can be configured to push its own telemetry to an [OTLP receiver](https://github.com/open-telemetry/opentelemetry-collector/tree/main/receiver/otlpreceiver) and send the data through configured pipelines. In the following example, the -Collector is configured to push metrics and traces every 10s using OTLP gRPC to -`localhost:14317`: +Collector is configured to push metrics, traces, and logs every 10s using OTLP +gRPC to `localhost:14317`: ```yaml receivers: @@ -176,6 +191,13 @@ service: otlp: protocol: grpc/protobuf endpoint: http://localhost:14317 + logs: + processors: + - batch: + exporter: + otlp: + protocol: grpc/protobuf + endpoint: http://localhost:14317 ``` {{% alert title="Caution" color="warning" %}} From 480734629ad7c7dd4035a8e7e67add0451c0f317 Mon Sep 17 00:00:00 2001 From: Troels Hoffmeyer Date: Tue, 3 Dec 2024 10:09:54 +0100 Subject: [PATCH 3/3] Fix ansible role name misspelling (#5703) --- content/en/blog/2024/scaling-collectors.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/blog/2024/scaling-collectors.md b/content/en/blog/2024/scaling-collectors.md index e1ba3028967c..41210f47b890 100644 --- a/content/en/blog/2024/scaling-collectors.md +++ b/content/en/blog/2024/scaling-collectors.md @@ -89,7 +89,7 @@ Create a file named `deploy-opentelemetry.yml` in the same directory as your tasks: - name: Install OpenTelemetry Collector ansible.builtin.include_role: - name: opentelemetry_collectorr + name: opentelemetry_collector vars: otel_collector_receivers: hostmetrics: