Skip to content

Commit 79a05ff

Browse files
authored
feat: add long-running test (#17)
1 parent cefc2af commit 79a05ff

File tree

2 files changed

+401
-0
lines changed

2 files changed

+401
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,24 @@ go run main.go
176176

177177
Then visit http://localhost:8080/metrics to see the exported metrics.
178178

179+
## Long-Running Test
180+
181+
A long-running test simulates RBAC, ABAC, and ReBAC authorization patterns for testing with Prometheus and Grafana.
182+
183+
### Usage
184+
185+
```bash
186+
go test -v -run TestLongRunning -timeout 0
187+
```
188+
189+
The test generates ~50-150 requests/second and exposes metrics on `http://localhost:8080/metrics`. Press Ctrl+C to stop.
190+
191+
### Integration with Prometheus/Grafana
192+
193+
1. Start the test
194+
2. Configure Prometheus to scrape `localhost:8080/metrics`
195+
3. Import the Grafana dashboard from `grafana-dashboard.json`
196+
179197
## License
180198

181199
This project is licensed under the Apache 2.0 License - see the [LICENSE](LICENSE) file for details.

0 commit comments

Comments
 (0)