Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
163 commits
Select commit Hold shift + click to select a range
a866758
Bump golang from 1.17.2 to 1.18.3
dependabot[bot] Jun 2, 2022
1d3051e
Merge pull request #39 from sysdiglabs/master
Dlorite Jun 30, 2022
fd18637
Update dockerfile
Dlorite Jun 30, 2022
78d7f2c
Merge pull request #36 from sysdiglabs/dependabot/docker/golang-1.18.3
Dlorite Jun 30, 2022
ab9aa52
Bump sysdig/sysdig-mini-ubi from 1.3.1 to 1.3.2
dependabot[bot] Jul 4, 2022
067ed8e
Merge pull request #40 from sysdiglabs/dependabot/docker/sysdig/sysdi…
carlosadiegosysdig Jul 11, 2022
5dd812c
CHANGE github-action version and ADD token propertie
jaimeyh Jul 20, 2022
b134351
Upgrade to v0.6
jaimeyh Jul 20, 2022
33b8c52
Merge pull request #42 from sysdiglabs/upgrade-github-actions
jaimeyh Jul 21, 2022
6657e7f
Bump sysdig/sysdig-mini-ubi from 1.3.2 to 1.3.10
dependabot[bot] Oct 31, 2022
11c7570
Merge pull request #54 from sysdiglabs/dependabot/docker/sysdig/sysdi…
Mak0tin Nov 2, 2022
a1f02bf
Bump sysdig/sysdig-mini-ubi from 1.3.10 to 1.4.4
dependabot[bot] Jan 16, 2023
74c99a3
Merge pull request #65 from sysdiglabs/master
Dlorite Jan 17, 2023
f6d255a
Merge pull request #64 from sysdiglabs/dependabot/docker/sysdig/sysdi…
Dlorite Jan 17, 2023
38c8526
Bump sysdig/sysdig-mini-ubi from 1.4.4 to 1.4.6
dependabot[bot] Feb 13, 2023
fad7a2d
Bump golang.org/x/text from 0.3.7 to 0.3.8
dependabot[bot] Feb 23, 2023
d106d83
Merge pull request #68 from sysdiglabs/dependabot/docker/sysdig/sysdi…
jaimeyh Feb 24, 2023
414eab4
Bump sysdig/sysdig-mini-ubi from 1.4.6 to 1.4.7
dependabot[bot] Feb 27, 2023
8687132
Merge pull request #71 from sysdiglabs/dependabot/docker/sysdig/sysdi…
jaimeyh Feb 28, 2023
19e3e83
Bump golang.org/x/crypto from 0.0.0-20210616213533-5ff15b29337e to 0.1.0
dependabot[bot] Mar 7, 2023
8678870
Bump golang.org/x/net from 0.0.0-20220225172249-27dd8689420f to 0.7.0
dependabot[bot] Mar 7, 2023
872d1fc
Bump golang from 1.18.3 to 1.20.3
dependabot[bot] Apr 4, 2023
9a4a7b3
Bump sysdig/sysdig-mini-ubi from 1.4.7 to 1.4.11
dependabot[bot] Apr 10, 2023
d24668c
Merge pull request #79 from sysdiglabs/dependabot/docker/sysdig/sysdi…
sysdigkenneth Apr 21, 2023
1f61901
Merge pull request #70 from sysdiglabs/dependabot/go_modules/golang.o…
sysdigkenneth Apr 21, 2023
4d48170
Merge pull request #78 from sysdiglabs/dependabot/docker/golang-1.20.3
sysdigkenneth Apr 21, 2023
bef1ce2
Merge branch 'build' into dependabot/go_modules/golang.org/x/net-0.7.0
sysdigkenneth Apr 24, 2023
56b0c6a
Merge pull request #73 from sysdiglabs/dependabot/go_modules/golang.o…
sysdigkenneth Apr 24, 2023
5fae13f
Merge branch 'build' into dependabot/go_modules/golang.org/x/crypto-0…
sysdigkenneth Apr 24, 2023
1ee3fc4
Merge pull request #72 from sysdiglabs/dependabot/go_modules/golang.o…
sysdigkenneth Apr 24, 2023
38785ba
Fixing golangci-lint versions
sysdigkenneth Apr 24, 2023
a1c7b45
Fixing golangci-lint versions
sysdigkenneth Apr 24, 2023
fdd3003
Fixing golangci-lint versions
sysdigkenneth Apr 24, 2023
b9bda4e
Bump golang from 1.20.3 to 1.20.4
dependabot[bot] May 2, 2023
8a43bc8
Merge pull request #81 from sysdiglabs/dependabot/docker/golang-1.20.4
sysdigkenneth May 8, 2023
fdc0215
Fixing branch
sysdigkenneth May 8, 2023
37ca883
Merge pull request #80 from sysdiglabs/support/fix-golangci-lint
sysdigkenneth May 8, 2023
a3e4c35
Bump sysdig/sysdig-mini-ubi from 1.4.11 to 1.5.0
dependabot[bot] May 22, 2023
7721775
Merge pull request #82 from sysdiglabs/dependabot/docker/sysdig/sysdi…
sysdigkenneth May 25, 2023
83cac81
UPDATE github actions for new Jenkins
jaimeyh Aug 21, 2023
250fc03
Merge pull request #90 from sysdiglabs/SMPROD-14655
jaimeyh Aug 21, 2023
6554604
Bump sysdig/sysdig-mini-ubi from 1.5.0 to 1.5.4
dependabot[bot] Aug 28, 2023
f4aa359
FIX artifactory and add timeout (#92)
jaimeyh Nov 10, 2023
29dd7c3
Create CODEOWNERS
jaimeyh Nov 15, 2023
257176f
UPDATE ubi image version
jaimeyh Dec 13, 2023
1bd39e8
SECCOMP-27660: Fix vulnerabilities with upstream repo changes (#95)
jaimeyh Feb 22, 2024
71501dd
FIX High vulnerabilities image (#96)
jaimeyh May 2, 2024
1c94483
Merge branch 'build' into dependabot/docker/sysdig/sysdig-mini-ubi-1.5.4
sysdigkenneth May 9, 2024
b436fd1
Merge pull request #91 from sysdiglabs/dependabot/docker/sysdig/sysdi…
sysdigkenneth May 9, 2024
ac5a60c
ÜPDATE ubi base image in order to fix OS vulnerabilities (#101)
jaimeyh Jun 5, 2024
c0073ab
UPDATE golang version (#108)
jaimeyh Aug 12, 2024
624858c
UPDATE golang version and ubi to fix vulns (#109)
jaimeyh Sep 12, 2024
0d7627b
Bump UBI version (#110)
jaimeyh Oct 3, 2024
77fc9b9
APPLY stig ubi type (#111)
jaimeyh Nov 26, 2024
0be31e1
FIX release action credentials (#112)
jaimeyh Nov 26, 2024
ffacb22
[SECCOMP-31579] - FIPS support
Dec 13, 2024
5418b46
[SECCOMP-31582] - FIPS support
Dec 13, 2024
295c5bf
[SECCOMP-31582] - export globally
Dec 13, 2024
460e153
[SECCOMP-31582] - export globally
Dec 13, 2024
be6245e
[SECCOMP-31582] - export globally
Dec 13, 2024
fb55854
[SECCOMP-31582] - export globally
Dec 13, 2024
f4f1b50
[SECCOMP-31582] - export globally
Dec 13, 2024
d2cbb13
[SECCOMP-31582] - export globally
Dec 13, 2024
1645f38
[SECCOMP-31582] - revert promu
Dec 13, 2024
921caef
[SECCOMP-31582] - add different import
Dec 13, 2024
a5d49ea
[SECCOMP-31582] - add different import
Dec 13, 2024
29da614
[SECCOMP-31582] - remove promu
Dec 13, 2024
469187a
[SECCOMP-31582] - enable CGO on promu
Dec 15, 2024
cf240ba
[SECCOMP-31582] - enable CGO on promu
Dec 15, 2024
1fdf5cb
[SECCOMP-31582] - enable CGO on promu
Dec 15, 2024
25b834f
[SECCOMP-31582] - enable CGO on promu
Dec 15, 2024
7f6d59a
[SECCOMP-31582] - enable CGO on promu
Dec 15, 2024
0fdaef2
[SECCOMP-31582] - remove redundant stuff
Dec 15, 2024
d3e0dc3
[SECCOMP-31582] - remove unused stuff
Dec 15, 2024
e71e0ec
[SECCOMP-31582] - FIPS support
alxbxbx Dec 16, 2024
ebdb0c4
Bump UBI version
Jan 29, 2025
6bb6e00
Bump UBI version
alxbxbx Jan 29, 2025
98875c3
Bump UBI version
Jan 29, 2025
0b0e4e8
Bump UBI version
alxbxbx Jan 29, 2025
e5dd0fa
Switch Jenkins trigger
Jan 29, 2025
cf394e4
Switch Jenkins trigger
alxbxbx Jan 29, 2025
e01ea20
SECCOMP-33273 Update crypto to v0.31.0
sasatrifunovic Feb 26, 2025
16eed66
Version bump
sasatrifunovic Feb 26, 2025
6edfd57
Revert "Version bump"
sasatrifunovic Feb 26, 2025
9108900
[SECCOMP-33273] Update go crypto to 0.31.0
sasatrifunovic Feb 27, 2025
fe774a0
SECCOMP-33498 Update golang.org/x/net to v0.33.0
sasatrifunovic Feb 27, 2025
192f2c8
[SECCOMP-33498] Update golang.org/x/net to v0.33.0
sasatrifunovic Feb 27, 2025
8c67f3f
SECCOMP-34591 Upgrade quay.io/sysdig/sysdig-stig-mini-ubi9 to 1.2.6
sasatrifunovic Feb 27, 2025
7100012
[SECCOMP-34591] Upgrade quay.io/sysdig/sysdig-stig-mini-ubi9 to 1.2.6
sasatrifunovic Feb 27, 2025
88f9a79
SECCOMP-34099 update go version to 1.23.5
sasatrifunovic Feb 27, 2025
e0fb137
SECCOMP-34099 update go version to 1.23.6
sasatrifunovic Feb 27, 2025
ac419e9
[SECCOMP-34099] Update Go version to 1.23.6
sasatrifunovic Feb 27, 2025
b31971f
Bump crypto and oauth2 versions
Mar 10, 2025
041feaa
Fix golang cli lint
Mar 10, 2025
8e2328a
Version bump golangci-lint
Mar 10, 2025
b5ca445
Merge pull request #122 from sysdiglabs/bump-crypto-oauth2-new
alxbxbx Mar 10, 2025
5cffccc
Bump UBI version
Mar 25, 2025
8b80971
Merge pull request #123 from sysdiglabs/SECCOMP-35625
alxbxbx Mar 25, 2025
fa3c94d
Update UBI version
Apr 23, 2025
e2b0e29
Update golang/x/net
Apr 23, 2025
622083e
Bump UBI version, bump golang/x/net
alxbxbx Apr 23, 2025
db4fa0d
Update push.yaml to remove plain text and use small runner
giovinazzorocco May 22, 2025
67af434
Update push-dry-run.yaml
giovinazzorocco May 22, 2025
0846bc2
Update push-dry-run.yaml
giovinazzorocco May 22, 2025
1fd8153
Update push.yaml
giovinazzorocco May 22, 2025
0821779
Update push-dry-run.yaml
giovinazzorocco May 23, 2025
cf1cc40
Update push.yaml
giovinazzorocco May 23, 2025
11780b6
Merge pull request #129 from sysdiglabs/update-plain-text-with-secret…
giovinazzorocco May 23, 2025
cadfb09
Bump UBI version
Jun 2, 2025
02be234
Merge pull request #131 from sysdiglabs/SECCOMP-37168
alxbxbx Jun 2, 2025
c26be7a
Bump golang from 1.23.7 to 1.24.4
dependabot[bot] Jun 5, 2025
2ee8f8a
Bump sysdig/sysdig-stig-mini-ubi9 from 1.3.1 to 1.3.5
dependabot[bot] Jul 2, 2025
de248c2
Merge pull request #136 from sysdiglabs/dependabot/docker/sysdig/sysd…
alxbxbx Jul 7, 2025
ed656b8
Merge pull request #132 from sysdiglabs/dependabot/docker/golang-1.24.4
alxbxbx Jul 8, 2025
b6e1411
Bump golang from 1.24.4 to 1.24.5
dependabot[bot] Jul 8, 2025
4f2c37e
Bump sysdig/sysdig-stig-mini-ubi9 from 1.3.5 to 1.3.7
dependabot[bot] Jul 10, 2025
e36526f
Merge pull request #139 from sysdiglabs/dependabot/docker/sysdig/sysd…
alxbxbx Jul 15, 2025
28bd0db
Merge pull request #137 from sysdiglabs/dependabot/docker/golang-1.24.5
alxbxbx Jul 15, 2025
c42cd04
Bump sysdig/sysdig-stig-mini-ubi9 from 1.3.7 to 1.3.8
dependabot[bot] Jul 16, 2025
b02b4b0
Merge pull request #140 from sysdiglabs/dependabot/docker/sysdig/sysd…
alxbxbx Jul 23, 2025
29d53a0
Bump sysdig/sysdig-stig-mini-ubi9 from 1.3.8 to 1.3.13
dependabot[bot] Aug 7, 2025
c4a2f60
Bump golang from 1.24.5 to 1.24.6
dependabot[bot] Aug 7, 2025
b67f6f8
Merge pull request #145 from sysdiglabs/dependabot/docker/sysdig/sysd…
alxbxbx Aug 8, 2025
9cf842d
Merge pull request #146 from sysdiglabs/dependabot/docker/golang-1.24.6
alxbxbx Aug 8, 2025
8b29771
Bump sysdig/sysdig-stig-mini-ubi9 from 1.3.13 to 1.3.17
dependabot[bot] Sep 4, 2025
81c09c4
Merge pull request #151 from sysdiglabs/dependabot/docker/sysdig/sysd…
alxbxbx Sep 5, 2025
4e41e29
Bump golang from 1.24.6 to 1.25.1
dependabot[bot] Sep 5, 2025
d7c9a68
Upgrade go to 1.25.x for github lint
Sep 8, 2025
1b73de4
Merge pull request #152 from sysdiglabs/dependabot/docker/golang-1.25.1
alxbxbx Sep 8, 2025
80ee031
Bump sysdig/sysdig-stig-mini-ubi9 from 1.3.17 to 1.3.18
dependabot[bot] Sep 9, 2025
b3461b7
Merge pull request #153 from sysdiglabs/dependabot/docker/sysdig/sysd…
alxbxbx Sep 15, 2025
e2a1e83
Bump sysdig/sysdig-stig-mini-ubi9 from 1.3.18 to 1.3.20
dependabot[bot] Sep 18, 2025
2fcd665
Merge pull request #154 from sysdiglabs/dependabot/docker/sysdig/sysd…
alxbxbx Sep 22, 2025
ab4c48d
Bump golang.org/x/crypto from 0.36.0 to 0.45.0
dependabot[bot] Nov 20, 2025
4f0ebaf
Bump sysdig/sysdig-stig-mini-ubi9 from 1.3.20 to 1.4.5
dependabot[bot] Dec 1, 2025
7c5bf0b
Fixing jenkins actions call (#165)
papajulio Dec 2, 2025
e59d5cf
Bump golang from 1.25.1 to 1.25.5
dependabot[bot] Dec 2, 2025
15119b5
Merge pull request #166 from sysdiglabs/dependabot/docker/golang-1.25.5
sasatrifunovic Dec 3, 2025
bbc9ad0
Merge pull request #164 from sysdiglabs/dependabot/docker/sysdig/sysd…
sasatrifunovic Dec 3, 2025
5630c08
Merge pull request #161 from sysdiglabs/dependabot/go_modules/golang.…
sasatrifunovic Dec 3, 2025
8ab2ea4
Bump sysdig/sysdig-stig-mini-ubi9 from 1.4.5 to 1.4.10
dependabot[bot] Jan 13, 2026
aa17968
Merge pull request #171 from sysdiglabs/dependabot/docker/sysdig/sysd…
JJonahJson Jan 13, 2026
f950460
Bump golang from 1.25.5 to 1.26.0
dependabot[bot] Feb 11, 2026
520b822
Bump sysdig/sysdig-stig-mini-ubi9 from 1.4.10 to 1.4.17
dependabot[bot] Feb 18, 2026
a496eea
Merge pull request #183 from sysdiglabs/dependabot/docker/sysdig/sysd…
sasatrifunovic Feb 23, 2026
4b1cd90
Merge pull request #182 from sysdiglabs/dependabot/docker/golang-1.26.0
sasatrifunovic Feb 23, 2026
23514f5
Bump golang from 1.26.0 to 1.26.1
dependabot[bot] Mar 6, 2026
8359ef7
Bump sysdig/sysdig-stig-mini-ubi9 from 1.4.17 to 1.4.19
dependabot[bot] Mar 19, 2026
cf4f538
Merge pull request #184 from sysdiglabs/dependabot/docker/golang-1.26.1
sasatrifunovic Mar 20, 2026
1a17a63
Merge pull request #186 from sysdiglabs/dependabot/docker/sysdig/sysd…
sasatrifunovic Mar 20, 2026
7763a02
Bump golang from 1.26.1 to 1.26.2
dependabot[bot] Apr 8, 2026
1c19620
Bump sysdig/sysdig-stig-mini-ubi9 from 1.4.19 to 1.4.24
dependabot[bot] Apr 17, 2026
4bd0694
Merge pull request #190 from sysdiglabs/dependabot/docker/golang-1.26.2
sasatrifunovic Apr 20, 2026
fa087b4
Merge pull request #192 from sysdiglabs/dependabot/docker/sysdig/sysd…
sasatrifunovic Apr 20, 2026
35eece0
Bump golang from 1.26.2 to 1.26.3
dependabot[bot] May 7, 2026
2f5a7c2
Bump sysdig/sysdig-stig-mini-ubi9 from 1.4.24 to 1.5.2
dependabot[bot] May 27, 2026
4c2c891
Merge pull request #202 from sysdiglabs/dependabot/docker/sysdig/sysd…
sasatrifunovic Jun 2, 2026
6132969
Merge pull request #197 from sysdiglabs/dependabot/docker/golang-1.26.3
sasatrifunovic Jun 2, 2026
6d9788c
Bump golang from 1.26.3 to 1.26.4
dependabot[bot] Jun 3, 2026
c2bd05b
Bump sysdig/sysdig-stig-mini-ubi9 from 1.5.2 to 1.5.8
dependabot[bot] Jun 15, 2026
f84a535
Merge pull request #209 from sysdiglabs/dependabot/docker/sysdig/sysd…
sasatrifunovic Jun 17, 2026
dd8a2bf
Merge pull request #204 from sysdiglabs/dependabot/docker/golang-1.26.4
sasatrifunovic Jun 17, 2026
5a93336
bump go to 1.26.4
sasatrifunovic Jun 19, 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
14 changes: 9 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,28 @@
version: 2.1

orbs:
prometheus: prometheus/prometheus@0.16.0
prometheus: prometheus/prometheus@0.17.1

executors:
# This must match .promu.yml.
golang:
docker:
- image: cimg/go:1.18
- image: cimg/go:1.21

jobs:
test:
executor: golang

steps:
- prometheus/setup_environment
- run: GOHOSTARCH=386 GOARCH=386 make test
- run: make
- prometheus/store_artifact:
file: postgres_exporter

integration:
docker:
- image: cimg/go:1.18
- image: cimg/go:1.20
- image: << parameters.postgres_image >>
environment:
POSTGRES_DB: circle_test
Expand All @@ -36,6 +37,8 @@ jobs:
environment:
DATA_SOURCE_NAME: 'postgresql://postgres:test@localhost:5432/circle_test?sslmode=disable'
GOOPTS: '-v -tags integration'
CGO_ENABLED: 1
GOEXPERIMENT: boringcrypto

steps:
- checkout
Expand All @@ -56,11 +59,12 @@ workflows:
matrix:
parameters:
postgres_image:
- circleci/postgres:10
- circleci/postgres:11
- circleci/postgres:12
- circleci/postgres:13
- cimg/postgres:14.1
- cimg/postgres:14.9
- cimg/postgres:15.4
- cimg/postgres:16.0
- prometheus/build:
name: build
parallelism: 3
Expand Down
4 changes: 4 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Teams can be specified as code owners as well. Teams should
# be identified in the format @org/team-name. Teams must have
# explicit write access to the repository. In this example,
* @sysdiglabs/promcat
23 changes: 19 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ name: Build
on:
push:
branches: [ build ]
workflow_dispatch:
inputs:
branch:
description: 'Branch you want to build'
required: true
default: 'build'

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
Expand All @@ -15,15 +21,24 @@ jobs:
docker: ['scratch','ubi']
# The type of runner that the job will run on
runs-on: ubuntu-latest
env:
CGO_ENABLED: 1
GOEXPERIMENT: boringcrypto
name: ${{ matrix.docker }}
steps:
- name: Login to Quay.io
uses: docker/login-action@v2
with:
registry: quay.io
username: ${{ secrets.QUAY_UBI_READONLY_USERNAME }}
password: ${{ secrets.QUAY_UBI_READONLY_PASSWORD }}
- name: build
uses: sysdiglabs/exporter-builder@v0.5
uses: sysdiglabs/exporter-builder@v1.2
with:
exporter: postgresql-exporter
artifactory_token: ${{ secrets.ARTI_TOKEN }}
artifactory_username: david.lorite@sysdig.com
artifactory_token: ${{ secrets.GAR_DEV_RW_JSON_KEY }}
artifactory_username: _json_key
sysdig_secure_token: ${{ secrets.SYSDIG_SECURE_TOKEN }}
tag_name: dev
target: ${{ matrix.docker }}
repository: artifactory.internal.sysdig.com
repository: us-docker.pkg.dev
16 changes: 11 additions & 5 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
---
# This action is synced from https://github.com/prometheus/prometheus
version: 1
name: golangci-lint
on:
push:
Expand All @@ -14,17 +17,20 @@ jobs:
golangci:
name: lint
runs-on: ubuntu-latest
env:
CGO_ENABLED: 1
GOEXPERIMENT: boringcrypto
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: install Go
uses: actions/setup-go@v2
uses: actions/setup-go@v5
with:
go-version: 1.18.x
go-version: 1.25.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: Lint
uses: golangci/golangci-lint-action@v3.2.0
uses: golangci/golangci-lint-action@v8
with:
version: v1.45.2
version: v2.4.0
29 changes: 29 additions & 0 deletions .github/workflows/push-dry-run.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Push Dry run

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
on-success:
# The type of runner that the job will run on
runs-on: tools-runner
steps:
- name: Trigger jenkins job to upload master to Quay.io
uses: sysdiglabs/jenkins-job-trigger-action@1.1.0
with:
jenkins_external_base_url: ${{ secrets.JENKINS_EXTERNAL_BASE_URL }}
jenkins_url: ${{ secrets.JENKINS_INTERNAL_URL }}
jenkins_user: ${{ secrets.JENKINS_BOT_API_USER }}
jenkins_token: ${{ secrets.JENKINS_BOT_API_TOKEN }}
job_timeout: "300"
job_name: "promcat/job/exporters/job/integrations-postgresql-exporter"
job_params: |
{
"DRY_RUN": "true",
"SCRATCH": "true",
"EXPORTER": "postgresql-exporter"
}
22 changes: 15 additions & 7 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,20 @@ jobs:
# This workflow contains a single job called "build"
on-success:
# The type of runner that the job will run on
runs-on: ubuntu-latest
runs-on: tools-runner
steps:
- name: Upload master to Quay.io
uses: fjogeleit/http-request-action@master
- name: Trigger jenkins job to upload master to Quay.io
uses: sysdiglabs/jenkins-job-trigger-action@1.1.0
with:
url: 'https://sysdig-jenkins.internal.sysdig.com/view/Integrations/job/integrations-postgresql-exporter/buildWithParameters?token=${{ secrets.JENKINS_PROMCAT_LAUNCH_TOKEN }}&EXPORTER=postgresql-exporter&DRY_RUN=false'
method: 'POST'
username: david.lorite@sysdig.com
password: ${{ secrets.JENKINS_PROMCAT_API_TOKEN }}
jenkins_external_base_url: ${{ secrets.JENKINS_EXTERNAL_BASE_URL }}
jenkins_url: ${{ secrets.JENKINS_INTERNAL_URL }}
jenkins_user: ${{ secrets.JENKINS_BOT_API_USER }}
jenkins_token: ${{ secrets.JENKINS_BOT_API_TOKEN }}
job_timeout: "300"
job_name: "promcat/job/exporters/job/integrations-postgresql-exporter"
job_params: |
{
"DRY_RUN": "false",
"SCRATCH": "true",
"EXPORTER": "postgresql-exporter"
}
15 changes: 11 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,19 @@ jobs:
- name: Release if tagged
if: "!startswith(github.ref, 'refs/tags/v')"
run: exit 78
- name: Login to Quay.io
uses: docker/login-action@v2
with:
registry: quay.io
username: ${{ secrets.QUAY_UBI_READONLY_USERNAME }}
password: ${{ secrets.QUAY_UBI_READONLY_PASSWORD }}
- name: build
uses: sysdiglabs/exporter-builder@v0.4
uses: sysdiglabs/exporter-builder@v1.2
with:
exporter: postgresql-exporter
artifactory_token: ${{ secrets.ARTI_TOKEN }}
artifactory_username: david.lorite@sysdig.com
artifactory_token: ${{ secrets.GAR_DEV_RW_JSON_KEY }}
artifactory_username: _json_key
sysdig_secure_token: ${{ secrets.SYSDIG_SECURE_TOKEN }}
tag_name: ${{ github.event.release.tag_name }}
target: ${{ matrix.docker }}
repository: artifactory.internal.sysdig.com
repository: us-docker.pkg.dev
15 changes: 14 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
---
linters:
enable:
- misspell
- revive

issues:
exclude-rules:
- path: _test.go
Expand All @@ -7,4 +12,12 @@ issues:

linters-settings:
errcheck:
exclude: scripts/errcheck_excludes.txt
exclude-functions:
# Never check for logger errors.
- (github.com/go-kit/log.Logger).Log
revive:
rules:
# https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#unused-parameter
- name: unused-parameter
severity: warning
disabled: true
4 changes: 2 additions & 2 deletions .promu.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
go:
# This must match .circle/config.yml.
version: 1.18
version: 1.21
cgo: true
repository:
path: github.com/prometheus-community/postgres_exporter
build:
binaries:
- name: postgres_exporter
path: ./cmd/postgres_exporter
flags: -a -tags 'netgo static_build'
ldflags: |
-X github.com/prometheus/common/version.Version={{.Version}}
-X github.com/prometheus/common/version.Revision={{.Revision}}
Expand Down
7 changes: 1 addition & 6 deletions .yamllint
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,4 @@ rules:
config/testdata/section_key_dup.bad.yml
line-length: disable
truthy:
ignore: |
.github/workflows/codeql-analysis.yml
.github/workflows/funcbench.yml
.github/workflows/fuzzing.yml
.github/workflows/prombench.yml
.github/workflows/golangci-lint.yml
check-keys: false
68 changes: 66 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,66 @@
## master / unreleased
## 0.15.0 / 2023-10-27

## 0.12.0-rc.0 / 2022-08-26
* [ENHANCEMENT] Add 1kB and 2kB units #915
* [BUGFIX] Add error log when probe collector creation fails #918
* [BUGFIX] Fix test build failures on 32-bit arch #919
* [BUGFIX] Adjust collector to use separate connection per scrape #936

## 0.14.0 / 2023-09-11

* [CHANGE] Add `state` label to pg_process_idle_seconds #862
* [CHANGE] Change database connections to one per scrape #882 #902
* [ENHANCEMENT] Add wal collector #858
* [ENHANCEMENT] Add database_wraparound collector #834
* [ENHANCEMENT] Add stat_activity_autovacuum collector #840
* [ENHANCEMENT] Add stat_wal_receiver collector #844
* [ENHANCEMENT] Add xlog_location collector #849
* [ENHANCEMENT] Add statio_user_indexes collector #845
* [ENHANCEMENT] Add long_running_transactions collector #836
* [ENHANCEMENT] Add pg_stat_user_tables_size_bytes metric #904
* [BUGFIX] Fix tests on 32-bit systems #857
* [BUGFIX] Fix pg_stat_statements metrics on Postgres 13+ #874 #876
* [BUGFIX] Fix pg_stat_database metrics for NULL stats_reset #877
* [BUGFIX] Fix pg_replication_lag_seconds on Postgres 10+ when master is idle #895

## 0.13.2 / 2023-07-21

* [BUGFIX] Fix type issues on pg_postmaster metrics #828
* [BUGFIX] Fix pg_replication collector instantiation #854
* [BUGFIX] Fix pg_process_idle metrics #855

## 0.13.1 / 2023-06-27

* [BUGFIX] Make collectors not fail on null values #823

## 0.13.0 / 2023-06-21

BREAKING CHANGES:

Please note, the following features are deprecated and may be removed in a future release:
- `auto-discover-databases`
- `extend.query-path`
- `constantLabels`
- `exclude-databases`
- `include-databases`

This exporter is meant to monitor PostgresSQL servers, not the user data/databases. If
you need a generic SQL report exporter https://github.com/burningalchemist/sql_exporter
is recommended.

* [CHANGE] Adjust log level for collector startup #784
* [CHANGE] Move queries from queries.yaml to collectors #801
* [CHANGE] Deprecate extend queries feature #811
* [CHANGE] Deprecate additional database features #815
* [CHANGE] Convert pg_stat_database to new collector #685
* [ENHANCEMENT] Supports alternate postgres:// prefix in URLs #787
* [BUGFIX] Fix pg_setting different help values #771
* [BUGFIX] Fix column type for pg_replication_slots #777
* [BUGFIX] Fix pg_stat_database collector #809

## 0.12.1 / 2023-06-12
* [BUGFIX] Fix column type for pg_replication_slots #777

## 0.12.0 / 2023-03-21

BREAKING CHANGES:

Expand All @@ -10,7 +70,11 @@ PostgreSQL servers from a single exporter by passing the target via URL
params. See the Multi-Target Support section of the README.

* [CHANGE] Add multi-target support #618
* [CHANGE] Add usename and application_name to pg_stat_activity metrics #673
* [FEATURE] Add replication metrics from pg_replication_slots #747
* [BUGFIX] Add dsn type for handling datasources #678
* [BUGFIX] Add 64kB unit for postgres 15 #740
* [BUGFIX] Add 4kB unit for postgres compiled with small blocks #699

## 0.11.1 / 2022-08-01

Expand Down
22 changes: 11 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
FROM golang:1.17.2 as base
FROM golang:1.26.4 AS base
ARG VERSION
ARG GIT_COMMIT
ARG DATE
ARG TARGETARCH

WORKDIR /go/src/github.com/prometheus-community/postgres_exporter

FROM base as builder
COPY go.mod go.sum ./
RUN go mod download
COPY cmd ./cmd
COPY .promu.yml .promu.yml
COPY Makefile Makefile
COPY Makefile.common Makefile.common
FROM base AS builder
COPY . .

ENV CGO_ENABLED=1
ENV GOEXPERIMENT=boringcrypto

RUN go mod tidy
RUN make build
RUN cp postgres_exporter /bin/postgres_exporter

FROM scratch as scratch
FROM scratch AS scratch
COPY --from=builder /bin/postgres_exporter /bin/postgres_exporter
EXPOSE 9187
USER 59000:59000
ENTRYPOINT [ "/bin/postgres_exporter" ]

FROM quay.io/sysdig/sysdig-mini-ubi:1.3.1 as ubi
FROM quay.io/sysdig/sysdig-stig-mini-ubi9:1.5.8 AS ubi
COPY --from=builder /bin/postgres_exporter /bin/postgres_exporter
EXPOSE 9187
USER 59000:59000
ENTRYPOINT [ "/bin/postgres_exporter" ]
ENTRYPOINT [ "/bin/postgres_exporter" ]
Loading