Example of chaos lua NGINX plugin in docker
- run docker compose
- Open localhost:3000
- Add Prometheus data source with url: http://prometheus:9090
- Create dashboard with metrics:
- request_timings_bucket [ histogram_quantile(0.95, sum by(le) (rate(request_timings_bucket[$__rate_interval]))) ]
- oks [ increase(oks[$__rate_interval]) ]
- errors [ increase(errors[$__rate_interval]) ]
- write in chaos/config.txt file one of:
- reject
- latency
- no chaos