@platformos/pos-cli
Version:
Manage your platformOS application
13 lines (12 loc) • 617 B
JSON
{
"aggs": {
"histogram": "SELECT lb_status_code, target_status_code, http_request_path as path, count(target_status_code) as count, approx_percentile_cont(target_processing_time, 0.5) as avg_target_processing_time FROM query GROUP BY lb_status_code, target_status_code, path ORDER BY avg_target_processing_time DESC limit 20"
},
"query": {
"sql": "select * from requests where target_processing_time > 1"
},
"meta": {
"title": "endpoints with response time > 1s",
"columns": ["path", "count", "avg_target_processing_time", "target_status_code", "lb_status_code", "target_status_code"]
}
}