Skip to content

Instantly share code, notes, and snippets.

@kenichi
Created May 17, 2022 15:23
Show Gist options
  • Save kenichi/14298b28045ebd5156d630e974eea906 to your computer and use it in GitHub Desktop.
Save kenichi/14298b28045ebd5156d630e974eea906 to your computer and use it in GitHub Desktop.
Summary
URL: http://localhost:3301/api/v1/query_range?query=(%20%20%20(%20%20%20%20%20sum(increase(datahub_prom_ex_phoenix_http_request_duration_milliseconds_bucket%7Ble%3D%22500%22%2C%20status%3D~%222..%22%7D%5B1h%5D))%20%20%20%20%20%2B%20%20%20%20%20(%20%20%20%20%20%20%20sum(increase(datahub_prom_ex_phoenix_http_request_duration_milliseconds_bucket%7Ble%3D%221000%22%2C%20status%3D~%222..%22%7D%5B1h%5D))%20%20%20%20%20%20%20-%20%20%20%20%20%20%20sum(increase(datahub_prom_ex_phoenix_http_request_duration_milliseconds_bucket%7Ble%3D%22500%22%2C%20status%3D~%222..%22%7D%5B1h%5D))%20%20%20%20%20)%20%20%20%20%20%2F%20%20%20%20%202%20%20%20)%20%20%20%2F%20%20%20sum(increase(datahub_prom_ex_phoenix_http_request_duration_milliseconds_count%7Bstatus%3D~%222..%22%7D%5B1h%5D))%20)%20*%20100&start=1652800729.811&end=1652800729.811&step=60
Status: 200 OK
Source: Network
Address: ::1:3301
Initiator:
main.ffcd680eff529bc19473.js:2:787140
Request
GET /api/v1/query_range HTTP/1.1
Accept: application/json, text/plain, */*
Pragma: no-cache
Cookie: grafana_session=15dccba96814d3e7ca528f36f064d1a3
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImtlbmljaGlAcmF0aW9wYmMuY29tIiwiZXhwIjoxNjUyODAyMTE0LCJnaWQiOiIxNzM1YTJkNC0yNDA2LTRjZDYtODc2Ni0wMDQ1MzA2MzA2NWIiLCJpZCI6IjFjZjY4NDhjLTM0MTEtNDc0ZS04NTQ0LTdhOWI4ZmJjYWUyZSJ9.xrgYFqOzIPd-Z5OKah6vsNhijt_jqlnkwBoGj8CpgeQ
Referer: http://localhost:3301/dashboard/7e341333-de6e-4ce0-91de-f73855e14cdc/new?widgetId=b4c2a919-482a-4398-99e8-162bfc417296&graphType=VALUE
Cache-Control: no-cache
Host: localhost:3301
Accept-Language: en-US,en;q=0.9
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.4 Safari/605.1.15
Accept-Encoding: gzip, deflate
Connection: keep-alive
Response
HTTP/1.1 200 OK
Content-Type: application/json
Connection: keep-alive
Date: Tue, 17 May 2022 15:18:49 GMT
Content-Encoding: gzip
Content-Length: 129
Vary: Accept-Encoding, Origin
Server: nginx/1.18.0
Query String Parameters
query: ( ( sum(increase(datahub_prom_ex_phoenix_http_request_duration_milliseconds_bucket{le="500", status=~"2.."}[1h])) + ( sum(increase(datahub_prom_ex_phoenix_http_request_duration_milliseconds_bucket{le="1000", status=~"2.."}[1h])) - sum(increase(datahub_prom_ex_phoenix_http_request_duration_milliseconds_bucket{le="500", status=~"2.."}[1h])) ) / 2 ) / sum(increase(datahub_prom_ex_phoenix_http_request_duration_milliseconds_count{status=~"2.."}[1h])) ) * 100
start: 1652800729.811
end: 1652800729.811
step: 60
{
"status": "success",
"data": {
"resultType": "matrix",
"result": [
{
"metric": {},
"values": [
[
1652800729.811,
"95.80257963434151"
]
]
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment