Skip to content

Commit

Permalink
Merge pull request kubernetes-sigs#45 from skydiator/skydiator-readme…
Browse files Browse the repository at this point in the history
…-update

Updated instruction to use json for data.
  • Loading branch information
k8s-ci-robot authored Jan 16, 2019
2 parents a767ad8 + 5eae99a commit b7016fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ query the testing adapter with:
kubectl proxy &
# write a sample metric -- the write paths match the same URL structure
# as the read paths, but at the /write-metrics base path.
curl -XPOST http://localhost:8080/api/v1/namespaces/custom-metrics/services/custom-metrics-apiserver:http/proxy/write-metrics/namespaces/default/services/kubernetes/test-metric --data-raw '"300m"'
# data needs to be in json, so we also need to set the content-type header
curl -XPOST -H 'Content-Type: application/json' http://localhost:8080/api/v1/namespaces/custom-metrics/services/custom-metrics-apiserver:http/proxy/write-metrics/namespaces/default/services/kubernetes/test-metric --data-raw '"300m"'
```

```
Expand Down

0 comments on commit b7016fc

Please sign in to comment.