Skip to content

bokehtv/infrastructure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

BokehTV β€” Infrastructure & Observability

This repository handles the containerized local development stack and the cross-platform monitoring ecosystem for the BokehTV project.


πŸ— Docker Compose Ecosystem

BokehTV relies on Docker Compose to orchestrate local development tools.

  • postgres β€” Relational storage for the Express API.
  • redis β€” High-performance cache-aside for TMDB search results.
  • prometheus β€” Scrapes real-time metrics (latency, error rates) from the backend.
  • grafana β€” Visual dashboard with pre-configured observability for "BokehTV Core Metrics".

πŸ“ˆ Observability Setup

1. Prometheus Scraping

The backend exposes metrics via express-prom-bundle. These are automatically scraped by the local Prometheus instance defined in prometheus/prometheus.yml.

2. Grafana Dashboards

Grafana is pre-baked with data sources and a "BokehTV Core Dashboard" that visualizes:

  • API Latency (95th & 99th percentile)
  • 4xx/5xx Error Rates
  • Watchlist Operation Volume
  • Redis Cache Hit/Miss ratios

3. Usage

docker-compose up -d
  • Grafana: Available at http://localhost:3001 (Default: admin/admin).
  • Prometheus: Available at http://localhost:9090.

πŸš€ Monitoring (Local vs Prod)

We employ a Hybrid Strategy. Prometheus/Grafana run locally under Docker and can scrape either:

  1. Local Backend: Default dev setup.
  2. Production Backend: Point Prometheus to your live Railway instance to monitor production traffic from a local dashboard.

πŸ›‘ License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors