<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Span Observer</title>
    <description>The latest articles on DEV Community by Span Observer (@spanobserver).</description>
    <link>https://dev.to/spanobserver</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4230759%2Fec482140-e2ca-44fb-b097-403595d07ccf.png</url>
      <title>DEV Community: Span Observer</title>
      <link>https://dev.to/spanobserver</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/spanobserver"/>
    <language>en</language>
    <item>
      <title>Dynatrace Application Security (AppSec): runtime vulnerability scanning in production</title>
      <dc:creator>Span Observer</dc:creator>
      <pubDate>Thu, 03 Dec 2026 21:30:20 +0000</pubDate>
      <link>https://dev.to/spanobserver/dynatrace-application-security-appsec-runtime-vulnerability-scanning-in-production-4el4</link>
      <guid>https://dev.to/spanobserver/dynatrace-application-security-appsec-runtime-vulnerability-scanning-in-production-4el4</guid>
      <description>&lt;p&gt;An image scanner reports 400 CVEs a week. The security team asks which ones to fix first, and nobody can say which vulnerable libraries are actually loaded in production. Dynatrace Application Security answers that question from what OneAgent sees at runtime, not from a manifest. This is what people usually mean by AppSec Dynatrace or Dynatrace vulnerability scanning: no scheduled scan of an image, but continuous analysis of the code that actually runs.&lt;/p&gt;

&lt;p&gt;For an SRE, the stake is not only compliance. An exploited vulnerability becomes an incident, with its MTTR and its impact on the error budget. Sorting by real exposure also cuts toil: you stop rushing patches for components that run nowhere.&lt;/p&gt;

&lt;p&gt;Goal of this tutorial: enable runtime detection of third-party vulnerabilities (Runtime Vulnerability Analytics), target the right processes, read the results in DQL and through the API, then wire up a notification. The content targets &lt;strong&gt;Dynatrace SaaS&lt;/strong&gt;; differences with &lt;strong&gt;Dynatrace Managed&lt;/strong&gt; are flagged.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Dynatrace Application Security detects at runtime
&lt;/h2&gt;

&lt;p&gt;Runtime Vulnerability Analytics relies on OneAgent: it knows the libraries each process actually loads (Java, .NET, Node.js, Go, PHP depending on supported versions). Dynatrace matches them against public vulnerability databases and adds context:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;exposure&lt;/strong&gt;: is the process reachable from the internet?&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;vulnerable functions&lt;/strong&gt;: is the vulnerable code actually called, where the technology allows it?&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;sensitive data&lt;/strong&gt;: does the service touch a database?&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;scope&lt;/strong&gt;: how many entities are affected, in which namespaces or zones.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This context produces a Dynatrace-specific assessment (the «&amp;nbsp;Davis Security Score&amp;nbsp;» in the classic interface) that complements the CVSS score. A critical CVE on an internal, unexposed batch job drops down the list; a medium CVE on a public API moves up.&lt;/p&gt;

&lt;p&gt;Keep three things apart: third-party vulnerability detection (libraries), code-level vulnerability detection (SQL injection, for example) and runtime protection (Runtime Application Protection), which blocks attacks. This tutorial covers the first one.&lt;/p&gt;

&lt;h2&gt;
  
  
  Prerequisites
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  A Dynatrace SaaS environment with OneAgent in &lt;em&gt;Full-Stack&lt;/em&gt; mode on the relevant hosts or Kubernetes nodes. On Kubernetes, deployment goes through Dynatrace Operator (see &lt;a href="https://span.observer/en/dynatrace-operator-kubernetes-openshift-managed/" rel="noopener noreferrer"&gt;connecting Dynatrace Operator to a cluster&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;  Rights on the Application Security settings and, licence-wise, the Runtime Vulnerability Analytics capability (it is consumed and visible in billing events).&lt;/li&gt;
&lt;li&gt;  An API token with &lt;code&gt;securityProblems.read&lt;/code&gt; for the API, and &lt;code&gt;settings.read&lt;/code&gt; / &lt;code&gt;settings.write&lt;/code&gt; to automate rules. For 401 or 403 errors, follow &lt;a href="https://span.observer/en/dynatrace-api-token-troubleshooting/" rel="noopener noreferrer"&gt;the API token troubleshooting guide&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;  On &lt;strong&gt;Managed&lt;/strong&gt;: the &lt;code&gt;securityProblems&lt;/code&gt; API also exists (through the cluster or a Cluster ActiveGate), but DQL queries on &lt;code&gt;security.events&lt;/code&gt; assume Grail, so SaaS.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Step 1: enable third-party vulnerability detection
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt; Open &lt;strong&gt;Settings&lt;/strong&gt;, then &lt;strong&gt;Application Security&lt;/strong&gt; &amp;gt; &lt;strong&gt;Vulnerability Analytics&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt; Enable third-party vulnerability detection and pick the default control mode per technology.&lt;/li&gt;
&lt;li&gt; Restart the monitored processes if your version’s documentation requires it for that technology: OneAgent has to see the libraries being loaded.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Exact screen labels change between versions; rely on the settings search and type «&amp;nbsp;vulnerability&amp;nbsp;».&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: target processes with monitoring rules
&lt;/h2&gt;

&lt;p&gt;Enabling everywhere costs licence and adds noise. Monitoring rules let you force &lt;code&gt;MONITORING_ON&lt;/code&gt; or &lt;code&gt;MONITORING_OFF&lt;/code&gt; based on resource attributes or Kubernetes labels. Two schemas exist: &lt;code&gt;builtin:appsec.third-party-vulnerability-rule-settings&lt;/code&gt; and &lt;code&gt;builtin:appsec.third-party-vulnerability-kubernetes-label-rule-settings&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Start by reading the existing rules:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="kd"&gt;export&lt;/span&gt; &lt;span class="nv"&gt;DT_ENV&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"https://abc12345.live.dynatrace.com"&lt;/span&gt;
curl -s -H &lt;span class="s2"&gt;"Authorization: Api-Token $DT_TOKEN"&lt;/span&gt; \
  &lt;span class="s2"&gt;"$DT_ENV/api/v2/settings/objects?schemaIds=builtin:appsec.third-party-vulnerability-rule-settings&amp;amp;scopes=tenant"&lt;/span&gt; \
  &lt;span class="o"&gt;|&lt;/span&gt; jq &lt;span class="s1"&gt;'.items[] | {objectId, value}'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then describe a rule that excludes a test environment. The body below follows the schema structure (&lt;code&gt;vulnerabilityDetectionControl&lt;/code&gt;, &lt;code&gt;resourceAttributeConditions&lt;/code&gt;, &lt;code&gt;metadata&lt;/code&gt;):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;[&lt;/span&gt;
  &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"schemaId"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"builtin:appsec.third-party-vulnerability-rule-settings"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"scope"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"tenant"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"value"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;"enabled"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"vulnerabilityDetectionControl"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"monitoringMode"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"MONITORING_OFF"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"resourceAttributeConditions"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
        &lt;span class="p"&gt;{&lt;/span&gt;
          &lt;span class="nl"&gt;"resourceAttributeKey"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"deployment.environment"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
          &lt;span class="nl"&gt;"matcher"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"EQUALS"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
          &lt;span class="nl"&gt;"resourceAttributeValue"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"sandbox"&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;
      &lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"metadata"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"comment"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"No analysis on the sandbox"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -s -X POST -H &lt;span class="s2"&gt;"Authorization: Api-Token $DT_TOKEN"&lt;/span&gt; \
  -H &lt;span class="s2"&gt;"Content-Type: application/json"&lt;/span&gt; \
  -d @rule-sandbox.json \
  &lt;span class="s2"&gt;"$DT_ENV/api/v2/settings/objects"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Critical line: &lt;code&gt;resourceAttributeKey&lt;/code&gt; must match an attribute the process actually carries. Check it first, otherwise the rule applies to nothing and returns no error. Add &lt;code&gt;?validateOnly=true&lt;/code&gt; to the URL to test without writing.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: read vulnerabilities in DQL
&lt;/h2&gt;

&lt;p&gt;On SaaS, results land in the &lt;code&gt;security.events&lt;/code&gt; table. To see the latest state reports per vulnerability:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;fetch security.events
| filter event.provider == "Dynatrace"
| filter event.category == "VULNERABILITY_MANAGEMENT"
| filter event.type == "VULNERABILITY_STATE_REPORT_EVENT"
| filter event.level == "VULNERABILITY"
| sort timestamp desc
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Replace &lt;code&gt;"VULNERABILITY"&lt;/code&gt; with &lt;code&gt;"ENTITY"&lt;/code&gt; to get the per-affected-entity view: that is the one that tells you which service or process carries the library. For join examples with entities, see &lt;a href="https://span.observer/en/dql-query-examples-operations/" rel="noopener noreferrer"&gt;the operational DQL queries&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4: query the securityProblems API
&lt;/h2&gt;

&lt;p&gt;API v2 works on SaaS and Managed alike and easily feeds a report or a ticket:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -s -H &lt;span class="s2"&gt;"Authorization: Api-Token $DT_TOKEN"&lt;/span&gt; \
  &lt;span class="s2"&gt;"$DT_ENV/api/v2/securityProblems?pageSize=100"&lt;/span&gt; \
  &lt;span class="o"&gt;|&lt;/span&gt; jq &lt;span class="s1"&gt;'.securityProblems[] | {displayId, title, status, riskAssessment}'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The maximum page size is 500; beyond that, follow &lt;code&gt;nextPageKey&lt;/code&gt; with no other parameter. On Managed, the URL looks like &lt;code&gt;https://{your-domain}/e/{environment-id}/api/v2/securityProblems&lt;/code&gt;. Exact response field names may vary: inspect a raw response before writing your &lt;code&gt;jq&lt;/code&gt; filter.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 5: notify the owning team
&lt;/h2&gt;

&lt;p&gt;A vulnerability without an owner never gets fixed. Route new critical vulnerabilities to the team that owns the service, through an event-triggered workflow or the existing ticketing integration. The pattern described in &lt;a href="https://span.observer/en/dynatrace-workflow-jira-servicenow/" rel="noopener noreferrer"&gt;the Dynatrace workflow to Jira and ServiceNow&lt;/a&gt; applies as is: only the trigger query changes.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to check that Dynatrace vulnerability scanning works
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt; In a test environment allowed by your rules, deliberately deploy an application that loads an old, known-vulnerable version of a common library.&lt;/li&gt;
&lt;li&gt; Wait a few minutes, then run the step 3 query: an event should appear for that process.&lt;/li&gt;
&lt;li&gt; Check consumption with:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;fetch dt.system.events
| filter event.kind == "BILLING_USAGE_EVENT" and event.type == "Runtime Vulnerability Analytics"
| dedup event.id
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If nothing appears: OneAgent is not in Full-Stack mode, the technology is not enabled, a &lt;code&gt;MONITORING_OFF&lt;/code&gt; rule covers the process, or the process has not been restarted.&lt;/p&gt;

&lt;h2&gt;
  
  
  Best practices
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;Sort by exposure, not by CVSS alone&lt;/strong&gt;: handle first what is publicly exposed and reaches data.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Explicit rules&lt;/strong&gt;: document each exclusion in &lt;code&gt;metadata.comment&lt;/code&gt;; a silent exclusion becomes a blind spot.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Limited access&lt;/strong&gt;: vulnerability details are sensitive; restrict them through groups and permissions (see &lt;a href="https://span.observer/en/dynatrace-managed-users-groups-permissions/" rel="noopener noreferrer"&gt;the access model&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Complementarity&lt;/strong&gt;: keep scanning in CI; runtime analysis checks what really runs, it does not replace pre-deployment checks.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Reference&lt;/strong&gt;: rule syntax is described in the &lt;a href="https://docs.dynatrace.com/docs/secure/application-security/vulnerability-analytics/third-party-vulnerabilities/define-monitoring-rules-tpv" rel="noopener noreferrer"&gt;monitoring rules documentation&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Remediation SLO&lt;/strong&gt;: set a target delay per risk level and track it like an internal SLO.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Frequently asked questions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Does Dynatrace Application Security replace an image scanner?
&lt;/h3&gt;

&lt;p&gt;No. The scanner sees everything that is packaged, including what never loads. Runtime analysis sees what runs. The two views complement each other; the gap between them is often instructive.&lt;/p&gt;

&lt;h3&gt;
  
  
  Do applications need a restart?
&lt;/h3&gt;

&lt;p&gt;For some technologies, OneAgent must observe libraries being loaded, which means restarting the process after enabling. Check the support matrix for your version.&lt;/p&gt;

&lt;h3&gt;
  
  
  Is it available on Dynatrace Managed?
&lt;/h3&gt;

&lt;p&gt;Vulnerability detection and the &lt;code&gt;securityProblems&lt;/code&gt; API exist on Managed. Queries on &lt;code&gt;security.events&lt;/code&gt;, the dedicated app and workflows rely on the SaaS platform. Check your licence and version before planning.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Enable detection, narrow it with rules, read results in DQL or through the API, then route to the right owner: five steps are enough to go from an unmanageable CVE list to a short queue prioritised by real exposure. The gain shows up as incidents avoided and pointless patching hours saved.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;span.observer is an independent community blog, not affiliated with Dynatrace LLC. Dynatrace is a trademark of its owner. Screen, schema and field names change: check them in the official documentation for your version.&lt;/em&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://span.observer/en/dynatrace-application-security-runtime-vulnerabilities/" rel="noopener noreferrer"&gt;span.observer&lt;/a&gt;. French version: &lt;a href="https://span.observer/fr/dynatrace-application-security-vulnerabilites/" rel="noopener noreferrer"&gt;https://span.observer/fr/dynatrace-application-security-vulnerabilites/&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>applicationsecurity</category>
      <category>appsec</category>
      <category>dql</category>
      <category>dynatraceapi</category>
    </item>
    <item>
      <title>Istio Dynatrace: monitor the service mesh with Dynatrace (Istio traces and metrics)</title>
      <dc:creator>Span Observer</dc:creator>
      <pubDate>Thu, 03 Dec 2026 19:30:16 +0000</pubDate>
      <link>https://dev.to/spanobserver/istio-dynatrace-monitor-the-service-mesh-with-dynatrace-istio-traces-and-metrics-29i8</link>
      <guid>https://dev.to/spanobserver/istio-dynatrace-monitor-the-service-mesh-with-dynatrace-istio-traces-and-metrics-29i8</guid>
      <description>&lt;p&gt;Your Kubernetes cluster runs Istio: every request goes through an Envoy proxy that knows its latency, its status code and its destination. Yet during an incident the team opens Dynatrace and sees only part of the path. An Istio Dynatrace setup deserves better: the data already exists in the mesh, it only needs to be routed. This Dynatrace Istio guide shows how.&lt;/p&gt;

&lt;p&gt;The mesh is often the first place where degradation shows: cascading retries, rejected mTLS, a sidecar timeout. Without its traces and metrics, diagnosis relies on guesswork and MTTR grows.&lt;/p&gt;

&lt;p&gt;The goal of this tutorial: send spans from the Envoy proxies over OTLP to Dynatrace through an OpenTelemetry Collector, collect Istio’s standard metrics, then check everything with DQL. It applies to &lt;strong&gt;Dynatrace SaaS&lt;/strong&gt; and &lt;strong&gt;Dynatrace Managed&lt;/strong&gt; (OTLP ingest on Managed depends on your version; DQL queries assume Grail, so SaaS).&lt;/p&gt;

&lt;h2&gt;
  
  
  Istio Dynatrace: what the mesh can provide
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Signal&lt;/th&gt;
&lt;th&gt;Source in Istio&lt;/th&gt;
&lt;th&gt;Path to Dynatrace&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Traces (proxy spans)&lt;/td&gt;
&lt;td&gt;Envoy, through an OpenTelemetry provider declared in the mesh configuration&lt;/td&gt;
&lt;td&gt;OTLP to the Collector, then to the Dynatrace OTLP API&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Metrics&lt;/td&gt;
&lt;td&gt;The sidecars’ Prometheus endpoint (&lt;code&gt;istio_requests_total&lt;/code&gt;, &lt;code&gt;istio_request_duration_milliseconds&lt;/code&gt;…)&lt;/td&gt;
&lt;td&gt;Scraped by the Collector or by the Dynatrace Operator (annotations)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Access logs&lt;/td&gt;
&lt;td&gt;Envoy access logs&lt;/td&gt;
&lt;td&gt;Your usual log collection (OneAgent or Fluent Bit)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;An important reminder: proxy spans alone cannot rebuild a complete trace. Each application must propagate the context headers (&lt;code&gt;traceparent&lt;/code&gt;) from the incoming request to its outgoing calls, otherwise every hop becomes an isolated trace.&lt;/p&gt;

&lt;h2&gt;
  
  
  Prerequisites
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  Istio installed with &lt;code&gt;istioctl&lt;/code&gt; (the &lt;code&gt;telemetry.istio.io/v1&lt;/code&gt; API is available in recent versions).&lt;/li&gt;
&lt;li&gt;  An OpenTelemetry Collector in the &lt;code&gt;observability&lt;/code&gt; namespace, exposing OTLP gRPC on 4317, as in &lt;a href="https://span.observer/en/opentelemetry-collector-kubernetes-dynatrace/" rel="noopener noreferrer"&gt;deploying the Collector on Kubernetes&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;  A Dynatrace API token with the &lt;code&gt;openTelemetryTrace.ingest&lt;/code&gt; and &lt;code&gt;metrics.ingest&lt;/code&gt; scopes, stored in a secret.&lt;/li&gt;
&lt;li&gt;  Applications that propagate W3C context (OpenTelemetry instrumentation or OneAgent).&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Step 1: declare the Collector as a tracing provider
&lt;/h2&gt;

&lt;p&gt;Add an OpenTelemetry extension provider to the mesh configuration:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="s"&gt;cat &amp;lt;&amp;lt;EOF | istioctl install -y -f -&lt;/span&gt;
&lt;span class="na"&gt;apiVersion&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;install.istio.io/v1alpha1&lt;/span&gt;
&lt;span class="na"&gt;kind&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;IstioOperator&lt;/span&gt;
&lt;span class="na"&gt;spec&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;meshConfig&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;enableTracing&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;
    &lt;span class="na"&gt;extensionProviders&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;otel-tracing&lt;/span&gt;
      &lt;span class="na"&gt;opentelemetry&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="na"&gt;port&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;4317&lt;/span&gt;
        &lt;span class="na"&gt;service&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;otel-collector.observability.svc.cluster.local&lt;/span&gt;
&lt;span class="s"&gt;EOF&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The name &lt;code&gt;otel-tracing&lt;/code&gt; is up to you; it is referenced in the next step. The &lt;code&gt;service&lt;/code&gt; field must match the Collector service’s DNS name exactly.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: enable tracing with the Telemetry API
&lt;/h2&gt;

&lt;p&gt;A &lt;code&gt;Telemetry&lt;/code&gt; resource in Istio’s root namespace enables the provider for the whole mesh:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;apiVersion&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;telemetry.istio.io/v1&lt;/span&gt;
&lt;span class="na"&gt;kind&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Telemetry&lt;/span&gt;
&lt;span class="na"&gt;metadata&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;mesh-tracing&lt;/span&gt;
  &lt;span class="na"&gt;namespace&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;istio-system&lt;/span&gt;
&lt;span class="na"&gt;spec&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;tracing&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;providers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;otel-tracing&lt;/span&gt;
    &lt;span class="na"&gt;randomSamplingPercentage&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;randomSamplingPercentage&lt;/code&gt; sets the share of requests traced by the proxy. Start low in production (1 to 10%) and tune by volume. If applications already make the sampling decision, the proxy honours the decision carried by the incoming header. For finer sampling, keep the decision in the Collector (see &lt;a href="https://span.observer/en/opentelemetry-tail-sampling-dynatrace/" rel="noopener noreferrer"&gt;tail sampling&lt;/a&gt;).&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: export to Dynatrace: Istio traces and metrics through the Collector
&lt;/h2&gt;

&lt;p&gt;In the Collector configuration, add the Dynatrace OTLP HTTP exporter and a Prometheus receiver that scrapes the sidecars:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;receivers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;otlp&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;protocols&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;grpc&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="na"&gt;endpoint&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;0.0.0.0:4317&lt;/span&gt;
  &lt;span class="na"&gt;prometheus&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;config&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;scrape_configs&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;job_name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;istio-sidecars&lt;/span&gt;
        &lt;span class="na"&gt;scrape_interval&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;30s&lt;/span&gt;
        &lt;span class="na"&gt;metrics_path&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;/stats/prometheus&lt;/span&gt;
        &lt;span class="na"&gt;kubernetes_sd_configs&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;role&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;pod&lt;/span&gt;
        &lt;span class="na"&gt;relabel_configs&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;source_labels&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;__meta_kubernetes_pod_container_name&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
          &lt;span class="na"&gt;regex&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;istio-proxy&lt;/span&gt;
          &lt;span class="na"&gt;action&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;keep&lt;/span&gt;
        &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;source_labels&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;__address__&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
          &lt;span class="na"&gt;regex&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;([^:]+)(?::\d+)?&lt;/span&gt;
          &lt;span class="na"&gt;replacement&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;$$1:15090&lt;/span&gt;
          &lt;span class="na"&gt;target_label&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;__address__&lt;/span&gt;

&lt;span class="na"&gt;processors&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;batch&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="na"&gt;cumulativetodelta&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="na"&gt;exporters&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;otlphttp/dynatrace&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;endpoint&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;https://${env:DT_ENV_ID}.live.dynatrace.com/api/v2/otlp&lt;/span&gt;
    &lt;span class="na"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;Authorization&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Api-Token ${env:DT_API_TOKEN}"&lt;/span&gt;

&lt;span class="na"&gt;service&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;pipelines&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;traces&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;receivers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;otlp&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
      &lt;span class="na"&gt;processors&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;batch&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
      &lt;span class="na"&gt;exporters&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;otlphttp/dynatrace&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="na"&gt;metrics&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;receivers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;prometheus&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
      &lt;span class="na"&gt;processors&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;cumulativetodelta&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;batch&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
      &lt;span class="na"&gt;exporters&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;otlphttp/dynatrace&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Critical lines: port 15090 exposes Envoy statistics in Prometheus format; &lt;code&gt;$$&lt;/code&gt; escapes &lt;code&gt;$&lt;/code&gt; in the Collector configuration; &lt;code&gt;cumulativetodelta&lt;/code&gt; is needed because Dynatrace expects delta counters over OTLP. On Managed, the endpoint becomes &lt;code&gt;https://&amp;lt;domain&amp;gt;/e/&amp;lt;env-id&amp;gt;/api/v2/otlp&lt;/code&gt;. The Collector’s service account must be allowed to list pods.&lt;/p&gt;

&lt;p&gt;If you would rather let the Dynatrace Operator scrape, use the &lt;code&gt;metrics.dynatrace.com/*&lt;/code&gt; annotations described in &lt;a href="https://span.observer/en/prometheus-metrics-dynatrace-kubernetes/" rel="noopener noreferrer"&gt;collecting Prometheus metrics on Kubernetes&lt;/a&gt;. Do not combine both methods on the same pods: the metrics would be counted twice.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to check it works
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt; Generate some traffic, then look at the Collector logs: &lt;code&gt;kubectl -n observability logs deploy/otel-collector | grep -iE "error|refused"&lt;/code&gt; should return nothing.&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Check that proxy spans are present:&lt;br&gt;
&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;fetch spans, from: -15m
| filter isNotNull(istio.canonical_service)
| summarize spans = count(), by: { istio.canonical_service }
| sort spans desc
&lt;/code&gt;&lt;/pre&gt;


&lt;p&gt;If the attribute has another name in your version, inspect a raw span with &lt;code&gt;fetch spans | limit 5&lt;/code&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Check the mesh metrics, split by service and status code:&lt;br&gt;
&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;timeseries requests = sum(istio_requests_total), by: { destination_service, response_code }, from: -1h
&lt;/code&gt;&lt;/pre&gt;


&lt;p&gt;The share of &lt;code&gt;5xx&lt;/code&gt; series over the total gives the per-service error rate SLI. Adjust the metric key to the name you see in the metrics browser: depending on the ingest path, a suffix may be added.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Good practices
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  Base your SLOs on server-side mesh metrics (&lt;code&gt;reporter="destination"&lt;/code&gt;) to avoid counting each request twice.&lt;/li&gt;
&lt;li&gt;  Limit cardinality: drop useless labels before export rather than storing millions of series.&lt;/li&gt;
&lt;li&gt;  Keep a known, documented sampling rate; an unannounced change skews week-on-week comparisons.&lt;/li&gt;
&lt;li&gt;  Monitor the Collector itself: if it goes down, the mesh goes silent.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Frequently asked questions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Isn’t OneAgent enough without configuring Istio?
&lt;/h3&gt;

&lt;p&gt;OneAgent instruments the application processes in the pods and propagates its own context, so it sees service-to-service calls. Envoy spans and metrics add the proxy’s view (retries, mTLS, sidecar timeouts). The level of native Envoy support depends on the version: check the documentation before duplicating signals.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why are my traces broken at every hop?
&lt;/h3&gt;

&lt;p&gt;Almost always because an application does not propagate &lt;code&gt;traceparent&lt;/code&gt; from the incoming call to the outgoing one. The proxy does create its spans, but cannot link two requests the application has not linked.&lt;/p&gt;

&lt;h3&gt;
  
  
  Do these steps work in ambient mode?
&lt;/h3&gt;

&lt;p&gt;Ambient mode replaces sidecars with ztunnel and waypoint proxies; ports and metric sources differ. The principle (OpenTelemetry provider, Collector, OTLP export) still holds, but adapt the scraping to that architecture.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;An OpenTelemetry provider in the mesh configuration, a Telemetry resource, a Collector that scrapes the sidecars and exports over OTLP: the Istio mesh becomes visible in Dynatrace, with SLIs based on every request. The next retry storm will be read in a trace, not guessed.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;span.observer is an independent community blog, not affiliated with Dynatrace LLC. Dynatrace is a trademark of its owner. Options and attributes change: check them in the &lt;a href="https://istio.io/latest/docs/tasks/observability/distributed-tracing/opentelemetry/" rel="noopener noreferrer"&gt;Istio documentation&lt;/a&gt; and in the Dynatrace documentation.&lt;/em&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://span.observer/en/istio-dynatrace-service-mesh-observability/" rel="noopener noreferrer"&gt;span.observer&lt;/a&gt;. French version: &lt;a href="https://span.observer/fr/istio-dynatrace-traces-metriques/" rel="noopener noreferrer"&gt;https://span.observer/fr/istio-dynatrace-traces-metriques/&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>dynatraceistio</category>
      <category>dynatracemanaged</category>
      <category>dynatracesaas</category>
      <category>istio</category>
    </item>
    <item>
      <title>Falco runtime security: linking alerts to logs and traces</title>
      <dc:creator>Span Observer</dc:creator>
      <pubDate>Thu, 03 Dec 2026 17:30:14 +0000</pubDate>
      <link>https://dev.to/spanobserver/falco-runtime-security-linking-alerts-to-logs-and-traces-l9h</link>
      <guid>https://dev.to/spanobserver/falco-runtime-security-linking-alerts-to-logs-and-traces-l9h</guid>
      <description>&lt;p&gt;A container opens a shell at 3 a.m. Nobody deployed, nobody is on call for that service. Your traces are quiet, so are your metrics: the application sees nothing. This article is about Falco runtime security, from the rule that spots the gesture to the logs and traces that tell you what happened around it.&lt;/p&gt;

&lt;p&gt;The facts come from the official Falco and Falcosidekick repositories and documentation, read on 14 November 2026. I did not deploy Falco for this article: the screenshots are real excerpts of project files, and anything unverified is flagged as such.&lt;/p&gt;

&lt;p&gt;For a neighbouring case, the intruder trap, also read &lt;a href="https://span.observer/en/kubernetes-honeytoken-koney-tetragon/" rel="noopener noreferrer"&gt;honeytokens with Koney and Tetragon&lt;/a&gt;. Here the need is different: know when abnormal behaviour happens, then find it again in your observability tools.&lt;/p&gt;

&lt;h2&gt;
  
  
  The problem: instrumentation only sees the code you instrumented
&lt;/h2&gt;

&lt;p&gt;A trace describes a request crossing your services. A log tells what the code chose to say. Neither flags a process started by hand in a container, a sensitive file read or an unexpected outbound connection. Those things happen below the application, in the kernel.&lt;/p&gt;

&lt;p&gt;Falco sits right there. Its README describes it as a runtime security tool for Linux that detects abnormal behaviour in real time. It watches events, such as system calls, against rules, and can enrich them with container runtime and Kubernetes metadata. Originally created by Sysdig, the project is a CNCF graduated project and its code is licensed under Apache 2.0.&lt;/p&gt;

&lt;h2&gt;
  
  
  Falco runtime security: what sits between the kernel and the alert
&lt;/h2&gt;

&lt;p&gt;Here is the path of an event, from the bottom up.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; &lt;strong&gt;The driver&lt;/strong&gt; captures system calls. The documentation lists two drivers: the modern eBPF probe, the default, and the kernel module. The modern eBPF probe needs no specific kernel version; the documentation says that 5.8 and later is usually enough, with BPF ring buffer support and a kernel that exposes BTF.&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;The rules engine&lt;/strong&gt; compares each event with the loaded rules.&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;The output&lt;/strong&gt; writes the alert: standard output, a file, or HTTP to a relay.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The kernel driver provides the «&amp;nbsp;syscall&amp;nbsp;» source. Plugins add other sources, which is beyond this article.&lt;/p&gt;

&lt;h2&gt;
  
  
  Anatomy of a rule: what you actually write
&lt;/h2&gt;

&lt;p&gt;A rule is a YAML object with at least a name, a condition, an output and a priority. The condition is a Boolean predicate on event fields. The output is a string where you interpolate the same fields with a % sign, as in printf.&lt;/p&gt;

&lt;p&gt;The official «&amp;nbsp;Terminal shell in container&amp;nbsp;» rule is a good example. It fires when a shell starts in a container with an attached terminal, which typically happens with &lt;code&gt;kubectl exec&lt;/code&gt;. Its priority is NOTICE, and it carries tags such as &lt;code&gt;mitre_execution&lt;/code&gt;. Its description suggests treating it as an auditing rule, most useful next to other alerts from the same container.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffdbpt0cya2fd7mj7l9u0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffdbpt0cya2fd7mj7l9u0.png" alt="Shortened excerpt of the Terminal shell in container rule from the falcosecurity/rules repository: condition with spawned\_process, container, shell\_procs, proc.tty != 0 and container\_entrypoint, output with the user, process, parent, command and terminal fields, priority NOTICE" width="800" height="386"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Keep three habits for your own rules.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  Restrict the condition by event type. The documentation shows why: without a clause on the type, the rule fires for every system call the shell makes, not only for its start.&lt;/li&gt;
&lt;li&gt;  Put fields that identify the workload in the output: container, image, user. A missing field shows as &lt;code&gt;&amp;lt;NA&amp;gt;&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;  Start from the official rules, then add exceptions rather than rewriting.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  From noise to a useful alert: sort before you send
&lt;/h2&gt;

&lt;p&gt;A security alert that rings too often ends up ignored. For an SRE, that is toil: handling by hand what should have been filtered. Before wiring anything, decide what deserves a page, a ticket or a plain log line.&lt;/p&gt;

&lt;p&gt;The rule priority is a first filter. Tags are a second. The &lt;code&gt;append_output&lt;/code&gt; setting, described in the documentation, adds text or fields to a subset of rules chosen by source, name or tag. You can, for instance, add the hostname to every «&amp;nbsp;syscall&amp;nbsp;» rule without touching the rule files. Added fields appear under &lt;code&gt;output_fields&lt;/code&gt; in the JSON output.&lt;/p&gt;

&lt;h2&gt;
  
  
  Falcosidekick: routing alerts to your tools
&lt;/h2&gt;

&lt;p&gt;Falco writes the alerts. Falcosidekick distributes them. According to its README, Falco posts events over HTTP and Falcosidekick forwards them to the systems you configure: chat, on-call, logs, message queues, storage and OpenTelemetry. Each destination has its own queue, so a slow one does not delay the others.&lt;/p&gt;

&lt;p&gt;One caution: the main branch of the repository is Falcosidekick v3, flagged as beta. Version 2 stays on the 2.x branch and its configuration is not compatible with v3. Choose the version on purpose, and read the migration guide before you upgrade.&lt;/p&gt;

&lt;p&gt;The Falco side takes a few lines in &lt;code&gt;falco.yaml&lt;/code&gt;:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2xmqystjteso6zpxpwp9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2xmqystjteso6zpxpwp9.png" alt="Excerpt of falco.yaml from the Falcosidekick README: json\_output and json\_include\_output\_property set to true, then http\_output enabled with the URL http://falcosidekick:2801/" width="800" height="219"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Linking a Falco alert to logs and traces
&lt;/h2&gt;

&lt;p&gt;This is the heart of the matter. A lone alert says «&amp;nbsp;a shell opened&amp;nbsp;». It does not say what the pod was doing just before, or which request was in flight. You have to bring it into the same space as your other signals.&lt;/p&gt;

&lt;p&gt;The Falcosidekick OTLP output goes that way. It exports logs and metrics:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  one log record per event, named &lt;code&gt;falco.alert&lt;/code&gt;, with a severity derived from the priority;&lt;/li&gt;
&lt;li&gt;  a cumulative counter, &lt;code&gt;falcosecurity.falco.rules.matches&lt;/code&gt;, broken down by rule, priority, source, host and tags.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The documentation states that there is no traces signal. A Falco event is a point in time, with no duration and no parent, so it is a log record, not a span. For the differences between these signals, see &lt;a href="https://span.observer/en/opentelemetry-collector-contrib-components/" rel="noopener noreferrer"&gt;the Collector Contrib components&lt;/a&gt;, which explains where logs, metrics and traces flow.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F32qkj8bp6e2ij0a7ozxn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F32qkj8bp6e2ij0a7ozxn.png" alt="Falcosidekick OTLP configuration example from its documentation: logs and metrics to http://otel-collector:4318, with extra\_attributes containing k8s.ns.name" width="799" height="260"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The &lt;code&gt;extra_attributes&lt;/code&gt; setting adds output fields, such as &lt;code&gt;k8s.ns.name&lt;/code&gt;, to the counter attributes. Be careful: each distinct value creates a series. The documentation says that beyond 2,000 attribute combinations, the SDK adds to one overflow series. Keep low-cardinality fields.&lt;/p&gt;

&lt;h3&gt;
  
  
  Correlation in practice
&lt;/h3&gt;

&lt;p&gt;A trace does not carry the Falco alert, and the alert carries no trace_id. The join happens through shared attributes: namespace, pod, container, host, timestamp. This is my own reasoning, not a feature documented by Falco, and I have not tested it end to end.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; In the alert, note the namespace, the pod and the time.&lt;/li&gt;
&lt;li&gt; In your logs, filter on the same attributes, for the same time window.&lt;/li&gt;
&lt;li&gt; In your traces, look for the requests that pod served just before and just after.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;For this join to work, your logs and traces must carry the same Kubernetes metadata. &lt;a href="https://span.observer/en/kubernetes-metadata-enrichment-dynatrace/" rel="noopener noreferrer"&gt;Kubernetes metadata enrichment&lt;/a&gt; covers that topic for Dynatrace, and &lt;a href="https://span.observer/en/fluent-bit-dynatrace-kubernetes-log-shipping/" rel="noopener noreferrer"&gt;shipping logs with Fluent Bit&lt;/a&gt; shows the log path.&lt;/p&gt;

&lt;h2&gt;
  
  
  Steps to start without breaking production
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt; &lt;strong&gt;Check compatibility.&lt;/strong&gt; Check the kernel and architecture (x86_64 or aarch64 per the documentation).&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;Deploy Falco with the official rules&lt;/strong&gt; on a single test cluster, using the Helm chart the project publishes.&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;Enable JSON and HTTP output&lt;/strong&gt; as in the excerpt above.&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;Connect Falcosidekick&lt;/strong&gt; to a single destination, a test channel first.&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;Trigger a known case&lt;/strong&gt;: a &lt;code&gt;kubectl exec&lt;/code&gt; in a test pod.&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;Measure the noise&lt;/strong&gt; for a week, then add exceptions.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  How to check that it works
&lt;/h3&gt;

&lt;p&gt;Run the &lt;code&gt;kubectl exec&lt;/code&gt; and look for the alert «&amp;nbsp;A shell was spawned in a container with an attached terminal&amp;nbsp;» in the Falco logs, then in Falcosidekick. The Falcosidekick README offers a &lt;code&gt;/readyz&lt;/code&gt; check on port 2801. If the alert does not arrive, look at the driver first, then at the &lt;code&gt;http_output&lt;/code&gt; URL.&lt;/p&gt;

&lt;h2&gt;
  
  
  Best practices
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  Treat Falco alerts as security signals, not as proof: an alert calls for an investigation.&lt;/li&gt;
&lt;li&gt;  Keep rules under version control and test every exception.&lt;/li&gt;
&lt;li&gt;  Limit metric attributes to contain cardinality.&lt;/li&gt;
&lt;li&gt;  Protect outputs: a chat channel must not receive secrets.&lt;/li&gt;
&lt;li&gt;  Do not mix tools: Falco detects at kernel level, your traces measure application latency.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Frequently asked questions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Does Falco replace a tracing tool?
&lt;/h3&gt;

&lt;p&gt;No. Falco watches system behaviour, not requests. It complements traces and logs, it does not replace them.&lt;/p&gt;

&lt;h3&gt;
  
  
  Do I need a kernel module?
&lt;/h3&gt;

&lt;p&gt;Not necessarily. The modern eBPF probe is the default driver and needs no download if the kernel is recent enough. The kernel module remains an option, with full privileges.&lt;/p&gt;

&lt;h3&gt;
  
  
  Does Falco send OpenTelemetry traces?
&lt;/h3&gt;

&lt;p&gt;Through Falcosidekick it sends logs and metrics, but the documentation explicitly excludes traces. Check this in the version you deploy.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Falco sees what instrumentation cannot, and Falcosidekick carries it to your tools. The real work comes next: sorting the noise, then aligning attributes so you can find the alert again in logs and traces. Sources: &lt;a href="https://falco.org/docs/" rel="noopener noreferrer"&gt;Falco documentation&lt;/a&gt;, &lt;a href="https://github.com/falcosecurity/falcosidekick" rel="noopener noreferrer"&gt;Falcosidekick repository&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;span.observer is an independent community blog, not affiliated with Dynatrace LLC, the Falco project or Sysdig. Trademarks belong to their owners. Tools change fast: check commands and options in the official documentation.&lt;/em&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://span.observer/en/falco-runtime-security-traces-logs/" rel="noopener noreferrer"&gt;span.observer&lt;/a&gt;. French version: &lt;a href="https://span.observer/fr/falco-securite-runtime-traces-logs/" rel="noopener noreferrer"&gt;https://span.observer/fr/falco-securite-runtime-traces-logs/&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ebpf</category>
      <category>falco</category>
      <category>falcosidekick</category>
      <category>kubernetes</category>
    </item>
    <item>
      <title>Fluent Bit Dynatrace: shipping Kubernetes logs step by step</title>
      <dc:creator>Span Observer</dc:creator>
      <pubDate>Thu, 03 Dec 2026 15:30:17 +0000</pubDate>
      <link>https://dev.to/spanobserver/fluent-bit-dynatrace-shipping-kubernetes-logs-step-by-step-38oc</link>
      <guid>https://dev.to/spanobserver/fluent-bit-dynatrace-shipping-kubernetes-logs-step-by-step-38oc</guid>
      <description>&lt;p&gt;Your Kubernetes platform already collects its logs with Fluent Bit, and the team does not want to switch agents to adopt Dynatrace. Good news: a Fluent Bit Dynatrace setup works without a dedicated plugin, using the standard HTTP output and the log ingest API.&lt;/p&gt;

&lt;p&gt;The logs still need to arrive enriched. A line without namespace, pod or cluster is almost useless on call: you cannot link it to the Kubernetes entity or to the trace that produced it, and MTTR grows accordingly.&lt;/p&gt;

&lt;p&gt;The goal of this tutorial: deploy Fluent Bit as a DaemonSet with Helm, rename Kubernetes metadata into the fields Dynatrace expects, send logs to API v2 and confirm they arrive with DQL. It applies to &lt;strong&gt;Dynatrace SaaS&lt;/strong&gt; and &lt;strong&gt;Dynatrace Managed&lt;/strong&gt;; only the ingest URL changes.&lt;/p&gt;

&lt;h2&gt;
  
  
  Fluent Bit Dynatrace or OneAgent: which one to choose
&lt;/h2&gt;

&lt;p&gt;If the Dynatrace Operator already runs with log collection, there is no reason to add Fluent Bit. Fluent Bit makes sense when it is already the team’s standard, when part of the logs also goes to another tool, or on clusters where OneAgent is not deployed. For the bigger picture, see &lt;a href="https://span.observer/en/openpipeline-logs-grail-ingestion/" rel="noopener noreferrer"&gt;the module on logs and OpenPipeline&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Prerequisites
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  A Kubernetes cluster with a containerd or CRI-O runtime (CRI log format), &lt;code&gt;kubectl&lt;/code&gt; and Helm 3.&lt;/li&gt;
&lt;li&gt;  A Dynatrace API token with the &lt;code&gt;logs.ingest&lt;/code&gt; scope (Ingest logs), and nothing more.&lt;/li&gt;
&lt;li&gt;  The ingest URL: &lt;code&gt;https://&amp;lt;env-id&amp;gt;.live.dynatrace.com/api/v2/logs/ingest&lt;/code&gt; on SaaS, &lt;code&gt;https://&amp;lt;domain&amp;gt;/e/&amp;lt;env-id&amp;gt;/api/v2/logs/ingest&lt;/code&gt; on Managed (or through an ActiveGate).&lt;/li&gt;
&lt;li&gt;  Read access to logs in Dynatrace for the check.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Step 1: store the token in a secret
&lt;/h2&gt;

&lt;p&gt;Never put the token in clear text in a versioned values file. Create a namespace and a secret:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;kubectl create namespace logging
kubectl -n logging create secret generic dynatrace-logs \
  --from-literal=DT_INGEST_TOKEN=&lt;span class="s2"&gt;"$DT_INGEST_TOKEN"&lt;/span&gt; \
  --from-literal=DT_INGEST_HOST=&lt;span class="s2"&gt;"abc12345.live.dynatrace.com"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;On Managed, &lt;code&gt;DT_INGEST_HOST&lt;/code&gt; takes your domain, and the &lt;code&gt;/e/&amp;lt;env-id&amp;gt;&lt;/code&gt; path goes into the output URI (step 3). For the usual 401 and 403 errors, keep &lt;a href="https://span.observer/en/dynatrace-api-token-troubleshooting/" rel="noopener noreferrer"&gt;API token troubleshooting&lt;/a&gt; at hand.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: read container logs and add Kubernetes context
&lt;/h2&gt;

&lt;p&gt;Create a &lt;code&gt;values-dynatrace.yaml&lt;/code&gt; file for the official &lt;code&gt;fluent/fluent-bit&lt;/code&gt; chart. The input reads container log files; the &lt;code&gt;kubernetes&lt;/code&gt; filter adds namespace, pod and container; the &lt;code&gt;modify&lt;/code&gt; filter renames those fields to the &lt;code&gt;k8s.*&lt;/code&gt; convention.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;envFrom&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;secretRef&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;dynatrace-logs&lt;/span&gt;
&lt;span class="na"&gt;env&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;K8S_CLUSTER_NAME&lt;/span&gt;
    &lt;span class="na"&gt;value&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"prod-eu-1"&lt;/span&gt;

&lt;span class="na"&gt;podAnnotations&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;dynatrace.com/inject&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"false"&lt;/span&gt;

&lt;span class="na"&gt;config&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;inputs&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;|&lt;/span&gt;
    &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;INPUT&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
        &lt;span class="s"&gt;Name              tail&lt;/span&gt;
        &lt;span class="s"&gt;Tag               kube.*&lt;/span&gt;
        &lt;span class="s"&gt;Path              /var/log/containers/*.log&lt;/span&gt;
        &lt;span class="s"&gt;multiline.parser  cri&lt;/span&gt;
        &lt;span class="s"&gt;DB                /var/log/flb_kube.db&lt;/span&gt;
        &lt;span class="s"&gt;Mem_Buf_Limit     20MB&lt;/span&gt;
        &lt;span class="s"&gt;Skip_Long_Lines   On&lt;/span&gt;

  &lt;span class="na"&gt;filters&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;|&lt;/span&gt;
    &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;FILTER&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
        &lt;span class="s"&gt;Name         kubernetes&lt;/span&gt;
        &lt;span class="s"&gt;Match        kube.*&lt;/span&gt;
        &lt;span class="s"&gt;Merge_Log    On&lt;/span&gt;
        &lt;span class="s"&gt;Keep_Log     Off&lt;/span&gt;
        &lt;span class="s"&gt;Labels       Off&lt;/span&gt;
        &lt;span class="s"&gt;Annotations  Off&lt;/span&gt;

    &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;FILTER&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
        &lt;span class="s"&gt;Name           nest&lt;/span&gt;
        &lt;span class="s"&gt;Match          kube.*&lt;/span&gt;
        &lt;span class="s"&gt;Operation      lift&lt;/span&gt;
        &lt;span class="s"&gt;Nested_under   kubernetes&lt;/span&gt;
        &lt;span class="s"&gt;Add_prefix     k_&lt;/span&gt;

    &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;FILTER&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
        &lt;span class="s"&gt;Name     modify&lt;/span&gt;
        &lt;span class="s"&gt;Match    kube.*&lt;/span&gt;
        &lt;span class="s"&gt;Rename   log               content&lt;/span&gt;
        &lt;span class="s"&gt;Rename   k_namespace_name  k8s.namespace.name&lt;/span&gt;
        &lt;span class="s"&gt;Rename   k_pod_name        k8s.pod.name&lt;/span&gt;
        &lt;span class="s"&gt;Rename   k_pod_id          k8s.pod.uid&lt;/span&gt;
        &lt;span class="s"&gt;Rename   k_container_name  k8s.container.name&lt;/span&gt;
        &lt;span class="s"&gt;Rename   k_host            k8s.node.name&lt;/span&gt;
        &lt;span class="s"&gt;Add      k8s.cluster.name  ${K8S_CLUSTER_NAME}&lt;/span&gt;
        &lt;span class="s"&gt;Remove_wildcard k_&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Critical lines: &lt;code&gt;multiline.parser cri&lt;/code&gt; stitches back lines split by the runtime; &lt;code&gt;Rename log content&lt;/code&gt; puts the message in the field Dynatrace shows as content; the &lt;code&gt;dynatrace.com/inject: "false"&lt;/code&gt; annotation stops the Operator from instrumenting Fluent Bit itself. If your applications log JSON, &lt;code&gt;Merge_Log On&lt;/code&gt; lifts its keys to the top level: make sure none of them is already called &lt;code&gt;content&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: configure the HTTP output to Dynatrace
&lt;/h2&gt;

&lt;p&gt;Add the output to the same file:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight conf"&gt;&lt;code&gt;  &lt;span class="n"&gt;outputs&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt;
    &lt;span class="k"&gt;[OUTPUT]&lt;/span&gt;
        &lt;span class="nc"&gt;Name&lt;/span&gt;              &lt;span class="n"&gt;http&lt;/span&gt;
        &lt;span class="nc"&gt;Match&lt;/span&gt;             &lt;span class="n"&gt;kube&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;
        &lt;span class="nc"&gt;Host&lt;/span&gt;              $&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="no"&gt;DT_INGEST_HOST&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
        &lt;span class="nc"&gt;Port&lt;/span&gt;              &lt;span class="mi"&gt;443&lt;/span&gt;
        &lt;span class="no"&gt;URI&lt;/span&gt;               &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;api&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;v2&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;logs&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;ingest&lt;/span&gt;
        &lt;span class="nc"&gt;Format&lt;/span&gt;            &lt;span class="n"&gt;json&lt;/span&gt;
        &lt;span class="n"&gt;json_date_key&lt;/span&gt;     &lt;span class="n"&gt;timestamp&lt;/span&gt;
        &lt;span class="n"&gt;json_date_format&lt;/span&gt;  &lt;span class="n"&gt;iso8601&lt;/span&gt;
        &lt;span class="nc"&gt;Header&lt;/span&gt;            &lt;span class="nc"&gt;Authorization&lt;/span&gt; &lt;span class="nc"&gt;Api&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Token&lt;/span&gt; $&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="no"&gt;DT_INGEST_TOKEN&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
        &lt;span class="na"&gt;Header            Content-Type application/json; charset&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;utf&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;8&lt;/span&gt;
        &lt;span class="n"&gt;allow_duplicated_headers&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;
        &lt;span class="n"&gt;tls&lt;/span&gt;               &lt;span class="nc"&gt;On&lt;/span&gt;
        &lt;span class="n"&gt;tls&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;verify&lt;/span&gt;        &lt;span class="nc"&gt;On&lt;/span&gt;
        &lt;span class="nc"&gt;Retry_Limit&lt;/span&gt;       &lt;span class="mi"&gt;5&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;Format json&lt;/code&gt; sends an array of records, which is what the API expects; &lt;code&gt;json_date_key timestamp&lt;/code&gt; gives each log its original timestamp. On Managed, replace the URI with &lt;code&gt;/e/&amp;lt;env-id&amp;gt;/api/v2/logs/ingest&lt;/code&gt;. &lt;code&gt;Retry_Limit&lt;/code&gt; caps retries when the endpoint is unavailable: beyond it, batches are dropped, which must show up in the metrics (see the check below).&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4: deploy with Helm
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;helm repo add fluent https://fluent.github.io/helm-charts
helm repo update
helm upgrade --install fluent-bit fluent/fluent-bit \
  -n logging -f values-dynatrace.yaml
kubectl -n logging rollout status daemonset/fluent-bit
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;One pod per node should reach the &lt;code&gt;Running&lt;/code&gt; state.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to check it works
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt; In the Fluent Bit logs, no &lt;code&gt;[error]&lt;/code&gt; line related to the HTTP output: &lt;code&gt;kubectl -n logging logs ds/fluent-bit | grep -iE "error|http_status"&lt;/code&gt;. A 204 or 200 status means the batch was accepted; a 401 or 403 points to the token.&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;In Dynatrace (SaaS on Grail), run:&lt;br&gt;
&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;fetch logs, from: -15m
| filter k8s.cluster.name == "prod-eu-1"
| summarize lines = count(), by: { k8s.namespace.name }
| sort lines desc
&lt;/code&gt;&lt;/pre&gt;


&lt;p&gt;Every active namespace should appear. On Managed, use the log viewer and filter on the same attribute.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Expose Fluent Bit’s internal metrics (port 2020, path &lt;code&gt;/api/v1/metrics/prometheus&lt;/code&gt;) and watch the output’s retry and drop counters: a non-zero drop count means lost logs.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Good practices
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  Filter early: a &lt;code&gt;grep&lt;/code&gt; filter on noisy namespaces costs less than processing after ingest.&lt;/li&gt;
&lt;li&gt;  Give the log pipeline itself an SLO (share of accepted batches) and alert on silence, as in &lt;a href="https://span.observer/en/dynatrace-log-ingestion-monitoring/" rel="noopener noreferrer"&gt;detecting silence and excess volume&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;  Add &lt;code&gt;trace_id&lt;/code&gt; and &lt;code&gt;span_id&lt;/code&gt; to application logs to correlate with traces (see &lt;a href="https://span.observer/en/opentelemetry-logs-dynatrace-trace-id/" rel="noopener noreferrer"&gt;linking logs and traces&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;  Enable on-disk buffering (&lt;code&gt;storage.type filesystem&lt;/code&gt;) if a network outage of several minutes is plausible.&lt;/li&gt;
&lt;li&gt;  Rotate the token and restrict it to the &lt;code&gt;logs.ingest&lt;/code&gt; scope only.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Frequently asked questions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Do I need an ActiveGate between Fluent Bit and Dynatrace?
&lt;/h3&gt;

&lt;p&gt;Not on SaaS: Fluent Bit can send directly to the environment. An environment ActiveGate is still useful when the cluster has no outbound Internet access, or on Managed to concentrate traffic; the URI then follows the ActiveGate format.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why do my logs arrive with the wrong timestamp?
&lt;/h3&gt;

&lt;p&gt;Check &lt;code&gt;json_date_key&lt;/code&gt; and &lt;code&gt;json_date_format&lt;/code&gt;: without them, Dynatrace uses the time of receipt. A drift of several minutes breaks correlation during an incident.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I keep Fluent Bit and OneAgent on the same cluster?
&lt;/h3&gt;

&lt;p&gt;Yes, but do not collect the same files on both sides: you would pay for the same logs twice. Split by namespace or disable log collection on one of them.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;With an HTTP output, a secret, a rename to &lt;code&gt;k8s.*&lt;/code&gt; fields and a DQL check, Fluent Bit feeds Dynatrace without switching agents. Add monitoring of the pipeline itself, and your Kubernetes logs become a reliable source for diagnosis.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;span.observer is an independent community blog, not affiliated with Dynatrace LLC. Dynatrace is a trademark of its owner. Options and fields change: check them in the &lt;a href="https://docs.fluentbit.io/manual/pipeline/outputs/http" rel="noopener noreferrer"&gt;Fluent Bit documentation&lt;/a&gt; and in the Dynatrace documentation.&lt;/em&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://span.observer/en/fluent-bit-dynatrace-kubernetes-log-shipping/" rel="noopener noreferrer"&gt;span.observer&lt;/a&gt;. French version: &lt;a href="https://span.observer/fr/fluent-bit-dynatrace-logs-kubernetes/" rel="noopener noreferrer"&gt;https://span.observer/fr/fluent-bit-dynatrace-logs-kubernetes/&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>dynatracemanaged</category>
      <category>dynatracesaas</category>
      <category>fluentbit</category>
      <category>helm</category>
    </item>
    <item>
      <title>Coroot open source observability: real scope and deployment</title>
      <dc:creator>Span Observer</dc:creator>
      <pubDate>Thu, 03 Dec 2026 13:30:14 +0000</pubDate>
      <link>https://dev.to/spanobserver/coroot-open-source-observability-real-scope-and-deployment-1453</link>
      <guid>https://dev.to/spanobserver/coroot-open-source-observability-real-scope-and-deployment-1453</guid>
      <description>&lt;p&gt;You run forty services, nobody has time to instrument them one by one, and the on-call question is simple: can we get a dependency map and useful metrics in the first week? That is the bet behind &lt;strong&gt;Coroot open source observability&lt;/strong&gt;, a platform built on eBPF. This article starts from that operating decision. What does the Community Edition really cover, and what will you have to host yourself?&lt;/p&gt;

&lt;p&gt;The facts come from the official documentation and the coroot/coroot repository, read on 14 November 2026. I did not deploy Coroot for this article. The commands below are the ones in the documentation, so read them again before you run them.&lt;/p&gt;

&lt;p&gt;If you first want to understand how eBPF watches the kernel, read &lt;a href="https://span.observer/en/ebpf-without-sidecar-service-mesh/" rel="noopener noreferrer"&gt;eBPF without sidecars&lt;/a&gt;. To place the signals relative to each other, see &lt;a href="https://span.observer/en/opentelemetry-vs-prometheus-comparison/" rel="noopener noreferrer"&gt;OpenTelemetry and Prometheus, two complementary tools&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Coroot open source observability: what the tool promises
&lt;/h2&gt;

&lt;p&gt;The repository describes Coroot as an observability and APM tool with AI-assisted root cause analysis. It brings together metrics, logs, traces, continuous profiling and SLO-based alerts. The repository licence is Apache 2.0: I read the LICENSE file. The GitHub page showed about 8,000 stars, a number that moves, so check it yourself.&lt;/p&gt;

&lt;p&gt;One question stays open. The repository page gave no date for the latest commit and listed no published release. So I cannot tell you whether the project is «&amp;nbsp;active&amp;nbsp;» on the day you read this. Browse the commit history before you commit to anything.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the agent collects without touching your code
&lt;/h2&gt;

&lt;p&gt;The heart of the system is &lt;code&gt;coroot-node-agent&lt;/code&gt;. It runs on every node and watches containers from the kernel. According to the documentation, it gathers metrics, logs, traces and profiles for all containers on the node. On Kubernetes, a DaemonSet puts it on each node.&lt;/p&gt;

&lt;p&gt;For the on-call engineer, the effect is concrete: a service nobody ever instrumented still shows up in the service map. The repository adds that eBPF can capture requests from legacy services. There is a price, though. The agent needs a Linux kernel 4.16 or newer. eBPF profiling relies on CO-RE, found from Ubuntu 20.10, Debian 11 or RHEL 8.2 onwards. Minikube is out, because Coroot does not support Docker-in-Docker.&lt;/p&gt;

&lt;p&gt;For the kernel and network side, &lt;a href="https://span.observer/en/ebpf-kubernetes-cilium-hubble-network-flows/" rel="noopener noreferrer"&gt;our article on eBPF and Cilium&lt;/a&gt; gives the background.&lt;/p&gt;

&lt;h2&gt;
  
  
  What you host: the real cost of free
&lt;/h2&gt;

&lt;p&gt;The Community Edition costs nothing, yet it does not run alone. The architecture page describes these building blocks:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;Prometheus&lt;/strong&gt; (or a compatible store such as VictoriaMetrics, Thanos or Mimir) for metrics. It must accept Remote Write. Coroot keeps its own on-disk cache, so Prometheus retention can stay short.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;ClickHouse&lt;/strong&gt; for logs, traces and profiles. The documentation says ClickHouse can also hold the metrics instead of Prometheus.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;SQLite&lt;/strong&gt; by default for configuration and incident history. To run several instances, the documentation requires PostgreSQL.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This is where the decision is made. You are not buying a tool, you are taking over two databases. Plan backups and capacity for ClickHouse before the first rollout. The documentation quotes a compression ratio of 10x or more for this data. That is the vendor’s indication, not a measurement on your workload.&lt;/p&gt;

&lt;h2&gt;
  
  
  Deploying Coroot, three ways
&lt;/h2&gt;

&lt;p&gt;The documentation offers several routes. These are the three most common.&lt;/p&gt;

&lt;h3&gt;
  
  
  On Kubernetes, with the operator
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt; Add the Coroot Helm repository.&lt;/li&gt;
&lt;li&gt; Install the operator, then the &lt;code&gt;coroot-ce&lt;/code&gt; chart. The setting &lt;code&gt;clickhouse.shards=2,clickhouse.replicas=2&lt;/code&gt; comes from the official example, so size it for your own cluster.&lt;/li&gt;
&lt;li&gt; Open the port with &lt;code&gt;kubectl port-forward&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkdulh786t69d3g9ma1do.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkdulh786t69d3g9ma1do.png" alt="Helm commands from the Coroot documentation: add the repository, install the operator and the coroot-ce chart, then kubectl port-forward on port 8080" width="800" height="239"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  With Docker Compose
&lt;/h3&gt;

&lt;p&gt;The repository ships a &lt;code&gt;deploy/docker-compose.yaml&lt;/code&gt; file, and the documentation suggests reading it before you run it. It is the quickest way to try Coroot. It suits production poorly unless you design durable storage separately.&lt;/p&gt;

&lt;h3&gt;
  
  
  On virtual machines
&lt;/h3&gt;

&lt;p&gt;One script installs the Coroot server. You give it the Prometheus address, the ClickHouse address and the refresh interval. A second script installs the agent on every node, pointing at the collector on port 8080.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fylrisn2tr7kdjos8pdlo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fylrisn2tr7kdjos8pdlo.png" alt="Two install scripts from the Coroot documentation: the server with BOOTSTRAP\_PROMETHEUS\_URL and BOOTSTRAP\_CLICKHOUSE\_ADDRESS, then the agent with COLLECTOR\_ENDPOINT" width="800" height="344"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;On Docker Swarm, one limit matters: Swarm does not support privileged containers. You must therefore start the agent by hand on each node, with &lt;code&gt;--privileged&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;On first access, Coroot asks you to set the admin password. To stop someone else from setting it before you, define it up front with the &lt;code&gt;AUTH_BOOTSTRAP_ADMIN_PASSWORD&lt;/code&gt; variable.&lt;/p&gt;

&lt;h2&gt;
  
  
  OpenTelemetry: when eBPF is not enough
&lt;/h2&gt;

&lt;p&gt;eBPF shows the shape of the exchanges. It knows nothing of your business logic. For application attributes, instrument with OpenTelemetry. Coroot accepts OTLP over HTTP for logs and traces, either straight from the SDKs or through an OpenTelemetry Collector. The documentation has guides for Go, Java and Python.&lt;/p&gt;

&lt;p&gt;Mind the limit: the architecture page mentions OTLP over HTTP, not gRPC. If your Collector exports over gRPC, check compatibility before wiring it in. Metrics travel through Prometheus or the agent’s Remote Write.&lt;/p&gt;

&lt;p&gt;Continuous profiling works without configuration in most cases. For better symbols, the documentation asks for one JVM flag and two Node.js options.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3mdikadt6csau62dqpy1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3mdikadt6csau62dqpy1.png" alt="Flags from the Coroot documentation for eBPF profiling: PreserveFramePointer for the JVM, perf-basic-prof options for Node.js, and the AUTH\_BOOTSTRAP\_ADMIN\_PASSWORD variable" width="800" height="281"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To compare with dedicated profilers, read &lt;a href="https://span.observer/en/continuous-profiling-pyroscope-parca/" rel="noopener noreferrer"&gt;continuous profiling with Pyroscope or Parca&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Community or Enterprise: where the line sits
&lt;/h2&gt;

&lt;p&gt;The documentation gives precise markers, not a full grid. In the Community Edition, access rests on three fixed roles: Admin, Editor and Viewer, whose permissions cannot be customised. Granular roles belong to the Enterprise Edition, advertised from 1 dollar per CPU core per month. Enterprise also includes 24/7 support from the Coroot team.&lt;/p&gt;

&lt;p&gt;I found no exhaustive feature comparison table. Any other differences are therefore unverified here. Ask the vendor before you build your business case.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to check that it works
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt; Open the interface on port 8080 and set the admin password.&lt;/li&gt;
&lt;li&gt; Wait a few minutes: discovered applications should appear in the service map.&lt;/li&gt;
&lt;li&gt; Check that every node runs its agent (one DaemonSet pod per node on Kubernetes).&lt;/li&gt;
&lt;li&gt; Open an application and look at its SLOs. According to the documentation, Coroot checks SLO compliance every minute.&lt;/li&gt;
&lt;li&gt; Trigger a controlled error on a test service and confirm that it shows up.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Best practices
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  Try it on a pre-production cluster and measure the agent overhead yourself: the documentation publishes its own benchmarks, not yours.&lt;/li&gt;
&lt;li&gt;  Size and back up ClickHouse before you connect production.&lt;/li&gt;
&lt;li&gt;  Set the admin password at install time and live with the three Community Edition roles.&lt;/li&gt;
&lt;li&gt;  Keep OpenTelemetry for the services where you need business context.&lt;/li&gt;
&lt;li&gt;  Record the date you checked the licence and the repository activity.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Frequently asked questions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Is Coroot really open source?
&lt;/h3&gt;

&lt;p&gt;The coroot/coroot repository carries an Apache 2.0 licence, read in the LICENSE file. The Enterprise Edition is a separate paid offer.&lt;/p&gt;

&lt;h3&gt;
  
  
  Do I need to instrument applications with OpenTelemetry?
&lt;/h3&gt;

&lt;p&gt;Not to get started: the eBPF agent already collects metrics, logs, traces and profiles. OpenTelemetry adds your business attributes to traces.&lt;/p&gt;

&lt;h3&gt;
  
  
  Does Coroot replace Dynatrace?
&lt;/h3&gt;

&lt;p&gt;This article covers one third-party open source tool and compares no features. For Dynatrace, see docs.dynatrace.com and keep SaaS and Managed apart. For another open tool, see &lt;a href="https://span.observer/en/openobserve-open-source-observability-platform-rust/" rel="noopener noreferrer"&gt;OpenObserve&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Coroot answers a precise need: see quickly, without instrumenting, using open tools. In return, you operate Prometheus and ClickHouse. Decide with those two facts in hand. Sources: &lt;a href="https://docs.coroot.com/" rel="noopener noreferrer"&gt;Coroot documentation&lt;/a&gt; and the &lt;a href="https://github.com/coroot/coroot" rel="noopener noreferrer"&gt;coroot/coroot repository&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;span.observer is an independent community blog, not affiliated with Dynatrace LLC or Coroot, Inc. Trademarks belong to their owners. Tools change quickly: check commands and options against the official documentation.&lt;/em&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://span.observer/en/coroot-open-source-observability/" rel="noopener noreferrer"&gt;span.observer&lt;/a&gt;. French version: &lt;a href="https://span.observer/fr/coroot-observabilite-open-source/" rel="noopener noreferrer"&gt;https://span.observer/fr/coroot-observabilite-open-source/&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>clickhouse</category>
      <category>continuousprofiling</category>
      <category>coroot</category>
      <category>ebpf</category>
    </item>
    <item>
      <title>Karpenter metrics: observing Kubernetes node provisioning</title>
      <dc:creator>Span Observer</dc:creator>
      <pubDate>Thu, 03 Dec 2026 11:30:20 +0000</pubDate>
      <link>https://dev.to/spanobserver/karpenter-metrics-observing-kubernetes-node-provisioning-545c</link>
      <guid>https://dev.to/spanobserver/karpenter-metrics-observing-kubernetes-node-provisioning-545c</guid>
      <description>&lt;p&gt;A deployment scales to twenty replicas, and ten pods sit in &lt;code&gt;Pending&lt;/code&gt; for four minutes. Is Karpenter slow, held back by a limit, or refused by the cloud provider? The &lt;strong&gt;Karpenter metrics&lt;/strong&gt; separate these three hypotheses, as long as you read them in the right order. This article starts from that operating decision and builds a diagnosis path from it.&lt;/p&gt;

&lt;p&gt;The metric names come from the &lt;a href="https://karpenter.sh/docs/reference/metrics/" rel="noopener noreferrer"&gt;official Karpenter reference&lt;/a&gt; (v1.15 docs at the time of writing). The configuration and query examples were written for this article and were not run on a cluster: test them outside production. Karpenter exposes Prometheus metrics; the Dynatrace SaaS part only covers delivering the data.&lt;/p&gt;

&lt;p&gt;If Prometheus collection into Dynatrace is new to you, read &lt;a href="https://span.observer/en/prometheus-metrics-dynatrace-kubernetes/" rel="noopener noreferrer"&gt;the article on Prometheus and Dynatrace in Kubernetes&lt;/a&gt; first. Here, we assume the pipeline already exists.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Karpenter decides, and what it lets you see
&lt;/h2&gt;

&lt;p&gt;Karpenter watches unschedulable pods, picks an instance type, creates a &lt;code&gt;NodeClaim&lt;/code&gt;, then waits for the node to join the cluster. Later, it consolidates or replaces nodes. Each step has its own family of metrics, prefixed with &lt;code&gt;karpenter_&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;The documentation groups them into sections: scheduler, nodeclaims, nodes, pods, nodepools, voluntary disruption, cloudprovider, interruption and cluster. Keep this logic in mind: &lt;strong&gt;a provisioning failure is read along the chain&lt;/strong&gt;, from the queue to the cloud provider.&lt;/p&gt;

&lt;h3&gt;
  
  
  The entry point: the metrics port
&lt;/h3&gt;

&lt;p&gt;According to the settings page, &lt;code&gt;METRICS_PORT&lt;/code&gt; defaults to 8080 (the &lt;code&gt;--metrics-port&lt;/code&gt; option). The page does not describe the Service or target discovery: that depends on your chart or manifests. Check it on your side before writing the scrape target.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: get the Karpenter metrics into Dynatrace
&lt;/h2&gt;

&lt;p&gt;The simplest route is an OpenTelemetry Collector with the &lt;code&gt;prometheus&lt;/code&gt; receiver, which scrapes Karpenter and exports over OTLP. The configuration below targets a Service named &lt;code&gt;karpenter&lt;/code&gt; in the &lt;code&gt;kube-system&lt;/code&gt; namespace: adapt it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmsc982esfobaachentvo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmsc982esfobaachentvo.png" alt="OpenTelemetry Collector configuration with a prometheus receiver targeting Karpenter and an OTLP export to Dynatrace" width="800" height="679"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Three lines matter. A &lt;code&gt;scrape_interval&lt;/code&gt; of 30 seconds is enough for provisioning that takes tens of seconds. The &lt;code&gt;cumulativetodelta&lt;/code&gt; processor converts cumulative counters and histograms into deltas; I did not verify here whether it is mandatory for every metric type on the Dynatrace side, so check the OTLP ingest documentation. The token comes from an environment variable, never in clear text in the file.&lt;/p&gt;

&lt;p&gt;Once data arrives, one check is enough: the query &lt;code&gt;timeseries max(karpenter_scheduler_queue_depth)&lt;/code&gt; should return a series. If not, look at the Collector logs first.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: the queue, the first signal of waiting pods
&lt;/h2&gt;

&lt;p&gt;Start with the metric closest to your pain. &lt;code&gt;karpenter_scheduler_queue_depth&lt;/code&gt; counts the pods waiting for a decision. &lt;code&gt;karpenter_scheduler_unschedulable_pods_count&lt;/code&gt; gives the number of unschedulable pods.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  Empty queue, pods still &lt;code&gt;Pending&lt;/code&gt;: Karpenter is not the problem; a pod constraint is (affinity, taint without toleration, zonal PVC).&lt;/li&gt;
&lt;li&gt;  Non-empty queue that drains quickly: Karpenter is working normally.&lt;/li&gt;
&lt;li&gt;  Non-empty queue that does not go down: move on to step 3.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;To measure the wait users actually see, &lt;code&gt;karpenter_pods_startup_duration_seconds&lt;/code&gt; covers the time from pod creation to pod start. It is a good base for a startup SLI. To set an SLO on it, see &lt;a href="https://span.observer/en/slo-burn-rate-alerts-dynatrace/" rel="noopener noreferrer"&gt;burn-rate alerts on SLOs&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: a NodePool limit or a cloud refusal
&lt;/h2&gt;

&lt;p&gt;Two common causes block node creation. The first is a limit you set yourself: &lt;code&gt;karpenter_nodepools_usage&lt;/code&gt; against &lt;code&gt;karpenter_nodepools_limit&lt;/code&gt; shows the remaining headroom per resource. The second is a provider refusal: &lt;code&gt;karpenter_cloudprovider_instance_launch_failures_total&lt;/code&gt; counts failed launches, with the reason as a label, and &lt;code&gt;karpenter_cloudprovider_errors_total&lt;/code&gt; counts call errors.&lt;/p&gt;

&lt;p&gt;Here is a NodePool with an explicit limit. A value set too low turns a load spike into waiting pods, with no error on the cloud side at all.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdq0eylbnijghk6nxmbwm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdq0eylbnijghk6nxmbwm.png" alt="Karpenter NodePool manifest with CPU and memory limits and disruption budgets" width="800" height="512"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The disruption budgets in this manifest matter for the next step. For now, the useful part is the &lt;code&gt;limits&lt;/code&gt; field: compare it with &lt;code&gt;karpenter_nodepools_usage&lt;/code&gt; to see what percentage you are at.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4: watch creations, terminations and consolidation
&lt;/h2&gt;

&lt;p&gt;A cluster that creates and deletes nodes in a loop costs money and worries application teams. Four counters help you see it: &lt;code&gt;karpenter_nodeclaims_created_total&lt;/code&gt;, &lt;code&gt;karpenter_nodes_created_total&lt;/code&gt;, &lt;code&gt;karpenter_nodes_terminated_total&lt;/code&gt; and &lt;code&gt;karpenter_voluntary_disruption_decisions_total&lt;/code&gt;. The last one carries the decision, the reason and the consolidation type.&lt;/p&gt;

&lt;p&gt;Two more families complete the picture. &lt;code&gt;karpenter_nodepools_allowed_disruptions&lt;/code&gt; shows how many nodes may be disrupted at once, by reason. &lt;code&gt;karpenter_pods_drained_total&lt;/code&gt; counts the pods evicted when nodes shut down. If you see many consolidation decisions at a fixed hour, compare them with your deployment windows.&lt;/p&gt;

&lt;p&gt;To link those nodes to the affected services, the topology query from &lt;a href="https://span.observer/en/kubernetes-topology-dql/" rel="noopener noreferrer"&gt;the article on Kubernetes topology in DQL&lt;/a&gt; takes over. For money, &lt;code&gt;karpenter_nodepools_cost_total&lt;/code&gt; gives an estimate of the cost as Karpenter sees it, which the documentation describes as not authoritative for billing. For reliable cost tracking, see &lt;a href="https://span.observer/en/opencost-kubernetes-cost-observability/" rel="noopener noreferrer"&gt;OpenCost&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbxfimaghzybbfoz22sy3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbxfimaghzybbfoz22sy3.png" alt="Three DQL timeseries queries on queue depth, failed launches and NodeClaims created per NodePool" width="800" height="323"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Best practices for Karpenter metrics
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  Alert on symptoms: pods waiting for more than N minutes, not every isolated cloud error.&lt;/li&gt;
&lt;li&gt;  Keep the useful labels (&lt;code&gt;nodepool&lt;/code&gt;, &lt;code&gt;zone&lt;/code&gt;, &lt;code&gt;capacity_type&lt;/code&gt;) and drop the rest to control cardinality.&lt;/li&gt;
&lt;li&gt;  Compare failed launches with the volume of NodeClaims created: a rate matters more than a total.&lt;/li&gt;
&lt;li&gt;  Cross-check Karpenter decisions with cluster events, as in &lt;a href="https://span.observer/en/kubernetes-events-read-keep-alert/" rel="noopener noreferrer"&gt;the article on Kubernetes events&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;  If you also run a pod autoscaler such as KEDA, keep track of who creates pods and who creates nodes (&lt;a href="https://span.observer/en/keda-kubernetes-autoscaling-guide/" rel="noopener noreferrer"&gt;KEDA&lt;/a&gt;).&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Frequently asked questions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Do Karpenter metrics work outside AWS?
&lt;/h3&gt;

&lt;p&gt;The scheduler, nodeclaims, nodes, pods and nodepools sections are generic. The «&amp;nbsp;interruption&amp;nbsp;» (SQS queue) and «&amp;nbsp;EC2NodeClasses&amp;nbsp;» sections are specific to the AWS provider. For another provider, I did not verify which metrics are exposed: read your provider’s page.&lt;/p&gt;

&lt;h3&gt;
  
  
  Do I need a Collector, or can Dynatrace scrape Prometheus directly?
&lt;/h3&gt;

&lt;p&gt;This article uses an OpenTelemetry Collector, described in the configuration. Other paths exist (the Prometheus extension of the Operator, for example), but I did not test them here.&lt;/p&gt;

&lt;h3&gt;
  
  
  Which metric should I watch first?
&lt;/h3&gt;

&lt;p&gt;Queue depth, &lt;code&gt;karpenter_scheduler_queue_depth&lt;/code&gt;, then the cloud’s failed launches. This pair separates pods blocked by Karpenter from those blocked by their own constraints.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Observing Karpenter means following a chain: queue, NodePool limits, cloud response, then consolidation. A single metric says almost nothing; the sequence says where it blocks. To complete the alerting side, reread &lt;a href="https://span.observer/en/kubernetes-alerts-nodes-pods-quotas/" rel="noopener noreferrer"&gt;the Kubernetes alerts on nodes, pods and quotas&lt;/a&gt;. The full list of metrics is in the &lt;a href="https://karpenter.sh/docs/reference/metrics/" rel="noopener noreferrer"&gt;official reference&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Independent blog, not affiliated with Dynatrace LLC. Dynatrace is a trademark of Dynatrace LLC. Karpenter is a separate project, unrelated to Dynatrace.&lt;/em&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://span.observer/en/karpenter-metrics-node-provisioning/" rel="noopener noreferrer"&gt;span.observer&lt;/a&gt;. French version: &lt;a href="https://span.observer/fr/metriques-karpenter-provisionnement-noeuds/" rel="noopener noreferrer"&gt;https://span.observer/fr/metriques-karpenter-provisionnement-noeuds/&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>autoscaling</category>
      <category>collector</category>
      <category>dynatracesaas</category>
      <category>karpenter</category>
    </item>
    <item>
      <title>Datadog vs Dynatrace? A practical Dynatrace vs Datadog comparison for SRE teams</title>
      <dc:creator>Span Observer</dc:creator>
      <pubDate>Thu, 03 Dec 2026 07:30:17 +0000</pubDate>
      <link>https://dev.to/spanobserver/datadog-vs-dynatrace-a-practical-dynatrace-vs-datadog-comparison-for-sre-teams-18f3</link>
      <guid>https://dev.to/spanobserver/datadog-vs-dynatrace-a-practical-dynatrace-vs-datadog-comparison-for-sre-teams-18f3</guid>
      <description>&lt;p&gt;The observability contract is up for renewal and the question is back on the agenda: Dynatrace vs Datadog (or Datadog vs Dynatrace, depending on who asks), which one serves the SRE team better? Both platforms cover APM, infrastructure, logs, Kubernetes and user experience. In a demo, they look very much alike.&lt;/p&gt;

&lt;p&gt;The risk is deciding on a gut feeling or on a feature checklist. What matters to an on-call team is measured differently: time to find the cause of an incident, effort to instrument a new service, how readable the bill is, how good the SLOs are.&lt;/p&gt;

&lt;p&gt;The goal of this article: provide a set of verifiable criteria and an OpenTelemetry proof of concept that sends exactly the same data to both platforms, so you compare on evidence. This blog is mostly about Dynatrace, so we have taken care to stay factual, source every point and quote no prices. On the Dynatrace side, the comparison targets &lt;strong&gt;Dynatrace SaaS&lt;/strong&gt;; remarks on &lt;strong&gt;Managed&lt;/strong&gt; are flagged.&lt;/p&gt;

&lt;h2&gt;
  
  
  Dynatrace vs Datadog: the fundamental differences
&lt;/h2&gt;

&lt;p&gt;The two tools follow different, publicly documented approaches. Summarising them honestly helps frame the right test hypotheses.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Criterion&lt;/th&gt;
&lt;th&gt;Dynatrace&lt;/th&gt;
&lt;th&gt;Datadog&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Collection&lt;/td&gt;
&lt;td&gt;OneAgent (automatic instrumentation) and Dynatrace Operator on Kubernetes; native OTLP ingest&lt;/td&gt;
&lt;td&gt;Datadog Agent, deployed on Kubernetes with Helm or the Datadog Operator; OTLP ingest in the Agent&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Correlation&lt;/td&gt;
&lt;td&gt;Topology model (Smartscape) and the Davis root cause engine&lt;/td&gt;
&lt;td&gt;Correlation through unified tags (&lt;code&gt;service&lt;/code&gt;, &lt;code&gt;env&lt;/code&gt;, &lt;code&gt;version&lt;/code&gt;) and analysis features in each product&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Query language&lt;/td&gt;
&lt;td&gt;DQL on Grail storage&lt;/td&gt;
&lt;td&gt;Search and query languages specific to each product (metrics, logs, traces)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Commercial model&lt;/td&gt;
&lt;td&gt;A single commitment drawn down per capability (DPS)&lt;/td&gt;
&lt;td&gt;Per-product pricing, each with its own units; see the official pricing page&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Hosting&lt;/td&gt;
&lt;td&gt;SaaS, or Managed (self-hosted) for sovereignty constraints&lt;/td&gt;
&lt;td&gt;SaaS, with several regions («&amp;nbsp;sites&amp;nbsp;») to choose from&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;For prices, refer to the official pages and the quotes you receive: they depend on volume and contract, and change often. For a similar comparison method, see &lt;a href="https://span.observer/en/dynatrace-vs-grafana-slo-comparison/" rel="noopener noreferrer"&gt;the comparison of SLOs in Dynatrace, Grafana and Prometheus&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Proof of concept prerequisites
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  A trial environment on each platform (a Dynatrace SaaS tenant, a Datadog organisation in the region you need).&lt;/li&gt;
&lt;li&gt;  A test Kubernetes cluster with a demo application instrumented with OpenTelemetry.&lt;/li&gt;
&lt;li&gt;  An OpenTelemetry Collector (contrib distribution or the Dynatrace one), as in &lt;a href="https://span.observer/en/opentelemetry-collector-kubernetes-dynatrace/" rel="noopener noreferrer"&gt;deploying the Collector on Kubernetes&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;  A Dynatrace API token with the OTLP ingest scopes (&lt;code&gt;openTelemetryTrace.ingest&lt;/code&gt;, &lt;code&gt;metrics.ingest&lt;/code&gt;, &lt;code&gt;logs.ingest&lt;/code&gt;) and a Datadog API key for the Agent.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Step 1: send the same data to both platforms
&lt;/h2&gt;

&lt;p&gt;The comparison is only worth something if the input data is identical. The Collector therefore duplicates each pipeline to two exporters: the Dynatrace OTLP endpoint and the OTLP receiver of the Datadog Agent running in the cluster.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;receivers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;otlp&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;protocols&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;grpc&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="na"&gt;endpoint&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;0.0.0.0:4317&lt;/span&gt;
      &lt;span class="na"&gt;http&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="na"&gt;endpoint&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;0.0.0.0:4318&lt;/span&gt;

&lt;span class="na"&gt;processors&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;batch&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="na"&gt;exporters&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;otlphttp/dynatrace&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;endpoint&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;https://${env:DT_ENV_ID}.live.dynatrace.com/api/v2/otlp&lt;/span&gt;
    &lt;span class="na"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;Authorization&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Api-Token ${env:DT_API_TOKEN}"&lt;/span&gt;
  &lt;span class="na"&gt;otlp/datadog&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;endpoint&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;datadog-agent.datadog.svc.cluster.local:4317&lt;/span&gt;
    &lt;span class="na"&gt;tls&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;insecure&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;

&lt;span class="na"&gt;service&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;pipelines&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;traces&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;receivers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;otlp&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
      &lt;span class="na"&gt;processors&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;batch&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
      &lt;span class="na"&gt;exporters&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;otlphttp/dynatrace&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;otlp/datadog&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="na"&gt;metrics&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;receivers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;otlp&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
      &lt;span class="na"&gt;processors&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;batch&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
      &lt;span class="na"&gt;exporters&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;otlphttp/dynatrace&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;otlp/datadog&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="na"&gt;logs&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;receivers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;otlp&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
      &lt;span class="na"&gt;processors&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;batch&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
      &lt;span class="na"&gt;exporters&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;otlphttp/dynatrace&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;otlp/datadog&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Critical lines: the &lt;code&gt;Authorization&lt;/code&gt; header must start with &lt;code&gt;Api-Token&lt;/code&gt; followed by a space; on Managed, the URL becomes &lt;code&gt;https://&amp;lt;domain&amp;gt;/e/&amp;lt;env-id&amp;gt;/api/v2/otlp&lt;/code&gt;. The &lt;code&gt;tls.insecure&lt;/code&gt; setting is only acceptable for traffic inside the cluster.&lt;/p&gt;

&lt;p&gt;On the Datadog side, enable OTLP ingest in the Agent, for example with these documented environment variables:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight conf"&gt;&lt;code&gt;&lt;span class="na"&gt;DD_OTLP_CONFIG_RECEIVER_PROTOCOLS_GRPC_ENDPOINT&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mf"&gt;0.0&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="mf"&gt;0.0&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;4317&lt;/span&gt;
&lt;span class="na"&gt;DD_OTLP_CONFIG_RECEIVER_PROTOCOLS_HTTP_ENDPOINT&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mf"&gt;0.0&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="mf"&gt;0.0&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;4318&lt;/span&gt;
&lt;span class="na"&gt;DD_OTLP_CONFIG_LOGS_ENABLED&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then also install each tool’s native agent (Dynatrace Operator, Datadog Agent with its integrations) on part of the nodes: automatic instrumentation is part of what you are evaluating.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: define measurable criteria
&lt;/h2&gt;

&lt;p&gt;Score each platform from 1 to 5 on quantified criteria, with the supporting evidence (screenshot, query, timed duration):&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; &lt;strong&gt;Time to diagnosis&lt;/strong&gt;: inject three faults (slow dependency, OOMKilled pod, HTTP 500 after a deployment) and time how long it takes to reach the cause, by someone who does not know the scenario.&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;Instrumentation effort&lt;/strong&gt;: number of steps and configuration lines for a new service to appear with correlated traces, metrics and logs.&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;SLOs&lt;/strong&gt;: time to create an availability SLO and a burn rate alert for that service, as described in &lt;a href="https://span.observer/en/slo-burn-rate-alerts-dynatrace/" rel="noopener noreferrer"&gt;burn rate alerts&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;Queries&lt;/strong&gt;: write the same question («&amp;nbsp;the ten slowest endpoints, by version&amp;nbsp;») in DQL and in the Datadog query languages, and rate readability.&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;Predictable cost&lt;/strong&gt;: being able to estimate next month’s bill from the usage screens.&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;Constraints&lt;/strong&gt;: hosting region, sovereignty, self-hosting requirements (only Dynatrace offers a Managed option).&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Step 3: run the Datadog vs Dynatrace failure scenarios
&lt;/h2&gt;

&lt;p&gt;An example of a simple, reversible fault: lower a pod’s memory limit until it is OOMKilled.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;kubectl -n demo &lt;span class="nb"&gt;set&lt;/span&gt; resources deployment/checkout --limits=memory=64Mi
kubectl -n demo get pods -w
&lt;span class="c"&gt;# return to the initial state&lt;/span&gt;
kubectl -n demo rollout undo deployment/checkout
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In Dynatrace, check whether a problem is opened and which cause it suggests; in Datadog, whether a monitor fires and how many clicks it takes to reach the Kubernetes event. Also note the noise: how many alerts for a single fault.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to check it works
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  On the Dynatrace side, the DQL query &lt;code&gt;fetch spans | filter service.name == "checkout" | summarize count()&lt;/code&gt; returns a volume comparable to what Datadog shows over the same period.&lt;/li&gt;
&lt;li&gt;  On the Datadog side, the &lt;code&gt;checkout&lt;/code&gt; service appears in the APM catalogue with its traces.&lt;/li&gt;
&lt;li&gt;  The Collector logs show no export errors (&lt;code&gt;kubectl logs deploy/otel-collector | grep -i error&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;  Volume differences stay small; if not, check sampling on each side before comparing.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Good practices
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  Fix the scorecard before the proof of concept and get it signed off: you avoid picking criteria that confirm a preference.&lt;/li&gt;
&lt;li&gt;  Have on-call engineers run the tests, not only the platform team.&lt;/li&gt;
&lt;li&gt;  Keep OpenTelemetry as the foundation: instrumentation stays portable whatever the final choice.&lt;/li&gt;
&lt;li&gt;  Ask for written quotes on the same forecast volume, and date them.&lt;/li&gt;
&lt;li&gt;  Write a blameless report: what worked, what got stuck, without naming a «&amp;nbsp;loser&amp;nbsp;».&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Frequently asked questions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Which is cheaper, Dynatrace or Datadog?
&lt;/h3&gt;

&lt;p&gt;There is no general answer: the two pricing models do not use the same units, and the outcome depends on your volumes. Compare two written quotes on the same scope and project them over three years.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can we keep both tools?
&lt;/h3&gt;

&lt;p&gt;Technically yes, thanks to the Collector duplicating the flows, but it doubles the operational effort and often the bill. It is reasonable during a transition, rarely as a target.&lt;/p&gt;

&lt;h3&gt;
  
  
  What if we need self-hosting?
&lt;/h3&gt;

&lt;p&gt;Dynatrace Managed lets you host the platform in your own data centre; Datadog is offered as SaaS. If sovereignty is a hard requirement, it settles the question before anything else.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Dynatrace and Datadog are both mature platforms; the right choice depends on your context, not on a general ranking. A proof of concept fed by the same Collector, injected faults and a measurable scorecard give you a decision you can defend to the team and to management alike.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;span.observer is an independent community blog, not affiliated with Dynatrace LLC or Datadog, Inc. Dynatrace and Datadog are trademarks of their respective owners. Features and offers change: check them in each vendor’s official documentation (&lt;a href="https://docs.dynatrace.com/docs" rel="noopener noreferrer"&gt;Dynatrace&lt;/a&gt;, &lt;a href="https://docs.datadoghq.com/opentelemetry/" rel="noopener noreferrer"&gt;Datadog&lt;/a&gt;).&lt;/em&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://span.observer/en/dynatrace-vs-datadog-comparison-sre/" rel="noopener noreferrer"&gt;span.observer&lt;/a&gt;. French version: &lt;a href="https://span.observer/fr/dynatrace-vs-datadog-comparatif-sre/" rel="noopener noreferrer"&gt;https://span.observer/fr/dynatrace-vs-datadog-comparatif-sre/&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>collector</category>
      <category>comparison</category>
      <category>datadog</category>
      <category>datadogvsdynatrace</category>
    </item>
    <item>
      <title>Dynatrace DPS licensing: pricing model, rate card and consumption</title>
      <dc:creator>Span Observer</dc:creator>
      <pubDate>Wed, 02 Dec 2026 21:30:18 +0000</pubDate>
      <link>https://dev.to/spanobserver/dynatrace-dps-licensing-pricing-model-rate-card-and-consumption-271n</link>
      <guid>https://dev.to/spanobserver/dynatrace-dps-licensing-pricing-model-rate-card-and-consumption-271n</guid>
      <description>&lt;p&gt;The quarter is closing and finance asks a simple question: why has 70% of the annual observability commitment gone after six months? With Dynatrace DPS licensing (Dynatrace Platform Subscription), the answer exists, but it is spread across several capabilities, several environments and several teams.&lt;/p&gt;

&lt;p&gt;Without a regular review, consumption drifts quietly: a test namespace monitored in Full-Stack, debug logs retained for too long, a dashboard re-running heavy queries every minute. On the day the commitment runs out, the conversation turns into a budget argument rather than a technical one.&lt;/p&gt;

&lt;p&gt;The goal of this tutorial: read DPS consumption per capability, query it with DQL and the API, allocate it to teams and raise an alert before you overrun. It applies to &lt;strong&gt;Dynatrace SaaS&lt;/strong&gt; and, for the account API part, to &lt;strong&gt;Dynatrace Managed&lt;/strong&gt; under a DPS contract; the differences are flagged along the way.&lt;/p&gt;

&lt;h2&gt;
  
  
  Dynatrace DPS licensing: the model in three ideas
&lt;/h2&gt;

&lt;p&gt;DPS replaces the older separate units (host units, DEM units, DDUs) with a single financial commitment that is drawn down as you use the platform. Three ideas are enough to reason about it:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;An annual commitment&lt;/strong&gt;: a contractual amount, reduced by the actual consumption of every capability.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Priced capabilities&lt;/strong&gt;: each capability (for example Full-Stack Monitoring, Infrastructure Monitoring, log ingest, retention and queries) has its own unit of measure and price, defined in your contract’s rate card.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Fine-grained measurement&lt;/strong&gt;: usage is recorded at regular intervals, so you can follow the trend day by day.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The practical consequence: you no longer manage a number of hosts, you manage a burn rate. The right question becomes «&amp;nbsp;at this pace, when will the commitment run out?&amp;nbsp;».&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Family&lt;/th&gt;
&lt;th&gt;What drives consumption&lt;/th&gt;
&lt;th&gt;SRE lever&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Host and container monitoring&lt;/td&gt;
&lt;td&gt;Number of hosts, memory, monitoring mode&lt;/td&gt;
&lt;td&gt;Choose Full-Stack or Infrastructure by criticality&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Logs, events, metrics&lt;/td&gt;
&lt;td&gt;Ingested volume, retention period&lt;/td&gt;
&lt;td&gt;Filter at ingest, tune retention per bucket&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Queries (Grail)&lt;/td&gt;
&lt;td&gt;Volume of data scanned&lt;/td&gt;
&lt;td&gt;Narrow time windows and fields&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;User experience&lt;/td&gt;
&lt;td&gt;Sessions, replays, synthetic monitors&lt;/td&gt;
&lt;td&gt;Adjust capture rates and frequencies&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The exact capability names and units are in your contract: always start from that list rather than from an assumption.&lt;/p&gt;

&lt;h2&gt;
  
  
  Dynatrace DPS pricing: rate card, calculation and DPS vs classic
&lt;/h2&gt;

&lt;p&gt;This article gives no prices: they depend on your contract. What the Dynatrace documentation describes is the calculation. You sign an agreement, typically for 1 to 3 years, with a minimum annual commitment. Each capability you use accrues consumption against that commitment, priced by the rate card, which sets a price per unit for each capability. Once the annual commitment is reached, you can keep using Dynatrace on demand, with no overage premiums.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Dynatrace DPS vs classic licensing.&lt;/strong&gt; Classic licensing counts separate monitoring units: host units for OneAgent-monitored hosts, Davis data units (DDUs) for custom metrics, traces, log monitoring and custom events, DEM units for Synthetic Monitoring, Real User Monitoring and Session Replay, and Application Security units. The documentation states that all new Dynatrace contracts are signed on DPS and that the classic pages must not be used for DPS pricing estimates. DPS also covers hybrid setups with several SaaS and/or Managed deployments.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Estimating usage.&lt;/strong&gt; Rather than a generic estimator, start from the consumption you actually measure (steps 1 to 3 below) and from your own rate card. The subscription overview in Account Management gives the budget summary, cost and usage breakdowns and cost and usage analysis.&lt;/p&gt;

&lt;h2&gt;
  
  
  Prerequisites
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  An active DPS contract and access to &lt;strong&gt;Account Management&lt;/strong&gt; (account admin role or permission to read usage).&lt;/li&gt;
&lt;li&gt;  For the API: an OAuth client created in Account Management &amp;gt; Identity &amp;amp; access management &amp;gt; OAuth clients, with the &lt;code&gt;account-uac-read&lt;/code&gt; scope.&lt;/li&gt;
&lt;li&gt;  For DQL queries: a SaaS environment on Grail with access to system events (&lt;code&gt;dt.system.events&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;  &lt;code&gt;curl&lt;/code&gt; and &lt;code&gt;jq&lt;/code&gt; on an admin workstation.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Step 1: read consumption in Account Management
&lt;/h2&gt;

&lt;p&gt;Open Account Management, then the subscription’s cost and usage view. It shows the total commitment, the share consumed, and a breakdown by capability and by environment.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; Select the current contract period.&lt;/li&gt;
&lt;li&gt; Sort capabilities by descending cost: two or three of them usually make up most of the bill.&lt;/li&gt;
&lt;li&gt; Note the 30-day trend for each. A change of slope often points to a specific change: a new cluster, a new log rule, a new environment.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;On &lt;strong&gt;Managed&lt;/strong&gt;, usage is reported to the account per cluster. If you run several environments in the CMC, cross-check this view with the quotas described in &lt;a href="https://span.observer/en/dynatrace-managed-environments-licence-quotas/" rel="noopener noreferrer"&gt;managing environments and licence quotas&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: query usage with DQL (SaaS)
&lt;/h2&gt;

&lt;p&gt;On Grail, each billing record is stored as a system event of kind &lt;code&gt;BILLING_USAGE_EVENT&lt;/code&gt;. Start by listing which capabilities consume:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;fetch dt.system.events, from: -30d
| filter event.kind == "BILLING_USAGE_EVENT"
| dedup event.id
| summarize records = count(), by: { event.type }
| sort records desc
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;dedup event.id&lt;/code&gt; stops the same record being counted twice. The &lt;code&gt;event.type&lt;/code&gt; field carries the capability name, for example &lt;code&gt;Infrastructure Monitoring&lt;/code&gt; or &lt;code&gt;Metrics - Retain&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Then zoom in on a host-related capability and link it to cost allocation fields:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;fetch dt.system.events, from: -7d
| filter event.kind == "BILLING_USAGE_EVENT"
| filter event.type == "Infrastructure Monitoring"
| dedup event.id
| fieldsKeep timestamp, event.type, dt.entity.host, dt.cost.costcenter, dt.cost.product
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Available fields vary by capability: inspect a raw record before building an aggregation, then sum the quantity field it exposes. Never hard-code a field name you have not seen in your own data.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: query the account cost API
&lt;/h2&gt;

&lt;p&gt;The Account Management API returns aggregated costs, including for Managed clusters. First get an OAuth token:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="kd"&gt;export&lt;/span&gt; &lt;span class="nv"&gt;DT_ACCOUNT_UUID&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&amp;lt;account-uuid&amp;gt;"&lt;/span&gt;
&lt;span class="nv"&gt;TOKEN&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nv"&gt;$(&lt;/span&gt;curl -s -X POST &lt;span class="s2"&gt;"https://sso.dynatrace.com/sso/oauth2/token"&lt;/span&gt; \
  -H &lt;span class="s2"&gt;"Content-Type: application/x-www-form-urlencoded"&lt;/span&gt; \
  -d &lt;span class="s2"&gt;"grant_type=client_credentials"&lt;/span&gt; \
  -d &lt;span class="s2"&gt;"client_id=$DT_CLIENT_ID"&lt;/span&gt; \
  -d &lt;span class="s2"&gt;"client_secret=$DT_CLIENT_SECRET"&lt;/span&gt; \
  -d &lt;span class="s2"&gt;"scope=account-uac-read"&lt;/span&gt; \
  -d &lt;span class="s2"&gt;"resource=urn:dtaccount:$DT_ACCOUNT_UUID"&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; jq -r .access_token&lt;span class="o"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;List subscriptions to get their ID, then read costs split by environment:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -s -H &lt;span class="s2"&gt;"Authorization: Bearer $TOKEN"&lt;/span&gt; \
  &lt;span class="s2"&gt;"https://api.dynatrace.com/sub/v2/accounts/$DT_ACCOUNT_UUID/subscriptions"&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; jq &lt;span class="s1"&gt;'.data[] | {uuid, name}'&lt;/span&gt;

curl -s -H &lt;span class="s2"&gt;"Authorization: Bearer $TOKEN"&lt;/span&gt; \
  &lt;span class="s2"&gt;"https://api.dynatrace.com/sub/v3/accounts/$DT_ACCOUNT_UUID/subscriptions/$SUB_UUID/environments/cost?startTime=2026-09-01T00:00:00Z&amp;amp;endTime=2026-10-01T00:00:00Z"&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; jq .
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;capabilityKeys&lt;/code&gt; parameter filters on a capability, and &lt;code&gt;clusterIds&lt;/code&gt; on a Managed cluster (that filter does not apply to SaaS environments). The response is paginated: follow &lt;code&gt;nextPageKey&lt;/code&gt; to the end. Schedule this call daily and store the result: you get a history that does not depend on the UI.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4: allocate costs to teams
&lt;/h2&gt;

&lt;p&gt;A cost without an owner never goes down. Dynatrace offers cost allocation based on two fields, &lt;code&gt;dt.cost.costcenter&lt;/code&gt; and &lt;code&gt;dt.cost.product&lt;/code&gt;. Set them as close to the source as possible:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  for hosts, through host properties declared when installing OneAgent;&lt;/li&gt;
&lt;li&gt;  for Kubernetes, through the annotations or labels supported by the Operator in your version;&lt;/li&gt;
&lt;li&gt;  for logs and events, through an OpenPipeline rule that adds the fields based on origin.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The exact syntax depends on the version: check it in the &lt;a href="https://docs.dynatrace.com/docs/manage-your-costs" rel="noopener noreferrer"&gt;official cost management documentation&lt;/a&gt;. Aim for at least 90% of consumption carrying a cost centre.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 5: alert before you overrun
&lt;/h2&gt;

&lt;p&gt;The right signal is not «&amp;nbsp;we have consumed X&amp;nbsp;» but «&amp;nbsp;at the current pace, the commitment will run out before the contract ends&amp;nbsp;». In Account Management, set up the budget notifications offered for the subscription. On SaaS, add a daily workflow that runs the step 2 DQL query, computes the seven-day average consumption and opens a ticket if the projection exceeds what is left. The principle is the same as for an error budget: you track a burn rate, not a total, as in &lt;a href="https://span.observer/en/slo-burn-rate-alerts-dynatrace/" rel="noopener noreferrer"&gt;burn rate alerts on SLOs&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to check it works
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  The step 2 query returns rows for each capability visible in Account Management.&lt;/li&gt;
&lt;li&gt;  The cost API total for a month matches the Account Management view for the same period, give or take rounding.&lt;/li&gt;
&lt;li&gt;  The share of consumption without &lt;code&gt;dt.cost.costcenter&lt;/code&gt; falls week after week.&lt;/li&gt;
&lt;li&gt;  A deliberate test (lowered threshold) triggers the expected notification or ticket.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Good practices
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  A fifteen-minute monthly review with each owning team: three capabilities, three trends, one action.&lt;/li&gt;
&lt;li&gt;  Keep Full-Stack for workloads that have an SLO; move the rest to Infrastructure Monitoring.&lt;/li&gt;
&lt;li&gt;  Drop useless logs at ingest rather than paying for them and ignoring them (see &lt;a href="https://span.observer/en/dynatrace-log-ingestion-monitoring/" rel="noopener noreferrer"&gt;detecting excess log volume&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;  Bound the time windows of shared dashboards: a 30-day query refreshed every minute is expensive.&lt;/li&gt;
&lt;li&gt;  Document every configuration change that affects consumption, like a production change.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Frequently asked questions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Is DPS licensing available for Dynatrace Managed?
&lt;/h3&gt;

&lt;p&gt;Yes, a Managed cluster can run under a DPS contract: usage is then reported to the account and appears in Account Management and in the cost API, filterable by cluster. DQL queries on &lt;code&gt;dt.system.events&lt;/code&gt;, however, assume Grail, so SaaS.&lt;/p&gt;

&lt;h3&gt;
  
  
  What happens if the commitment is exceeded?
&lt;/h3&gt;

&lt;p&gt;The terms depend on the contract (on-demand usage beyond the commitment, extra billing, renegotiation). Read your contract and raise it early with your account contact: an early projection leaves time to act on configuration.&lt;/p&gt;

&lt;h3&gt;
  
  
  How do I estimate the cost of a new Kubernetes cluster before monitoring it?
&lt;/h3&gt;

&lt;p&gt;Roll it out on a reduced scope for a week, measure consumption per capability with the DQL query, then extrapolate. That is more reliable than a theoretical calculation, because log and metric volume depends on the applications. Keep it in mind during a &lt;a href="https://span.observer/en/migrate-dynatrace-managed-to-saas/" rel="noopener noreferrer"&gt;migration from Managed to SaaS&lt;/a&gt; too.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;DPS licensing makes consumption readable, provided someone reads it: a view per capability, a DQL query, a daily API export, cost centres and an alert on the projection. With those five building blocks, the observability budget becomes an indicator you manage like an SLO, not an end-of-year surprise.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;span.observer is an independent community blog, not affiliated with Dynatrace LLC. Dynatrace is a trademark of its owner. Capability, screen and field names change: check them against the official documentation and your contract.&lt;/em&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://span.observer/en/dynatrace-dps-licensing-consumption/" rel="noopener noreferrer"&gt;span.observer&lt;/a&gt;. French version: &lt;a href="https://span.observer/fr/licence-dps-dynatrace-consommation/" rel="noopener noreferrer"&gt;https://span.observer/fr/licence-dps-dynatrace-consommation/&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>accountmanagement</category>
      <category>costs</category>
      <category>dpspricing</category>
      <category>dql</category>
    </item>
    <item>
      <title>OpenPipeline data masking: filtering, masking sensitive data and cutting cost</title>
      <dc:creator>Span Observer</dc:creator>
      <pubDate>Wed, 02 Dec 2026 19:30:16 +0000</pubDate>
      <link>https://dev.to/spanobserver/openpipeline-data-masking-filtering-masking-sensitive-data-and-cutting-cost-1m7k</link>
      <guid>https://dev.to/spanobserver/openpipeline-data-masking-filtering-masking-sensitive-data-and-cutting-cost-1m7k</guid>
      <description>&lt;p&gt;A developer adds a debug line that logs the full request: email address, IP address, authorisation token. A week later, that data sits in storage with 35 days of retention, readable by anyone with access to logs. OpenPipeline data masking fixes the problem at the source: sensitive data is transformed at ingest, before it is stored in Grail.&lt;/p&gt;

&lt;p&gt;The same pipeline also cuts cost: remove fields nobody reads, drop debug logs from a test environment, send chatty logs to a short-retention bucket. For an SRE, that means less toil (no more manual purges) and a compliance risk under control.&lt;/p&gt;

&lt;p&gt;The goal of this tutorial: configure a log pipeline that masks IPs, emails and tokens, removes useless fields and drops worthless logs, then check the result with DQL. OpenPipeline relies on Grail: the content applies to &lt;strong&gt;Dynatrace SaaS&lt;/strong&gt;. On &lt;strong&gt;Dynatrace Managed&lt;/strong&gt;, masking goes through other mechanisms, covered in the FAQ.&lt;/p&gt;

&lt;h2&gt;
  
  
  Prerequisites
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  A Dynatrace SaaS environment with Grail and OpenPipeline admin rights.&lt;/li&gt;
&lt;li&gt;  Logs already ingested (OneAgent, API or OpenTelemetry); see &lt;a href="https://span.observer/en/openpipeline-logs-grail-ingestion/" rel="noopener noreferrer"&gt;the logs and OpenPipeline module&lt;/a&gt; for the basics.&lt;/li&gt;
&lt;li&gt;  The list of data to protect, agreed with your DPO: emails, IPs, tokens, customer IDs.&lt;/li&gt;
&lt;li&gt;  Access to Notebooks for verification.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How OpenPipeline processes a log
&lt;/h2&gt;

&lt;p&gt;A record enters through an ingest source, is routed to a pipeline by a DQL condition, then goes through stages. The processing stage applies processors in order: DQL processor, remove fields, rename, drop record. Each processor has a matching condition (matcher) that limits it to the relevant records. A storage stage then picks the bucket, and therefore the retention.&lt;/p&gt;

&lt;p&gt;Practical consequence: anything masked in the processing stage is never written in clear text to Grail. Masking applied later, in a query or a dashboard, protects nothing.&lt;/p&gt;

&lt;h2&gt;
  
  
  Configuring OpenPipeline data masking step by step
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Step 1: create a pipeline and its route
&lt;/h3&gt;

&lt;p&gt;On the OpenPipeline page, Logs section, create a pipeline named for example &lt;code&gt;logs-app-paiement&lt;/code&gt;. Add a dynamic route with a condition that selects only the target logs:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;matchesValue(k8s.namespace.name, "paiement")
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Start with a narrow scope: one namespace or one application. Widen it once the result is checked.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 2: mask IP addresses
&lt;/h3&gt;

&lt;p&gt;Add a DQL processor to the processing stage. To replace every IP address in the message:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;fieldsAdd content = replacePattern(content, "IPADDR", "xxx.xxx.xxx.xxx")
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If an address already sits in its own field and you want to keep the network for analysis, truncate it rather than wipe it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;fieldsAdd client.ip = ipMask(client.ip, 24)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;ipMask(..., 24)&lt;/code&gt; sets the last octet to zero: you still know which network the traffic comes from, without identifying the machine. Adapt the field name (&lt;code&gt;client.ip&lt;/code&gt; here) to your data.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 3: mask emails
&lt;/h3&gt;

&lt;p&gt;A second DQL processor extracts the address, replaces it, then removes the temporary field:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;parse content, "LD ([a-zA-Z0-9.!#$%&amp;amp;*+-/=?^_{|}~]+'@' LD '.' LD):email"
| fieldsAdd content = replaceString(content, email, "xxx@xxx.xxx")
| fieldsRemove email
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Suggested matcher: &lt;code&gt;contains(content, "@")&lt;/code&gt;. The processor then runs only on lines that may hold an address, which limits processing cost. This pattern handles the first address on the line: test it against your real formats with the processor preview.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 4: mask tokens
&lt;/h3&gt;

&lt;p&gt;Bearer tokens often end up in access logs. A targeted DPL pattern replaces them:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;fieldsAdd content = replacePattern(content, "'Bearer ' [a-zA-Z0-9._-]+", "Bearer ***")
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Validate this pattern in the preview with samples from your own logs: token shapes vary from one identity provider to another.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 5: remove useless fields
&lt;/h3&gt;

&lt;p&gt;Add a remove fields processor, or a DQL processor:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;fieldsRemove http.request.header.cookie, debug.payload
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Every stored attribute costs money, and a session cookie is sensitive data too. Remove whatever has not been used in a query for three months.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 6: drop worthless logs
&lt;/h3&gt;

&lt;p&gt;Add a drop record processor with this matcher:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;matchesValue(loglevel, "DEBUG") and matchesValue(deployment.environment, "test")
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Those lines are not stored. For logs you want to keep, but not for long, use the storage stage instead: assign them to a short-retention bucket rather than dropping them.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to check that it works
&lt;/h2&gt;

&lt;p&gt;Generate a few test lines, wait one to two minutes, then run in a Notebook:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;fetch logs, from:now()-30m
| filter k8s.namespace.name == "paiement"
| summarize {
    total = count(),
    ip_masquees = countIf(contains(content, "xxx.xxx.xxx.xxx")),
    emails_masques = countIf(contains(content, "xxx@xxx.xxx")),
    emails_restants = countIf(contains(content, "@") and not contains(content, "xxx@xxx.xxx"))
  }
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;emails_restants&lt;/code&gt; must be zero. If not, display those lines with &lt;code&gt;filter&lt;/code&gt; to see which format escapes the pattern. Also check that no &lt;code&gt;DEBUG&lt;/code&gt; line from the test environment shows up, and that removed fields are gone from new records. Logs written before the pipeline was enabled remain unchanged.&lt;/p&gt;

&lt;p&gt;To track the effect on ingested volume, compare the number of lines per day before and after the change, using the queries from &lt;a href="https://span.observer/en/dynatrace-log-ingestion-monitoring/" rel="noopener noreferrer"&gt;log ingestion monitoring&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Best practices
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;Mask as early as possible&lt;/strong&gt;: in the application if you can, otherwise in the OpenTelemetry Collector, otherwise in OpenPipeline. Several layers beat one.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Test with the preview&lt;/strong&gt; of each processor before enabling the pipeline.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Scope each processor&lt;/strong&gt; with a matcher: fewer records processed, fewer surprises.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Document&lt;/strong&gt; masking rules for your DPO, and version the configuration (Monaco or Terraform).&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Keep useful context&lt;/strong&gt;: masking a &lt;code&gt;trace_id&lt;/code&gt; would break the link between logs and traces (see &lt;a href="https://span.observer/en/opentelemetry-logs-dynatrace-trace-id/" rel="noopener noreferrer"&gt;OpenTelemetry logs with trace_id&lt;/a&gt;).&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Frequently asked questions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Does masking apply to logs already stored?
&lt;/h3&gt;

&lt;p&gt;No. OpenPipeline acts at ingest. For data already stored, use Grail’s data deletion mechanisms, described in the documentation.&lt;/p&gt;

&lt;h3&gt;
  
  
  How do you mask sensitive data with Dynatrace Managed?
&lt;/h3&gt;

&lt;p&gt;OpenPipeline is not available without Grail. On Managed, use the sensitive data masking options of OneAgent and log management, or mask in the OpenTelemetry Collector with the &lt;code&gt;transform&lt;/code&gt; processor before sending.&lt;/p&gt;

&lt;h3&gt;
  
  
  Does dropping logs with drop record really lower the bill?
&lt;/h3&gt;

&lt;p&gt;Dropped records are neither stored nor retained, which reduces retention and query volumes. The exact effect on the bill depends on your licensing model: check it against your contract and the consumption events.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;A few well-targeted processors are enough: &lt;code&gt;replacePattern&lt;/code&gt; and &lt;code&gt;ipMask&lt;/code&gt; for IPs, a &lt;code&gt;parse&lt;/code&gt; for emails, a pattern for tokens, &lt;code&gt;fieldsRemove&lt;/code&gt; and drop record for volume. Check with DQL, document for compliance, and the next over-chatty debug line will not turn into a data incident.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;span.observer is an independent community blog, not affiliated with Dynatrace LLC. Dynatrace is a trademark of its owner. Screen, processor and function names change over time: check them in the &lt;a href="https://docs.dynatrace.com/docs/platform/openpipeline" rel="noopener noreferrer"&gt;official documentation&lt;/a&gt; for your version.&lt;/em&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://span.observer/en/openpipeline-data-masking-cost/" rel="noopener noreferrer"&gt;span.observer&lt;/a&gt;. French version: &lt;a href="https://span.observer/fr/openpipeline-masquage-donnees-sensibles/" rel="noopener noreferrer"&gt;https://span.observer/fr/openpipeline-masquage-donnees-sensibles/&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>cost</category>
      <category>dql</category>
      <category>dynatracesaas</category>
      <category>gdpr</category>
    </item>
    <item>
      <title>RabbitMQ Prometheus: monitoring a cluster without drowning in series</title>
      <dc:creator>Span Observer</dc:creator>
      <pubDate>Wed, 02 Dec 2026 17:30:15 +0000</pubDate>
      <link>https://dev.to/spanobserver/rabbitmq-prometheus-monitoring-a-cluster-without-drowning-in-series-1pih</link>
      <guid>https://dev.to/spanobserver/rabbitmq-prometheus-monitoring-a-cluster-without-drowning-in-series-1pih</guid>
      <description>&lt;p&gt;Your &lt;strong&gt;RabbitMQ Prometheus&lt;/strong&gt; setup is fine until the day a queue quietly grows while one node runs short of file descriptors. Nobody gets paged, because nobody watches those two signals. This article starts from that operating decision: what should you measure on a RabbitMQ cluster, how finely, and without flooding your Prometheus?&lt;/p&gt;

&lt;p&gt;The facts come from the official RabbitMQ Prometheus plugin page, read on 14 November 2026. I did not build a cluster for this article: the examples below are derived from that page, and I flag what remains unverified.&lt;/p&gt;

&lt;p&gt;If Prometheus-side monitoring is new to you, read &lt;a href="https://span.observer/en/prometheus-metrics-dynatrace-kubernetes/" rel="noopener noreferrer"&gt;how to collect Prometheus metrics on Kubernetes&lt;/a&gt; first. The same spirit applies here: few signals, well chosen.&lt;/p&gt;

&lt;h2&gt;
  
  
  The problem: three levels of detail, one budget
&lt;/h2&gt;

&lt;p&gt;A broker exposes metrics on three planes: the node (memory, disk, descriptors), queues (ready and unacknowledged messages, consumers) and connections (opens, closes, channels). The deeper you go, the more series you create.&lt;/p&gt;

&lt;p&gt;The documentation describes two regimes. In aggregated mode, response size stays roughly constant as the object count grows, but you lose per-object fidelity and therefore per-queue alerting. In per-object mode, every object-metric pair becomes a series, which can get very large with many connections or queues.&lt;/p&gt;

&lt;p&gt;So the real question is not «&amp;nbsp;which metrics to enable&amp;nbsp;» but «&amp;nbsp;which queues deserve a series of their own&amp;nbsp;». For an SRE, it is a trade-off between storage cost and the ability to tie an alert to an SLO. An order-flow queue deserves detail; a temporary queue of an internal tool does not.&lt;/p&gt;

&lt;h2&gt;
  
  
  Enable the plugin and check port 15692
&lt;/h2&gt;

&lt;p&gt;The plugin is enabled on every node of the cluster:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;rabbitmq-plugins enable rabbitmq_prometheus
curl -s localhost:15692/metrics | head -n 3
rabbitmq-diagnostics -s listeners
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Port &lt;code&gt;15692&lt;/code&gt; is the default TCP port (&lt;code&gt;prometheus.tcp.port&lt;/code&gt;). The documentation uses &lt;code&gt;15691&lt;/code&gt; as the TLS port in its examples (&lt;code&gt;prometheus.ssl.port&lt;/code&gt;). The last command confirms the Prometheus listener is present.&lt;/p&gt;

&lt;p&gt;Each node exposes its own metrics, so scrape every node rather than a load balancer that rotates between them. Otherwise one node’s series gets mixed with another’s.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ft5ew5i5k0us9rrkso78i.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ft5ew5i5k0us9rrkso78i.png" alt="Example rabbitmq.conf file setting the address, port 15692, the Prometheus plugin timeouts and collect\_statistics\_interval" width="799" height="302"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This file is an example I wrote from the options on the official page. The option &lt;code&gt;prometheus.authentication.enabled = true&lt;/code&gt; also exists to require authentication. Listening on &lt;code&gt;0.0.0.0&lt;/code&gt; is only an illustration: restrict it with a firewall.&lt;/p&gt;

&lt;h2&gt;
  
  
  Which RabbitMQ Prometheus endpoint to pick
&lt;/h2&gt;

&lt;p&gt;Four paths exist, each with a distinct use:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;code&gt;/metrics&lt;/code&gt;: aggregated by default, per-object only if &lt;code&gt;prometheus.return_per_object_metrics = true&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;  &lt;code&gt;/metrics/per-object&lt;/code&gt;: always per-object, whatever that setting says.&lt;/li&gt;
&lt;li&gt;  &lt;code&gt;/metrics/detailed&lt;/code&gt;: returns nothing without filters. Its metrics use the &lt;code&gt;rabbitmq_detailed_&lt;/code&gt; prefix, so it can run next to &lt;code&gt;/metrics&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;  &lt;code&gt;/metrics/memory-breakdown&lt;/code&gt;: memory by component. It iterates over all Erlang processes, so it is costly on a large system: scrape it rarely, or not at all.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;My suggestion, which is a judgement call and not an official rule: keep aggregated &lt;code&gt;/metrics&lt;/code&gt; for the overview, and add a filtered &lt;code&gt;/metrics/detailed&lt;/code&gt; for the few queues that matter.&lt;/p&gt;

&lt;h2&gt;
  
  
  Filter queues with /metrics/detailed
&lt;/h2&gt;

&lt;p&gt;This endpoint accepts parameters: &lt;code&gt;family&lt;/code&gt; (zero or more families), &lt;code&gt;vhost&lt;/code&gt; (for queue and exchange families) and &lt;code&gt;queue&lt;/code&gt; (a single regular expression). A documented example: &lt;code&gt;GET /metrics/detailed?family=queue_coarse_metrics&amp;amp;family=queue_consumer_count&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Here is a Prometheus configuration that separates the node view from the queue view, for three made-up nodes:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fukpm38z8yxixozinu8ms.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fukpm38z8yxixozinu8ms.png" alt="prometheus.yml file with two jobs: nodes on port 15692 and queues filtered by family and regular expression on /metrics/detailed" width="800" height="386"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Two details matter. First, &lt;code&gt;params&lt;/code&gt; turns the filters into URL parameters. Second, the &lt;code&gt;^orders-&lt;/code&gt; expression limits detail to queues whose name starts with that prefix: it is your lever against series explosion. The page gives no complete &lt;code&gt;prometheus.yml&lt;/code&gt;, so this YAML is mine and I have not run it against a real cluster.&lt;/p&gt;

&lt;h2&gt;
  
  
  The signals to watch: node, queues, connections
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Per node
&lt;/h3&gt;

&lt;p&gt;Among the node families, the documentation lists these detailed metrics: &lt;code&gt;rabbitmq_detailed_process_resident_memory_bytes&lt;/code&gt;, &lt;code&gt;rabbitmq_detailed_resident_memory_limit_bytes&lt;/code&gt;, &lt;code&gt;rabbitmq_detailed_disk_space_available_bytes&lt;/code&gt;, &lt;code&gt;rabbitmq_detailed_process_open_fds&lt;/code&gt; and &lt;code&gt;rabbitmq_detailed_process_max_fds&lt;/code&gt;, plus &lt;code&gt;rabbitmq_detailed_erlang_scheduler_run_queue&lt;/code&gt;. They cover the three resources that bring a broker down: memory, disk and descriptors.&lt;/p&gt;

&lt;h3&gt;
  
  
  Per queue
&lt;/h3&gt;

&lt;p&gt;The &lt;code&gt;queue_coarse_metrics&lt;/code&gt; and &lt;code&gt;queue_consumer_count&lt;/code&gt; families include &lt;code&gt;rabbitmq_detailed_queue_messages_ready&lt;/code&gt;, &lt;code&gt;rabbitmq_detailed_queue_messages_unacked&lt;/code&gt;, &lt;code&gt;rabbitmq_detailed_queue_messages&lt;/code&gt; and &lt;code&gt;rabbitmq_detailed_queue_consumers&lt;/code&gt;. A queue growing with zero consumers needs a different remedy from one growing with slow consumers.&lt;/p&gt;

&lt;h3&gt;
  
  
  Per connection and channel
&lt;/h3&gt;

&lt;p&gt;For connections, the page lists &lt;code&gt;rabbitmq_detailed_connections_opened_total&lt;/code&gt;, &lt;code&gt;rabbitmq_detailed_connections_closed_total&lt;/code&gt;, &lt;code&gt;rabbitmq_detailed_connection_channels&lt;/code&gt; and &lt;code&gt;rabbitmq_detailed_channel_messages_unacked&lt;/code&gt;. A stream of opens without matching closes often points to a leaking client.&lt;/p&gt;

&lt;p&gt;A cluster caveat: the page states that &lt;code&gt;rabbitmq_cluster_vhost_status&lt;/code&gt;, &lt;code&gt;rabbitmq_cluster_exchange_name&lt;/code&gt; and &lt;code&gt;rabbitmq_cluster_exchange_bindings&lt;/code&gt; are cluster-wide metrics that must not be aggregated across nodes.&lt;/p&gt;

&lt;h2&gt;
  
  
  Cadence and alerts: set thresholds on your own workloads
&lt;/h2&gt;

&lt;p&gt;Two intervals combine. Prometheus scrapes every 60 seconds by default; the documentation recommends at least 15 seconds in production. RabbitMQ has a &lt;code&gt;collect_statistics_interval&lt;/code&gt; of 5000 ms by default, and the page recommends 10000 in production. With &lt;code&gt;rate()&lt;/code&gt;, use a range of about four times the scrape interval.&lt;/p&gt;

&lt;p&gt;Here are three example alerts, with thresholds I picked for illustration that you must adapt to your workloads (the page says the same of its dashboards):&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Figpe9125wlmiot5hvt1a.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Figpe9125wlmiot5hvt1a.png" alt="Prometheus alerting rules file with three alerts: high ready messages, queue without consumers, file descriptors close to the maximum" width="800" height="386"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;They have not been proven on a real cluster. A «&amp;nbsp;queue without consumers&amp;nbsp;» alert can also fire legitimately for a deliberately idle queue: filter by name.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to check that it works
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt; On each node, &lt;code&gt;curl -s localhost:15692/metrics | head -n 3&lt;/code&gt; must return metric lines.&lt;/li&gt;
&lt;li&gt; In the Prometheus UI, the Targets page must show every target as «&amp;nbsp;Up&amp;nbsp;».&lt;/li&gt;
&lt;li&gt; Query &lt;code&gt;rabbitmq_detailed_queue_messages_ready&lt;/code&gt;: you should only see queues matching your regular expression.&lt;/li&gt;
&lt;li&gt; Compare the series count before and after adding &lt;code&gt;/metrics/detailed&lt;/code&gt; to measure its cost.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;For dashboards, the documentation cites RabbitMQ-Overview (Grafana ID 10991) and others, such as Erlang-Distribution and RabbitMQ-Raft. After import, set the &lt;code&gt;prometheus&lt;/code&gt; data source as the default.&lt;/p&gt;

&lt;h2&gt;
  
  
  Best practices
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  Scrape each node separately, never a load balancer.&lt;/li&gt;
&lt;li&gt;  Stay aggregated by default, detail only the critical queues.&lt;/li&gt;
&lt;li&gt;  Do not scrape &lt;code&gt;/metrics/memory-breakdown&lt;/code&gt; at high frequency.&lt;/li&gt;
&lt;li&gt;  Protect the port with a firewall or enable authentication, then TLS if needed.&lt;/li&gt;
&lt;li&gt;  Tie each alert to an SLO; see also &lt;a href="https://span.observer/en/kubernetes-alerts-nodes-pods-quotas/" rel="noopener noreferrer"&gt;the alerts that really matter on Kubernetes&lt;/a&gt; and &lt;a href="https://span.observer/en/sli-vs-slo-vs-sla/" rel="noopener noreferrer"&gt;the definition of an SLI and an SLO&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Frequently asked questions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  What port does the RabbitMQ Prometheus plugin use?
&lt;/h3&gt;

&lt;p&gt;The default TCP port is 15692. The TLS examples in the documentation use 15691.&lt;/p&gt;

&lt;h3&gt;
  
  
  Should I enable per-object metrics?
&lt;/h3&gt;

&lt;p&gt;Only if you need per-queue or per-connection alerts. They multiply series; prefer aggregated, plus a filtered &lt;code&gt;/metrics/detailed&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  What about Dynatrace?
&lt;/h3&gt;

&lt;p&gt;This article covers only the RabbitMQ plugin and Prometheus. For what Dynatrace offers on RabbitMQ, see docs.dynatrace.com, separating SaaS and Managed: I do not mix any of its features in here.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Monitoring a RabbitMQ cluster with Prometheus comes down to three decisions: one scrape per node, detail limited to the queues that matter, and alert thresholds fitted to your workloads. Source: &lt;a href="https://www.rabbitmq.com/docs/prometheus" rel="noopener noreferrer"&gt;RabbitMQ Prometheus plugin documentation&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;span.observer is an independent community blog, not affiliated with Dynatrace LLC, Broadcom, VMware or RabbitMQ. Trademarks belong to their owners. Tools change quickly: check commands and options against the official documentation.&lt;/em&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://span.observer/en/rabbitmq-prometheus-cluster-monitoring/" rel="noopener noreferrer"&gt;span.observer&lt;/a&gt;. French version: &lt;a href="https://span.observer/fr/rabbitmq-prometheus-surveiller-cluster/" rel="noopener noreferrer"&gt;https://span.observer/fr/rabbitmq-prometheus-surveiller-cluster/&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>alerting</category>
      <category>cluster</category>
      <category>grafana</category>
      <category>metrics</category>
    </item>
    <item>
      <title>Advanced DQL: lookup, join, parse and window functions</title>
      <dc:creator>Span Observer</dc:creator>
      <pubDate>Wed, 02 Dec 2026 15:30:18 +0000</pubDate>
      <link>https://dev.to/spanobserver/advanced-dql-lookup-join-parse-and-window-functions-3i6l</link>
      <guid>https://dev.to/spanobserver/advanced-dql-lookup-join-parse-and-window-functions-3i6l</guid>
      <description>&lt;p&gt;During an incident, the query that answers the question is never a plain &lt;code&gt;fetch | filter | summarize&lt;/code&gt;. You need to map an error to the owning team, link a business event to the logs of the same trace, extract an ID buried in a message, or smooth a noisy series to see the trend. That is the ground covered by advanced DQL.&lt;/p&gt;

&lt;p&gt;Four tools cover most of it: &lt;code&gt;lookup&lt;/code&gt; to enrich, &lt;code&gt;join&lt;/code&gt; to correlate, &lt;code&gt;parse&lt;/code&gt; to structure, and the moving array functions to reason over time. Used well, they shorten MTTR: fewer trips between screens, one query shared in the incident Notebook.&lt;/p&gt;

&lt;p&gt;The goal of this tutorial: write, for each of these tools, a query that is useful in operations and know how to check its result. The content applies to &lt;strong&gt;Dynatrace SaaS&lt;/strong&gt; (Grail and DQL); Dynatrace Managed does not run DQL on Grail.&lt;/p&gt;

&lt;h2&gt;
  
  
  Prerequisites
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  A Dynatrace SaaS environment with Grail, and access to Notebooks.&lt;/li&gt;
&lt;li&gt;  DQL basics: &lt;code&gt;fetch&lt;/code&gt;, &lt;code&gt;filter&lt;/code&gt;, &lt;code&gt;fields&lt;/code&gt;, &lt;code&gt;summarize&lt;/code&gt; (see &lt;a href="https://span.observer/en/dql-fundamentals-tutorial/" rel="noopener noreferrer"&gt;the module on DQL fundamentals&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;  Logs and spans ingested, ideally with &lt;code&gt;trace_id&lt;/code&gt; set on the logs.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  lookup or join: what is the difference?
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;&lt;code&gt;lookup&lt;/code&gt;&lt;/th&gt;
&lt;th&gt;&lt;code&gt;join&lt;/code&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Use&lt;/td&gt;
&lt;td&gt;Enrich each row with attributes from a reference table&lt;/td&gt;
&lt;td&gt;Combine two datasets on a condition&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Multiple matches&lt;/td&gt;
&lt;td&gt;Only the first matching record is kept&lt;/td&gt;
&lt;td&gt;One row per matching pair: volume can grow&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Default prefix for added fields&lt;/td&gt;
&lt;td&gt;&lt;code&gt;lookup.&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;right.&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Rows without a match&lt;/td&gt;
&lt;td&gt;Kept, added fields set to null&lt;/td&gt;
&lt;td&gt;Depends on &lt;code&gt;kind&lt;/code&gt;: &lt;code&gt;inner&lt;/code&gt;, &lt;code&gt;leftOuter&lt;/code&gt;, &lt;code&gt;outer&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Simple rule: if you want «&amp;nbsp;one more column&amp;nbsp;», use &lt;code&gt;lookup&lt;/code&gt;. If you want «&amp;nbsp;two stories side by side&amp;nbsp;», use &lt;code&gt;join&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Advanced DQL in practice: four queries step by step
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Step 1: enrich with lookup
&lt;/h3&gt;

&lt;p&gt;A reference table stored in Grail (a lookup file loaded with &lt;code&gt;load&lt;/code&gt;) turns a technical code into readable information. Example: add the label of each HTTP code to spans.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;fetch spans, from:now()-1h
| filter isNotNull(http.response.status_code)
| lookup [ load "/lookups/http_status_codes" ],
    sourceField: http.response.status_code,
    lookupField: code,
    prefix: "status."
| summarize nb = count(), by:{ http.response.status_code, status.label }
| sort nb desc
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Key lines: &lt;code&gt;sourceField&lt;/code&gt; names the field in the main query, &lt;code&gt;lookupField&lt;/code&gt; the one in the table. The &lt;code&gt;prefix&lt;/code&gt; avoids name clashes; without it, fields arrive prefixed with &lt;code&gt;lookup.&lt;/code&gt;. Here, &lt;code&gt;status.label&lt;/code&gt; assumes your file has a &lt;code&gt;label&lt;/code&gt; column: adapt it to the real content.&lt;/p&gt;

&lt;p&gt;The table can also be a subquery. To attach to each host the number of business events it emitted:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;fetch dt.entity.host
| fields id, entity.name
| lookup [ fetch bizevents
          | summarize events = count(), by:{ dt.entity.host } ],
    sourceField: id, lookupField: dt.entity.host, prefix: "biz."
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Step 2: correlate with join
&lt;/h3&gt;

&lt;p&gt;A business event failed; what did the logs of the same trace say? &lt;code&gt;join&lt;/code&gt; links the two sources on &lt;code&gt;trace_id&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;fetch bizevents, from:now()-2h
| filter event.type == "checkout.failed"
| limit 100
| join [ fetch logs, from:now()-2h | filter loglevel == "ERROR" ],
    kind: leftOuter,
    on: { trace_id },
    executionOrder: leftFirst,
    fields: { log.timestamp = timestamp, content }
| fields timestamp, trace_id, log.timestamp, content
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Key lines: &lt;code&gt;kind: leftOuter&lt;/code&gt; keeps events with no matching log (fields set to null), which also reveals instrumentation gaps. &lt;code&gt;executionOrder: leftFirst&lt;/code&gt; runs the left side first, capped at 100 rows, which avoids exceeding the right-side size limit. &lt;code&gt;fields&lt;/code&gt; brings back only the useful columns. When names differ, write &lt;code&gt;on: left[dt.entity.host] == right[id]&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 3: structure with parse
&lt;/h3&gt;

&lt;p&gt;An application log holds the information, but inside a sentence. &lt;code&gt;parse&lt;/code&gt; applies a DPL (Dynatrace Pattern Language) pattern and creates typed fields:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;fetch logs, from:now()-3h
| filter contains(content, "AddItemAsync")
| parse content, "LD 'userId=' LD:userId ', productId=' LD:productId ', quantity=' INT:productQuantity"
| summarize total = sum(productQuantity), by:{ productId }
| sort total desc
| limit 10
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Key lines: &lt;code&gt;LD&lt;/code&gt; consumes text up to the next literal, &lt;code&gt;INT&lt;/code&gt; captures a typed integer, and the name after &lt;code&gt;:&lt;/code&gt; becomes the field. For a JSON log, the &lt;code&gt;JSON&lt;/code&gt; matcher extracts the keys you want directly:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;| parse content, "JSON{ STRING:path, INT:integrationLatency }(flat=true)"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If a pattern appears in all your queries, move it to ingest time in OpenPipeline: you pay for it once instead of recomputing it at every read. &lt;a href="https://span.observer/en/log-pattern-analysis-dql/" rel="noopener noreferrer"&gt;Log pattern analysis&lt;/a&gt; helps find those recurring patterns.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 4: reason over time with moving functions
&lt;/h3&gt;

&lt;p&gt;DQL has no &lt;code&gt;OVER&lt;/code&gt; clause as SQL does. The equivalent goes through time series: &lt;code&gt;timeseries&lt;/code&gt; or &lt;code&gt;makeTimeseries&lt;/code&gt; produce arrays, and the functions &lt;code&gt;arrayMovingAvg&lt;/code&gt;, &lt;code&gt;arrayMovingMax&lt;/code&gt;, &lt;code&gt;arrayMovingMin&lt;/code&gt;, &lt;code&gt;arrayMovingSum&lt;/code&gt;, &lt;code&gt;arrayDelta&lt;/code&gt; or &lt;code&gt;arrayCumulativeSum&lt;/code&gt; compute a window over those arrays.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;timeseries cpu = avg(dt.host.cpu.usage), interval:1m, by:{ dt.entity.host }
| fieldsAdd cpu_5m = arrayMovingAvg(cpu, 5)
| fieldsAdd pic_5m = arrayMovingMax(cpu, 5)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;With a one-minute interval, a window of 5 elements gives a five-minute moving average. The window is expressed in number of points, not duration, and is capped at 60. The first points lack a full history: widen &lt;code&gt;from:&lt;/code&gt; so you do not misread them.&lt;/p&gt;

&lt;p&gt;Same principle on logs, through &lt;code&gt;makeTimeseries&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;fetch logs, from:now()-6h
| filter loglevel == "ERROR"
| makeTimeseries erreurs = count(), interval:5m
| fieldsAdd tendance = arrayMovingAvg(erreurs, 6),
            variation = arrayDelta(erreurs)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  How to check that it works
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;lookup&lt;/strong&gt;: count rows before and after; the number must be identical. Then filter &lt;code&gt;isNull(status.label)&lt;/code&gt; to list codes missing from the table.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;join&lt;/strong&gt;: compare &lt;code&gt;count()&lt;/code&gt; before and after. A sharp increase signals multiple matches; a null &lt;code&gt;content&lt;/code&gt; signals logs without &lt;code&gt;trace_id&lt;/code&gt; (see &lt;a href="https://span.observer/en/dql-query-examples-operations/" rel="noopener noreferrer"&gt;the operations DQL queries&lt;/a&gt; for more checks).&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;parse&lt;/strong&gt;: add &lt;code&gt;| filter isNull(productId) | limit 20&lt;/code&gt; to see the rows the pattern does not recognise.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;moving functions&lt;/strong&gt;: plot the raw series and the smoothed one on the same Notebook chart; the second should follow the first with a visible lag.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Best practices
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;Filter before enriching&lt;/strong&gt;: &lt;code&gt;filter&lt;/code&gt; and &lt;code&gt;limit&lt;/code&gt; before &lt;code&gt;join&lt;/code&gt; or &lt;code&gt;lookup&lt;/code&gt; cut the volume read and the query cost.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Name your prefixes&lt;/strong&gt;: &lt;code&gt;prefix: "biz."&lt;/code&gt; reads better than &lt;code&gt;lookup.&lt;/code&gt; six months later.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Bound the time range&lt;/strong&gt; on both sides of a &lt;code&gt;join&lt;/code&gt;: a subquery without &lt;code&gt;from:&lt;/code&gt; uses the default window, which is not necessarily the main query’s.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Version&lt;/strong&gt; incident queries in a shared Notebook: they become a runbook.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Frequently asked questions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Why does my join return more rows than the source?
&lt;/h3&gt;

&lt;p&gt;Each left row is repeated for every match on the right. Deduplicate the right side with &lt;code&gt;summarize&lt;/code&gt; or &lt;code&gt;dedup&lt;/code&gt;, or switch to &lt;code&gt;lookup&lt;/code&gt; if one match is enough.&lt;/p&gt;

&lt;h3&gt;
  
  
  Where should a reference table for lookup live?
&lt;/h3&gt;

&lt;p&gt;In a lookup file loaded into Grail, read with &lt;code&gt;load "/lookups/..."&lt;/code&gt;. For a table that changes often, a subquery on events or entities saves you maintaining a file.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can a moving average cover a duration rather than a number of points?
&lt;/h3&gt;

&lt;p&gt;Not directly: the window counts elements. Set &lt;code&gt;interval&lt;/code&gt; in &lt;code&gt;timeseries&lt;/code&gt; or &lt;code&gt;makeTimeseries&lt;/code&gt;, then work out how many points match the duration you want.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;lookup&lt;/code&gt; enriches without duplicating, &lt;code&gt;join&lt;/code&gt; correlates two sources, &lt;code&gt;parse&lt;/code&gt; turns a message into data, and moving functions give the trend. These four tools cover most incident questions. Keep the queries that helped: the next investigation will start one step ahead.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;span.observer is an independent community blog, not affiliated with Dynatrace LLC. Dynatrace is a trademark of its owner. DQL syntax changes over time: check commands and parameters in the &lt;a href="https://docs.dynatrace.com/docs/platform/grail/dynatrace-query-language" rel="noopener noreferrer"&gt;official documentation&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://span.observer/en/advanced-dql-lookup-join-parse/" rel="noopener noreferrer"&gt;span.observer&lt;/a&gt;. French version: &lt;a href="https://span.observer/fr/dql-avance-lookup-join-parse/" rel="noopener noreferrer"&gt;https://span.observer/fr/dql-avance-lookup-join-parse/&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>dql</category>
      <category>dynatracesaas</category>
      <category>grail</category>
      <category>logs</category>
    </item>
    <item>
      <title>NGINX OpenTelemetry tracing with ngx_otel_module, step by step</title>
      <dc:creator>Span Observer</dc:creator>
      <pubDate>Wed, 02 Dec 2026 13:30:15 +0000</pubDate>
      <link>https://dev.to/spanobserver/nginx-opentelemetry-tracing-with-ngxotelmodule-step-by-step-2k0d</link>
      <guid>https://dev.to/spanobserver/nginx-opentelemetry-tracing-with-ngxotelmodule-step-by-step-2k0d</guid>
      <description>&lt;p&gt;Your trace starts in the application, but the customer started waiting earlier: the moment the request reached your reverse proxy. When a 502 or an 800 ms stall happens inside NGINX, no span shows it. Wiring up &lt;strong&gt;NGINX OpenTelemetry&lt;/strong&gt; tracing with the ngx_otel_module module closes that gap, and the proxy becomes the first link of the trace. This article starts from the operational decisions you have to make, not from a directive catalogue.&lt;/p&gt;

&lt;p&gt;The facts come from the module’s official page on nginx.org and from the &lt;code&gt;nginx/nginx-otel&lt;/code&gt; repository, both read on 14 November 2026. I did not run NGINX for this article: the configurations follow the documentation, and anything I did not verify is flagged as such.&lt;/p&gt;

&lt;p&gt;If span vocabulary is still fuzzy, read &lt;a href="https://span.observer/en/anatomy-of-an-opentelemetry-span/" rel="noopener noreferrer"&gt;the anatomy of an OpenTelemetry span&lt;/a&gt; first. Here we deal with a single span: the one NGINX opens for each request.&lt;/p&gt;

&lt;h2&gt;
  
  
  NGINX OpenTelemetry: what the module does, and what it does not
&lt;/h2&gt;

&lt;p&gt;The documentation describes the module as OpenTelemetry distributed tracing support. It handles W3C context propagation and exports over OTLP/gRPC. Note the exact scope: it produces &lt;strong&gt;traces&lt;/strong&gt;. The page mentions neither OpenTelemetry metrics nor logs, and I infer nothing about them.&lt;/p&gt;

&lt;p&gt;On licensing, the repository is Apache 2.0. On distribution, two prebuilt packages exist: &lt;code&gt;nginx-module-otel&lt;/code&gt;, available since NGINX 1.25.3, and &lt;code&gt;nginx-plus-module-otel&lt;/code&gt;, available since 1.23.4 with the commercial subscription. The repository also states that packages assume the officially distributed NGINX binaries, so a community build is not guaranteed to be compatible.&lt;/p&gt;

&lt;h2&gt;
  
  
  First decision: package or build
&lt;/h2&gt;

&lt;p&gt;If you install NGINX from the nginx.org repositories, take the package and skip a build chain. If you maintain your own binary, mind the repository’s strong constraint: the module only works with the same NGINX source version it was compiled against.&lt;/p&gt;

&lt;p&gt;The README procedure, for Ubuntu and Debian, boils down to four ideas. Install the dependencies (including &lt;code&gt;libc-ares-dev&lt;/code&gt; and &lt;code&gt;libre2-dev&lt;/code&gt; for gRPC). Run &lt;code&gt;auto/configure --with-compat&lt;/code&gt; in the NGINX sources. Create a &lt;code&gt;build&lt;/code&gt; folder in &lt;code&gt;nginx-otel&lt;/code&gt;, run &lt;code&gt;cmake&lt;/code&gt; with &lt;code&gt;-DNGX_OTEL_NGINX_BUILD_DIR&lt;/code&gt; pointing to NGINX’s &lt;code&gt;objs&lt;/code&gt; folder, then &lt;code&gt;make&lt;/code&gt;. The output is &lt;code&gt;ngx_otel_module.so&lt;/code&gt;. The README gives no steps for other systems, and I will not invent any.&lt;/p&gt;

&lt;p&gt;SRE consequence: every NGINX upgrade means rebuilding the module. Put that step in your pipeline, or a security patch turns into a startup incident.&lt;/p&gt;

&lt;h2&gt;
  
  
  Second decision: who creates the trace?
&lt;/h2&gt;

&lt;p&gt;The &lt;code&gt;otel_trace_context&lt;/code&gt; directive answers that question. It takes four values, and the default is &lt;code&gt;ignore&lt;/code&gt;: with no setting, NGINX leaves the &lt;code&gt;traceparent&lt;/code&gt; and &lt;code&gt;tracestate&lt;/code&gt; headers alone.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;code&gt;extract&lt;/code&gt;: NGINX takes the context from the incoming request. The &lt;code&gt;trace_id&lt;/code&gt; and the parent span are inherited.&lt;/li&gt;
&lt;li&gt;  &lt;code&gt;inject&lt;/code&gt;: NGINX adds a new context to the request and overwrites any existing headers.&lt;/li&gt;
&lt;li&gt;  &lt;code&gt;propagate&lt;/code&gt;: it updates the existing context, which combines extract and inject.&lt;/li&gt;
&lt;li&gt;  &lt;code&gt;ignore&lt;/code&gt;: no processing at all.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The right choice depends on where the proxy sits. An edge NGINX facing the Internet is often the first link, so &lt;code&gt;inject&lt;/code&gt; makes sense: nothing upstream deserves your trust. An internal NGINX behind a gateway or another instrumented service should continue the existing trace instead: &lt;code&gt;propagate&lt;/code&gt;. That rule of thumb is mine, not the documentation’s, so test it with your clients.&lt;/p&gt;

&lt;p&gt;To see why a trace identifier beats a home-grown one, read &lt;a href="https://span.observer/en/correlation-id-vs-trace-id/" rel="noopener noreferrer"&gt;correlation ID or trace ID&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Third decision: how many requests to trace?
&lt;/h2&gt;

&lt;p&gt;By default, &lt;code&gt;otel_trace&lt;/code&gt; is &lt;code&gt;off&lt;/code&gt;. You enable it in &lt;code&gt;http&lt;/code&gt;, &lt;code&gt;server&lt;/code&gt; or &lt;code&gt;location&lt;/code&gt;, and the directive accepts a variable. That is your sampling lever. The documentation shows two patterns:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  A ratio sample with &lt;code&gt;split_clients "$otel_trace_id"&lt;/code&gt;: 10% of requests go to &lt;code&gt;on&lt;/code&gt;, the rest to &lt;code&gt;off&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;  A sample inherited from the parent, with &lt;code&gt;otel_trace $otel_parent_sampled&lt;/code&gt; paired with &lt;code&gt;otel_trace_context propagate&lt;/code&gt;: NGINX records a span only when the parent is sampled.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The first suits a proxy at the head of the chain. The second stops an internal proxy from tracing requests the rest of the chain dropped. If you want to decide afterwards, looking at the complete trace, that is not NGINX’s job: see &lt;a href="https://span.observer/en/tail-sampling-rules-collector-cost-pitfalls/" rel="noopener noreferrer"&gt;the Collector’s tail sampling rules&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The README claims a performance impact of roughly 10 to 15%, against up to 50% for other implementations. That is the project’s claim and I have not measured it. Run your own load test before production.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step by step: a minimal configuration
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt; Install the &lt;code&gt;nginx-module-otel&lt;/code&gt; package or build the module, then load it with &lt;code&gt;load_module modules/ngx_otel_module.so;&lt;/code&gt; at the very top of &lt;code&gt;nginx.conf&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt; Declare the export in the &lt;code&gt;http&lt;/code&gt; context with &lt;code&gt;otel_exporter&lt;/code&gt;. The &lt;code&gt;endpoint&lt;/code&gt; is an OTLP/gRPC address, for example &lt;code&gt;localhost:4317&lt;/code&gt;. TLS (the &lt;code&gt;https://&lt;/code&gt; scheme, &lt;code&gt;trusted_certificate&lt;/code&gt;) and the &lt;code&gt;header&lt;/code&gt; directive exist since module version 0.1.2.&lt;/li&gt;
&lt;li&gt; Name the service with &lt;code&gt;otel_service_name&lt;/code&gt;. Otherwise the default is &lt;code&gt;unknown_service:nginx&lt;/code&gt;, which you do not want to see across ten environments.&lt;/li&gt;
&lt;li&gt; Enable tracing and pick the context in the relevant &lt;code&gt;location&lt;/code&gt;.
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;load_module modules/ngx_otel_module.so;

events {}

http {
    otel_exporter {
        endpoint localhost:4317;
        interval 5s;
        batch_size 512;
    }
    otel_service_name edge-nginx;

    log_format traced '$remote_addr "$request" $status trace=$otel_trace_id span=$otel_span_id';

    server {
        listen 127.0.0.1:8080;
        access_log /var/log/nginx/traced.log traced;

        location / {
            otel_trace         on;
            otel_trace_context inject;
            otel_span_attr     deploy.zone "eu-west";
            proxy_pass         http://backend;
        }
    }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Three lines deserve a word. &lt;code&gt;interval&lt;/code&gt; sets the maximum time between two exports (5 seconds by default), and &lt;code&gt;batch_size&lt;/code&gt; the maximum number of spans per batch per worker (512 by default). The &lt;code&gt;log_format&lt;/code&gt; writes the trace identifier to the access log: your fallback when the trace backend is down. Finally &lt;code&gt;otel_span_attr&lt;/code&gt; adds a custom attribute, here an example value.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fv9mablwkfaaj74u42r8t.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fv9mablwkfaaj74u42r8t.png" alt="Example nginx.conf file: load\_module, otel\_exporter block, otel\_service\_name, log\_format with $otel\_trace\_id and a location with otel\_trace on and otel\_trace\_context inject" width="800" height="679"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;One caveat: the documentation says &lt;code&gt;batch_count&lt;/code&gt; (4 by default) caps the pending batches per worker, and spans beyond that limit are dropped. A slow Collector therefore loses spans without failing requests.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to check that it works
&lt;/h2&gt;

&lt;p&gt;Before any traffic, test the syntax with &lt;code&gt;nginx -t&lt;/code&gt;, then reload. On the receiving side, a Collector with an OTLP gRPC receiver and the &lt;code&gt;debug&lt;/code&gt; exporter prints every span that arrives. This file follows the Collector documentation, but I did not run it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;receivers:
  otlp:
    protocols:
      grpc:
        endpoint: 0.0.0.0:4317

exporters:
  debug:
    verbosity: detailed

service:
  pipelines:
    traces:
      receivers: [otlp]
      exporters: [debug]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftwcuwodacko1t10i2369.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftwcuwodacko1t10i2369.png" alt="Example otel-collector.yaml file: OTLP gRPC receiver on port 4317, debug exporter in detailed mode and a traces pipeline" width="800" height="428"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Then send a request with &lt;code&gt;curl http://127.0.0.1:8080/&lt;/code&gt;. Three checks: the Collector prints a span named after the &lt;code&gt;location&lt;/code&gt; (the default name, which &lt;code&gt;otel_span_name&lt;/code&gt; can change); &lt;code&gt;http.method&lt;/code&gt; and &lt;code&gt;http.status_code&lt;/code&gt; appear among the automatically added attributes; and the &lt;code&gt;trace_id&lt;/code&gt; in the access log matches the Collector’s. If one is missing, look at the &lt;code&gt;endpoint&lt;/code&gt; first, then at the firewall between NGINX and the Collector.&lt;/p&gt;

&lt;p&gt;For the next leg, the route from a Collector to the backend, see &lt;a href="https://span.observer/en/opentelemetry-collector-contrib-components/" rel="noopener noreferrer"&gt;the Collector contrib components&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Best practices
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  Start with a single &lt;code&gt;location&lt;/code&gt; and a 10% sample, then widen.&lt;/li&gt;
&lt;li&gt;  Set &lt;code&gt;otel_service_name&lt;/code&gt; and a resource attribute specific to each environment (&lt;code&gt;otel_resource_attr&lt;/code&gt;, since version 0.1.2).&lt;/li&gt;
&lt;li&gt;  Keep the trace identifier in the access log: it ties an NGINX log line to its trace.&lt;/li&gt;
&lt;li&gt;  Rebuild the module at every NGINX upgrade if you do not use the package.&lt;/li&gt;
&lt;li&gt;  Watch for dropped spans: HTTP status codes will not show them.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Frequently asked questions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Does ngx_otel_module also export metrics and logs?
&lt;/h3&gt;

&lt;p&gt;The documentation presents distributed tracing support, with W3C propagation and OTLP/gRPC export. It does not describe any metrics or logs export. For those, look for another route and check it in its own documentation.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I send traces straight to a backend?
&lt;/h3&gt;

&lt;p&gt;The module speaks OTLP over gRPC. If your backend accepts that protocol, nothing forbids it, with TLS and an authentication header through &lt;code&gt;otel_exporter&lt;/code&gt;. An intermediate Collector stays more flexible for filtering and enrichment. For Dynatrace, consult docs.dynatrace.com and keep SaaS and Managed apart: I do not detail any feature here.&lt;/p&gt;

&lt;h3&gt;
  
  
  What is the difference between inject and propagate?
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;inject&lt;/code&gt; overwrites existing context headers and creates a new context. &lt;code&gt;propagate&lt;/code&gt; updates the incoming one, so the client’s trace continues through the proxy.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;With ngx_otel_module, NGINX stops being a blind spot: it opens the first span, forwards the W3C context and exports over OTLP. Everything rests on three decisions: package or build, &lt;code&gt;inject&lt;/code&gt; or &lt;code&gt;propagate&lt;/code&gt;, and a sampling rule. Sources: &lt;a href="https://nginx.org/en/docs/ngx_otel_module.html" rel="noopener noreferrer"&gt;module documentation&lt;/a&gt; and &lt;a href="https://github.com/nginx/nginx-otel" rel="noopener noreferrer"&gt;nginx-otel repository&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;span.observer is an independent community blog, not affiliated with Dynatrace LLC, F5 or NGINX. Brands mentioned belong to their owners. Tools change quickly: check commands and options against the official documentation.&lt;/em&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://span.observer/en/nginx-opentelemetry-tracing-ngx-otel-module/" rel="noopener noreferrer"&gt;span.observer&lt;/a&gt;. French version: &lt;a href="https://span.observer/fr/nginx-opentelemetry-ngx-otel-module/" rel="noopener noreferrer"&gt;https://span.observer/fr/nginx-opentelemetry-ngx-otel-module/&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>nginx</category>
      <category>ngxotelmodule</category>
      <category>opensource</category>
      <category>opentelemetry</category>
    </item>
  </channel>
</rss>
