Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
109 commits
Select commit Hold shift + click to select a range
6f36adf
Update pg_long_running_transactions.go (#1092)
jyothikirant-sayukth Dec 22, 2024
5bb1702
Fix to replace dashes with underscore in the metric names (#1103)
aagarwalla-fx Dec 22, 2024
5145620
Bump github.com/prometheus/exporter-toolkit from 0.13.1 to 0.13.2 (#1…
dependabot[bot] Jan 1, 2025
bea2609
Checkpoint related columns in PG 17 have been moved from pg_stat_bgwr…
n-rodriguez Jan 1, 2025
ecb5ec5
Update common Prometheus files (#1090)
prombot Jan 7, 2025
9de4f19
Update common Prometheus files (#1110)
prombot Jan 7, 2025
7d4c278
Add Postgres 17 for CI test (#1105)
khiemdoan Jan 13, 2025
3acc479
Bump github.com/prometheus/common from 0.61.0 to 0.62.0 (#1118)
dependabot[bot] Feb 13, 2025
d85a771
Update common Prometheus files (#1124)
prombot Feb 14, 2025
072864d
pg_stat_statements PG17 (#1114)
NevermindZ4 Feb 15, 2025
9e42fc0
fix: handle pg_replication_slots on pg<13 (#1098)
michael-todorovic Feb 15, 2025
2ee2a8f
feat: add wait/backend to pg_stat_activity (#1106)
fgalind1 Feb 15, 2025
c3885e8
Export last replay age in replication collector (#1085)
bitfehler Feb 15, 2025
99e1b51
Bump github.com/prometheus/exporter-toolkit from 0.13.2 to 0.14.0 (#1…
dependabot[bot] Feb 15, 2025
4c170ed
Fix missing dsn sanitization for logging (#1104)
sysadmind Feb 15, 2025
8bb1a41
Skip pg_stat_checkpointer collector if pg<17 (#1112)
n-rodriguez Feb 20, 2025
51006ab
Prep for v0.17 (#1127)
sysadmind Feb 21, 2025
2869087
Fix: Handle incoming labels with invalid UTF-8 (#1131)
vancwo Feb 26, 2025
1e574cf
Release v0.17.1 (#1132)
SuperQ Feb 26, 2025
457b6fa
Bump github.com/prometheus/client_golang from 1.20.5 to 1.21.0 (#1133)
dependabot[bot] Mar 3, 2025
602302f
Update common Prometheus files (#1137)
prombot Mar 8, 2025
b0e61bf
Bump golang.org/x/net from 0.33.0 to 0.36.0 (#1138)
dependabot[bot] Mar 16, 2025
2ce65c3
Update common Prometheus files (#1140)
prombot Mar 23, 2025
fca2ad8
Update common Prometheus files (#1142)
prombot Mar 30, 2025
9e86f1e
Adds pg_stat_progress_vacuum collector (#1141)
ianbibby Apr 3, 2025
8d5ec4b
Update Go (#1147)
SuperQ Apr 3, 2025
43576ac
Bump github.com/prometheus/client_golang from 1.21.0 to 1.21.1 (#1144)
dependabot[bot] Apr 3, 2025
f8b7139
Bump github.com/prometheus/common from 0.62.0 to 0.63.0 (#1143)
dependabot[bot] Apr 3, 2025
5edc331
Record table only size bytes as well in addition to the total size by…
Sticksman Apr 18, 2025
6526065
Bump golang.org/x/net from 0.36.0 to 0.38.0 (#1152)
dependabot[bot] Apr 23, 2025
5ade81c
Update common Prometheus files (#1155)
prombot May 7, 2025
bd8a613
Bump github.com/prometheus/client_golang from 1.21.1 to 1.22.0 (#1154)
dependabot[bot] May 7, 2025
de42ef7
Export query itself together with queryId in stat_statement metrics (…
Delorien84 May 16, 2025
d1a957f
Update common Prometheus files (#1159)
prombot May 17, 2025
94e8399
Feat: Improve Error Handling for Server.Scrape (#1158)
BoweFlex May 29, 2025
d8ba628
Add a collector for `pg_buffercache_summary`. (#1165)
sfc-gh-pnuttall Jun 19, 2025
f9a88f4
Update common Prometheus files (#1160)
prombot Jun 19, 2025
6d3078d
Bump github.com/prometheus/common from 0.63.0 to 0.64.0 (#1163)
dependabot[bot] Jun 19, 2025
f50aac6
Bump github.com/prometheus/common from 0.64.0 to 0.65.0 (#1173)
dependabot[bot] Jul 9, 2025
8c93ed0
Update common Prometheus files (#1174)
prombot Jul 10, 2025
dfde566
chore: fix a typo and use `slices.Contains` (#1176)
cristiangreco Jul 11, 2025
cac5d52
Update common Prometheus files (#1178)
prombot Jul 11, 2025
aa98bb3
Replace another custom implementation of `slices.Contains` (#1180)
cristiangreco Jul 16, 2025
06a553c
Ensure database connections are always closed (#1177)
cristiangreco Jul 18, 2025
77e1a0d
Update mixin to latest changes from grafana/postgres_exporter (#1179)
cristiangreco Jul 25, 2025
cb0bac6
Bump github.com/prometheus/client_golang from 1.22.0 to 1.23.0 (#1183)
dependabot[bot] Aug 13, 2025
198454c
Exclude the metrics fetching session's data from pg_stat_activity (#1…
kmoppel Aug 26, 2025
1c6854e
Update common Prometheus files (#1191)
prombot Sep 20, 2025
2850c3d
Update common Prometheus files (#1194)
prombot Sep 23, 2025
105c422
Bump prometheus deps (#1195)
cristiangreco Sep 23, 2025
e62fe08
Prepare release `0.18.0` (#1196)
cristiangreco Sep 25, 2025
ef2736e
Fix swapped `flushedLsn` and `receiveStartTli` for `wal_receiver` col…
spantaleev Sep 29, 2025
b4c5250
Fix #1185 bug (#1197) (#1201)
cristiangreco Sep 29, 2025
320b684
Prepare release v0.18.1 (#1202)
cristiangreco Sep 29, 2025
a95b518
Update Go (#1203)
SuperQ Sep 30, 2025
c70a059
feat: allow setting `limit` in `pg_stat_statements` (#1205)
cristiangreco Oct 8, 2025
00b76df
Bump github.com/prometheus/client_golang from 1.23.1 to 1.23.2 (#1204)
dependabot[bot] Oct 12, 2025
37171f7
Enable pprof (#1212)
SuperQ Oct 21, 2025
9d9a9f9
Update common Prometheus files (#1213)
prombot Oct 24, 2025
eae2c87
Bump github.com/prometheus/common from 0.66.1 to 0.67.2 (#1216)
dependabot[bot] Nov 5, 2025
4372058
Bump github.com/prometheus/exporter-toolkit from 0.14.1 to 0.15.0 (#1…
dependabot[bot] Nov 5, 2025
974c9de
Synchronize common files from prometheus/prometheus (#1217)
prombot Nov 18, 2025
5483697
Bump github.com/prometheus/common from 0.67.2 to 0.67.4 (#1224)
dependabot[bot] Dec 1, 2025
7c167f7
Bump golang.org/x/crypto from 0.43.0 to 0.45.0 (#1220)
dependabot[bot] Dec 10, 2025
d613418
Update GitHub Actions to run all CI (#1231)
sysadmind Dec 12, 2025
7786601
Fix NULL on long_running_transactions collector (#1230)
sysadmind Dec 13, 2025
f2203ba
Update common Prometheus files (#1222)
prombot Dec 19, 2025
97fb871
Document stat_checkpointer collector option (#1226)
avances123 Dec 19, 2025
5724e0c
Update common Prometheus files (#1233)
prombot Dec 23, 2025
73a157e
Ensure collection of stats succeed in a maximum duration to avoid exh…
pierresouchay Dec 23, 2025
30e8ab3
Update common Prometheus files (#1234)
prombot Dec 28, 2025
c7a09a2
Update common Prometheus files (#1236)
prombot Jan 4, 2026
c285030
Update common Prometheus files (#1237)
prombot Jan 6, 2026
7b2975a
feat: allow excluding databases or users names in `stat_statements` (…
cristiangreco Jan 10, 2026
de76d83
ci: add postgres 18.1 to test matrix (#1239)
cristiangreco Jan 16, 2026
9599702
Update common Prometheus files (#1243)
prombot Jan 22, 2026
47d0100
Update common Prometheus files (#1244)
prombot Jan 23, 2026
3c0720a
feat: reorganize code to remove the main package (#1238)
cristiangreco Jan 28, 2026
e27c227
Update common Prometheus files (#1251)
prombot Jan 30, 2026
9cb9648
fix: Do not crash on bad pg_settings value (#1252)
sysadmind Feb 2, 2026
7bf8aeb
Bump github.com/prometheus/common from 0.67.4 to 0.67.5 (#1255)
dependabot[bot] Feb 4, 2026
d762363
Bump github.com/prometheus/exporter-toolkit from 0.15.0 to 0.15.1 (#1…
dependabot[bot] Feb 4, 2026
a433d58
Prepare release 0.19.0 (#1256)
cristiangreco Feb 4, 2026
a00749f
Update common Prometheus files (#1260)
prombot Feb 16, 2026
d14e06c
fix: ignore setting `google_dataplex.max_messages` (#1261)
cristiangreco Feb 18, 2026
ee441c1
wal: Fix collector NULL SUM(size) (#1265)
dannotripp Feb 20, 2026
6afd078
Filter and warn about duplicates in pg_stat_statements (#998) (#1259)
Nudin Feb 24, 2026
4a776be
Optimize pg_stat_statements queries (#1267)
eugercek Feb 25, 2026
e9aa46c
Update common Prometheus files (#1266)
prombot Feb 25, 2026
333363a
Prepare release v0.19.1 (#1268)
cristiangreco Feb 25, 2026
4f6941f
Update common Prometheus files (#1269)
prombot Mar 3, 2026
f0117d7
Update common Prometheus files (#1272)
prombot Mar 4, 2026
9dd194f
Update build (#1279)
SuperQ Apr 1, 2026
faf05a0
Bump actions/checkout from 5.0.0 to 6.0.2 (#1281)
dependabot[bot] Apr 1, 2026
4a014e9
Bump prometheus/promci from 0.6.0 to 0.6.1 (#1280)
dependabot[bot] Apr 1, 2026
ee51a26
Update common Prometheus files (#1285)
prombot Apr 8, 2026
ca51864
Update common Prometheus files (#1286)
prombot Apr 8, 2026
4255a33
Update common Prometheus files (#1287)
prombot Apr 11, 2026
363b3ae
Cleanup CI (#1290)
SuperQ Apr 17, 2026
3b0317c
Update common Prometheus files (#1288)
prombot Apr 17, 2026
8879f5a
Update common Prometheus files (#1291)
prombot Apr 21, 2026
f9d6723
Update common Prometheus files (#1293)
prombot Apr 23, 2026
8ad13dc
Update common Prometheus files (#1300)
prombot May 12, 2026
6f2a7a3
Bump github.com/prometheus/exporter-toolkit from 0.15.1 to 0.16.0 (#1…
dependabot[bot] May 12, 2026
7b5d85f
Remove global auth config reload metrics (#1296)
ArthurSens May 12, 2026
aea92ea
Refactor stat_archiver into standalone collector (#1304)
ArthurSens May 15, 2026
d0bac0b
Refactor stat_activity into standalone collector (#1305)
ArthurSens May 15, 2026
c629747
Refactor stat_replication into standalone collector (#1306)
ArthurSens May 16, 2026
15beb33
Refactor pg_settings into a standalone collector (#1303)
ArthurSens May 17, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
104 changes: 0 additions & 104 deletions .circleci/config.yml

This file was deleted.

10 changes: 10 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
data/
.build/
.tarballs/

!.build/linux-amd64/
!.build/linux-arm64/
!.build/linux-armv7/
!.build/linux-ppc64le/
!.build/linux-riscv64/
!.build/linux-s390x/
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,11 @@ updates:
directory: "/"
schedule:
interval: "monthly"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
# Exclude configs synced from upstream prometheus/prometheus.
exclude-paths:
- .github/workflows/container_description.yml
- .github/workflows/golangci-lint.yml
69 changes: 69 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
---
name: CI
on:
pull_request:
push:
branches: [main, master, 'release-*']
tags: ['v*']

permissions:
contents: read

jobs:
test_go:
name: Go tests
runs-on: ubuntu-latest
container:
# Whenever the Go version is updated here, .promu.yml
# should also be updated.
image: quay.io/prometheus/golang-builder:1.26-base
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: prometheus/promci-setup@5af30ba8c199a91d6c04ebdc3c48e630e355f62d # v0.1.0
- run: make GO_ONLY=1 SKIP_GOLANGCI_LINT=1

build:
name: Build
runs-on: ubuntu-latest
strategy:
matrix:
thread: [ 0, 1, 2, 3]
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: prometheus/promci/build@9c86752f3395e08c57719af549cc455d8e2c2514 # v0.7.0
with:
parallelism: 4
thread: ${{ matrix.thread }}

publish_main:
name: Publish main branch artifacts
runs-on: ubuntu-latest
needs: [test_go, build]
if: |
(github.event_name == 'push' && github.event.ref == 'refs/heads/main')
||
(github.event_name == 'push' && github.event.ref == 'refs/heads/master')
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: prometheus/promci/publish_main@9c86752f3395e08c57719af549cc455d8e2c2514 # v0.7.0
with:
docker_hub_organization: prometheuscommunity
docker_hub_password: ${{ secrets.docker_hub_password }}
quay_io_organization: prometheuscommunity
quay_io_password: ${{ secrets.quay_io_password }}

publish_release:
name: Publish release artefacts
runs-on: ubuntu-latest
needs: [test_go, build]
if: |
(github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v'))
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: prometheus/promci/publish_release@9c86752f3395e08c57719af549cc455d8e2c2514 # v0.7.0
with:
docker_hub_organization: prometheuscommunity
docker_hub_password: ${{ secrets.docker_hub_password }}
quay_io_organization: prometheuscommunity
quay_io_password: ${{ secrets.quay_io_password }}
github_token: ${{ secrets.PROMBOT_GITHUB_TOKEN }}
8 changes: 6 additions & 2 deletions .github/workflows/container_description.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ jobs:
if: github.repository_owner == 'prometheus' || github.repository_owner == 'prometheus-community' # Don't run this workflow on forks.
steps:
- name: git checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Set docker hub repo name
run: echo "DOCKER_REPO_NAME=$(make docker-repo-name)" >> $GITHUB_ENV
- name: Push README to Dockerhub
Expand All @@ -40,7 +42,9 @@ jobs:
if: github.repository_owner == 'prometheus' || github.repository_owner == 'prometheus-community' # Don't run this workflow on forks.
steps:
- name: git checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Set quay.io org name
run: echo "DOCKER_REPO=$(echo quay.io/${GITHUB_REPOSITORY_OWNER} | tr -d '-')" >> $GITHUB_ENV
- name: Set quay.io repo name
Expand Down
17 changes: 12 additions & 5 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@
name: golangci-lint
on:
push:
branches: [main, master, 'release-*']
paths:
- "go.sum"
- "go.mod"
- "**.go"
- "scripts/errcheck_excludes.txt"
- ".github/workflows/golangci-lint.yml"
- ".golangci.yml"
tags: ['v*']
pull_request:

permissions: # added using https://github.com/step-security/secure-repo
Expand All @@ -24,16 +26,21 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Install Go
uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version: 1.23.x
go-version: 1.26.x
- name: Install snmp_exporter/generator dependencies
run: sudo apt-get update && sudo apt-get -y install libsnmp-dev
if: github.repository == 'prometheus/snmp_exporter'
- name: Get golangci-lint version
id: golangci-lint-version
run: echo "version=$(make print-golangci-lint-version)" >> $GITHUB_OUTPUT
- name: Lint
uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v6.1.1
uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0
with:
args: --verbose
version: v1.61.0
version: ${{ steps.golangci-lint-version.outputs.version }}
24 changes: 24 additions & 0 deletions .github/workflows/govulncheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
name: govulncheck
on:
pull_request:
paths:
- VERSION
- .github/workflows/govulncheck.yml
push:
branches:
- main
- master
schedule:
- cron: '33 2 * * *'

permissions:
contents: read

jobs:
govulncheck:
runs-on: ubuntu-latest
name: Run govulncheck
steps:
- id: govulncheck
uses: golang/govulncheck-action@31f7c5463448f83528bd771c2d978d940080c9fd # v1.0.4-unreleased
49 changes: 49 additions & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
---
name: CI
on:
pull_request:
push:
branches: [main, master, 'release-*']
tags: ['v*']

permissions:
contents: read

jobs:
integration_tests:
name: Integration tests
runs-on: ubuntu-latest
strategy:
matrix:
# Define Postgres versions to test against.
postgres_version:
- 13.22
- 14.19
- 15.14
- 16.10
- 17.6
- 18.1
services:
postgres:
image: postgres:${{ matrix.postgres_version }}
env:
POSTGRES_DB: circle_test
POSTGRES_USER: postgres
POSTGRES_PASSWORD: test
# options: >-
# --health-cmd="pg_isready -U postgres -d circle_test"
# --health-interval=10s
# --health-timeout=5s
# --health-retries=5
container:
# Whenever the Go version is updated here, .promu.yml
# should also be updated.
image: quay.io/prometheus/golang-builder:1.26-base
env:
DATA_SOURCE_NAME: 'postgresql://postgres:test@postgres:5432/circle_test?sslmode=disable'
GOOPTS: '-v -tags integration'
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: prometheus/promci-setup@5af30ba8c199a91d6c04ebdc3c48e630e355f62d # v0.1.0
- run: make build
- run: make test
53 changes: 33 additions & 20 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,36 @@
---
version: "2"
linters:
enable:
- misspell
- revive

issues:
exclude-rules:
- path: _test.go
linters:
- errcheck

linters-settings:
errcheck:
exclude-functions:
# Never check for logger errors.
- (github.com/go-kit/log.Logger).Log
revive:
- misspell
- revive
settings:
errcheck:
exclude-functions:
- (github.com/go-kit/log.Logger).Log
revive:
rules:
- name: unused-parameter
severity: warning
disabled: true
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
rules:
# https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#unused-parameter
- name: unused-parameter
severity: warning
disabled: true
- linters:
- errcheck
path: _test.go
paths:
- third_party$
- builtin$
- examples$
formatters:
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$
Loading