Skip to content

Commit

Permalink
v0.3.2
Browse files Browse the repository at this point in the history
* fix shadow dsn corner case
* fix typo
* fix document
  • Loading branch information
Vonng committed Feb 1, 2021
1 parent 9e9e014 commit f682b06
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,17 @@

[Prometheus](https://prometheus.io/) [exporter](https://prometheus.io/docs/instrumenting/exporters/) for [PostgreSQL](https://www.postgresql.org) metrics. **Gives you complete insight on your favourate elephant!**

PG Exporter is the foundation component for Project [Pigsty](https://pigsty.cc), Which maybe the best **OpenSource** Monitoring Solution for PostgreSQL.

Latest binaries & rpms can be found on [release](https://github.com/Vonng/pg_exporter/releases) page. Supported pg version: PostgreSQL 9.4+ & Pgbouncer 1.8+. Default collectors definition is compatible with PostgreSQL 10,11,12,13.

Latest `pg_exporter` version: `0.3.1`
Latest `pg_exporter` version: `0.3.2`



## Features

* Support [Pigsty](https://pigsty.cc/en/)
* 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...)
Expand All @@ -19,7 +22,6 @@ Latest `pg_exporter` version: `0.3.1`
* Auto discovery multi database in the same cluster (multiple database scrape **TBD**)
* Tested and verified in real world production environment for years (200+ Nodes)
* Metrics overhelming! Gives you complete insight on your favourate elephant!

* (Pgbouncer mode is enabled when target dbname is `pgbouncer`)


Expand Down
10 changes: 5 additions & 5 deletions pg_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
// ┃ Name : pg_exporter.go ┃ //
// ┃ Desc : pg_exporter metrics exporter ┃ //
// ┃ Ctime : 2019-12-09 ┃ //
// ┃ Mtime : 2020-10-20 ┃ //
// ┃ Version : 0.3.1 ┃ //
// ┃ Mtime : 2021-02-01 ┃ //
// ┃ Version : 0.3.2 ┃ //
// ┃ Support : PostgreSQL 10~13 pgbouncer 1.9+ ┃ //
// ┃ Author : Vonng (fengruohang@outlook.com) ┃ //
// ┃ Copyright (C) 2019-2020 Ruohang Feng ┃ //
// ┃ Copyright (C) 2019-2021 Ruohang Feng ┃ //
// ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛ //

package main
Expand Down Expand Up @@ -48,7 +48,7 @@ import (
\**********************************************************************************************/

// Version is read by make build procedure
var Version = "0.3.1"
var Version = "0.3.2"

var defaultPGURL = "postgresql:///?sslmode=disable"

Expand Down Expand Up @@ -1430,7 +1430,7 @@ func (e *Exporter) setupInternalMetrics() {
}, []string{"datname", "query"})
e.queryScrapeHitCount = prometheus.NewGaugeVec(prometheus.GaugeOpts{
Namespace: e.namespace, ConstLabels: e.constLabels,
Subsystem: "exporter_query", Name: "scrape_hit_count", Help: "numbers been scrapped from this query",
Subsystem: "exporter_query", Name: "scrape_hit_count", Help: "numbers been scrapped from this query",
}, []string{"datname", "query"})

e.exporterUp.Set(1) // always be true
Expand Down
2 changes: 1 addition & 1 deletion service/pg_exporter.spec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
%define debug_package %{nil}

Name: pg_exporter
Version: 0.3.1
Version: 0.3.2
Release: 1%{?dist}
Summary: Prometheus exporter for PostgreSQL/Pgbouncer server metrics
License: BSD
Expand Down

0 comments on commit f682b06

Please sign in to comment.