Skip to content

Commit e8abc04

Browse files
committed
fix: cr resolutions
1 parent b0f7cac commit e8abc04

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

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

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -124,13 +124,20 @@ curl -H "Authorization: Bearer $TOKEN" localhost:9090/metrics
124124
A simple grafana deployment can be done with the following commands:
125125

126126
```bash
127-
helm repo add grafana https://grafana.github.io/helm-charts
128-
helm install grafana grafana/grafana --namespace monitoring
127+
helm repo add grafana https://grafana.github.io/helm-charts
128+
helm install grafana grafana/grafana --namespace monitoring --create-namespace
129+
```
130+
131+
Get the Grafana URL to visit by running these commands in the same shell:
132+
133+
```bash
134+
export POD_NAME=$(kubectl get pods --namespace monitoring -l "app.kubernetes.io/name=grafana,app.kubernetes.io/instance=grafana" -o jsonpath="{.items[0].metadata.name}")
135+
kubectl --namespace monitoring port-forward $POD_NAME 3000
129136
```
130137

131138
### Prometheus
132139

133-
We currently have 2 types of prometheus deployments documented
140+
We currently have 2 types of prometheus deployments documented:
134141

135142
1. Self Hosted using the prometheus helm chart
136143
2. Using Google Managed Prometheus
@@ -146,11 +153,11 @@ We currently have 2 types of prometheus deployments documented
146153
Deploy the prometheus helm chart using this command:
147154
```bash
148155
helm install prometheus prometheus-community/prometheus \
149-
--namespace monitoring --create-namespace \
156+
--namespace monitoring \
150157
-f https://github.com/kubernetes-sigs/gateway-api-inference-extension/raw/main/config/manifests/prometheus/values.yaml
151158
```
152159

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

156163
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

0 commit comments

Comments
 (0)