spb/datacenterindex
Public
HTML 53.9%
TypeScript 44.5%
JavaScript 0.6%
SQL 0.5%
1{2 "uid": "dci-overview",3 "title": "DataCenterIndex — overview",4 "tags": [5 "dci"6 ],7 "timezone": "browser",8 "schemaVersion": 39,9 "version": 1,10 "editable": false,11 "graphTooltip": 1,12 "refresh": "30s",13 "time": {14 "from": "now-6h",15 "to": "now"16 },17 "templating": {18 "list": []19 },20 "annotations": {21 "list": []22 },23 "panels": [24 {25 "type": "row",26 "title": "Crawl",27 "gridPos": {28 "h": 1,29 "w": 24,30 "x": 0,31 "y": 032 },33 "id": 100,34 "collapsed": false35 },36 {37 "id": 1,38 "type": "stat",39 "title": "Fetches / min",40 "gridPos": {41 "h": 4,42 "w": 6,43 "x": 0,44 "y": 145 },46 "datasource": {47 "type": "prometheus",48 "uid": "dci-prom"49 },50 "targets": [51 {52 "refId": "A",53 "expr": "sum(rate(dci_crawl_fetches_total[5m])) * 60"54 }55 ],56 "options": {57 "reduceOptions": {58 "calcs": [59 "lastNotNull"60 ]61 },62 "colorMode": "none",63 "graphMode": "area",64 "textMode": "value"65 },66 "fieldConfig": {67 "defaults": {68 "unit": "short",69 "decimals": 1,70 "color": {71 "mode": "fixed",72 "fixedColor": "#3987e5"73 }74 },75 "overrides": []76 }77 },78 {79 "id": 2,80 "type": "stat",81 "title": "Premium credits, last 24 h",82 "gridPos": {83 "h": 4,84 "w": 6,85 "x": 6,86 "y": 187 },88 "datasource": {89 "type": "prometheus",90 "uid": "dci-prom"91 },92 "targets": [93 {94 "refId": "A",95 "expr": "sum(increase(dci_crawl_credits_total[24h])) by (provider)",96 "legendFormat": "{{provider}}"97 }98 ],99 "options": {100 "reduceOptions": {101 "calcs": [102 "lastNotNull"103 ]104 },105 "colorMode": "none",106 "graphMode": "none",107 "textMode": "value_and_name"108 },109 "fieldConfig": {110 "defaults": {111 "unit": "short",112 "decimals": 0,113 "color": {114 "mode": "fixed",115 "fixedColor": "#d95926"116 }117 },118 "overrides": []119 }120 },121 {122 "id": 3,123 "type": "stat",124 "title": "Jobs waiting",125 "gridPos": {126 "h": 4,127 "w": 6,128 "x": 12,129 "y": 1130 },131 "datasource": {132 "type": "prometheus",133 "uid": "dci-prom"134 },135 "targets": [136 {137 "refId": "A",138 "expr": "sum(dci_queue_jobs{state=\"waiting\"})"139 }140 ],141 "options": {142 "reduceOptions": {143 "calcs": [144 "lastNotNull"145 ]146 },147 "colorMode": "none",148 "graphMode": "area",149 "textMode": "value"150 },151 "fieldConfig": {152 "defaults": {153 "unit": "short",154 "decimals": 0,155 "color": {156 "mode": "fixed",157 "fixedColor": "#199e70"158 }159 },160 "overrides": []161 }162 },163 {164 "id": 4,165 "type": "stat",166 "title": "API p95 latency",167 "gridPos": {168 "h": 4,169 "w": 6,170 "x": 18,171 "y": 1172 },173 "datasource": {174 "type": "prometheus",175 "uid": "dci-prom"176 },177 "targets": [178 {179 "refId": "A",180 "expr": "histogram_quantile(0.95, sum(rate(dci_api_request_duration_seconds_bucket[5m])) by (le))"181 }182 ],183 "options": {184 "reduceOptions": {185 "calcs": [186 "lastNotNull"187 ]188 },189 "colorMode": "none",190 "graphMode": "area",191 "textMode": "value"192 },193 "fieldConfig": {194 "defaults": {195 "unit": "s",196 "decimals": 3,197 "color": {198 "mode": "fixed",199 "fixedColor": "#3987e5"200 }201 },202 "overrides": []203 }204 },205 {206 "id": 5,207 "type": "timeseries",208 "title": "Crawl rate by outcome (fetches / s)",209 "gridPos": {210 "h": 8,211 "w": 12,212 "x": 0,213 "y": 5214 },215 "datasource": {216 "type": "prometheus",217 "uid": "dci-prom"218 },219 "targets": [220 {221 "refId": "A",222 "expr": "sum(rate(dci_crawl_fetches_total[5m])) by (outcome)",223 "legendFormat": "{{outcome}}"224 }225 ],226 "options": {227 "legend": {228 "displayMode": "list",229 "placement": "bottom",230 "showLegend": true231 },232 "tooltip": {233 "mode": "multi",234 "sort": "desc"235 }236 },237 "fieldConfig": {238 "defaults": {239 "unit": "reqps",240 "custom": {241 "lineWidth": 2,242 "fillOpacity": 0,243 "pointSize": 4,244 "showPoints": "never",245 "spanNulls": true,246 "axisSoftMin": 0247 }248 },249 "overrides": [250 {251 "matcher": {252 "id": "byName",253 "options": "ok"254 },255 "properties": [256 {257 "id": "color",258 "value": {259 "mode": "fixed",260 "fixedColor": "#3987e5"261 }262 }263 ]264 },265 {266 "matcher": {267 "id": "byName",268 "options": "not_modified"269 },270 "properties": [271 {272 "id": "color",273 "value": {274 "mode": "fixed",275 "fixedColor": "#199e70"276 }277 }278 ]279 },280 {281 "matcher": {282 "id": "byName",283 "options": "error"284 },285 "properties": [286 {287 "id": "color",288 "value": {289 "mode": "fixed",290 "fixedColor": "#d95926"291 }292 }293 ]294 },295 {296 "matcher": {297 "id": "byName",298 "options": "blocked"299 },300 "properties": [301 {302 "id": "color",303 "value": {304 "mode": "fixed",305 "fixedColor": "#c98500"306 }307 }308 ]309 },310 {311 "matcher": {312 "id": "byName",313 "options": "skipped"314 },315 "properties": [316 {317 "id": "color",318 "value": {319 "mode": "fixed",320 "fixedColor": "#d55181"321 }322 }323 ]324 }325 ]326 }327 },328 {329 "id": 6,330 "type": "timeseries",331 "title": "Premium credits per hour, by provider",332 "gridPos": {333 "h": 8,334 "w": 12,335 "x": 12,336 "y": 5337 },338 "datasource": {339 "type": "prometheus",340 "uid": "dci-prom"341 },342 "targets": [343 {344 "refId": "A",345 "expr": "sum(increase(dci_crawl_credits_total[1h])) by (provider)",346 "legendFormat": "{{provider}}"347 }348 ],349 "options": {350 "legend": {351 "displayMode": "list",352 "placement": "bottom",353 "showLegend": true354 },355 "tooltip": {356 "mode": "multi",357 "sort": "desc"358 }359 },360 "fieldConfig": {361 "defaults": {362 "unit": "short",363 "custom": {364 "drawStyle": "bars",365 "lineWidth": 1,366 "fillOpacity": 70,367 "barAlignment": 0,368 "stacking": {369 "mode": "normal"370 },371 "axisSoftMin": 0372 }373 },374 "overrides": [375 {376 "matcher": {377 "id": "byName",378 "options": "scrapfly"379 },380 "properties": [381 {382 "id": "color",383 "value": {384 "mode": "fixed",385 "fixedColor": "#d95926"386 }387 }388 ]389 },390 {391 "matcher": {392 "id": "byName",393 "options": "firecrawl"394 },395 "properties": [396 {397 "id": "color",398 "value": {399 "mode": "fixed",400 "fixedColor": "#3987e5"401 }402 }403 ]404 }405 ]406 }407 },408 {409 "id": 7,410 "type": "timeseries",411 "title": "Queue depth (jobs) by queue and state",412 "gridPos": {413 "h": 8,414 "w": 12,415 "x": 0,416 "y": 13417 },418 "datasource": {419 "type": "prometheus",420 "uid": "dci-prom"421 },422 "targets": [423 {424 "refId": "A",425 "expr": "sum(dci_queue_jobs) by (queue, state)",426 "legendFormat": "{{queue}} · {{state}}"427 }428 ],429 "options": {430 "legend": {431 "displayMode": "table",432 "placement": "right",433 "showLegend": true,434 "calcs": [435 "lastNotNull"436 ]437 },438 "tooltip": {439 "mode": "multi",440 "sort": "desc"441 }442 },443 "fieldConfig": {444 "defaults": {445 "unit": "short",446 "custom": {447 "lineWidth": 2,448 "fillOpacity": 0,449 "showPoints": "never",450 "spanNulls": true,451 "axisSoftMin": 0452 }453 },454 "overrides": [455 {456 "matcher": {457 "id": "byRegexp",458 "options": ".*waiting"459 },460 "properties": [461 {462 "id": "color",463 "value": {464 "mode": "fixed",465 "fixedColor": "#3987e5"466 }467 }468 ]469 },470 {471 "matcher": {472 "id": "byRegexp",473 "options": ".*active"474 },475 "properties": [476 {477 "id": "color",478 "value": {479 "mode": "fixed",480 "fixedColor": "#199e70"481 }482 }483 ]484 },485 {486 "matcher": {487 "id": "byRegexp",488 "options": ".*delayed"489 },490 "properties": [491 {492 "id": "color",493 "value": {494 "mode": "fixed",495 "fixedColor": "#c98500"496 }497 }498 ]499 },500 {501 "matcher": {502 "id": "byRegexp",503 "options": ".*failed"504 },505 "properties": [506 {507 "id": "color",508 "value": {509 "mode": "fixed",510 "fixedColor": "#d95926"511 }512 }513 ]514 }515 ]516 }517 },518 {519 "id": 8,520 "type": "timeseries",521 "title": "Fetch duration p50 / p95 (s)",522 "gridPos": {523 "h": 8,524 "w": 12,525 "x": 12,526 "y": 13527 },528 "datasource": {529 "type": "prometheus",530 "uid": "dci-prom"531 },532 "targets": [533 {534 "refId": "A",535 "expr": "histogram_quantile(0.50, sum(rate(dci_crawl_fetch_duration_seconds_bucket[5m])) by (le))",536 "legendFormat": "p50"537 },538 {539 "refId": "B",540 "expr": "histogram_quantile(0.95, sum(rate(dci_crawl_fetch_duration_seconds_bucket[5m])) by (le))",541 "legendFormat": "p95"542 }543 ],544 "options": {545 "legend": {546 "displayMode": "list",547 "placement": "bottom",548 "showLegend": true549 },550 "tooltip": {551 "mode": "multi",552 "sort": "desc"553 }554 },555 "fieldConfig": {556 "defaults": {557 "unit": "s",558 "custom": {559 "lineWidth": 2,560 "fillOpacity": 0,561 "showPoints": "never",562 "spanNulls": true,563 "axisSoftMin": 0564 }565 },566 "overrides": [567 {568 "matcher": {569 "id": "byName",570 "options": "p50"571 },572 "properties": [573 {574 "id": "color",575 "value": {576 "mode": "fixed",577 "fixedColor": "#3987e5"578 }579 }580 ]581 },582 {583 "matcher": {584 "id": "byName",585 "options": "p95"586 },587 "properties": [588 {589 "id": "color",590 "value": {591 "mode": "fixed",592 "fixedColor": "#d95926"593 }594 }595 ]596 }597 ]598 }599 },600 {601 "id": 17,602 "type": "timeseries",603 "title": "Premium budget used today (shared, Redis) vs daily cap",604 "datasource": {605 "type": "prometheus",606 "uid": "dci-prom"607 },608 "gridPos": {609 "h": 8,610 "w": 12,611 "x": 0,612 "y": 21613 },614 "targets": [615 {616 "refId": "A",617 "expr": "max by (provider) (dci_crawl_daily_credits_used)",618 "legendFormat": "{{provider}} used"619 },620 {621 "refId": "B",622 "expr": "max by (provider) (dci_crawl_daily_budget)",623 "legendFormat": "{{provider}} cap"624 }625 ],626 "fieldConfig": {627 "defaults": {628 "unit": "short",629 "color": {630 "mode": "palette-classic"631 }632 },633 "overrides": []634 },635 "options": {636 "legend": {637 "displayMode": "list",638 "placement": "bottom"639 },640 "tooltip": {641 "mode": "multi"642 }643 }644 },645 {646 "id": 18,647 "type": "timeseries",648 "title": "Ingest results / min and connector runs / h",649 "datasource": {650 "type": "prometheus",651 "uid": "dci-prom"652 },653 "gridPos": {654 "h": 8,655 "w": 12,656 "x": 12,657 "y": 21658 },659 "targets": [660 {661 "refId": "A",662 "expr": "sum by (result) (rate(dci_ingest_entities_total[5m])) * 60",663 "legendFormat": "{{result}}"664 },665 {666 "refId": "B",667 "expr": "sum by (status) (increase(dci_crawl_runs_total[1h]))",668 "legendFormat": "runs {{status}} /h"669 }670 ],671 "fieldConfig": {672 "defaults": {673 "unit": "short",674 "color": {675 "mode": "palette-classic"676 }677 },678 "overrides": []679 },680 "options": {681 "legend": {682 "displayMode": "list",683 "placement": "bottom"684 },685 "tooltip": {686 "mode": "multi"687 }688 }689 },690 {691 "type": "row",692 "title": "API",693 "gridPos": {694 "h": 1,695 "w": 24,696 "x": 0,697 "y": 29698 },699 "id": 101,700 "collapsed": false701 },702 {703 "id": 9,704 "type": "timeseries",705 "title": "API latency p50 / p95 / p99 (s)",706 "gridPos": {707 "h": 8,708 "w": 12,709 "x": 0,710 "y": 30711 },712 "datasource": {713 "type": "prometheus",714 "uid": "dci-prom"715 },716 "targets": [717 {718 "refId": "A",719 "expr": "histogram_quantile(0.50, sum(rate(dci_api_request_duration_seconds_bucket[5m])) by (le))",720 "legendFormat": "p50"721 },722 {723 "refId": "B",724 "expr": "histogram_quantile(0.95, sum(rate(dci_api_request_duration_seconds_bucket[5m])) by (le))",725 "legendFormat": "p95"726 },727 {728 "refId": "C",729 "expr": "histogram_quantile(0.99, sum(rate(dci_api_request_duration_seconds_bucket[5m])) by (le))",730 "legendFormat": "p99"731 }732 ],733 "options": {734 "legend": {735 "displayMode": "list",736 "placement": "bottom",737 "showLegend": true738 },739 "tooltip": {740 "mode": "multi",741 "sort": "desc"742 }743 },744 "fieldConfig": {745 "defaults": {746 "unit": "s",747 "custom": {748 "lineWidth": 2,749 "fillOpacity": 0,750 "showPoints": "never",751 "spanNulls": true,752 "axisSoftMin": 0753 }754 },755 "overrides": [756 {757 "matcher": {758 "id": "byName",759 "options": "p50"760 },761 "properties": [762 {763 "id": "color",764 "value": {765 "mode": "fixed",766 "fixedColor": "#3987e5"767 }768 }769 ]770 },771 {772 "matcher": {773 "id": "byName",774 "options": "p95"775 },776 "properties": [777 {778 "id": "color",779 "value": {780 "mode": "fixed",781 "fixedColor": "#d95926"782 }783 }784 ]785 },786 {787 "matcher": {788 "id": "byName",789 "options": "p99"790 },791 "properties": [792 {793 "id": "color",794 "value": {795 "mode": "fixed",796 "fixedColor": "#199e70"797 }798 }799 ]800 }801 ]802 }803 },804 {805 "id": 10,806 "type": "timeseries",807 "title": "API requests / s by status class",808 "gridPos": {809 "h": 8,810 "w": 12,811 "x": 12,812 "y": 30813 },814 "datasource": {815 "type": "prometheus",816 "uid": "dci-prom"817 },818 "targets": [819 {820 "refId": "A",821 "expr": "sum by (class) (label_replace(rate(dci_api_requests_total[5m]), \"class\", \"$1xx\", \"status\", \"(.).*\"))",822 "legendFormat": "{{class}}"823 }824 ],825 "options": {826 "legend": {827 "displayMode": "list",828 "placement": "bottom",829 "showLegend": true830 },831 "tooltip": {832 "mode": "multi",833 "sort": "desc"834 }835 },836 "fieldConfig": {837 "defaults": {838 "unit": "reqps",839 "custom": {840 "lineWidth": 2,841 "fillOpacity": 0,842 "showPoints": "never",843 "spanNulls": true,844 "axisSoftMin": 0845 }846 },847 "overrides": [848 {849 "matcher": {850 "id": "byName",851 "options": "2xx"852 },853 "properties": [854 {855 "id": "color",856 "value": {857 "mode": "fixed",858 "fixedColor": "#3987e5"859 }860 }861 ]862 },863 {864 "matcher": {865 "id": "byName",866 "options": "3xx"867 },868 "properties": [869 {870 "id": "color",871 "value": {872 "mode": "fixed",873 "fixedColor": "#199e70"874 }875 }876 ]877 },878 {879 "matcher": {880 "id": "byName",881 "options": "4xx"882 },883 "properties": [884 {885 "id": "color",886 "value": {887 "mode": "fixed",888 "fixedColor": "#c98500"889 }890 }891 ]892 },893 {894 "matcher": {895 "id": "byName",896 "options": "5xx"897 },898 "properties": [899 {900 "id": "color",901 "value": {902 "mode": "fixed",903 "fixedColor": "#d95926"904 }905 }906 ]907 }908 ]909 }910 },911 {912 "type": "row",913 "title": "Hosts",914 "gridPos": {915 "h": 1,916 "w": 24,917 "x": 0,918 "y": 38919 },920 "id": 102,921 "collapsed": false922 },923 {924 "id": 11,925 "type": "timeseries",926 "title": "CPU busy (%)",927 "gridPos": {928 "h": 8,929 "w": 8,930 "x": 0,931 "y": 39932 },933 "datasource": {934 "type": "prometheus",935 "uid": "dci-prom"936 },937 "targets": [938 {939 "refId": "A",940 "expr": "100 * (1 - avg(rate(node_cpu_seconds_total{mode=\"idle\"}[5m])) by (node))",941 "legendFormat": "{{node}}"942 }943 ],944 "options": {945 "legend": {946 "displayMode": "list",947 "placement": "bottom",948 "showLegend": true949 },950 "tooltip": {951 "mode": "multi",952 "sort": "desc"953 }954 },955 "fieldConfig": {956 "defaults": {957 "unit": "percent",958 "min": 0,959 "max": 100,960 "custom": {961 "lineWidth": 2,962 "fillOpacity": 0,963 "showPoints": "never",964 "spanNulls": true965 }966 },967 "overrides": [968 {969 "matcher": {970 "id": "byName",971 "options": "data"972 },973 "properties": [974 {975 "id": "color",976 "value": {977 "mode": "fixed",978 "fixedColor": "#3987e5"979 }980 }981 ]982 },983 {984 "matcher": {985 "id": "byName",986 "options": "crawl"987 },988 "properties": [989 {990 "id": "color",991 "value": {992 "mode": "fixed",993 "fixedColor": "#d95926"994 }995 }996 ]997 }998 ]999 }1000 },1001 {1002 "id": 12,1003 "type": "timeseries",1004 "title": "Memory used (%)",1005 "gridPos": {1006 "h": 8,1007 "w": 8,1008 "x": 8,1009 "y": 391010 },1011 "datasource": {1012 "type": "prometheus",1013 "uid": "dci-prom"1014 },1015 "targets": [1016 {1017 "refId": "A",1018 "expr": "100 * (1 - node_memory_MemAvailable_bytes / node_memory_MemTotal_bytes)",1019 "legendFormat": "{{node}}"1020 }1021 ],1022 "options": {1023 "legend": {1024 "displayMode": "list",1025 "placement": "bottom",1026 "showLegend": true1027 },1028 "tooltip": {1029 "mode": "multi",1030 "sort": "desc"1031 }1032 },1033 "fieldConfig": {1034 "defaults": {1035 "unit": "percent",1036 "min": 0,1037 "max": 100,1038 "custom": {1039 "lineWidth": 2,1040 "fillOpacity": 0,1041 "showPoints": "never",1042 "spanNulls": true1043 }1044 },1045 "overrides": [1046 {1047 "matcher": {1048 "id": "byName",1049 "options": "data"1050 },1051 "properties": [1052 {1053 "id": "color",1054 "value": {1055 "mode": "fixed",1056 "fixedColor": "#3987e5"1057 }1058 }1059 ]1060 },1061 {1062 "matcher": {1063 "id": "byName",1064 "options": "crawl"1065 },1066 "properties": [1067 {1068 "id": "color",1069 "value": {1070 "mode": "fixed",1071 "fixedColor": "#d95926"1072 }1073 }1074 ]1075 }1076 ]1077 }1078 },1079 {1080 "id": 13,1081 "type": "timeseries",1082 "title": "Root filesystem used (%)",1083 "gridPos": {1084 "h": 8,1085 "w": 8,1086 "x": 16,1087 "y": 391088 },1089 "datasource": {1090 "type": "prometheus",1091 "uid": "dci-prom"1092 },1093 "targets": [1094 {1095 "refId": "A",1096 "expr": "100 * (1 - node_filesystem_avail_bytes{mountpoint=\"/\",fstype!~\"tmpfs|overlay\"} / node_filesystem_size_bytes{mountpoint=\"/\",fstype!~\"tmpfs|overlay\"})",1097 "legendFormat": "{{node}}"1098 }1099 ],1100 "options": {1101 "legend": {1102 "displayMode": "list",1103 "placement": "bottom",1104 "showLegend": true1105 },1106 "tooltip": {1107 "mode": "multi",1108 "sort": "desc"1109 }1110 },1111 "fieldConfig": {1112 "defaults": {1113 "unit": "percent",1114 "min": 0,1115 "max": 100,1116 "custom": {1117 "lineWidth": 2,1118 "fillOpacity": 0,1119 "showPoints": "never",1120 "spanNulls": true1121 }1122 },1123 "overrides": [1124 {1125 "matcher": {1126 "id": "byName",1127 "options": "data"1128 },1129 "properties": [1130 {1131 "id": "color",1132 "value": {1133 "mode": "fixed",1134 "fixedColor": "#3987e5"1135 }1136 }1137 ]1138 },1139 {1140 "matcher": {1141 "id": "byName",1142 "options": "crawl"1143 },1144 "properties": [1145 {1146 "id": "color",1147 "value": {1148 "mode": "fixed",1149 "fixedColor": "#d95926"1150 }1151 }1152 ]1153 }1154 ]1155 }1156 },1157 {1158 "type": "row",1159 "title": "Containers & stores (data node)",1160 "gridPos": {1161 "h": 1,1162 "w": 24,1163 "x": 0,1164 "y": 471165 },1166 "id": 103,1167 "collapsed": false1168 },1169 {1170 "id": 14,1171 "type": "timeseries",1172 "title": "Container memory (working set)",1173 "gridPos": {1174 "h": 8,1175 "w": 12,1176 "x": 0,1177 "y": 481178 },1179 "datasource": {1180 "type": "prometheus",1181 "uid": "dci-prom"1182 },1183 "targets": [1184 {1185 "refId": "A",1186 "expr": "sum(container_memory_working_set_bytes{container_label_com_docker_compose_service!=\"\"}) by (container_label_com_docker_compose_service)",1187 "legendFormat": "{{container_label_com_docker_compose_service}}"1188 }1189 ],1190 "options": {1191 "legend": {1192 "displayMode": "table",1193 "placement": "right",1194 "showLegend": true,1195 "calcs": [1196 "lastNotNull"1197 ],1198 "sortBy": "Last *",1199 "sortDesc": true1200 },1201 "tooltip": {1202 "mode": "multi",1203 "sort": "desc"1204 }1205 },1206 "fieldConfig": {1207 "defaults": {1208 "unit": "bytes",1209 "color": {1210 "mode": "palette-classic"1211 },1212 "custom": {1213 "lineWidth": 1,1214 "fillOpacity": 0,1215 "showPoints": "never",1216 "spanNulls": true,1217 "axisSoftMin": 01218 }1219 },1220 "overrides": []1221 }1222 },1223 {1224 "id": 15,1225 "type": "timeseries",1226 "title": "Postgres connections / Redis clients",1227 "gridPos": {1228 "h": 8,1229 "w": 6,1230 "x": 12,1231 "y": 481232 },1233 "datasource": {1234 "type": "prometheus",1235 "uid": "dci-prom"1236 },1237 "targets": [1238 {1239 "refId": "A",1240 "expr": "sum(pg_stat_activity_count)",1241 "legendFormat": "postgres connections"1242 },1243 {1244 "refId": "B",1245 "expr": "redis_connected_clients",1246 "legendFormat": "redis clients"1247 }1248 ],1249 "options": {1250 "legend": {1251 "displayMode": "list",1252 "placement": "bottom",1253 "showLegend": true1254 },1255 "tooltip": {1256 "mode": "multi",1257 "sort": "desc"1258 }1259 },1260 "fieldConfig": {1261 "defaults": {1262 "unit": "short",1263 "custom": {1264 "lineWidth": 2,1265 "fillOpacity": 0,1266 "showPoints": "never",1267 "spanNulls": true,1268 "axisSoftMin": 01269 }1270 },1271 "overrides": [1272 {1273 "matcher": {1274 "id": "byName",1275 "options": "postgres connections"1276 },1277 "properties": [1278 {1279 "id": "color",1280 "value": {1281 "mode": "fixed",1282 "fixedColor": "#3987e5"1283 }1284 }1285 ]1286 },1287 {1288 "matcher": {1289 "id": "byName",1290 "options": "redis clients"1291 },1292 "properties": [1293 {1294 "id": "color",1295 "value": {1296 "mode": "fixed",1297 "fixedColor": "#d95926"1298 }1299 }1300 ]1301 }1302 ]1303 }1304 },1305 {1306 "id": 16,1307 "type": "timeseries",1308 "title": "Postgres database size",1309 "gridPos": {1310 "h": 8,1311 "w": 6,1312 "x": 18,1313 "y": 481314 },1315 "datasource": {1316 "type": "prometheus",1317 "uid": "dci-prom"1318 },1319 "targets": [1320 {1321 "refId": "A",1322 "expr": "pg_database_size_bytes{datname=\"dci\"}",1323 "legendFormat": "dci"1324 }1325 ],1326 "options": {1327 "legend": {1328 "displayMode": "list",1329 "placement": "bottom",1330 "showLegend": false1331 },1332 "tooltip": {1333 "mode": "single"1334 }1335 },1336 "fieldConfig": {1337 "defaults": {1338 "unit": "bytes",1339 "color": {1340 "mode": "fixed",1341 "fixedColor": "#3987e5"1342 },1343 "custom": {1344 "lineWidth": 2,1345 "fillOpacity": 10,1346 "showPoints": "never",1347 "spanNulls": true,1348 "axisSoftMin": 01349 }1350 },1351 "overrides": []1352 }1353 }1354 ]1355}1356