|
23 | 23 | { |
24 | 24 | "datasource": { |
25 | 25 | "type": "grafana-postgresql-datasource", |
26 | | - "uid": "P13C0491EC2EA1DB8" |
| 26 | + "uid": "pgwatch-metrics" |
27 | 27 | }, |
28 | 28 | "description": "Avg. of all DBs over the whole selected period", |
29 | 29 | "fieldConfig": { |
|
91 | 91 | "alias": "TPS", |
92 | 92 | "datasource": { |
93 | 93 | "type": "grafana-postgresql-datasource", |
94 | | - "uid": "P13C0491EC2EA1DB8" |
| 94 | + "uid": "pgwatch-metrics" |
95 | 95 | }, |
96 | 96 | "format": "time_series", |
97 | 97 | "group": [], |
|
148 | 148 | { |
149 | 149 | "datasource": { |
150 | 150 | "type": "grafana-postgresql-datasource", |
151 | | - "uid": "P13C0491EC2EA1DB8" |
| 151 | + "uid": "pgwatch-metrics" |
152 | 152 | }, |
153 | 153 | "description": "Avg. of all DBs over the whole selected period", |
154 | 154 | "fieldConfig": { |
|
217 | 217 | "alias": "QPS", |
218 | 218 | "datasource": { |
219 | 219 | "type": "grafana-postgresql-datasource", |
220 | | - "uid": "P13C0491EC2EA1DB8" |
| 220 | + "uid": "pgwatch-metrics" |
221 | 221 | }, |
222 | 222 | "format": "time_series", |
223 | 223 | "group": [], |
|
274 | 274 | { |
275 | 275 | "datasource": { |
276 | 276 | "type": "grafana-postgresql-datasource", |
277 | | - "uid": "P13C0491EC2EA1DB8" |
| 277 | + "uid": "pgwatch-metrics" |
278 | 278 | }, |
279 | 279 | "description": "Avg. of all DBs over the whole selected period for regular (>10 calls) queries", |
280 | 280 | "fieldConfig": { |
|
342 | 342 | "alias": "avg_query_runtime_per_db", |
343 | 343 | "datasource": { |
344 | 344 | "type": "grafana-postgresql-datasource", |
345 | | - "uid": "P13C0491EC2EA1DB8" |
| 345 | + "uid": "pgwatch-metrics" |
346 | 346 | }, |
347 | 347 | "format": "time_series", |
348 | 348 | "group": [], |
|
399 | 399 | { |
400 | 400 | "datasource": { |
401 | 401 | "type": "grafana-postgresql-datasource", |
402 | | - "uid": "P13C0491EC2EA1DB8" |
| 402 | + "uid": "pgwatch-metrics" |
403 | 403 | }, |
404 | 404 | "description": "Sum of all DB changes over the whole selected period", |
405 | 405 | "fieldConfig": { |
|
467 | 467 | "alias": "db_size_change_last_hour", |
468 | 468 | "datasource": { |
469 | 469 | "type": "grafana-postgresql-datasource", |
470 | | - "uid": "P13C0491EC2EA1DB8" |
| 470 | + "uid": "pgwatch-metrics" |
471 | 471 | }, |
472 | 472 | "format": "time_series", |
473 | 473 | "group": [], |
|
524 | 524 | { |
525 | 525 | "datasource": { |
526 | 526 | "type": "grafana-postgresql-datasource", |
527 | | - "uid": "P13C0491EC2EA1DB8" |
| 527 | + "uid": "pgwatch-metrics" |
528 | 528 | }, |
529 | 529 | "description": "Sum of all DBs. Based on a SQL based approximate.", |
530 | 530 | "fieldConfig": { |
|
592 | 592 | "alias": "Bloat size", |
593 | 593 | "datasource": { |
594 | 594 | "type": "grafana-postgresql-datasource", |
595 | | - "uid": "P13C0491EC2EA1DB8" |
| 595 | + "uid": "pgwatch-metrics" |
596 | 596 | }, |
597 | 597 | "format": "time_series", |
598 | 598 | "group": [], |
|
656 | 656 | { |
657 | 657 | "datasource": { |
658 | 658 | "type": "grafana-postgresql-datasource", |
659 | | - "uid": "P13C0491EC2EA1DB8" |
| 659 | + "uid": "pgwatch-metrics" |
660 | 660 | }, |
661 | 661 | "description": "Avg. of all selected DB-s for the whole period", |
662 | 662 | "fieldConfig": { |
|
724 | 724 | { |
725 | 725 | "datasource": { |
726 | 726 | "type": "grafana-postgresql-datasource", |
727 | | - "uid": "P13C0491EC2EA1DB8" |
| 727 | + "uid": "pgwatch-metrics" |
728 | 728 | }, |
729 | 729 | "format": "time_series", |
730 | 730 | "group": [], |
|
758 | 758 | { |
759 | 759 | "datasource": { |
760 | 760 | "type": "grafana-postgresql-datasource", |
761 | | - "uid": "P13C0491EC2EA1DB8" |
| 761 | + "uid": "pgwatch-metrics" |
762 | 762 | }, |
763 | 763 | "description": "", |
764 | 764 | "fieldConfig": { |
|
883 | 883 | "alias": "$tag_dbname", |
884 | 884 | "datasource": { |
885 | 885 | "type": "grafana-postgresql-datasource", |
886 | | - "uid": "P13C0491EC2EA1DB8" |
| 886 | + "uid": "pgwatch-metrics" |
887 | 887 | }, |
888 | 888 | "format": "time_series", |
889 | 889 | "group": [], |
|
942 | 942 | { |
943 | 943 | "datasource": { |
944 | 944 | "type": "grafana-postgresql-datasource", |
945 | | - "uid": "P13C0491EC2EA1DB8" |
| 945 | + "uid": "pgwatch-metrics" |
946 | 946 | }, |
947 | 947 | "description": "Based on pg_stat_statements.calls", |
948 | 948 | "fieldConfig": { |
|
1067 | 1067 | "alias": "$tag_dbname", |
1068 | 1068 | "datasource": { |
1069 | 1069 | "type": "grafana-postgresql-datasource", |
1070 | | - "uid": "P13C0491EC2EA1DB8" |
| 1070 | + "uid": "pgwatch-metrics" |
1071 | 1071 | }, |
1072 | 1072 | "format": "time_series", |
1073 | 1073 | "group": [], |
|
1126 | 1126 | { |
1127 | 1127 | "datasource": { |
1128 | 1128 | "type": "grafana-postgresql-datasource", |
1129 | | - "uid": "P13C0491EC2EA1DB8" |
| 1129 | + "uid": "pgwatch-metrics" |
1130 | 1130 | }, |
1131 | 1131 | "description": "Requires \"pg_stat_statements\" on server. For regular queries (calls >10)", |
1132 | 1132 | "fieldConfig": { |
|
1250 | 1250 | "alias": "$tag_dbname", |
1251 | 1251 | "datasource": { |
1252 | 1252 | "type": "grafana-postgresql-datasource", |
1253 | | - "uid": "P13C0491EC2EA1DB8" |
| 1253 | + "uid": "pgwatch-metrics" |
1254 | 1254 | }, |
1255 | 1255 | "format": "time_series", |
1256 | 1256 | "group": [], |
|
1309 | 1309 | { |
1310 | 1310 | "datasource": { |
1311 | 1311 | "type": "grafana-postgresql-datasource", |
1312 | | - "uid": "P13C0491EC2EA1DB8" |
| 1312 | + "uid": "pgwatch-metrics" |
1313 | 1313 | }, |
1314 | 1314 | "fieldConfig": { |
1315 | 1315 | "defaults": { |
|
1433 | 1433 | "alias": "$tag_dbname", |
1434 | 1434 | "datasource": { |
1435 | 1435 | "type": "grafana-postgresql-datasource", |
1436 | | - "uid": "P13C0491EC2EA1DB8" |
| 1436 | + "uid": "pgwatch-metrics" |
1437 | 1437 | }, |
1438 | 1438 | "format": "time_series", |
1439 | 1439 | "group": [], |
|
1491 | 1491 | { |
1492 | 1492 | "datasource": { |
1493 | 1493 | "type": "grafana-postgresql-datasource", |
1494 | | - "uid": "P13C0491EC2EA1DB8" |
| 1494 | + "uid": "pgwatch-metrics" |
1495 | 1495 | }, |
1496 | 1496 | "description": "", |
1497 | 1497 | "fieldConfig": { |
|
1616 | 1616 | "alias": "$tag_dbname", |
1617 | 1617 | "datasource": { |
1618 | 1618 | "type": "grafana-postgresql-datasource", |
1619 | | - "uid": "P13C0491EC2EA1DB8" |
| 1619 | + "uid": "pgwatch-metrics" |
1620 | 1620 | }, |
1621 | 1621 | "format": "time_series", |
1622 | 1622 | "group": [], |
|
1674 | 1674 | { |
1675 | 1675 | "datasource": { |
1676 | 1676 | "type": "grafana-postgresql-datasource", |
1677 | | - "uid": "P13C0491EC2EA1DB8" |
| 1677 | + "uid": "pgwatch-metrics" |
1678 | 1678 | }, |
1679 | 1679 | "description": "Requires according \"metric fetching helpers\" on the monitored server", |
1680 | 1680 | "fieldConfig": { |
|
1814 | 1814 | "alias": "$tag_dbname", |
1815 | 1815 | "datasource": { |
1816 | 1816 | "type": "grafana-postgresql-datasource", |
1817 | | - "uid": "P13C0491EC2EA1DB8" |
| 1817 | + "uid": "pgwatch-metrics" |
1818 | 1818 | }, |
1819 | 1819 | "format": "time_series", |
1820 | 1820 | "group": [], |
|
1872 | 1872 | { |
1873 | 1873 | "datasource": { |
1874 | 1874 | "type": "grafana-postgresql-datasource", |
1875 | | - "uid": "P13C0491EC2EA1DB8" |
| 1875 | + "uid": "pgwatch-metrics" |
1876 | 1876 | }, |
1877 | 1877 | "fieldConfig": { |
1878 | 1878 | "defaults": { |
|
2010 | 2010 | "alias": "$tag_dbname", |
2011 | 2011 | "datasource": { |
2012 | 2012 | "type": "grafana-postgresql-datasource", |
2013 | | - "uid": "P13C0491EC2EA1DB8" |
| 2013 | + "uid": "pgwatch-metrics" |
2014 | 2014 | }, |
2015 | 2015 | "format": "time_series", |
2016 | 2016 | "group": [], |
|
2067 | 2067 | { |
2068 | 2068 | "datasource": { |
2069 | 2069 | "type": "grafana-postgresql-datasource", |
2070 | | - "uid": "P13C0491EC2EA1DB8" |
| 2070 | + "uid": "pgwatch-metrics" |
2071 | 2071 | }, |
2072 | 2072 | "fieldConfig": { |
2073 | 2073 | "defaults": { |
|
2206 | 2206 | "alias": "$tag_dbname", |
2207 | 2207 | "datasource": { |
2208 | 2208 | "type": "grafana-postgresql-datasource", |
2209 | | - "uid": "P13C0491EC2EA1DB8" |
| 2209 | + "uid": "pgwatch-metrics" |
2210 | 2210 | }, |
2211 | 2211 | "format": "time_series", |
2212 | 2212 | "group": [], |
|
2276 | 2276 | { |
2277 | 2277 | "datasource": { |
2278 | 2278 | "type": "grafana-postgresql-datasource", |
2279 | | - "uid": "P13C0491EC2EA1DB8" |
| 2279 | + "uid": "pgwatch-metrics" |
2280 | 2280 | }, |
2281 | 2281 | "description": "", |
2282 | 2282 | "fieldConfig": { |
|
2381 | 2381 | "alias": "$tag_dbname", |
2382 | 2382 | "datasource": { |
2383 | 2383 | "type": "grafana-postgresql-datasource", |
2384 | | - "uid": "P13C0491EC2EA1DB8" |
| 2384 | + "uid": "pgwatch-metrics" |
2385 | 2385 | }, |
2386 | 2386 | "format": "time_series", |
2387 | 2387 | "group": [], |
|
2439 | 2439 | { |
2440 | 2440 | "datasource": { |
2441 | 2441 | "type": "grafana-postgresql-datasource", |
2442 | | - "uid": "P13C0491EC2EA1DB8" |
| 2442 | + "uid": "pgwatch-metrics" |
2443 | 2443 | }, |
2444 | 2444 | "description": "Based on pg_stat_activity info", |
2445 | 2445 | "fieldConfig": { |
|
2550 | 2550 | "alias": "$tag_dbname", |
2551 | 2551 | "datasource": { |
2552 | 2552 | "type": "grafana-postgresql-datasource", |
2553 | | - "uid": "P13C0491EC2EA1DB8" |
| 2553 | + "uid": "pgwatch-metrics" |
2554 | 2554 | }, |
2555 | 2555 | "format": "time_series", |
2556 | 2556 | "group": [], |
|
2614 | 2614 | { |
2615 | 2615 | "datasource": { |
2616 | 2616 | "type": "grafana-postgresql-datasource", |
2617 | | - "uid": "P13C0491EC2EA1DB8" |
| 2617 | + "uid": "pgwatch-metrics" |
2618 | 2618 | }, |
2619 | 2619 | "editable": true, |
2620 | 2620 | "error": false, |
|
2639 | 2639 | { |
2640 | 2640 | "datasource": { |
2641 | 2641 | "type": "grafana-postgresql-datasource", |
2642 | | - "uid": "P13C0491EC2EA1DB8" |
| 2642 | + "uid": "pgwatch-metrics" |
2643 | 2643 | }, |
2644 | 2644 | "refId": "A" |
2645 | 2645 | } |
|
2692 | 2692 | }, |
2693 | 2693 | "datasource": { |
2694 | 2694 | "type": "grafana-postgresql-datasource", |
2695 | | - "uid": "P13C0491EC2EA1DB8" |
| 2695 | + "uid": "pgwatch-metrics" |
2696 | 2696 | }, |
2697 | 2697 | "definition": "SELECT DISTINCT dbname FROM admin.all_distinct_dbname_metrics a WHERE case when '$current_primaries_only' = 'yes' then (select (data->'in_recovery_int')::int as in_recovery_int from db_stats where dbname = a.dbname and time > now() - '1h'::interval order by time desc limit 1) = 0 else true end ORDER BY 1;", |
2698 | 2698 | "hide": 0, |
|
0 commit comments