Skip to content

Commit b78a0de

Browse files
committed
fix: Update curl command for Prometheus metrics query to use --data-urlencode
Signed-off-by: XploY04 <2004agarwalyash@gmail.com>
1 parent 6b442b7 commit b78a0de

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ kubectl get podmonitor pg-eu -o wide
247247

248248
# Verify Prometheus is scraping CNPG metrics
249249
kubectl -n prometheus-operator port-forward svc/prometheus 9090:9090 &
250-
curl -s "http://localhost:9090/api/v1/query?query=sum(cnpg_collector_up{cluster=\"pg-eu\"})"
250+
curl -s --data-urlencode 'query=sum(cnpg_collector_up{cluster="pg-eu"})' "http://localhost:9090/api/v1/query"
251251
```
252252

253253
**Access Grafana dashboard:**

0 commit comments

Comments
 (0)