|
344 | 344 | }, |
345 | 345 | "targets": [ |
346 | 346 | { |
347 | | - "expr": "sum(histogram_quantile(0.95, rate(nantian_gateway_controlplane_xds_publish_ack_lag_seconds_bucket[5m])))", |
| 347 | + "expr": "histogram_quantile(0.95, sum(rate(nantian_gateway_controlplane_xds_publish_ack_lag_seconds_bucket{job=~\"$job_controlplane\"}[5m])) by (le))", |
348 | 348 | "refId": "A" |
349 | 349 | } |
350 | 350 | ], |
|
379 | 379 | }, |
380 | 380 | "targets": [ |
381 | 381 | { |
382 | | - "expr": "sum(nantian_gateway_dataplane_container_cpu_throttle_ratio{namespace=~\"$namespace\"} or rate(container_cpu_cfs_throttled_periods_total{namespace=~\"$namespace\",pod=~\"nantian-gw-dataplane-.*\"}[5m]) / rate(container_cpu_cfs_periods_total{namespace=~\"$namespace\",pod=~\"nantian-gw-dataplane-.*\"}[5m]))", |
| 382 | + "expr": "sum(rate(container_cpu_cfs_throttled_periods_total{namespace=~\"$namespace\",container!=\"\",pod=~\"$pod_dp\"}[5m]) / rate(container_cpu_cfs_periods_total{namespace=~\"$namespace\",container!=\"\",pod=~\"$pod_dp\"}[5m]))", |
383 | 383 | "refId": "A" |
384 | 384 | } |
385 | 385 | ], |
|
414 | 414 | }, |
415 | 415 | "targets": [ |
416 | 416 | { |
417 | | - "expr": "sum(nantian_gateway_dataplane_container_memory_working_set_bytes{namespace=~\"$namespace\"} or container_memory_working_set_bytes{namespace=~\"$namespace\",pod=~\"nantian-gw-dataplane-.*\"})", |
| 417 | + "expr": "sum(container_memory_working_set_bytes{namespace=~\"$namespace\",container!=\"\",pod=~\"$pod_dp\"})", |
418 | 418 | "refId": "A" |
419 | 419 | } |
420 | 420 | ], |
|
833 | 833 | }, |
834 | 834 | "targets": [ |
835 | 835 | { |
836 | | - "expr": "sum(nantian_gateway_dataplane_traffic_failover_success_rate)", |
| 836 | + "expr": "sum(nantian_gateway_dataplane_traffic_failover_success_rate{job=~\"$job_dataplane\"}) or vector(0)", |
837 | 837 | "refId": "A" |
838 | 838 | } |
839 | 839 | ], |
|
1187 | 1187 | "options": {}, |
1188 | 1188 | "targets": [ |
1189 | 1189 | { |
1190 | | - "expr": "nantian_gateway_dataplane_container_cpu_cores{namespace=~\"$namespace\"} or rate(container_cpu_usage_seconds_total{namespace=~\"$namespace\",pod=~\"nantian-gw-dataplane-.*\"}[5m])", |
| 1190 | + "expr": "rate(container_cpu_usage_seconds_total{namespace=~\"$namespace\",container!=\"\",pod=~\"$pod_dp\"}[5m])", |
1191 | 1191 | "legendFormat": "cores", |
1192 | 1192 | "refId": "A" |
1193 | 1193 | }, |
1194 | 1194 | { |
1195 | | - "expr": "nantian_gateway_dataplane_container_cpu_request_cores{namespace=~\"$namespace\"} or avg by (pod) (kube_pod_container_resource_requests{namespace=~\"$namespace\",pod=~\"nantian-gw-dataplane-.*\",resource=\"cpu\"})", |
| 1195 | + "expr": "avg by (pod) (kube_pod_container_resource_requests{namespace=~\"$namespace\",container!=\"\",pod=~\"$pod_dp\",resource=\"cpu\"})", |
1196 | 1196 | "legendFormat": "request", |
1197 | 1197 | "refId": "B" |
1198 | 1198 | } |
|
1220 | 1220 | "options": {}, |
1221 | 1221 | "targets": [ |
1222 | 1222 | { |
1223 | | - "expr": "nantian_gateway_dataplane_container_cpu_throttle_ratio{namespace=~\"$namespace\"} or rate(container_cpu_cfs_throttled_periods_total{namespace=~\"$namespace\",pod=~\"nantian-gw-dataplane-.*\"}[5m]) / rate(container_cpu_cfs_periods_total{namespace=~\"$namespace\",pod=~\"nantian-gw-dataplane-.*\"}[5m])", |
| 1223 | + "expr": "rate(container_cpu_cfs_throttled_periods_total{namespace=~\"$namespace\",container!=\"\",pod=~\"$pod_dp\"}[5m]) / rate(container_cpu_cfs_periods_total{namespace=~\"$namespace\",container!=\"\",pod=~\"$pod_dp\"}[5m])", |
1224 | 1224 | "legendFormat": "throttle", |
1225 | 1225 | "refId": "A" |
1226 | 1226 | } |
|
1248 | 1248 | "options": {}, |
1249 | 1249 | "targets": [ |
1250 | 1250 | { |
1251 | | - "expr": "sum by (pod) (nantian_gateway_dataplane_container_memory_working_set_bytes{namespace=~\"$namespace\"} or container_memory_working_set_bytes{namespace=~\"$namespace\",pod=~\"nantian-gw-dataplane-.*\"})", |
| 1251 | + "expr": "sum by (pod) (container_memory_working_set_bytes{namespace=~\"$namespace\",container!=\"\",pod=~\"$pod_dp\"})", |
1252 | 1252 | "legendFormat": "{{pod}}", |
1253 | 1253 | "refId": "A" |
1254 | 1254 | }, |
1255 | 1255 | { |
1256 | | - "expr": "max by (pod) (nantian_gateway_dataplane_container_memory_limit_bytes{namespace=~\"$namespace\"} or avg by (pod) (kube_pod_container_resource_limits{namespace=~\"$namespace\",pod=~\"nantian-gw-dataplane-.*\",resource=\"memory\"}))", |
| 1256 | + "expr": "avg by (pod) (kube_pod_container_resource_limits{namespace=~\"$namespace\",container!=\"\",pod=~\"$pod_dp\",resource=\"memory\"})", |
1257 | 1257 | "legendFormat": "limit", |
1258 | 1258 | "refId": "B" |
1259 | 1259 | }, |
1260 | 1260 | { |
1261 | | - "expr": "max by (pod) (nantian_gateway_dataplane_container_memory_request_bytes{namespace=~\"$namespace\"} or avg by (pod) (kube_pod_container_resource_requests{namespace=~\"$namespace\",pod=~\"nantian-gw-dataplane-.*\",resource=\"memory\"}))", |
| 1261 | + "expr": "avg by (pod) (kube_pod_container_resource_requests{namespace=~\"$namespace\",container!=\"\",pod=~\"$pod_dp\",resource=\"memory\"})", |
1262 | 1262 | "legendFormat": "request", |
1263 | 1263 | "refId": "C" |
1264 | 1264 | } |
|
1474 | 1474 | "options": {}, |
1475 | 1475 | "targets": [ |
1476 | 1476 | { |
1477 | | - "expr": "histogram_quantile(0.99, rate(nantian_gateway_controlplane_xds_publish_ack_lag_seconds_bucket[5m]))", |
| 1477 | + "expr": "histogram_quantile(0.99, sum(rate(nantian_gateway_controlplane_xds_publish_ack_lag_seconds_bucket{job=~\"$job_controlplane\"}[5m])) by (le))", |
1478 | 1478 | "legendFormat": "ACK p99", |
1479 | 1479 | "refId": "A" |
1480 | | - }, |
1481 | | - { |
1482 | | - "expr": "histogram_quantile(0.99, rate(nantian_gateway_controlplane_xds_publish_nack_lag_seconds_bucket[5m]))", |
1483 | | - "legendFormat": "NACK p99", |
1484 | | - "refId": "B" |
1485 | 1480 | } |
1486 | 1481 | ], |
1487 | 1482 | "title": "xDS ACK/NACK Lag", |
|
0 commit comments