# getanteon/anteon architecture

> Architecture diagram of the GitHub repository getanteon/anteon, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-01-05). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/getanteon/anteon
- Repository: https://github.com/getanteon/anteon

## Overview

##### Main Components

a. Core Components:
- Kubernetes Cluster (monitored environment)
- Anteon eBPF Agent (Alaz)
- Anteon Load Engine (Ddosify)
- Monitoring Backend Services
- Web Interface/Dashboard

b. Supporting Infrastructure:
- Database Systems (PostgreSQL - visible in selfhosted/init_scripts)
- Time-series Database (InfluxDB - visible in selfhosted/init_scripts)
- Metrics Collection (Prometheus - visible in selfhosted/init_scripts)
- Nginx Reverse Proxy (visible in selfhosted/nginx)

**┌─ User Interface Layer ─────────────────────┐**
- Web Dashboard                           │
- Service Map Visualization               │
- Metrics Display                         │
- API/Backend Layer ──────────────────────┐ │
- Performance Test Controller           │ │
- Monitoring Service                    │ │
- Alert Manager                         │ │
- Data Collection Layer ──────────────────┤ │
- eBPF Agent (Alaz)                    │ │
- Load Engine (Ddosify)                │ │
- Prometheus Metrics Collector          │ │
- Storage Layer ───────────────────────── │ │
- PostgreSQL                           │ │
- InfluxDB                            │ │
- Prometheus                          │ │
- ┴─┘

##### Key Interactions to Highlight

a. Monitoring Flow:
- eBPF Agent → Data Collection
- Metrics Flow → Time-series Storage
- Alert Generation → Notification Services

b. Performance Testing Flow:
- Scenario Creation → Load Engine
- Test Execution → Target Systems
- Results Collection → Analytics

##### Technical Details

- eBPF hooks and data collection points
- Service map generation flow
- Performance metrics aggregation
- Alert routing and notification paths

##### Deployment Context

- Both self-hosted and cloud deployment options
- Scalability points
- High-availability components

##### Real-time metrics collection and visualization

Use standardized symbols:
- Rectangles for services
- Hexagons for user interfaces
- Clouds for external services
- Clusters for grouped components

This system design should reflect Anteon's unique value proposition of combining Kubernetes monitoring with performance testing while highlighting its eBPF-based approach for minimal overhead monitoring.

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph K8s["Kubernetes Environment"]
        direction TB
        subgraph MS["Monitored Services"]
            SA["Service A"] --> SB["Service B"]
            SB --> SC["Service C"]
        end
        subgraph ML["Monitoring Layer"]
            EA["eBPF Agent (Alaz)"]
        end
        MS --> ML
    end

    subgraph AP["Anteon Platform"]
        direction TB
        subgraph DC["Data Collection"]
            MP["Metrics Pipeline"]:::metrics
        end
        
        subgraph PE["Processing Engine"]
            AE["Analytics Engine"]
            SM["Scenario Management"]:::scenario
            AS["Assertion System"]:::assertion
            SE["Scripting Engine"]:::scripting
            DE["Data Extraction"]:::extraction
            EM["Environment Management"]:::env
        end
        
        subgraph LE["Load Engine"]
            DD["Ddosify Core"]:::engine
            HC["HTTP Client"]:::http
            PM["Proxy Management"]:::proxy
            LC["Load Config"]:::config
            RA["Report Aggregator"]:::report
        end
        
        subgraph ST["Storage Layer"]
            IDB["InfluxDB"]:::influx
            PDB["PostgreSQL"]:::postgres
            PRO["Prometheus"]:::prometheus
        end
    end

    subgraph EX["External Services"]
        direction TB
        AC["Alert Channels"]
        LG["Load Generators"]
        TO["Test Orchestration"]:::orchestration
    end

    %% Connections
    K8s --> MP
    DD --> MS
    MP --> ST
    AE --> AC
    TO --> DD
    
    %% Click Events
    click DD "https://github.com/getanteon/anteon/blob/master/ddosify_engine/core/engine.go"
    click SM "https://github.com/getanteon/anteon/tree/master/ddosify_engine/core/scenario/"
    click AS "https://github.com/getanteon/anteon/tree/master/ddosify_engine/core/assertion/"
    click MP "https://github.com/getanteon/anteon/tree/master/ddosify_engine/core/report/"
    click IDB "https://github.com/getanteon/anteon/tree/master/selfhosted/init_scripts/influxdb/"
    click PDB "https://github.com/getanteon/anteon/tree/master/selfhosted/init_scripts/postgres/"
    click PRO "https://github.com/getanteon/anteon/tree/master/selfhosted/init_scripts/prometheus/"
    click TO "https://github.com/getanteon/anteon/blob/master/ddosify_engine/core/scenario/service.go"
    click SE "https://github.com/getanteon/anteon/tree/master/ddosify_engine/core/scenario/scripting/"
    click HC "https://github.com/getanteon/anteon/blob/master/ddosify_engine/core/scenario/requester/http.go"
    click DE "https://github.com/getanteon/anteon/tree/master/ddosify_engine/core/scenario/scripting/extraction/"
    click EM "https://github.com/getanteon/anteon/tree/master/ddosify_engine/core/scenario/scripting/injection/"
    click RA "https://github.com/getanteon/anteon/blob/master/ddosify_engine/core/report/aggregator.go"
    click PM "https://github.com/getanteon/anteon/tree/master/ddosify_engine/core/proxy/"
    click LC "https://github.com/getanteon/anteon/tree/master/ddosify_engine/config/"

    %% Styles
    classDef engine fill:#1f77b4
    classDef scenario fill:#2ca02c
    classDef assertion fill:#ff7f0e
    classDef metrics fill:#9467bd
    classDef influx fill:#8c564b
    classDef postgres fill:#e377c2
    classDef prometheus fill:#7f7f7f
    classDef orchestration fill:#bcbd22
    classDef scripting fill:#17becf
    classDef http fill:#aec7e8
    classDef extraction fill:#ffbb78
    classDef env fill:#98df8a
    classDef report fill:#ff9896
    classDef proxy fill:#c5b0d5
    classDef config fill:#c49c94
```
