# OpenTelemetry on Kubernetes: prompt the telemetry pipeline

> A Kubernetes OpenTelemetry diagram is a view of telemetry delivery, not another diagram of every application dependency. This example uses a Collector agent and gateway pattern to explain how traces reach an external backend.

## Key takeaways

- Show application requests and telemetry as separate paths.
- Distinguish the agent DaemonSet from the gateway Deployment.
- Only label signals that the actual Collector configuration handles.

[Open this diagram in archhy](https://archhy.com/app#d=N4IgLglmA2CmIC4QHkAOsB2AVWcC2sYATgJ4AEA9hmQNICuARrERobAM4JmpEV6pgyYABawhuWAWLlUEdNAisQAGhDQAhiQp0wAEQhFYAY0hVEIADIAlFSCnrEoAObQKDddHaOQ7YRQDuAHIUACawWCToXggAZh7ssKoQ7ADKGOqoAKLpDHAhiMR0iSBORBAhKRAAXvAIAEwADKpE6hDQKWAkcOZGcOoYtrImdIbekDC1hbAAvrOqGKEciADaoOU90HTsYMy2GkzQ5vRMLGzsZL1bO0S2nejmAELaGCHqpLYJRABuEEa1IABrRjMVg7dgAeku212qjA6gYFnhuCOwNOYIum2hN1UDAoRDCRA6XX+7AoCnyOLxBIAwmS8eYAMQAZjqADY-gBWPaabRgbwAD0QbKaIBIiBF-nKIkQAEYmQ0RaIIE5hHyEAB2AAcDTma3ySAyqC8qn2yINsjI6QI7FQ6j+t0i-yedBebzFqk+P3tSCBJ1BHHBVo4tvtsPhiIO5gyEEt6mtIfglPxzCJ3SQIQoYB2FJAuOTRFprhuSGZbM53K0OgFiAALCKxQgORKpcJEEy66olSq1azWTrVLbDBgwABJfUgKHXEDTZR68xuY1qJGHJAL5hfeFtKDkIM2u2J8COx7PV7vD3r37-X0gs6BuPB-e3cPL+cMT2bhSdWPxx9Jgmp-4MyzWAczzGk6WLEBS3ZWAuRNHkqwQUBBQQGtGlUBsm1USUQmlBBNQ7EAu1VRBe37EBB0wUdx0nXYZznJBDAARyKbZF1NFcQAAQVQVAFCMdRTGoXoICoxc7n+ABVT4K15asEHrWtCJwvDGkVWBlRIhAZUaXUQHWc1UG5SMkBHDBtiIOgCG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gMpxUMZVOyfrDWVc6i1OMU0y6sJLFIHOYbGxnEYh4ipvic4rcem2DcQEAZjCyjDP8WMksDQJk1imTM2BsA1kLKWck8AbxVnzI2Tk2AeTak7KKfs0plkZjHNVhTC5ScQ5VyZNc+pjziXPPAA83Mdpk6hxfEgG+BUiA7y6W3X5fT-kp0BT4rBIyJygqguCyZ0yPRRNhai8wiykkkRWYQOFaKtlYt2cUg5RyNEHSoLoi62SayUpMemNqh1SF0tufjMOSAp7pCaucU5vT+n8vAECoVILAklk1AwDkRgYisj2C-AC5h+6iBzKSWZMrMkkirriLM9SlXpNlYwqu91rEgAKTikpBR8XlIVjjPGVcnkkCrnwupJrMa00VnjRp1L1a0ptXYaeDqyY0s1n8jxrqhketsAEhhUEfV+oDUG1gIbTUDwjdKlVcq42ZnuiYpNM7U3pvVdmrVebZHTCAA)

A Kubernetes OpenTelemetry diagram is a view of telemetry delivery, not another diagram of every application dependency. This example uses a Collector agent and gateway pattern to explain how traces reach an external backend.

Part 7 of our [Kubernetes prompting series](https://archhy.com/blog/kubernetes-diagram-prompts). The diagram below is an authored Archhy example of the brief, not a claimed output from a particular AI model. Open it in the editor to inspect and adapt the native objects.

## The prompt

> Diagram observability for an API namespace. Application pods send traces to OpenTelemetry Collector agents running as a DaemonSet; agents forward telemetry to a Collector gateway Deployment in observability, then to an external backend. Label traces, metrics and logs only where each is actually collected. Include a legend and an explicit note that application requests do not pass through the collectors.

On a computer, use AI → Generate with AI, Cloud: Auto, then Generate and Save. On a phone, AI → Generate applies the result with Undo available. Keep a copy of existing work before generating. Use an available configured model; results need inspection and may differ from this authored example.

## Follow traces through the collectors

The application sends OTLP traces to a Collector agent running under a DaemonSet. The agent forwards them to a gateway Collector in observability, and the gateway exports to the external backend. Solid blue rails identify the trace pipeline. A separate muted request arrow reaches the application directly, so nobody reads the Collector as an application proxy.

## Keep controller relationships distinct

Dashed management arrows link the DaemonSet to the representative agent and the gateway Deployment to its representative Collector. A single card stands for each runtime role; it is not a promise about how many agents or gateway replicas exist. The diagram deliberately avoids showing a gateway Service and detailed scheduling. Add those when the review moves from collection roles to concrete endpoint and deployment configuration.

## Do not invent signals

The initial picture shows traces only. Metrics and logs remain explicit follow-up questions because their collection routes depend on instrumentation and receiver configuration. Do not label a generic line all telemetry unless that statement has been checked. Similarly, this pipeline is not automatically the resource-metrics integration used by HPA. A clear diagram leaves that distinction intact instead of connecting every metrics-related logo together.

## Refine around one operational question

To discuss export reliability, add a note about retry and buffering requirements without pretending the example has configured them. To discuss privacy, identify the attributes that need filtering before export, using symbolic examples rather than real user data. Keep backend retention and access controls outside the cluster boundary until their policies are known. The next edit should answer a question the reviewer actually raised.

When reviewing collection, identify the source and destination of each signal before discussing retention. A receiver accepting OTLP and a backend storing traces answer different questions. Keep the names of configured endpoints symbolic in a public example, then check the actual receiver, processor and exporter configuration privately with the team that owns it.

## Check the result

- Customer requests bypass the Collector pipeline.
- Trace arrows have labels consistent with the configured receivers and exporters.
- Metrics and logs are not claimed merely because a Collector is installed.

Inspect every arrowhead at both canvas and exported size. Solid blue rails show the operation named by their labels; dashed purple rails show management or configuration. Other colours are explained by the diagram legend. A rail describes a logical relationship, not necessarily a literal network hop.

## Try one precise edit

> Keep the traces pipeline unchanged. Add a note beside the gateway asking where attribute filtering and retry buffering are configured. Do not add metrics or logs yet.

Use Edit with AI with Preserve layout on. Check the result against the previous diagram, undo if needed, then save the native version you want to keep. The diagram is an explanation aid, not executable configuration or a deployment check.

## Continue the series

[All ten prompts and the prompting method](https://archhy.com/blog/kubernetes-diagram-prompts). Previous: [Argo CD GitOps: prompt delivery and runtime as separate lanes](https://archhy.com/blog/kubernetes-argocd-gitops-diagram). Next: [External Secrets: prompt secret delivery without exposing values](https://archhy.com/blog/kubernetes-external-secrets-diagram).

## Frequently asked questions

### Does installing a Collector enable every signal?

No. The pipeline depends on instrumentation and configured receivers, processors and exporters.

### Is this automatically the HPA metrics source?

No. That requires an explicit resource or custom-metrics integration.

*Based on:* Original Archhy teaching example, informed by [official opentelemetry.io documentation](https://opentelemetry.io/docs/platforms/kubernetes/collector/). The example assumptions are named in the article and diagram; it is not a reproduction of a reference deployment.
