Skip to content

Commit d41ec67

Browse files
committed
Grafana dashboard.
Adds a JSON file defining a Grafana dashboard that can be used to monitor the policy server metrics. It contains global and policy specific metrics.
1 parent a94345f commit d41ec67

File tree

2 files changed

+1456
-0
lines changed

2 files changed

+1456
-0
lines changed

DEVELOPMENT.md

+12
Original file line numberDiff line numberDiff line change
@@ -265,3 +265,15 @@ curl --location --request POST 'localhost:3000/validate/psp-capabilities' \
265265
}
266266
}'
267267
```
268+
269+
If you want to visualize the metrics in a Grafana dashboard you can start a Grafana
270+
instance locally:
271+
272+
```
273+
docker run -d --add-host=host.docker.internal:host-gateway --name=grafana -p 3001:3000 grafana/grafana
274+
```
275+
276+
After that, you can access Grafana WebUI at [localhost:3001](http://localhost:3001), create a Prometheus
277+
data source using the `http://host.docker.internal:9090` as the data source URL,
278+
and [import](https://grafana.com/docs/grafana/latest/dashboards/export-import/#import-dashboard)
279+
the dashboard definition kubewarden-dashboard.json file into the Grafana instance.

0 commit comments

Comments
 (0)