{"repo":"CyberDem0n/bg_mon","free":true,"listed":false,"github":"https://github.com/CyberDem0n/bg_mon","clone":"git clone https://github.com/CyberDem0n/bg_mon.git","description":"Background worker for monitoring PostgreSQL","language":"C","stars":75,"topics":["background-worker","postgresql","monitoring","json"],"license":"MIT","category":"analytics","readme_excerpt":"Background worker for monitoring PostgreSQL =========================================== bg\\ mon is a contrib module compatible with PostgreSQL starting from version 9.3 It collects per-process statistics combined with pg stat activity for the processes that have the rows there, global system stats, per-partition information and the memory stats. Monitoring is being done from the Background Worker Process and results are exposed by embeded webserver implemented with the help of libevent library. By default webserver listen on 127.0.0.1:8080 and statistics is collected every second. Optionally, if compiled with libbrotli, the worker will keep statistics in the aggregated format for the past history buckets minutes in memory. Brotli compression is used because the compression ratio is very efficient and most of the modern browsers support it out of the box. List of available GUC variables ------------------------------- bg\\ mon.listen\\ address = '0.0.0.0' # listen on all available interfaces (default value: 127.0.0.1) bg\\ mon.port = 8888 # listen on port 8888 (default value: 8080) bg\\ mon.naptime = 10 # collect statistics every 10 seconds (default value: 1) bg\\ mon.history\\ buckets = 60 # keep one-minute aggregated statistics in memory for 60 minutes (default value: 20) How to build and install: ------------------------- 1. You have to install libevent-dev and optionally libbrotli-dev packages 2. $ USE\\ PGXS=1 make 3. $ sudo USE\\ PGXS=1 make install How to run it: --------------","default_branch":null,"files":null,"tree":[],"storefront":"/r/CyberDem0n","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/CyberDem0n/bg_mon/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}