You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-5Lines changed: 2 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -109,13 +109,10 @@ This section guides you through setting up Prometheus and Grafana to visualize C
109
109
2.**Configure Prometheus** to scrape metrics from your application. Edit your `prometheus.yml` configuration file and add a new job under `scrape_configs`:
110
110
111
111
```yaml
112
-
global:
113
-
scrape_interval: 15s# Scrape targets every 15 seconds
114
-
115
112
scrape_configs:
116
-
- job_name: "casbin-app"
113
+
- job_name: "casbin-prometheus-logger"
117
114
static_configs:
118
-
- targets: ["localhost:8080"]# Replace with your app's host:port
115
+
- targets: ["localhost:8080"]
119
116
```
120
117
121
118
Replace `localhost:8080` with the actual address where your application exposes the `/metrics` endpoint.
0 commit comments