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 1mkNr9-0007h2-2Y for pgsql-admin@arkaria.postgresql.org; Tue, 09 Nov 2021 09:55:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mkNr5-0006vW-MD for pgsql-admin@arkaria.postgresql.org; Tue, 09 Nov 2021 09:55:51 +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 1mkNr5-0006vN-65 for pgsql-admin@lists.postgresql.org; Tue, 09 Nov 2021 09:55:51 +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 1mkNr0-0000Rd-N5 for pgsql-admin@lists.postgresql.org; Tue, 09 Nov 2021 09:55:49 +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=yarxd88PmsABUOGg8Kb+aEDgWxAnGuzPtAzO5Z/gmFU=; b=GTWHbecqqFXDyTOS1wswYB4vCq ReQCbAkld3HgAsnhCjAmWKmoYpzQe2Bd2DGdwU7uGHZm7x/fofDCEgRgp0a69LHSOo++j8ZHsqcNO uUiCmJ/GozKpjz1BY3ze/S8md9MZrbYdIoQrWC6lVdl0gpE2JpBhHK19u7/1lkwW2NDw=; Received: from vas by admin.sibptus.ru with local (Exim 4.94.2 (FreeBSD)) (envelope-from ) id 1mkNqv-000IlA-Ql; Tue, 09 Nov 2021 09:55:41 +0000 Date: Tue, 9 Nov 2021 09:55:41 +0000 From: Victor Sudakov To: pgsql-admin@lists.postgresql.org Cc: Ruohang Feng Subject: Re: Best Prometheus exporter? Message-ID: References: <8D5F0EAA-6C4F-4808-9633-5BC5DC33CB72@vonng.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <8D5F0EAA-6C4F-4808-9633-5BC5DC33CB72@vonng.com> 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 Ruohang! I've installed pg_exporter (very simple setup) and indeed I'm impressed. All the metrics are customizable and the default set of metrics in the stock config is impressive. You are the author so can I ask a few questions? 1. Are you providing an official docker image, or a single binary I could just ADD to a docker image, without the additional RUN steps for curl'ing and unpacking? An official docker image would be best of course. 2. I don't think I'm presently going to use the whole of Pigsty, we are already using some in-house scripts over Patroni, but a collection of Grafana dashboards using the pg_exporter metrics is something I'd love having. Is it possible to get them separately from Pigsty? The exporter itsef is grand! Ruohang Feng wrote: > I would recommend https://github.com/Vonng/pg_exporter for some reasons: > > Support both Postgres & Pgbouncer > Flexible: Almost all metrics are defined in customizable configuration files in SQL style. > Fine-grained execution control: Tags Filter, Facts Filter, Version Filter, Timeout, Cache, etc.. > Dynamic Planning: you could define multiple branches for a collecto. Queries matches server version & fact & tags will be actually executed. > Configurable caching policy & query timeout > Rich metrics about pg_exporter itself. > Auto discovery multi-database in the same instance > Tested and verified in real world production environment for 3+ years (200+ Nodes) > > > The most important part is: it has a complete solution for monitoring & dashboards: > > https://github.com/Vonng/pigsty > https://pigsty.cc > > > Dashboards screenshots: https://github.com/Vonng/pigsty/raw/master/docs/_media/overview-monitor.jpg > > > > > 2021年11月9日 02:49,Victor Sudakov 写道: > > > > Dear Colleagues, > > > > What good Prometheus exporter for Postgres can you recommend (from your own experience)? > > > > -- > > Victor Sudakov VAS4-RIPE > > http://vas.tomsk.ru/ > > 2:5005/49@fidonet > > > -- Victor Sudakov VAS4-RIPE http://vas.tomsk.ru/ 2:5005/49@fidonet