Skip to content

Commit 68c41f8

Browse files
authoredFeb 18, 2021
Create examples.md
1 parent b31d074 commit 68c41f8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎examples.md

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
END_TIME=$(date +%s)
2+
START_TIME=$(date --date="30 minutes ago" +%s)
3+
4+
oc exec -c prometheus -n openshift-monitoring prometheus-k8s-0 -- curl --data-urlencode "query=histogram_quantile(0.9999, sum(rate(etcd_disk_backend_commit_duration_seconds_bucket{job=\"etcd\"}[2m])) by (instance, le))" --data-urlencode "step=10" --data-urlencode "start=$START_TIME" --data-urlencode "end=$END_TIME" http://localhost:9090/api/v1/query_range > etcd_disk_backend_commit_duration_seconds_bucket

0 commit comments

Comments
 (0)