Skip to content

Repository files navigation

SNA Final Project - Nginx-Balanced Python Infrastructure with Prometheus Monitoring

Quick Start

# 1. Clone the repository
git clone https://gitlab.pg.innopolis.university/sna/sna-final-project.git

# 2. Navigate to project folder
cd sna-final-project

# 3. Create .env from example and fill in your variables
cp .env.example .env

# 4. Build and run containers (3 FastAPI instances)
docker compose up -d --build --scale fastapi=3

Open Swagger

Go to: http://localhost:80/docs

Set up Grapafana dashboards

  • Open ./grafana/dashboards/weather-dashboards.json
  • Copy the .json file
  • Open `http://localhost:3000'
  • Open Connections -> Data sources. Press Add data source button alt text
  • Choose Prometheus alt text
  • Feel the name and connection url http://localhost:9090 alt text
  • Scroll down and press Save & test alt text
  • You should see this message alt text
  • Go to Dashboards -> Create dashboard alt text
  • Choose Import dashboard alt text
  • Choose Upload dashboard JSON file or paste code to the field below alt text
  • Choose DS_PROMETHEUS variable alt text
  • After these steps you should see 6 dashboards alt text

About

REST API service focused on observability and reliabillity

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages