|
264 | 264 | "datasource": { "type": "prometheus", "uid": "PROM_DATASOURCE_UID" }, |
265 | 265 | "editorMode": "code", |
266 | 266 | "expr": "hive_workflow_job_duration_seconds{task_identifier=\"evaluateMetricAlertRules\",quantile=\"0.99\"}", |
267 | | - "legendFormat": "p99", |
| 267 | + "legendFormat": "p99 {{pod}}", |
268 | 268 | "range": true, |
269 | 269 | "refId": "A" |
270 | 270 | } |
271 | 271 | ], |
272 | 272 | "title": "evaluateMetricAlertRules task duration (p99)", |
273 | 273 | "type": "timeseries" |
274 | 274 | }, |
| 275 | + { |
| 276 | + "datasource": { "type": "prometheus", "uid": "PROM_DATASOURCE_UID" }, |
| 277 | + "description": "Enabled query groups (one ClickHouse query each) split by whether a saved filter is attached. Filtered groups read the heavier legacy tables (cost scales with the target's traffic cardinality), so watch this for growth in the more expensive with-filter population.", |
| 278 | + "fieldConfig": { |
| 279 | + "defaults": { |
| 280 | + "color": { "mode": "palette-classic" }, |
| 281 | + "custom": { |
| 282 | + "axisCenteredZero": false, |
| 283 | + "axisPlacement": "auto", |
| 284 | + "axisSoftMin": 0, |
| 285 | + "drawStyle": "line", |
| 286 | + "fillOpacity": 10, |
| 287 | + "lineInterpolation": "linear", |
| 288 | + "lineWidth": 1, |
| 289 | + "stacking": { "group": "A", "mode": "none" }, |
| 290 | + "thresholdsStyle": { "mode": "off" } |
| 291 | + }, |
| 292 | + "mappings": [], |
| 293 | + "min": 0, |
| 294 | + "noValue": "0", |
| 295 | + "thresholds": { "mode": "absolute", "steps": [{ "color": "green", "value": null }] }, |
| 296 | + "unit": "short" |
| 297 | + }, |
| 298 | + "overrides": [ |
| 299 | + { |
| 300 | + "matcher": { "id": "byName", "options": "with filter" }, |
| 301 | + "properties": [{ "id": "color", "value": { "fixedColor": "orange", "mode": "fixed" } }] |
| 302 | + } |
| 303 | + ] |
| 304 | + }, |
| 305 | + "gridPos": { "h": 8, "w": 12, "x": 0, "y": 16 }, |
| 306 | + "id": 5, |
| 307 | + "options": { |
| 308 | + "legend": { |
| 309 | + "calcs": ["last", "max"], |
| 310 | + "displayMode": "table", |
| 311 | + "placement": "bottom", |
| 312 | + "showLegend": true |
| 313 | + }, |
| 314 | + "tooltip": { "mode": "multi", "sort": "desc" } |
| 315 | + }, |
| 316 | + "pluginVersion": "9.3.6", |
| 317 | + "targets": [ |
| 318 | + { |
| 319 | + "datasource": { "type": "prometheus", "uid": "PROM_DATASOURCE_UID" }, |
| 320 | + "editorMode": "code", |
| 321 | + "expr": "hive_metric_alert_rule_groups{filtered=\"true\"}", |
| 322 | + "legendFormat": "with filter", |
| 323 | + "range": true, |
| 324 | + "refId": "A" |
| 325 | + }, |
| 326 | + { |
| 327 | + "datasource": { "type": "prometheus", "uid": "PROM_DATASOURCE_UID" }, |
| 328 | + "editorMode": "code", |
| 329 | + "expr": "hive_metric_alert_rule_groups{filtered=\"false\"}", |
| 330 | + "legendFormat": "no filter", |
| 331 | + "range": true, |
| 332 | + "refId": "B" |
| 333 | + } |
| 334 | + ], |
| 335 | + "title": "Alert query groups: filtered vs unfiltered", |
| 336 | + "type": "timeseries" |
| 337 | + }, |
| 338 | + { |
| 339 | + "datasource": { "type": "prometheus", "uid": "PROM_DATASOURCE_UID" }, |
| 340 | + "description": "Enabled alert rules split by whether a saved filter is attached. Companion to the query-groups panel (a group can hold several rules that share one query).", |
| 341 | + "fieldConfig": { |
| 342 | + "defaults": { |
| 343 | + "color": { "mode": "palette-classic" }, |
| 344 | + "custom": { |
| 345 | + "axisCenteredZero": false, |
| 346 | + "axisPlacement": "auto", |
| 347 | + "axisSoftMin": 0, |
| 348 | + "drawStyle": "line", |
| 349 | + "fillOpacity": 10, |
| 350 | + "lineInterpolation": "linear", |
| 351 | + "lineWidth": 1, |
| 352 | + "stacking": { "group": "A", "mode": "none" }, |
| 353 | + "thresholdsStyle": { "mode": "off" } |
| 354 | + }, |
| 355 | + "mappings": [], |
| 356 | + "min": 0, |
| 357 | + "noValue": "0", |
| 358 | + "thresholds": { "mode": "absolute", "steps": [{ "color": "green", "value": null }] }, |
| 359 | + "unit": "short" |
| 360 | + }, |
| 361 | + "overrides": [ |
| 362 | + { |
| 363 | + "matcher": { "id": "byName", "options": "with filter" }, |
| 364 | + "properties": [{ "id": "color", "value": { "fixedColor": "orange", "mode": "fixed" } }] |
| 365 | + } |
| 366 | + ] |
| 367 | + }, |
| 368 | + "gridPos": { "h": 8, "w": 12, "x": 12, "y": 16 }, |
| 369 | + "id": 6, |
| 370 | + "options": { |
| 371 | + "legend": { |
| 372 | + "calcs": ["last", "max"], |
| 373 | + "displayMode": "table", |
| 374 | + "placement": "bottom", |
| 375 | + "showLegend": true |
| 376 | + }, |
| 377 | + "tooltip": { "mode": "multi", "sort": "desc" } |
| 378 | + }, |
| 379 | + "pluginVersion": "9.3.6", |
| 380 | + "targets": [ |
| 381 | + { |
| 382 | + "datasource": { "type": "prometheus", "uid": "PROM_DATASOURCE_UID" }, |
| 383 | + "editorMode": "code", |
| 384 | + "expr": "hive_metric_alert_enabled_rules{filtered=\"true\"}", |
| 385 | + "legendFormat": "with filter", |
| 386 | + "range": true, |
| 387 | + "refId": "A" |
| 388 | + }, |
| 389 | + { |
| 390 | + "datasource": { "type": "prometheus", "uid": "PROM_DATASOURCE_UID" }, |
| 391 | + "editorMode": "code", |
| 392 | + "expr": "hive_metric_alert_enabled_rules{filtered=\"false\"}", |
| 393 | + "legendFormat": "no filter", |
| 394 | + "range": true, |
| 395 | + "refId": "B" |
| 396 | + } |
| 397 | + ], |
| 398 | + "title": "Enabled rules: filtered vs unfiltered", |
| 399 | + "type": "timeseries" |
| 400 | + }, |
275 | 401 | { |
276 | 402 | "collapsed": false, |
277 | | - "gridPos": { "h": 1, "w": 24, "x": 0, "y": 16 }, |
| 403 | + "gridPos": { "h": 1, "w": 24, "x": 0, "y": 24 }, |
278 | 404 | "id": 100, |
279 | 405 | "panels": [], |
280 | 406 | "title": "Traces", |
|
296 | 422 | }, |
297 | 423 | "overrides": [] |
298 | 424 | }, |
299 | | - "gridPos": { "h": 9, "w": 12, "x": 0, "y": 17 }, |
| 425 | + "gridPos": { "h": 9, "w": 12, "x": 0, "y": 25 }, |
300 | 426 | "id": 101, |
301 | 427 | "options": { |
302 | 428 | "cellHeight": "sm", |
|
320 | 446 | }, |
321 | 447 | { |
322 | 448 | "datasource": { "type": "tempo", "uid": "TEMPO_DATASOURCE_UID" }, |
323 | | - "description": "Per-target group evaluations slower than $slowGroupThreshold. Inspect target.id, rules.in_group, time_window_minutes on the row; click to see the ClickHouse query and per-rule PG transactions inside the group.", |
| 449 | + "description": "Per-target group evaluations slower than $slowGroupThreshold. The row's filter.applied, window.needs_previous, and metric.needs_percentiles explain the query cost (filtered legacy-table path, 2x window scan, heavy percentile blob); click to see the ClickHouse query and per-rule PG transactions inside the group.", |
324 | 450 | "fieldConfig": { |
325 | 451 | "defaults": { |
326 | 452 | "color": { "mode": "fixed" }, |
|
334 | 460 | }, |
335 | 461 | "overrides": [] |
336 | 462 | }, |
337 | | - "gridPos": { "h": 9, "w": 12, "x": 12, "y": 17 }, |
| 463 | + "gridPos": { "h": 9, "w": 12, "x": 12, "y": 25 }, |
338 | 464 | "id": 102, |
339 | 465 | "options": { |
340 | 466 | "cellHeight": "sm", |
|
346 | 472 | "datasource": { "type": "tempo", "uid": "TEMPO_DATASOURCE_UID" }, |
347 | 473 | "filters": [{ "id": "slow-groups-filter", "operator": "=", "scope": "span" }], |
348 | 474 | "limit": 100, |
349 | | - "query": "{name=\"evaluate-group\" && duration>$slowGroupThreshold} | select(.target.id, .rules.in_group, .time_window_minutes)", |
| 475 | + "query": "{name=\"evaluate-group\" && duration>$slowGroupThreshold} | select(span.target.id, span.rules.in_group, span.time_window_minutes, span.filter.applied, span.window.needs_previous, span.metric.needs_percentiles)", |
350 | 476 | "queryType": "traceql", |
351 | 477 | "refId": "A", |
352 | 478 | "spss": 20, |
|
389 | 515 | } |
390 | 516 | ] |
391 | 517 | }, |
392 | | - "gridPos": { "h": 9, "w": 12, "x": 0, "y": 26 }, |
| 518 | + "gridPos": { "h": 9, "w": 12, "x": 0, "y": 34 }, |
393 | 519 | "id": 104, |
394 | 520 | "options": { |
395 | 521 | "legend": { |
|
443 | 569 | }, |
444 | 570 | "overrides": [] |
445 | 571 | }, |
446 | | - "gridPos": { "h": 9, "w": 12, "x": 12, "y": 26 }, |
| 572 | + "gridPos": { "h": 9, "w": 12, "x": 12, "y": 34 }, |
447 | 573 | "id": 105, |
448 | 574 | "options": { |
449 | 575 | "legend": { |
|
497 | 623 | }, |
498 | 624 | "overrides": [] |
499 | 625 | }, |
500 | | - "gridPos": { "h": 9, "w": 24, "x": 0, "y": 35 }, |
| 626 | + "gridPos": { "h": 9, "w": 24, "x": 0, "y": 43 }, |
501 | 627 | "id": 106, |
502 | 628 | "options": { |
503 | 629 | "legend": { |
|
541 | 667 | }, |
542 | 668 | "overrides": [] |
543 | 669 | }, |
544 | | - "gridPos": { "h": 9, "w": 24, "x": 0, "y": 44 }, |
| 670 | + "gridPos": { "h": 9, "w": 24, "x": 0, "y": 52 }, |
545 | 671 | "id": 103, |
546 | 672 | "options": { |
547 | 673 | "cellHeight": "sm", |
|
0 commit comments