forked from mtusi2026/mtusi2026lab6
273 lines
6.6 KiB
JSON
273 lines
6.6 KiB
JSON
[
|
|
{
|
|
"id": 1,
|
|
"title": "RPS",
|
|
"expr": "sum(rate(http_requests[30s]))",
|
|
"http": 200,
|
|
"error": false,
|
|
"frames": 1,
|
|
"finiteSamples": 16,
|
|
"nonfiniteSamples": 0,
|
|
"min": 0,
|
|
"max": 1.0490127053294251,
|
|
"canvas": 1,
|
|
"noData": false,
|
|
"pass": true
|
|
},
|
|
{
|
|
"id": 2,
|
|
"title": "5xx ratio",
|
|
"expr": "(sum(rate(http_requests{status_class=\"5xx\"}[30s])) or vector(0)) / clamp_min(sum(rate(http_requests[30s])),0.001)",
|
|
"http": 200,
|
|
"error": false,
|
|
"frames": 1,
|
|
"finiteSamples": 16,
|
|
"nonfiniteSamples": 0,
|
|
"min": 0,
|
|
"max": 0,
|
|
"canvas": 1,
|
|
"noData": false,
|
|
"pass": true
|
|
},
|
|
{
|
|
"id": 3,
|
|
"title": "API p50",
|
|
"expr": "histogram_quantile(0.50, sum by(le)(rate(http_duration_bucket[30s])))",
|
|
"http": 200,
|
|
"error": false,
|
|
"frames": 1,
|
|
"finiteSamples": 7,
|
|
"nonfiniteSamples": 9,
|
|
"min": 0.004301818123549536,
|
|
"max": 0.004589393222579283,
|
|
"canvas": 1,
|
|
"noData": false,
|
|
"pass": true
|
|
},
|
|
{
|
|
"id": 4,
|
|
"title": "API p95",
|
|
"expr": "histogram_quantile(0.95, sum by(le)(rate(http_duration_bucket[30s])))",
|
|
"http": 200,
|
|
"error": false,
|
|
"frames": 1,
|
|
"finiteSamples": 7,
|
|
"nonfiniteSamples": 9,
|
|
"min": 0.08555361894188182,
|
|
"max": 0.09446530637165847,
|
|
"canvas": 1,
|
|
"noData": false,
|
|
"pass": true
|
|
},
|
|
{
|
|
"id": 5,
|
|
"title": "API p99",
|
|
"expr": "histogram_quantile(0.99, sum by(le)(rate(http_duration_bucket[30s])))",
|
|
"http": 200,
|
|
"error": false,
|
|
"frames": 1,
|
|
"finiteSamples": 7,
|
|
"nonfiniteSamples": 9,
|
|
"min": 0.09711072378837636,
|
|
"max": 0.2064125248025097,
|
|
"canvas": 1,
|
|
"noData": false,
|
|
"pass": true
|
|
},
|
|
{
|
|
"id": 6,
|
|
"title": "Oldest queued job",
|
|
"expr": "max((queue_oldest_age_seconds and (timestamp(queue_oldest_age_seconds) > time()-10)))",
|
|
"http": 200,
|
|
"error": false,
|
|
"frames": 1,
|
|
"finiteSamples": 16,
|
|
"nonfiniteSamples": 0,
|
|
"min": 0,
|
|
"max": 0.8785,
|
|
"canvas": 1,
|
|
"noData": false,
|
|
"pass": true
|
|
},
|
|
{
|
|
"id": 7,
|
|
"title": "Queue depth",
|
|
"expr": "max((queue_depth and (timestamp(queue_depth) > time()-10)))",
|
|
"http": 200,
|
|
"error": false,
|
|
"frames": 1,
|
|
"finiteSamples": 16,
|
|
"nonfiniteSamples": 0,
|
|
"min": 0,
|
|
"max": 1,
|
|
"canvas": 1,
|
|
"noData": false,
|
|
"pass": true
|
|
},
|
|
{
|
|
"id": 8,
|
|
"title": "DB pool usage",
|
|
"expr": "sum((db_pool_used and (timestamp(db_pool_used) > time()-10))) / clamp_min(sum((db_pool_capacity and (timestamp(db_pool_capacity) > time()-10))),1)",
|
|
"http": 200,
|
|
"error": false,
|
|
"frames": 1,
|
|
"finiteSamples": 16,
|
|
"nonfiniteSamples": 0,
|
|
"min": 0,
|
|
"max": 0,
|
|
"canvas": 1,
|
|
"noData": false,
|
|
"pass": true
|
|
},
|
|
{
|
|
"id": 9,
|
|
"title": "Worker saturation",
|
|
"expr": "sum((worker_busy and (timestamp(worker_busy) > time()-10))) / clamp_min(sum((worker_capacity and (timestamp(worker_capacity) > time()-10))),1)",
|
|
"http": 200,
|
|
"error": false,
|
|
"frames": 1,
|
|
"finiteSamples": 16,
|
|
"nonfiniteSamples": 0,
|
|
"min": 0,
|
|
"max": 1,
|
|
"canvas": 1,
|
|
"noData": false,
|
|
"pass": true
|
|
},
|
|
{
|
|
"id": 10,
|
|
"title": "Job outcomes",
|
|
"expr": "sum by(outcome)(rate(jobs_processed[30s]))",
|
|
"http": 200,
|
|
"error": false,
|
|
"frames": 1,
|
|
"finiteSamples": 16,
|
|
"nonfiniteSamples": 0,
|
|
"min": 0,
|
|
"max": 0.03571434311233714,
|
|
"canvas": 1,
|
|
"noData": false,
|
|
"pass": true
|
|
},
|
|
{
|
|
"id": 11,
|
|
"title": "Job p95",
|
|
"expr": "histogram_quantile(0.95,sum by(le)(rate(job_duration_bucket[30s])))",
|
|
"http": 200,
|
|
"error": false,
|
|
"frames": 1,
|
|
"finiteSamples": 6,
|
|
"nonfiniteSamples": 10,
|
|
"min": 0.9749999999999999,
|
|
"max": 0.9750000000000001,
|
|
"canvas": 1,
|
|
"noData": false,
|
|
"pass": true
|
|
},
|
|
{
|
|
"id": 12,
|
|
"title": "Time to ready p95",
|
|
"expr": "histogram_quantile(0.95,sum by(le)(rate(time_to_ready_bucket[30s])))",
|
|
"http": 200,
|
|
"error": false,
|
|
"frames": 1,
|
|
"finiteSamples": 6,
|
|
"nonfiniteSamples": 10,
|
|
"min": 0.976821202689633,
|
|
"max": 0.9768278560089629,
|
|
"canvas": 1,
|
|
"noData": false,
|
|
"pass": true
|
|
},
|
|
{
|
|
"id": 13,
|
|
"title": "DB pending acquires",
|
|
"expr": "sum((db_pool_pending_acquires and (timestamp(db_pool_pending_acquires) > time()-10)))",
|
|
"http": 200,
|
|
"error": false,
|
|
"frames": 1,
|
|
"finiteSamples": 16,
|
|
"nonfiniteSamples": 0,
|
|
"min": 0,
|
|
"max": 0,
|
|
"canvas": 1,
|
|
"noData": false,
|
|
"pass": true
|
|
},
|
|
{
|
|
"id": 14,
|
|
"title": "DB acquire p95",
|
|
"expr": "histogram_quantile(0.95,sum by(le)(rate(db_pool_acquire_duration_bucket[30s])))",
|
|
"http": 200,
|
|
"error": false,
|
|
"frames": 1,
|
|
"finiteSamples": 16,
|
|
"nonfiniteSamples": 0,
|
|
"min": 0.0009499999999999999,
|
|
"max": 0.0009500000000000001,
|
|
"canvas": 1,
|
|
"noData": false,
|
|
"pass": true
|
|
},
|
|
{
|
|
"id": 15,
|
|
"title": "Database observer available",
|
|
"expr": "min((database_observer_up and (timestamp(database_observer_up) > time()-10)))",
|
|
"http": 200,
|
|
"error": false,
|
|
"frames": 1,
|
|
"finiteSamples": 16,
|
|
"nonfiniteSamples": 0,
|
|
"min": 1,
|
|
"max": 1,
|
|
"canvas": 1,
|
|
"noData": false,
|
|
"pass": true
|
|
},
|
|
{
|
|
"id": 16,
|
|
"title": "Missed ready deadline (matured5m cohort)",
|
|
"expr": "max((((ready_slo_matured_300s - on(service_name,service_instance_id) ready_slo_timely_300s) / on(service_name,service_instance_id) clamp_min(ready_slo_matured_300s,1)) and on(service_name,service_instance_id) (database_observer_up == 1)) and on(service_name,service_instance_id) (timestamp(ready_slo_matured_300s) > time()-10) and on(service_name,service_instance_id) (timestamp(database_observer_up) > time()-10))",
|
|
"http": 200,
|
|
"error": false,
|
|
"frames": 1,
|
|
"finiteSamples": 16,
|
|
"nonfiniteSamples": 0,
|
|
"min": 0,
|
|
"max": 0,
|
|
"canvas": 1,
|
|
"noData": false,
|
|
"pass": true
|
|
},
|
|
{
|
|
"id": 17,
|
|
"title": "Process RSS",
|
|
"expr": "sum by(service_name)((process_resident_memory_bytes and (timestamp(process_resident_memory_bytes) > time()-10)))",
|
|
"http": 200,
|
|
"error": false,
|
|
"frames": 2,
|
|
"finiteSamples": 32,
|
|
"nonfiniteSamples": 0,
|
|
"min": 32276480,
|
|
"max": 194490368,
|
|
"canvas": 1,
|
|
"noData": false,
|
|
"pass": true
|
|
},
|
|
{
|
|
"id": 18,
|
|
"title": "Process CPU (cores)",
|
|
"expr": "sum by(service_name)(rate(process_cpu[30s]))",
|
|
"http": 200,
|
|
"error": false,
|
|
"frames": 2,
|
|
"finiteSamples": 32,
|
|
"nonfiniteSamples": 0,
|
|
"min": 0.0013742459754225059,
|
|
"max": 0.018518803625076408,
|
|
"canvas": 1,
|
|
"noData": false,
|
|
"pass": true
|
|
}
|
|
]
|