# saminurk/open-source-end-to-end-oss-bss-prototype architecture

> Architecture diagram of the GitHub repository saminurk/open-source-end-to-end-oss-bss-prototype, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-01). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/saminurk/open-source-end-to-end-oss-bss-prototype
- Repository: https://github.com/saminurk/open-source-end-to-end-oss-bss-prototype

## Overview

This repository is a small OSS/BSS prototype for service orchestration, inventory, alarm handling, and assurance metrics. The main flows are an API request to ONAP mock, which updates NMS inventory and emits an orchestration event, and a simulated alarm, which is stored in NMS and published to Kafka for assurance to count by severity. Prometheus and Grafana configuration indicate a monitoring capability. Their runtime wiring is not shown in the excerpts, so those links are marked unverified; Docker Compose is only described as the way to run the prototype.

Main entry points: [`onap_mock/app.py`](https://github.com/saminurk/open-source-end-to-end-oss-bss-prototype/blob/main/onap_mock/app.py) (ONAP mock API), [`alarm_producer/producer.py`](https://github.com/saminurk/open-source-end-to-end-oss-bss-prototype/blob/main/alarm_producer/producer.py) (Alarm producer), [`assurance/consumer.py`](https://github.com/saminurk/open-source-end-to-end-oss-bss-prototype/blob/main/assurance/consumer.py) (Assurance consumer), [`prometheus/prometheus.yml`](https://github.com/saminurk/open-source-end-to-end-oss-bss-prototype/blob/main/prometheus/prometheus.yml) (Prometheus config)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_orchestration["Service orchestration"]
  node_onap["ONAP mock API<br/>[app.py]"]
end

subgraph group_inventory["Inventory and alarms"]
  node_nms[("NMS mock<br/>[app.py]")]
  node_alarmproducer["Alarm producer<br/>[producer.py]"]
end

subgraph group_assurance["Alarm assurance"]
  node_kafka["Kafka"]
  node_assuranceconsumer["Assurance consumer<br/>[consumer.py]"]
end

subgraph group_monitoring["Monitoring"]
  node_prometheus["Prometheus config<br/>[prometheus.yml]"]
  node_grafana["Grafana datasource config<br/>[datasource.yml]"]
end

node_client(("API client"))

node_client -->|"sends request"| node_onap
node_onap -->|"updates inventory"| node_nms
node_onap -->|"publishes events"| node_kafka
node_alarmproducer -->|"posts alarms"| node_nms
node_alarmproducer -->|"publishes alarms"| node_kafka
node_assuranceconsumer -->|"consumes alarms"| node_kafka
node_prometheus -.->|"scrapes metrics"| node_assuranceconsumer
node_grafana -.->|"uses datasource"| node_prometheus

click node_onap "https://github.com/saminurk/open-source-end-to-end-oss-bss-prototype/blob/main/onap_mock/app.py"
click node_nms "https://github.com/saminurk/open-source-end-to-end-oss-bss-prototype/blob/main/nms_mock/app.py"
click node_alarmproducer "https://github.com/saminurk/open-source-end-to-end-oss-bss-prototype/blob/main/alarm_producer/producer.py"
click node_assuranceconsumer "https://github.com/saminurk/open-source-end-to-end-oss-bss-prototype/blob/main/assurance/consumer.py"
click node_prometheus "https://github.com/saminurk/open-source-end-to-end-oss-bss-prototype/blob/main/prometheus/prometheus.yml"
click node_grafana "https://github.com/saminurk/open-source-end-to-end-oss-bss-prototype/blob/main/grafana/provisioning/datasources/datasource.yml"

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_onap,node_client toneBlue
class node_nms,node_alarmproducer toneAmber
class node_kafka,node_assuranceconsumer toneMint
class node_prometheus,node_grafana toneRose
```

## Components

### Service orchestration

- [ONAP mock API](https://github.com/saminurk/open-source-end-to-end-oss-bss-prototype/blob/main/onap_mock/app.py): `onap_mock/app.py`

### Inventory and alarms

- [NMS mock](https://github.com/saminurk/open-source-end-to-end-oss-bss-prototype/blob/main/nms_mock/app.py): `nms_mock/app.py`
- [Alarm producer](https://github.com/saminurk/open-source-end-to-end-oss-bss-prototype/blob/main/alarm_producer/producer.py): `alarm_producer/producer.py`

### Alarm assurance

- **Kafka**
- [Assurance consumer](https://github.com/saminurk/open-source-end-to-end-oss-bss-prototype/blob/main/assurance/consumer.py): `assurance/consumer.py`

### Monitoring

- [Prometheus config](https://github.com/saminurk/open-source-end-to-end-oss-bss-prototype/blob/main/prometheus/prometheus.yml): `prometheus/prometheus.yml`
- [Grafana datasource config](https://github.com/saminurk/open-source-end-to-end-oss-bss-prototype/blob/main/grafana/provisioning/datasources/datasource.yml): `grafana/provisioning/datasources/datasource.yml`

### Other components

- **API client**

## Connections

- API client → ONAP mock API: sends request (evidence: `onap_mock/app.py`)
- ONAP mock API → NMS mock: updates inventory (evidence: `onap_mock/app.py`)
- ONAP mock API → Kafka: publishes events (evidence: `onap_mock/app.py`)
- Alarm producer → NMS mock: posts alarms (evidence: `alarm_producer/producer.py`)
- Alarm producer → Kafka: publishes alarms (evidence: `alarm_producer/producer.py`)
- Assurance consumer → Kafka: consumes alarms (evidence: `assurance/consumer.py`)
- Prometheus config → Assurance consumer: scrapes metrics
- Grafana datasource config → Prometheus config: uses datasource
