Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mkOPU-0000uC-Lk for pgsql-admin@arkaria.postgresql.org; Tue, 09 Nov 2021 10:31:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mkOPS-0006Sp-9r for pgsql-admin@arkaria.postgresql.org; Tue, 09 Nov 2021 10:31:22 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mkOPR-0006Sf-Vi for pgsql-admin@lists.postgresql.org; Tue, 09 Nov 2021 10:31:21 +0000 Received: from admin.sibptus.ru ([2001:19f0:5001:21dc::10]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mkOPL-0000ha-Ru for pgsql-admin@lists.postgresql.org; Tue, 09 Nov 2021 10:31:20 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sibptus.ru; s=20181118; h=In-Reply-To:Message-ID:Subject:To:From:Date; bh=BOMlQLssv0fAluREhTeOQirwQMwbmMuAhc/PbOoIgjY=; b=WwpQrkqAoouztI3j4X9TFdpVVm 2m+lw2BEZCm1TW+KR92M/aLTvh/2ValOiSHyAH22oSg/6r1Ou5zVNDigdWBV053rR/lS72636rMC2 ajIoy3IxdrWhgQRQCpRdXwcdE3E1EstwoWmmuUH+xyg4vwGrlNQiE+KKRZ7+I7va8zuk=; Received: from vas by admin.sibptus.ru with local (Exim 4.94.2 (FreeBSD)) (envelope-from ) id 1mkOPK-000ItD-9V; Tue, 09 Nov 2021 10:31:14 +0000 Date: Tue, 9 Nov 2021 10:31:14 +0000 From: Victor Sudakov To: Pgsql-admin Cc: Vijaykumar Jain Subject: Re: Best Prometheus exporter? Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-PGP-Key: http://admin.sibptus.ru/~vas/ X-PGP-Fingerprint: 10E3 1171 1273 E007 C2E9 3532 0DA4 F259 9B5E C634 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hello Vijaykumar! Thank you for your useful links. I've just installed prometheus-community/postgres_exporter and it is working. It is also useful that it comes with a ready Grafana dashboard. I've installed Grafana dashboard "9628" and found it not very useful (in comparison e.g. with the standard Zabbix PostgreSQL template), but maybe I've not invested enough time studying it. I have not looked at the alerter yet. Vijaykumar Jain wrote: > On Tue, 9 Nov 2021 at 00:19, Victor Sudakov wrote: > > > > > What good Prometheus exporter for Postgres can you recommend (from your > > own experience)? > > > I have not got a lot of exposure with prometheus, but was able to quickly > set up using below, > but I was aware of monitoring and alerting otherwise , so it was easy. the > below were combined with node_exporter (specially storage io metrics) > > prometheus-community/postgres_exporter: A PostgreSQL metric exporter for > Prometheus (github.com) > > should be a good start. > PostgreSQL Database dashboard for Grafana | Grafana Labs > would be the corresponding > grafana dashboard. > > and alerting queries for this exporter > Awesome Prometheus alerts | Collection of alerting rules (grep.to) > > > these are very basics to start with, feel free to improvise. > > the below utils are also very much handy. > > NikolayS/postgres_dba: The missing set of useful tools for Postgres DBAs > and all engineers (github.com) > dataegret/pg-utils: Useful PostgreSQL utilities (github.com) > > pg_stat_monitor/USER_GUIDE.md at master · percona/pg_stat_monitor > (github.com) > > (new but i like the option to check query plan via sql query) > > and the most > important wrt logs. > pgBadger Documentation (darold.net) > > > I shared much more than asked, feel free to discard what is not needed. -- Victor Sudakov VAS4-RIPE http://vas.tomsk.ru/ 2:5005/49@fidonet