# aathish14/finops architecture

> Architecture diagram of the GitHub repository aathish14/finops, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/aathish14/finops
- Repository: https://github.com/aathish14/finops

## Overview

FinOps users upload AWS CUR or GCP billing CSVs in the Streamlit app, which normalizes the data, forecasts daily spend, flags historical anomalies, and presents charts and tables. The main runtime modules are evidenced by the app’s imports and calls. README documents MLflow experiment tracking, but the sampled app does not show it being invoked; its connection to the UI is therefore left out.

Main entry points: [`cloud-cost-forecasting/app.py`](https://github.com/aathish14/finops/blob/master/cloud-cost-forecasting/app.py) (Streamlit analysis app), [`cloud-cost-forecasting/app/ingest/ingestor.py`](https://github.com/aathish14/finops/blob/master/cloud-cost-forecasting/app/ingest/ingestor.py) (Billing ingestion), [`app/tracking/tracker.py`](https://github.com/aathish14/finops/blob/master/app/tracking/tracker.py) (Experiment tracking), [`cloud-cost-forecasting/app/ingest/schema.py`](https://github.com/aathish14/finops/blob/master/cloud-cost-forecasting/app/ingest/schema.py) (Unified billing schema)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Analysis workflow"]
  node_streamlit_app["Streamlit analysis app<br/>[app.py]"]
  node_billing_ingestion["Billing ingestion<br/>[ingestor.py]"]
  node_billing_schema["Unified billing schema<br/>[schema.py]"]
end

subgraph group_models["Forecasting and detection"]
  node_forecast_model["Prophet forecasting<br/>[prophet_model.py]"]
  node_anomaly_detector["Isolation Forest"]
end

subgraph group_presentation["Results and tracking"]
  node_charting["Interactive charts<br/>[plots.py]"]
  node_experiment_tracker["Experiment tracking<br/>[tracker.py]"]
  node_mlflow[("MLflow tracking store")]
end

node_finops_user(("FinOps user"))

node_finops_user -->|"uploads billing data"| node_streamlit_app
node_streamlit_app -->|"ingests files"| node_billing_ingestion
node_billing_ingestion -->|"uses required columns"| node_billing_schema
node_streamlit_app -->|"fits and predicts"| node_forecast_model
node_streamlit_app -->|"scores residual features"| node_anomaly_detector
node_streamlit_app -->|"renders charts"| node_charting
node_experiment_tracker -->|"logs experiments"| node_mlflow

click node_streamlit_app "https://github.com/aathish14/finops/blob/master/cloud-cost-forecasting/app.py"
click node_billing_ingestion "https://github.com/aathish14/finops/blob/master/cloud-cost-forecasting/app/ingest/ingestor.py"
click node_billing_schema "https://github.com/aathish14/finops/blob/master/cloud-cost-forecasting/app/ingest/schema.py"
click node_forecast_model "https://github.com/aathish14/finops/blob/master/cloud-cost-forecasting/app/forecasting/prophet_model.py"
click node_anomaly_detector "https://github.com/aathish14/finops/blob/master/cloud-cost-forecasting/app/anomaly/isolation_forest.py"
click node_charting "https://github.com/aathish14/finops/blob/master/cloud-cost-forecasting/app/visualization/plots.py"
click node_experiment_tracker "https://github.com/aathish14/finops/blob/master/app/tracking/tracker.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_streamlit_app,node_billing_ingestion,node_billing_schema,node_finops_user toneBlue
class node_forecast_model,node_anomaly_detector toneAmber
class node_charting,node_experiment_tracker,node_mlflow toneMint
```

## Components

### Analysis workflow

- [Streamlit analysis app](https://github.com/aathish14/finops/blob/master/cloud-cost-forecasting/app.py): `cloud-cost-forecasting/app.py`
- [Billing ingestion](https://github.com/aathish14/finops/blob/master/cloud-cost-forecasting/app/ingest/ingestor.py): `cloud-cost-forecasting/app/ingest/ingestor.py`
- [Unified billing schema](https://github.com/aathish14/finops/blob/master/cloud-cost-forecasting/app/ingest/schema.py): `cloud-cost-forecasting/app/ingest/schema.py`

### Forecasting and detection

- [Prophet forecasting](https://github.com/aathish14/finops/blob/master/cloud-cost-forecasting/app/forecasting/prophet_model.py): `cloud-cost-forecasting/app/forecasting/prophet_model.py`
- [Isolation Forest](https://github.com/aathish14/finops/blob/master/cloud-cost-forecasting/app/anomaly/isolation_forest.py): `cloud-cost-forecasting/app/anomaly/isolation_forest.py`

### Results and tracking

- [Interactive charts](https://github.com/aathish14/finops/blob/master/cloud-cost-forecasting/app/visualization/plots.py): `cloud-cost-forecasting/app/visualization/plots.py`
- [Experiment tracking](https://github.com/aathish14/finops/blob/master/app/tracking/tracker.py): `app/tracking/tracker.py`
- **MLflow tracking store**

### Other components

- **FinOps user**

## Connections

- FinOps user → Streamlit analysis app: uploads billing data (evidence: `README.md`)
- Streamlit analysis app → Billing ingestion: ingests files (evidence: `cloud-cost-forecasting/app.py`)
- Billing ingestion → Unified billing schema: uses required columns (evidence: `cloud-cost-forecasting/app/ingest/ingestor.py`)
- Streamlit analysis app → Prophet forecasting: fits and predicts (evidence: `cloud-cost-forecasting/app.py`)
- Streamlit analysis app → Isolation Forest: scores residual features (evidence: `cloud-cost-forecasting/app.py`)
- Streamlit analysis app → Interactive charts: renders charts (evidence: `cloud-cost-forecasting/app.py`)
- Experiment tracking → MLflow tracking store: logs experiments (evidence: `app/tracking/tracker.py`)
