Skip to content

Commit c4fd7e6

Browse files
committed
docs: add prometheus + grafana deployment guide
1 parent f573665 commit c4fd7e6

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

site-src/guides/metrics-and-observability.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,18 @@ We currently have 2 types of prometheus deployments documented:
151151
1. Self Hosted using the prometheus helm chart
152152
2. Using Google Managed Prometheus
153153

154+
A simple grafana deployment can be done with the following commands:
155+
```bash
156+
helm repo add grafana https://grafana.github.io/helm-charts
157+
helm install grafana grafana/grafana --namespace monitoring
158+
```
159+
160+
We currently have 2 types of prometheus deployments documented
161+
1. Self Hosted using the prometheus helm chart
162+
2. Using Google Managed Prometheus
163+
164+
### Prometheus
165+
154166
=== "Self-Hosted"
155167

156168
Add the prometheus-community helm repository:
@@ -162,11 +174,11 @@ We currently have 2 types of prometheus deployments documented:
162174
Deploy the prometheus helm chart using this command:
163175
```bash
164176
helm install prometheus prometheus-community/prometheus \
165-
--namespace monitoring \
177+
--namespace monitoring --create-namespace \
166178
-f https://github.com/kubernetes-sigs/gateway-api-inference-extension/raw/main/config/manifests/prometheus/values.yaml
167179
```
168180

169-
You can add the prometheus data source to grafana following [This Guide](https://grafana.com/docs/grafana/latest/administration/data-source-management/).
181+
You can add the prometheus data source to grafana following [This Guide](https://grafana.com/docs/grafana/latest/administration/data-source-management/)
170182
The prometheus server host is by default `http://prometheus-server`
171183

172184
Notice that the given values file is very simple and will work directly after following the [Getting Started Guide](https://gateway-api-inference-extension.sigs.k8s.io/guides/), you might need to modify it
@@ -178,8 +190,8 @@ We currently have 2 types of prometheus deployments documented:
178190

179191
## Load Inference Extension dashboard into Grafana
180192

181-
Please follow [grafana instructions](https://grafana.com/docs/grafana/latest/dashboards/build-dashboards/import-dashboards/) to load the dashboard json.
182-
The dashboard can be found here [Grafana Dashboard](https://github.com/kubernetes-sigs/gateway-api-inference-extension/blob/main/tools/dashboards/inference_gateway.json)
193+
Please follow [grafana instructions](https://grafana.com/docs/grafana/latest/dashboards/build-dashboards/import-dashboards/) to load the dashboard json.
194+
The dashboard can be found here [Grafana Dashboard](https://github.com/kubernetes-sigs/gateway-api-inference-extension/blob/main/tools/dashboards/inference_gateway.json)
183195

184196
## Prometheus Alerts
185197

0 commit comments

Comments
 (0)