Logo de K8s Opentelemetry Collector Troubleshooting

K8s Opentelemetry Collector Troubleshooting

Organização
k8s-servant
k8s-opentelemetry-collector-troubleshooting

Use quando a telemetria (traces, métricas, logs) não passa pelo OpenTelemetry Collector no Kubernetes: o collector trava ao iniciar ("invalid configuration", "references receiver ... which is not configured", "unknown type"), as aplicações recebem "connection refused" na porta 4317 ou 4318 (um receiver escutando em localhost ou que não está em um pipeline), os exporters falham ("Exporting failed. Will retry the request after interval", "Exporting failed. Dropping data.", "sending queue is full", "no children to pick from"), o memory_limiter recusa dados, faltam permissões RBAC para k8s_attributes ou o OpenTelemetry Operator não cria um collector nem injeta a auto-instrumentação. Investiga com kubectl get, logs e as próprias métricas do collector e propõe correções. Primeiro, faz uma leitura e pede autorização antes de alterar qualquer coisa.

Visão geral

Publicado pork8s-servant
Repositóriok8s-skills
Nome da habilidadek8s-opentelemetry-collector-troubleshooting
Estrelas
36
Forks
7
Arquivos incluídos
2
LicençaApache-2.0
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    As habilidades de IA são escritas em Markdown simples, não em código específico de um provedor. Por isso, funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • Arquivos incluídos: 2

    Scripts, templates e referências que o modelo pode ler enquanto trabalha. Os arquivos são somente para leitura e nunca são executados.

  • Código aberto

    Publicada por k8s-servant no GitHub. Leia os arquivos da habilidade antes de instalá-la.

Instalação

Instale a habilidade de IA K8s Opentelemetry Collector Troubleshooting no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL abaixo, que aponta para a pasta da habilidade, e confirme.
    https://github.com/k8s-servant/k8s-skills/tree/main/skills/k8s-opentelemetry-collector-troubleshooting
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Adicionar habilidade → Via URL do GitHub. Depois, cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse agente.

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
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative K8s Opentelemetry Collector Troubleshooting em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega K8s Opentelemetry Collector Troubleshooting automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, K8s Opentelemetry Collector Troubleshooting não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo seguirá.

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:

Arquivos incluídos

O modelo lê esses arquivos sob demanda enquanto a habilidade está carregada. Eles são disponibilizados para leitura e nunca são executados.

Perguntas frequentes

O que a habilidade de IA K8s Opentelemetry Collector Troubleshooting faz?

Use quando a telemetria (traces, métricas, logs) não passa pelo OpenTelemetry Collector no Kubernetes: o collector trava ao iniciar ("invalid configuration", "references receiver ... which is not configured", "unknown type"), as aplicações recebem "connection refused" na porta 4317 ou 4318 (um receiver escutando em localhost ou que não está em um pipeline), os exporters falham ("Exporting failed. Will retry the request after interval", "Exporting failed. Dropping data.", "sending queue is full", "no children to pick from"), o memory_limiter recusa dados, faltam permissões RBAC para k8s_attr...

Por que usar K8s Opentelemetry Collector Troubleshooting no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. A habilidade K8s Opentelemetry Collector Troubleshooting é escrita em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. No TypingMind, você usa suas próprias chaves de API e paga diretamente aos provedores, em vez de pagar uma assinatura por licença de usuário. Suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar K8s Opentelemetry Collector Troubleshooting no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/k8s-servant/k8s-skills/tree/main/skills/k8s-opentelemetry-collector-troubleshooting. O TypingMind lê o arquivo SKILL.md, reúne os arquivos da habilidade e a instala para que possa ser ativada em cada chat.

Quais modelos de IA podem usar K8s Opentelemetry Collector Troubleshooting?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com K8s Opentelemetry Collector Troubleshooting?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar K8s Opentelemetry Collector Troubleshooting com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA K8s Opentelemetry Collector Troubleshooting é gratuita?

Sim. A habilidade é publicada no GitHub por k8s-servant sob a licença Apache-2.0. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, templates ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas que ele pode acionar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA dá ao modelo o conhecimento e as orientações de que ele precisa: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver lista completa

Crie seu próprio espaço de trabalho com IA agora

Inscreva-se na nossa newsletter para receber avisos sobre novos recursos e futuros sorteios 👇