> ## Documentation Index
> Fetch the complete documentation index at: https://docs.anyshift.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Knowledge Graph

> How Annie builds and maintains a unified view of your entire infrastructure

Annie builds a **unified knowledge graph** of your entire infrastructure, connecting cloud resources, code, containers, and monitoring data into a single, queryable model.

<img className="block dark:hidden" src="https://mintcdn.com/anyshift/SMRtKmKXrAimwOBO/images/graphs/k8s-cool-graph.png?fit=max&auto=format&n=SMRtKmKXrAimwOBO&q=85&s=ff3bfba96dd5339c7bde415bd1a4d35d" style={{ width: '70%', margin: '1.5rem auto' }} width="4107" height="3079" data-path="images/graphs/k8s-cool-graph.png" />

<img className="hidden dark:block" src="https://mintcdn.com/anyshift/SMRtKmKXrAimwOBO/images/graphs/k8s-cool-graph.png?fit=max&auto=format&n=SMRtKmKXrAimwOBO&q=85&s=ff3bfba96dd5339c7bde415bd1a4d35d" style={{ width: '70%', margin: '1.5rem auto' }} width="4107" height="3079" data-path="images/graphs/k8s-cool-graph.png" />

## What Data Annie Has Access To

| Category                       | What Annie Knows                                                                           |
| ------------------------------ | ------------------------------------------------------------------------------------------ |
| **Cloud Infrastructure**       | Resources, configurations, security policies, IAM, networking, and all their relationships |
| **Containers & Orchestration** | Workloads, services, deployments, RBAC, and cluster topology                               |
| **Infrastructure as Code**     | Code definitions, modules, variables, and how code maps to deployed resources              |
| **Application Code**           | Source code, configuration files, and recent changes (can run on-prem)                     |
| **Deployed State**             | What's actually running vs. what's defined, detecting drift and orphaned resources         |
| **Observability**              | What's being monitored, which dashboards exist, and alerting configurations                |

Annie automatically discovers **relationships** between these categories. Ask *"Which code manages this instance?"* or *"What monitors are watching this service?"*

## How It All Connects

The knowledge graph links your infrastructure across four layers. Annie can trace relationships in any direction:

<CardGroup cols={2}>
  <Card title="Observability" icon="chart-mixed" href="/pages/integration/datadog">
    Monitors, dashboards, alerts, and hosts
  </Card>

  <Card title="Cloud Infrastructure" icon="cloud" href="/pages/integration/aws">
    Compute, storage, networking, security, and IAM
  </Card>

  <Card title="Containers & Workloads" icon="cubes" href="/pages/integration/kubernetes">
    Pods, services, deployments, and config maps
  </Card>

  <Card title="Infrastructure as Code" icon="code" href="/pages/iac/overview">
    Modules, resources, variables, and state
  </Card>
</CardGroup>

<Tip>
  Annie can trace from any layer to any other. Ask *"What code deployed this pod?"* or *"Which monitors watch resources in this module?"*
</Tip>

## How Fresh is the Data?

<CardGroup cols={3}>
  <Card title="Near Real-Time" icon="bolt">
    Infrastructure changes are reflected within seconds
  </Card>

  <Card title="7-Day History" icon="clock-rotate-left">
    Query the state of any resource at any point in the past week (extendable)
  </Card>

  <Card title="Change Tracking" icon="list-timeline">
    See exactly what changed, when, and in what order
  </Card>
</CardGroup>

Ask Annie *"What changed in production in the last 2 hours?"* or *"Show me the history of this security group since yesterday."*

## Live Observability Queries

For logs, metrics, and traces, Annie **queries your monitoring tools live**. She doesn't duplicate your observability data.

When investigating an incident, Annie calls your Datadog, Grafana, or other monitoring APIs in real-time, correlating what she finds with infrastructure changes from the knowledge graph.

<AccordionGroup>
  <Accordion icon="check" title="Benefits of Live Queries">
    * **Always fresh:** No sync delays, you get the latest data
    * **No duplication:** Your observability data stays where it is
    * **Full access:** Annie uses your existing queries and dashboards
  </Accordion>
</AccordionGroup>

## Related

<CardGroup cols={2}>
  <Card title="Memory and Agents" icon="brain" href="/pages/overview/memory_agents">
    How Annie learns from the graph and coordinates specialized agents.
  </Card>

  <Card title="Infrastructure as Code" icon="code" href="/pages/iac/overview">
    Code → state → live, and how Annie draws it as a diagram.
  </Card>

  <Card title="Annie Knowledge" icon="comments" href="/pages/product/annie_knowledge">
    Query the graph in plain language.
  </Card>

  <Card title="Change Management" icon="clock-rotate-left" href="/pages/product/time_travel">
    Walk the graph backwards through the last 7 days.
  </Card>
</CardGroup>
