# shashank-scikiq/watcher-service architecture

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

- Interactive diagram: https://gitdiagram.com/shashank-scikiq/watcher-service
- Repository: https://github.com/shashank-scikiq/watcher-service

## Overview

##### Main Components

a) Core Components:
- API Watcher Service (Central Component)
- Monitored Endpoints (Production & Dev)
- Web Interface for Logs
- Docker Container Environment

b) Key Files/Services:
- Configuration System (configs.py)
- Watcher Module (watcher.py)
- Web Server Component
- Docker Orchestration Layer

**[External Layer]**
- Production Endpoints
- Development Endpoints

**[Core Layer]**
- API Watcher Service
- Configuration Manager
- Watcher Module
- Logging System

**[Presentation Layer]**
- Web Interface (Port 8080)

**[Infrastructure Layer]**
- Docker Container
- Docker Compose Environment

##### Component Relationships

- Dependencies between the Docker components and the application

##### Important Details

- Port mappings (8080 for web interface)
- Environment configuration flow
- Logging data flow
- Docker compose orchestration
- HTTP endpoint connections

##### Additional Notes

- Version or environment indicators
- Notes about scaling considerations
- Security boundaries

Remember to maintain a balance between showing the overall architecture while including enough detail to understand the monitoring and logging functionality, which appears to be the core purpose of this service.

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph External
        PE["Production Endpoints"]:::external
        DE["Development Endpoints"]:::external
    end

    subgraph Core["Core Service Layer"]
        AWS["API Watcher Service"]:::core
        CM["Configuration Manager"]:::core
        WM["Watcher Module"]:::core
        LS["Logging System"]:::core

        AWS --> CM
        AWS --> WM
        WM --> LS
    end

    subgraph Web["Web Interface Layer"]
        WI["Web Interface<br/>(Port: 8080)"]:::web
        FE["Frontend UI"]:::web
        WD["Web Dependencies"]:::web

        WI --> FE
        FE --> WD
    end

    subgraph Infrastructure["Infrastructure Layer"]
        DC["Docker Container"]:::infra
        DCO["Docker Compose"]:::infra
        CI["CI/CD Pipeline"]:::infra
        EP["Entry Point"]:::infra

        DCO --> DC
        CI --> DCO
        DC --> EP
    end

    PE --> AWS
    DE --> AWS
    LS --> WI
    EP --> AWS

    %% Component Mappings
    click AWS "https://github.com/shashank-scikiq/watcher-service/blob/main/watcher.py"
    click CM "https://github.com/shashank-scikiq/watcher-service/blob/main/configs.py"
    click WI "https://github.com/shashank-scikiq/watcher-service/tree/main/web/"
    click FE "https://github.com/shashank-scikiq/watcher-service/blob/main/web/index.html"
    click WD "https://github.com/shashank-scikiq/watcher-service/blob/main/web/package.json"
    click DC "https://github.com/shashank-scikiq/watcher-service/tree/main/Dockerfile"
    click DCO "https://github.com/shashank-scikiq/watcher-service/blob/main/docker-compose.yml"
    click EP "https://github.com/shashank-scikiq/watcher-service/blob/main/entry.sh"
    click CI "https://github.com/shashank-scikiq/watcher-service/blob/main/.github/workflows/main.yml"

    %% Styling
    classDef external fill:#90EE90,stroke:#333,stroke-width:2px
    classDef core fill:#87CEEB,stroke:#333,stroke-width:2px
    classDef web fill:#FFA500,stroke:#333,stroke-width:2px
    classDef infra fill:#DCDCDC,stroke:#333,stroke-width:2px

    %% Legend
    subgraph Legend
        L1["External Systems"]:::external
        L2["Core Components"]:::core
        L3["Web Components"]:::web
        L4["Infrastructure"]:::infra
    end
```
