<?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: Hadeel Sharaf</title>
    <description>The latest articles on DEV Community by Hadeel Sharaf (@hadeelsharaf).</description>
    <link>https://dev.to/hadeelsharaf</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%2F996202%2F1135346c-612f-4396-af5d-34d20e13f121.jpeg</url>
      <title>DEV Community: Hadeel Sharaf</title>
      <link>https://dev.to/hadeelsharaf</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hadeelsharaf"/>
    <language>en</language>
    <item>
      <title>Ontology-Driven Observability for Agentic Monitoring</title>
      <dc:creator>Hadeel Sharaf</dc:creator>
      <pubDate>Tue, 20 Oct 2026 22:01:56 +0000</pubDate>
      <link>https://dev.to/hadeelsharaf/ontology-driven-observability-for-agentic-monitoring-2op0</link>
      <guid>https://dev.to/hadeelsharaf/ontology-driven-observability-for-agentic-monitoring-2op0</guid>
      <description>&lt;p&gt;Traditional observability tells us what is happening in our systems. Ontology-driven observability helps us understand how system components are connected — and gives AI agents better context to investigate incidents.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. What Is Ontology-Driven Observability?
&lt;/h2&gt;

&lt;p&gt;It starts with a shared model of the system: its services, databases, users, infrastructure, and their relationships.&lt;/p&gt;

&lt;p&gt;Instead of treating metrics, logs, and traces as isolated signals, telemetry is connected to a &lt;strong&gt;knowledge graph&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;checkout-service → depends_on → payments-db
checkout-service → runs_on → node-01
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Each statement is a triple: &lt;strong&gt;Subject → Predicate → Object&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The result is a connected view of the system that supports dependency analysis, impact assessment, and root-cause investigation.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Use Case Without LLMs or AI Agents
&lt;/h2&gt;

&lt;p&gt;Ontology-driven observability is useful even without AI.&lt;/p&gt;

&lt;p&gt;Consider a payments database that becomes unavailable.&lt;/p&gt;

&lt;p&gt;A graph-based monitoring system can:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Identify services that depend on the database.&lt;/li&gt;
&lt;li&gt;Calculate the potential blast radius of the failure.&lt;/li&gt;
&lt;li&gt;Apply predefined rules to correlate the incident with service health.&lt;/li&gt;
&lt;li&gt;Alert the responsible teams with dependency context.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This is deterministic, rule-based monitoring. The knowledge graph provides context, while predefined queries and rules perform the analysis.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Use Case for Agentic Monitoring
&lt;/h2&gt;

&lt;p&gt;Now introduce an LLM-powered agent.&lt;/p&gt;

&lt;p&gt;When checkout latency increases, a monitoring agent can query the knowledge graph to identify affected services and their dependencies. It can then investigate relevant metrics, logs, traces, and deployment events.&lt;/p&gt;

&lt;p&gt;A multi-agent workflow could delegate these investigations to specialized agents and combine their findings into an evidence-backed root-cause hypothesis.&lt;/p&gt;

&lt;p&gt;The workflow becomes:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Detect → Explore dependencies → Investigate telemetry → Correlate evidence → Recommend action&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This approach aligns with Netflix's E2EGraph initiative, presented at &lt;a href="https://qconlondon.com/presentation/mar2026/ontology-driven-observability-building-e2e-knowledge-graph-netflix-scale" rel="noopener noreferrer"&gt;QCon London 2026&lt;/a&gt;, which explores knowledge-graph-backed observability and agent-assisted root-cause analysis at scale.&lt;/p&gt;

&lt;p&gt;Importantly, the graph provides structured context; it does not automatically prove causation. Agents must still validate their hypotheses against actual telemetry.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Should We Prefer This Approach?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;It depends on system complexity.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Ontology-driven observability is particularly valuable when:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Incidents cross multiple services, infrastructure layers, and teams.&lt;/li&gt;
&lt;li&gt;Telemetry is scattered across different tools.&lt;/li&gt;
&lt;li&gt;Root-cause analysis requires understanding complex dependencies.&lt;/li&gt;
&lt;li&gt;AI agents need reliable, structured context rather than relying on raw logs alone.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For smaller systems, conventional observability with consistent instrumentation, useful tags, and distributed tracing may be sufficient. &lt;a href="https://opentelemetry.io/docs/concepts/semantic-conventions/" rel="noopener noreferrer"&gt;OpenTelemetry Semantic Conventions&lt;/a&gt; provide a practical starting point.&lt;/p&gt;

&lt;p&gt;A complete knowledge graph introduces additional costs: ontology design, data integration, graph maintenance, and governance.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Should Agentic Monitoring Run in a Sandbox?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Develop and test it in a sandbox or staging environment first.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;However, the knowledge graph and observability pipeline do not inherently need to run in a sandbox. The critical security concern is the agent's execution environment and permissions.&lt;/p&gt;

&lt;p&gt;A practical rollout strategy is:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Sandbox:&lt;/strong&gt; Test incident scenarios, graph queries, agent reasoning, and tool calls using synthetic or sanitized telemetry.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Production read-only mode:&lt;/strong&gt; Allow agents to query approved production telemetry and propose explanations without changing the system.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Controlled remediation:&lt;/strong&gt; Introduce actions such as restarting services or rolling back deployments only with strict permissions, independent validation, and human approval where appropriate.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Sandboxing and least-privilege access help limit the consequences of incorrect reasoning or unintended tool calls. For further guidance, see &lt;a href="https://developers.openai.com/api/docs/guides/agents/guardrails-approvals" rel="noopener noreferrer"&gt;OpenAI's documentation on agent guardrails and human review&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Final Thoughts
&lt;/h2&gt;

&lt;p&gt;Ontology-driven observability is not a replacement for traditional monitoring. It is a way to add &lt;strong&gt;shared context and connected system knowledge&lt;/strong&gt; to it.&lt;/p&gt;

&lt;p&gt;Rules can use the graph to perform deterministic analysis. LLM-powered agents can use the same graph to investigate incidents dynamically and coordinate more complex workflows.&lt;/p&gt;

&lt;p&gt;The strongest starting point is simple: establish &lt;strong&gt;reliable telemetry and system relationships&lt;/strong&gt; first, then introduce &lt;strong&gt;agentic analysis&lt;/strong&gt; where it provides measurable value.&lt;/p&gt;

</description>
      <category>devops</category>
      <category>observability</category>
      <category>ai</category>
      <category>knowledgegraphs</category>
    </item>
  </channel>
</rss>
