|
23 | 23 | "panels": [ |
24 | 24 | { |
25 | 25 | "datasource": { |
26 | | - "type": "prometheus", |
27 | | - "uid": "P13C0491EC2EA1DB8" |
| 26 | + "type": "prometheus" |
28 | 27 | }, |
29 | 28 | "description": "QPS is an approximation. Requires pg_stat_statements to be installed", |
30 | 29 | "fieldConfig": { |
|
110 | 109 | "targets": [ |
111 | 110 | { |
112 | 111 | "datasource": { |
113 | | - "type": "prometheus", |
114 | | - "uid": "P13C0491EC2EA1DB8" |
| 112 | + "type": "prometheus" |
115 | 113 | }, |
116 | 114 | "exemplar": true, |
117 | 115 | "expr": "avg(rate(pgwatch_db_stats_xact_commit{dbname='$dbname'}[$agg_interval])) + avg(rate(pgwatch_db_stats_xact_rollback{dbname='$dbname'}[$agg_interval]))", |
|
121 | 119 | }, |
122 | 120 | { |
123 | 121 | "datasource": { |
124 | | - "type": "prometheus", |
125 | | - "uid": "P13C0491EC2EA1DB8" |
| 122 | + "type": "prometheus" |
126 | 123 | }, |
127 | 124 | "exemplar": true, |
128 | 125 | "expr": "avg(rate(pgwatch_stat_statements_calls_calls{dbname='$dbname'}[$agg_interval]))", |
|
137 | 134 | }, |
138 | 135 | { |
139 | 136 | "datasource": { |
140 | | - "type": "prometheus", |
141 | | - "uid": "P13C0491EC2EA1DB8" |
| 137 | + "type": "prometheus" |
142 | 138 | }, |
143 | 139 | "description": "", |
144 | 140 | "fieldConfig": { |
|
302 | 298 | "targets": [ |
303 | 299 | { |
304 | 300 | "datasource": { |
305 | | - "type": "prometheus", |
306 | | - "uid": "P13C0491EC2EA1DB8" |
| 301 | + "type": "prometheus" |
307 | 302 | }, |
308 | 303 | "exemplar": true, |
309 | 304 | "expr": "max(max_over_time(pgwatch_backends_total{dbname='$dbname'}[$agg_interval]))", |
|
313 | 308 | }, |
314 | 309 | { |
315 | 310 | "datasource": { |
316 | | - "type": "prometheus", |
317 | | - "uid": "P13C0491EC2EA1DB8" |
| 311 | + "type": "prometheus" |
318 | 312 | }, |
319 | 313 | "exemplar": true, |
320 | 314 | "expr": "max(max_over_time(pgwatch_backends_active{dbname='$dbname'}[$agg_interval]))", |
|
325 | 319 | }, |
326 | 320 | { |
327 | 321 | "datasource": { |
328 | | - "type": "prometheus", |
329 | | - "uid": "P13C0491EC2EA1DB8" |
| 322 | + "type": "prometheus" |
330 | 323 | }, |
331 | 324 | "exemplar": true, |
332 | 325 | "expr": "max(pgwatch_backends_max_connections{dbname='$dbname'})", |
|
337 | 330 | }, |
338 | 331 | { |
339 | 332 | "datasource": { |
340 | | - "type": "prometheus", |
341 | | - "uid": "P13C0491EC2EA1DB8" |
| 333 | + "type": "prometheus" |
342 | 334 | }, |
343 | 335 | "exemplar": true, |
344 | 336 | "expr": "max(max_over_time(pgwatch_backends_waiting{dbname='$dbname'}[$agg_interval]))", |
|
349 | 341 | }, |
350 | 342 | { |
351 | 343 | "datasource": { |
352 | | - "type": "prometheus", |
353 | | - "uid": "P13C0491EC2EA1DB8" |
| 344 | + "type": "prometheus" |
354 | 345 | }, |
355 | 346 | "exemplar": true, |
356 | 347 | "expr": "max(max_over_time(pgwatch_backends_idleintransaction{dbname='$dbname'}[$agg_interval]))", |
|
361 | 352 | }, |
362 | 353 | { |
363 | 354 | "datasource": { |
364 | | - "type": "prometheus", |
365 | | - "uid": "P13C0491EC2EA1DB8" |
| 355 | + "type": "prometheus" |
366 | 356 | }, |
367 | 357 | "exemplar": true, |
368 | 358 | "expr": "max(increase(pgwatch_db_stats_deadlocks{dbname='$dbname'}[$agg_interval]))", |
|
377 | 367 | }, |
378 | 368 | { |
379 | 369 | "datasource": { |
380 | | - "type": "prometheus", |
381 | | - "uid": "P13C0491EC2EA1DB8" |
| 370 | + "type": "prometheus" |
382 | 371 | }, |
383 | 372 | "fieldConfig": { |
384 | 373 | "defaults": { |
|
494 | 483 | "targets": [ |
495 | 484 | { |
496 | 485 | "datasource": { |
497 | | - "type": "prometheus", |
498 | | - "uid": "P13C0491EC2EA1DB8" |
| 486 | + "type": "prometheus" |
499 | 487 | }, |
500 | 488 | "exemplar": true, |
501 | 489 | "expr": "max(max_over_time(pgwatch_backends_longest_query_seconds{dbname='$dbname'}[$agg_interval]))", |
|
505 | 493 | }, |
506 | 494 | { |
507 | 495 | "datasource": { |
508 | | - "type": "prometheus", |
509 | | - "uid": "P13C0491EC2EA1DB8" |
| 496 | + "type": "prometheus" |
510 | 497 | }, |
511 | 498 | "exemplar": true, |
512 | 499 | "expr": "max(avg_over_time(pgwatch_backends_avg_query_seconds{dbname='$dbname'}[$agg_interval]))", |
|
521 | 508 | }, |
522 | 509 | { |
523 | 510 | "datasource": { |
524 | | - "type": "prometheus", |
525 | | - "uid": "P13C0491EC2EA1DB8" |
| 511 | + "type": "prometheus" |
526 | 512 | }, |
527 | 513 | "description": "", |
528 | 514 | "fieldConfig": { |
|
544 | 530 | "targets": [ |
545 | 531 | { |
546 | 532 | "datasource": { |
547 | | - "type": "prometheus", |
548 | | - "uid": "P13C0491EC2EA1DB8" |
| 533 | + "type": "prometheus" |
549 | 534 | }, |
550 | 535 | "exemplar": true, |
551 | 536 | "expr": "max(max_over_time(pgwatch_backends_longest_tx_seconds{dbname='$dbname'}[$agg_interval]))", |
|
555 | 540 | }, |
556 | 541 | { |
557 | 542 | "datasource": { |
558 | | - "type": "prometheus", |
559 | | - "uid": "P13C0491EC2EA1DB8" |
| 543 | + "type": "prometheus" |
560 | 544 | }, |
561 | 545 | "exemplar": true, |
562 | 546 | "expr": "max(avg_over_time(pgwatch_backends_avg_tx_seconds{dbname='$dbname'}[$agg_interval]))", |
|
571 | 555 | }, |
572 | 556 | { |
573 | 557 | "datasource": { |
574 | | - "type": "prometheus", |
575 | | - "uid": "P13C0491EC2EA1DB8" |
| 558 | + "type": "prometheus" |
576 | 559 | }, |
577 | 560 | "description": "", |
578 | 561 | "fieldConfig": { |
|
594 | 577 | "targets": [ |
595 | 578 | { |
596 | 579 | "datasource": { |
597 | | - "type": "prometheus", |
598 | | - "uid": "P13C0491EC2EA1DB8" |
| 580 | + "type": "prometheus" |
599 | 581 | }, |
600 | 582 | "exemplar": true, |
601 | 583 | "expr": "max(max_over_time(pgwatch_backends_longest_session_seconds{dbname='$dbname'}[$agg_interval]))", |
|
605 | 587 | }, |
606 | 588 | { |
607 | 589 | "datasource": { |
608 | | - "type": "prometheus", |
609 | | - "uid": "P13C0491EC2EA1DB8" |
| 590 | + "type": "prometheus" |
610 | 591 | }, |
611 | 592 | "exemplar": true, |
612 | 593 | "expr": "max(avg_over_time(pgwatch_backends_avg_session_seconds{dbname='$dbname'}[$agg_interval]))", |
|
621 | 602 | }, |
622 | 603 | { |
623 | 604 | "datasource": { |
624 | | - "type": "prometheus", |
625 | | - "uid": "P13C0491EC2EA1DB8" |
| 605 | + "type": "prometheus" |
626 | 606 | }, |
627 | 607 | "description": "\"No data\" means no waiting detected", |
628 | 608 | "fieldConfig": { |
|
644 | 624 | "targets": [ |
645 | 625 | { |
646 | 626 | "datasource": { |
647 | | - "type": "prometheus", |
648 | | - "uid": "P13C0491EC2EA1DB8" |
| 627 | + "type": "prometheus" |
649 | 628 | }, |
650 | 629 | "exemplar": true, |
651 | 630 | "expr": "max(max_over_time(pgwatch_backends_longest_waiting_seconds{dbname='$dbname'}[$agg_interval]))", |
|
655 | 634 | }, |
656 | 635 | { |
657 | 636 | "datasource": { |
658 | | - "type": "prometheus", |
659 | | - "uid": "P13C0491EC2EA1DB8" |
| 637 | + "type": "prometheus" |
660 | 638 | }, |
661 | 639 | "exemplar": true, |
662 | 640 | "expr": "max(avg_over_time(pgwatch_backends_avg_waiting_seconds{dbname='$dbname'}[$agg_interval]))", |
|
672 | 650 | }, |
673 | 651 | { |
674 | 652 | "datasource": { |
675 | | - "type": "prometheus", |
676 | | - "uid": "P13C0491EC2EA1DB8" |
| 653 | + "type": "prometheus" |
677 | 654 | }, |
678 | 655 | "description": "", |
679 | 656 | "fieldConfig": { |
|
694 | 671 | "targets": [ |
695 | 672 | { |
696 | 673 | "datasource": { |
697 | | - "type": "prometheus", |
698 | | - "uid": "P13C0491EC2EA1DB8" |
| 674 | + "type": "prometheus" |
699 | 675 | }, |
700 | 676 | "exemplar": true, |
701 | 677 | "expr": "max(avg_over_time(pgwatch_backends_longest_autovacuum_seconds{dbname='$dbname'}[$agg_interval]))", |
|
706 | 682 | }, |
707 | 683 | { |
708 | 684 | "datasource": { |
709 | | - "type": "prometheus", |
710 | | - "uid": "P13C0491EC2EA1DB8" |
| 685 | + "type": "prometheus" |
711 | 686 | }, |
712 | 687 | "exemplar": true, |
713 | 688 | "expr": "max(max_over_time(pgwatch_backends_av_workers{dbname='$dbname'}[$agg_interval]))", |
|
736 | 711 | "value": "demo" |
737 | 712 | }, |
738 | 713 | "datasource": { |
739 | | - "type": "prometheus", |
740 | | - "uid": "P13C0491EC2EA1DB8" |
| 714 | + "type": "prometheus" |
741 | 715 | }, |
742 | 716 | "definition": "label_values(dbname)", |
743 | 717 | "includeAll": false, |
|
0 commit comments