Skip to content

Commit 3a3b7c7

Browse files
committed
fix: improve README
1 parent 54a69a0 commit 3a3b7c7

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

README.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,13 +109,10 @@ This section guides you through setting up Prometheus and Grafana to visualize C
109109
2. **Configure Prometheus** to scrape metrics from your application. Edit your `prometheus.yml` configuration file and add a new job under `scrape_configs`:
110110

111111
```yaml
112-
global:
113-
scrape_interval: 15s # Scrape targets every 15 seconds
114-
115112
scrape_configs:
116-
- job_name: "casbin-app"
113+
- job_name: "casbin-prometheus-logger"
117114
static_configs:
118-
- targets: ["localhost:8080"] # Replace with your app's host:port
115+
- targets: ["localhost:8080"]
119116
```
120117
121118
Replace `localhost:8080` with the actual address where your application exposes the `/metrics` endpoint.

0 commit comments

Comments
 (0)