## pp_auth.rollout.would_deny Metrics Demo

Generate example `pp_auth.rollout.would_deny` Datadog metrics for various services to demo
a dashboard that shows rollout status for OWS migrations in progress.

[PP Auth Rollout - Would Deny Analysis](https://sonymusic-pde.datadoghq.com/dashboard/s6j-76w-52y?fromUser=true&refresh_mode=paused&from_ts=1779840259865&to_ts=1779841069865&live=false)
![Dashboard Screenshot](./PP-1532__example_dashboard.png)

---

## Services

### `metrics_demo` — Synthetic metric generator

Sends randomised `pp_auth.rollout.would_deny` count metrics directly to Datadog.
No real PDP calls — useful for populating the dashboard with demo data quickly.

```bash
cd metrics_demo
cp .env.example .env   # set DD_API_KEY + DD_APP_KEY
make up
make logs              # optional
make down
```

---

### `pdp_sdk_metrics_demo` — Live Flask + FastAPI services with traffic generator

Two dockerised services (`flask_demo_service`, `fastapi_demo_service`) that perform
real PDP auth checks via `MigrationAuthorizationBackend`, plus a `traffic_gen` container
that drives traffic to both.

See **[pdp_sdk_metrics_demo/README.md](./pdp_sdk_metrics_demo/README.md)** for full setup and details.

```bash
awsume dev
cd pdp_sdk_metrics_demo
cp .env.example .env   # set DD keys + Auth0 creds
make wheel             # build the python-pdp-sdk wheel into each service's dist/
make up
```
