0Pricing
System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) · درس

جامعات ومصدّرات OTel

اكتشفوا جامع OpenTelemetry ودوره في معالجة بيانات قابلية الرصد وتصفيتها وتصديرها. وتعلّموا عن المصدّرات المتنوعة للأنظمة الخلفية المختلفة

جامعات ومصدّرات OTel درس مجاني في System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) على CoddyKit. هذا هو الدرس 2 من أصل 4. يمكنك قراءة الدرس كاملاً أدناه مجاناً — ثم تمرن عليه مباشرة في المتصفح باستخدام محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7. هذا الدرس جزء من مسار التعلم في System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry)، وتقدمك يتزامن عبر الويب وتطبيق CoddyKit. تتضمن دورة System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) 4 دروس في المجموع.

بعض أجزاء هذا الدرس لم تُترجم بعد وتظهر باللغة الإنجليزية.

Meet the OTel Collector

The OpenTelemetry Collector is a powerful, vendor-agnostic proxy that receives, processes, and exports observability data. Think of it as a central traffic controller for your logs, metrics, and traces.

It simplifies managing your observability data, especially in complex distributed systems, by acting as an intermediary.

Why Use a Collector?

Instead of sending observability data directly from every application to different backend systems, the Collector acts as an intermediary. This offers several benefits:

  • Reduced Overhead: Applications send data once to the Collector.
  • Centralized Processing: Apply common transformations in one place.
  • Backend Flexibility: Easily switch or add observability backends without changing application code.

Collector's Core Parts

The OpenTelemetry Collector is built from several key components, each with a specific job. Understanding these parts helps you configure it effectively:

  • Receivers: How data gets IN.
  • Processors: How data is TRANSFORMED.
  • Exporters: How data gets OUT.
  • Service: Orchestrates these components to form pipelines.

Let's look at each one individually.

Data In: Receivers

Receivers are the entry points for observability data into the Collector. They listen for data in various formats and protocols.

Think of a receiver as a data intake funnel. It's configured to accept traces, metrics, or logs from your applications, infrastructure, or other sources.

OTLP Receiver Example

The most common receiver is the OTLP receiver. OTLP stands for OpenTelemetry Protocol, which is the native format for OpenTelemetry data.

Here's how you might configure an OTLP receiver to listen for both gRPC and HTTP data:

receivers:
  otlp:
    protocols:
      grpc:
      http:

Data Transform: Processors

Processors manipulate the observability data between being received and before being exported. They can enrich, filter, aggregate, or modify data.

This is where you can optimize data, reduce noise, add useful context, or even sample data to control volume.

Batch Processor Example

A very common processor is the batch processor. It groups data points (traces, metrics, or logs) together before sending them to an exporter.

Batching reduces network calls and can significantly improve performance and resource usage for both the Collector and the backend systems.

processors:
  batch:
    send_batch_size: 1000
    timeout: 5s

Data Out: Exporters

Exporters are responsible for sending the processed observability data from the Collector to one or more backend systems. These backends could be a tracing system, a metrics database, or a log management platform.

The Collector supports a wide variety of exporters for different vendors and open-source tools.

OTLP Exporter Example

Just like receivers, there's also an OTLP exporter. This allows the Collector to forward data, in OpenTelemetry's native format, to another OTLP-compatible endpoint.

This is useful for chaining Collectors or sending data to a vendor's OTLP endpoint.

exporters:
  otlp:
    endpoint: "otel-collector.mycompany.com:4317"
    tls:
      insecure: true

A Simple Collector Pipeline

Here's how you'd define a simple pipeline in the Collector's configuration file, connecting a receiver, a processor, and an exporter.

The service section ties everything together, defining which receivers, processors, and exporters are used for traces, metrics, and logs.

receivers:
  otlp:
    protocols:
      grpc:
processors:
  batch:
exporters:
  otlp:
    endpoint: "localhost:4317"
    tls:
      insecure: true
service:
  pipelines:
    traces:
      receivers: [otlp]
      processors: [batch]
      exporters: [otlp]

Check Your Understanding

Let's test your knowledge about the OpenTelemetry Collector's components.

OTel Collector Recap

You've learned that the OpenTelemetry Collector is a crucial component for managing observability data.

  • It acts as a central hub, decoupling applications from observability backends.
  • It uses Receivers to get data in, Processors to transform it, and Exporters to send it out.
  • This architecture provides flexibility, reduces overhead, and allows for centralized data manipulation.

Next, we'll get an overview of how to instrument your applications using OpenTelemetry SDKs!

الأسئلة الشائعة

هل درس «جامعات ومصدّرات OTel» مجاني؟

نعم — نص درس «جامعات ومصدّرات OTel» كامل متاح مجاناً هنا على الويب. لتمرينه بشكل تفاعلي (محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7) وفتح باقي دورة System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry)، انتقل إلى CoddyKit PRO. تتضمن دورة System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) 4 دروس في المجموع.

ماذا ستتعلم في «جامعات ومصدّرات OTel»؟

اكتشفوا جامع OpenTelemetry ودوره في معالجة بيانات قابلية الرصد وتصفيتها وتصديرها. وتعلّموا عن المصدّرات المتنوعة للأنظمة الخلفية المختلفة تتمرن على System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) مع أكواد عملية تشغلها مباشرة في المتصفح، ومدرس ذكاء اصطناعي متاح 24/7 يجيب على أسئلتك أثناء عملك.

هل أحتاج إلى خبرة سابقة لأبدأ System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry)؟

لا تُشترط خبرة سابقة. System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) على CoddyKit منظم للمبتدئين حتى المتقدمين، لذا يمكنك البدء من هنا أو من البداية والتقدم بسرعتك الخاصة. هذا هو الدرس 2 من أصل 4.

كم من الوقت يستغرق درس «جامعات ومصدّرات OTel»؟

معظم دروس CoddyKit تستغرق حوالي 5–10 دقائق. كل منها موجز وتفاعلي، لذا تحرز تقدماً مستمراً وتستأنف من حيث توقفت عبر الويب والتطبيق.

هل يمكنني كتابة وتشغيل أكواد في درس System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) هذا؟

نعم. كل درس في System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) يتضمن محرر أكواد مدمج، لذا تكتب وتشغل أكواداً حقيقية مباشرة في متصفحك وتحصل على تعليقات فورية من الذكاء الاصطناعي — بدون إعداد محلي.

جميع الدروس في هذه الدورة

  1. معيار OpenTelemetry
  2. جامعات ومصدّرات OTel
  3. تزويد التطبيقات بأدوات OTel SDK
  4. الإشارات والاصطلاحات الدلالية
← العودة إلى System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry)