شعار K8s Opentelemetry Collector Troubleshooting

K8s Opentelemetry Collector Troubleshooting

مؤسسة
k8s-servant
k8s-opentelemetry-collector-troubleshooting

استخدم هذه المهارة عندما لا تمر بيانات القياس عن بُعد (التتبعات والمقاييس والسجلات) عبر OpenTelemetry Collector على Kubernetes: يتعطل المجمع عند بدء التشغيل («invalid configuration» أو «references receiver ... which is not configured» أو «unknown type»)، أو تتلقى التطبيقات «connection refused» على 4317 أو 4318 (لأن receiver يستمع على localhost أو ليس ضمن pipeline)، أو يتعذر على exporters الإرسال («Exporting failed. Will retry the request after interval» أو «Exporting failed. Dropping data.» أو «sending queue is full» أو «no children to pick from»)، أو يرفض memory_limiter البيانات، أو يفتقر k8s_attributes إلى RBAC، أو لا ينشئ OpenTelemetry Operator مجمعًا ولا يحقن auto-instrumentation. تفحص المشكلة باستخدام kubectl get والسجلات ومقاييس المجمع نفسه، وتقترح الحلول. تبدأ بالقراءة وتطلب الإذن قبل إجراء أي تغيير.

نظرة عامة

الناشرk8s-servant
المستودعk8s-skills
اسم المهارةk8s-opentelemetry-collector-troubleshooting
النجوم
36
التفريعات
7
الملفات المرفقة
2
الترخيصApache-2.0
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • الملفات المرفقة: 2

    نصوص برمجية وقوالب ومراجع يمكن للنموذج قراءتها أثناء عمله. الملفات للقراءة فقط ولا تُنفّذ أبدًا.

  • مفتوحة المصدر

    نشرها k8s-servant على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي K8s Opentelemetry Collector Troubleshooting في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/k8s-servant/k8s-skills/tree/main/skills/k8s-opentelemetry-collector-troubleshooting
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/k8s-servant/k8s-skills.git /tmp/k8s-skills
mkdir -p .claude/skills
cp -r /tmp/k8s-skills/skills/k8s-opentelemetry-collector-troubleshooting .claude/skills/k8s-opentelemetry-collector-troubleshooting
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل K8s Opentelemetry Collector Troubleshooting في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج مهارة K8s Opentelemetry Collector Troubleshooting تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط K8s Opentelemetry Collector Troubleshooting بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تستهلك تعليمات المهارة أي توكنات ما دامت المهارة غير مستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

OpenTelemetry Collector troubleshooting

Find out why telemetry does not pass through the OpenTelemetry Collector, and propose a fix. Read first, ask before changing. Run the investigation commands freely. Run a command under an "Ask first" line only after the user approves that exact command; if your credentials do not allow it, give it to the user to run. Never run a "Proposed fix"; hand it to the user.

A collector's config defines receivers (OTLP on 4317 for gRPC and 4318 for HTTP, Prometheus, ...), processors (memory_limiter, batch, k8s_attributes, ...), exporters (otlp_grpc, otlp_http, debug, ...) and extensions (health_check, ...), and then the service.pipelines that connect them. A component that no pipeline uses is not started at all, without a warning. The collector checks the config at start and exits with Error: ... when it is invalid. At run time it logs failed exports with the exporter's name and the error. Collectors often run as an agent (DaemonSet, sidecar) that forwards to a gateway (Deployment), so follow the data hop by hop.

The commands use placeholders: my-namespace, my-collector (the collector workload, its ConfigMap and Service), my-backend (where it exports to) and my-app (an application that sends telemetry). Replace them with the real names. Never read Secrets. Exporters and auth extensions can carry API keys and tokens in headers: read the receivers, the pipelines and each exporter's endpoint, never dump whole exporters or extensions blocks, and never repeat a header value. Do not use print-config: it resolves ${env:...} values, which may come from Secrets.

When to use

  • Traces, metrics or logs are missing at the backend.
  • The collector pods crash, restart, or are OOMKilled.
  • Applications log export errors to the collector (connection refused, timeouts).
  • The OpenTelemetry Operator's collector or auto-instrumentation does not appear.

Hand-offs, by skill name. When the evidence points elsewhere, continue with that skill; if it is not installed, keep going with the steps here and tell the user which skill would help:

  • The collector's Service has no endpoints, or a NetworkPolicy blocks it: k8s-network-troubleshooting.
  • The backend refuses the data (Loki 400 or 429, Prometheus remote write errors): k8s-loki-troubleshooting, k8s-prometheus-troubleshooting.
  • k8s_attributes or the operator is refused by RBAC: k8s-rbac-troubleshooting.
  • The operator's webhook certificate comes from cert-manager and is not issued: k8s-cert-manager-troubleshooting.

Investigate

Work through the steps in order. Stop when you have the cause and its evidence.

1. See the collector and the application. A crash points to the config; an application error names what it could not reach.

bash
kubectl get pods -n my-namespace -o wide
kubectl logs -n my-namespace deployment/my-app --tail=20
kubectl get services,endpointslices -n my-namespace

2. Read the collector's log, current and before the last restart: config errors, the endpoints its receivers listen on (Starting GRPC server, Starting HTTP server), and export failures.

bash
kubectl logs -n my-namespace deployment/my-collector --tail=100
kubectl logs -n my-namespace deployment/my-collector --previous --tail=30
kubectl logs -n my-namespace deployment/my-collector --tail=500 | grep -E 'error|warn|Starting (GRPC|HTTP) server|Exporting failed'

3. Read the config's pipelines, receivers and exporter endpoints, not the whole config.

bash
kubectl get deployment my-collector -n my-namespace -o jsonpath='{.spec.template.spec.containers[0].args}{"\n"}{range .spec.template.spec.volumes[*]}{.name}{" "}{.configMap.name}{.secret.secretName}{"\n"}{end}'
kubectl get configmap my-collector -n my-namespace -o jsonpath='{.data.config\.yaml}' | grep -E '^ *(receivers|exporters|processors|pipelines|protocols|grpc|http|endpoint|traces|metrics|logs):'

4. If the OpenTelemetry Operator manages the collector, read its resource and its status.

bash
kubectl get opentelemetrycollectors,instrumentations -A
kubectl get opentelemetrycollector my-collector -n my-namespace -o jsonpath='{.spec.mode}{" "}{.spec.image}{"\n"}{.spec.config.service}{"\n"}{range .status.conditions[*]}{.type}={.status} {.reason}: {.message}{"\n"}{end}'
kubectl get events -n my-namespace --field-selector involvedObject.kind=OpenTelemetryCollector

5. Open the matching reference and follow its steps:

What you seeReference
A crash at start, config errors, components not in a pipeline, localhost receivers, ports and protocolsreferences/config-and-receivers.md
Export failures, retries, queues, memory_limiter, k8s_attributes, internal metrics, the operator and auto-instrumentationreferences/export-and-operator.md

Read the results

What the common findings mean (collector 0.163):

  • Error: invalid configuration: service::pipelines::logs: references receiver "otlp/app" which is not configured: a pipeline names a component that has no definition (a typo, or a missing /name suffix). The collector exits; CrashLoopBackOff.
  • unknown type: "..." for id: "..." (valid values: [...]): a component type this distribution does not include, or a misspelled one. The core image has fewer components than contrib and k8s.
  • Applications get connection refused from the collector's Service, and the log shows Starting GRPC server {"endpoint": "127.0.0.1:4317"} (or no such line for that receiver): the receiver listens on localhost only; 0.0.0.0 shows as [::]:4317. Since v0.104.0 the OTLP receiver defaults to localhost; in Kubernetes it needs endpoint: 0.0.0.0:4317 (or the pod IP). A receiver missing from every pipeline gives the same symptom and logs no Starting line at all.
  • Exporting failed. Will retry the request after interval. with "error": "rpc error: code = Unavailable desc = no children to pick from": the gRPC exporter's endpoint resolves to no address (a misspelled or missing Service); gRPC does not say "no such host". connection refused or context deadline exceeded instead means the name resolves but nothing answers (the backend is down, a wrong port, a NetworkPolicy). Logged at info level; data waits in the queue until retries run out (Dropping data., no more retries left).
  • Exporting failed. Rejecting data. with sending queue is full: the backend is too slow or down for longer than the queue holds.
  • Memory usage is above soft limit. Refusing data.: the memory_limiter protects the collector; senders get data refused due to high memory usage and retry.

State the cause in one sentence, then the evidence you saw (the log line, the config entry, the application's error), then the proposed fix.

Proposed fix

Show each fix to the user before running it: what it changes and how to undo it. A collector's config is shared by every application that sends to it: never change it yourself; hand it to the user as a proposed fix. Prefer fixing the source (the Helm values, the OpenTelemetryCollector resource, the manifest in Git). The collector reads its config at start, so a changed ConfigMap needs a restart (the operator rolls its collectors itself). Write each undo with the values you found.

Fix the config in its source, apply it and restart the collector:

Proposed fix: review before running. The agent does not run this.

bash
kubectl apply -f my-collector-config.yaml
kubectl rollout restart deployment/my-collector -n my-namespace
# Undo: kubectl apply -f my-collector-config-before.yaml, then restart my-collector again

Once the collector works, restart an application whose client gave up, so it retries:

Ask first: the agent runs this only after the user approves it.

bash
kubectl rollout restart deployment/my-app -n my-namespace
# Undo: none needed; the restart only recreates the pods with the same template

Sources

Checked against the OpenTelemetry documentation and the collector source (core and contrib v0.163.0, distribution v0.163.2) and the operator v0.162.0:

الملفات المرفقة

يقرأ النموذج هذه الملفات عند الحاجة ما دامت المهارة محمّلة. وهي متاحة للقراءة ولا تُنفّذ أبدًا.

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

ماذا تفعل مهارة الذكاء الاصطناعي K8s Opentelemetry Collector Troubleshooting؟

استخدم هذه المهارة عندما لا تمر بيانات القياس عن بُعد (التتبعات والمقاييس والسجلات) عبر OpenTelemetry Collector على Kubernetes: يتعطل المجمع عند بدء التشغيل («invalid configuration» أو «references receiver ... which is not configured» أو «unknown type»)، أو تتلقى التطبيقات «connection refused» على 4317 أو 4318 (لأن receiver يستمع على localhost أو ليس ضمن pipeline)، أو يتعذر على exporters الإرسال («Exporting failed. Will retry the request after interval» أو «Exporting failed. Dropping data.» أو «sending queue is full» أو «no children to pick from»)، أو يرفض memory_limiter البيانات، أو يفتقر...

لماذا تستخدم K8s Opentelemetry Collector Troubleshooting على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة K8s Opentelemetry Collector Troubleshooting عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت K8s Opentelemetry Collector Troubleshooting في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/k8s-servant/k8s-skills/tree/main/skills/k8s-opentelemetry-collector-troubleshooting. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام K8s Opentelemetry Collector Troubleshooting؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع K8s Opentelemetry Collector Troubleshooting؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام K8s Opentelemetry Collector Troubleshooting معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي K8s Opentelemetry Collector Troubleshooting مجانية؟

نعم. نشرها k8s-servant على GitHub بموجب ترخيص Apache-2.0. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل
شعار mattpocock

Wizard

mattpocock
المجتمعشائع

أنشئ معالجًا تفاعليًا في bash يرشد المستخدم خلال الخطوات التي لا يستطيع تنفيذها سوى شخص. استخدمه عند تجهيز البنية التحتية، أو إعداد بيانات الاعتماد أو أسرار CI، أو التنقل في لوحة تحكم خارجية غير مألوفة…

22.3K
264.4K
الملفات: 2
عرض
شعار affaan-m

Deployment Patterns

affaan-m
المجتمعشائع

سير عمل النشر، وأنماط مسارات CI/CD، واستخدام Docker في الحاويات، وفحوصات الصحة، واستراتيجيات التراجع، وقوائم التحقق من الجاهزية للإنتاج لتطبيقات الويب…

39.1K
261.1K
التعليمات
عرض
شعار affaan-m

Docker Patterns

affaan-m
المجتمعشائع

أنماط Docker وDocker Compose للتطوير المحلي، وأمان الحاويات، والشبكات، واستراتيجيات وحدات التخزين، وتنسيق الخدمات المتعددة.

39.1K
261.1K
التعليمات
عرض
شعار affaan-m

Architecture Decision Records

affaan-m
المجتمعشائع

سجّل قرارات البنية المعمارية أثناء جلسات البرمجة في سجلات ADR منظمة، مع اكتشاف لحظات اتخاذ القرار تلقائيًا وتوثيق السياق والبدائل التي جرى النظر فيها والمبررات. حافظ على سجل ADR يساعد المطورين مستقبلًا على فهم أسباب تشكيل قاعدة الشيفرة على نحوها الحالي.

39.1K
261.1K
التعليمات
عرض

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا الإخبارية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇