Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
402 commits
Select commit Hold shift + click to select a range
938fd8e
Bump up version to 0.13.1 (#418)
burningalchemist Dec 24, 2023
b3153ba
Bump up helm chart to 0.2.5 (#419)
burningalchemist Dec 24, 2023
adb6364
docs: Update copyright details [skip ci]
burningalchemist Dec 26, 2023
a641f19
deps: update klog-gokit to v3.4.0 (#420)
burningalchemist Dec 29, 2023
1577f80
fix: nil dereference on wrong log level values, cleanup (#421)
burningalchemist Dec 29, 2023
6b059b1
fix: add flag to ignore results with missing values (#422)
burningalchemist Dec 29, 2023
7bccfb3
refactor: split config.go, break down long functions (#423)
burningalchemist Dec 29, 2023
2375671
deps: bump google.golang.org/protobuf from 1.31.0 to 1.32.0 (#426)
dependabot[bot] Jan 3, 2024
c5f1102
deps: bump github.com/aws/aws-sdk-go-v2/service/secretsmanager from 1…
dependabot[bot] Jan 3, 2024
466b38b
deps: bump github.com/prometheus/client_golang from 1.17.0 to 1.18.0 …
dependabot[bot] Jan 3, 2024
711f5f1
fix: expand env vars while parsing DB URL (#428)
burningalchemist Jan 8, 2024
d0b1974
feat: return metric with an explicit timestamp from the configured co…
burningalchemist Jan 11, 2024
2ba29a1
fix: if timestamp_value is empty, no need to reserve a column (#431)
burningalchemist Jan 15, 2024
4c15797
feat: provide configuration subset via env variables (#430)
burningalchemist Jan 15, 2024
79575c8
docs: Fix PostgreSQL DSN example [skip ci] (#434)
rc5hack Jan 29, 2024
b1830fe
Revert "docs: Fix PostgreSQL DSN example [skip ci]" (#435)
burningalchemist Jan 29, 2024
01818f1
docs: fix PostgreSQL DSN example [skip ci] (#436)
rc5hack Jan 29, 2024
f353a13
feat: scrape selected jobs via query params (#433)
burningalchemist Jan 29, 2024
bb05557
deps: bump github.com/snowflakedb/gosnowflake from 1.7.1 to 1.7.2 (#441)
dependabot[bot] Feb 1, 2024
b7159e4
deps: bump github.com/prometheus/common from 0.45.0 to 0.46.0 (#438)
dependabot[bot] Feb 1, 2024
be8c03a
deps: bump github.com/xo/dburl from 0.20.0 to 0.21.1 (#437)
dependabot[bot] Feb 1, 2024
8bf39a2
deps: bump github.com/aws/aws-sdk-go-v2 from 1.24.0 to 1.24.1 (#439)
dependabot[bot] Feb 1, 2024
8b4e939
deps: bump github.com/aws/aws-sdk-go-v2/config from 1.26.2 to 1.26.6 …
dependabot[bot] Feb 1, 2024
42eb5b3
deps: bump github.com/aws/aws-sdk-go-v2/service/secretsmanager from 1…
dependabot[bot] Feb 1, 2024
b62d4d1
feat(helm): add an ability to mount extra volumes (#446)
allanger Feb 24, 2024
56add58
deps: bump github.com/microsoft/go-mssqldb from 1.6.0 to 1.7.0 (#448)
dependabot[bot] Feb 24, 2024
2ef339d
deps: bump github.com/prometheus/client_model from 0.5.0 to 0.6.0 (#449)
dependabot[bot] Feb 24, 2024
d441afc
deps: bump github.com/aws/aws-sdk-go-v2 from 1.24.1 to 1.25.2 (#451)
dependabot[bot] Feb 24, 2024
6c84c96
deps: bump github.com/aws/aws-sdk-go-v2/service/secretsmanager from 1…
dependabot[bot] Feb 24, 2024
ab0a5df
deps: bump github.com/snowflakedb/gosnowflake from 1.7.2 to 1.8.0 (#454)
dependabot[bot] Feb 24, 2024
aae143d
deps: bump github.com/aws/aws-sdk-go-v2/config from 1.26.6 to 1.27.4 …
dependabot[bot] Feb 24, 2024
62a4a99
deps: bump github.com/prometheus/common from 0.46.0 to 0.48.0 (#452)
dependabot[bot] Feb 24, 2024
0cbca8b
Bump up version to 0.14.0 (#455)
burningalchemist Feb 24, 2024
0ecf828
Bump up helm chart to 0.4.0 (#456)
burningalchemist Feb 25, 2024
5e67ef3
feat(helm): add support for metricRelabelings to the helm chart (#457)
ferrous26 Feb 26, 2024
7820974
deps: bump github.com/prometheus/client_golang from 1.18.0 to 1.19.0 …
dependabot[bot] Mar 2, 2024
da82ee9
deps: bump github.com/prometheus/common from 0.48.0 to 0.49.0 (#460)
dependabot[bot] Mar 2, 2024
c15d6ff
docs(README): mention the feature of labels for multiple targets in j…
qfritz Mar 7, 2024
d9bd930
deps(pgx): update driver to address CVE-2024-27289 (#463)
puneetloya Mar 7, 2024
2e25a27
deps: upgrade clickhouse-go to v2 (#466)
burningalchemist Mar 12, 2024
baf5a99
Bump up version to 0.14.1 (#467)
burningalchemist Mar 13, 2024
cc37d60
Bump up helm chart to 0.4.2 (#468)
burningalchemist Mar 13, 2024
9c2f915
deps: bump google.golang.org/protobuf from 1.32.0 to 1.33.0 (#469)
dependabot[bot] Mar 14, 2024
bb40cf7
build: update actions to remove deprecated warnings (#472)
burningalchemist Mar 22, 2024
106e5c6
build: update Makefile to support native Windows builds (#471)
burningalchemist Mar 22, 2024
7610a7a
docs: update docs, add artifacthub.io badge [skip ci] (#475)
burningalchemist Apr 1, 2024
2a1a3ba
deps: bump github.com/aws/aws-sdk-go-v2 from 1.25.2 to 1.26.1 (#478)
dependabot[bot] Apr 1, 2024
f700caf
deps: bump github.com/aws/aws-sdk-go-v2/config from 1.27.4 to 1.27.10…
dependabot[bot] Apr 1, 2024
4d83a5c
deps: bump github.com/xo/dburl from 0.21.1 to 0.22.0 (#476)
dependabot[bot] Apr 1, 2024
82b6719
deps: bump github.com/ClickHouse/clickhouse-go/v2 from 2.21.1 to 2.23…
dependabot[bot] Apr 1, 2024
2082895
deps: bump github.com/go-sql-driver/mysql from 1.7.1 to 1.8.1 (#477)
dependabot[bot] Apr 1, 2024
ccbadee
deps: bump github.com/aws/aws-sdk-go-v2/service/secretsmanager from 1…
dependabot[bot] Apr 1, 2024
5a48826
deps: bump github.com/jackc/pgx/v4 from 4.18.2 to 4.18.3 (#484)
dependabot[bot] Apr 1, 2024
4d1d3fe
deps: bump github.com/snowflakedb/gosnowflake from 1.8.0 to 1.9.0 (#481)
dependabot[bot] Apr 1, 2024
4d7cbe7
deps: bump github.com/prometheus/common from 0.49.0 to 0.51.1 (#482)
dependabot[bot] Apr 2, 2024
76152c5
deps: upgrade pgx driver to v5 (#488)
burningalchemist Apr 5, 2024
2c2227a
Bump up version to 0.14.2 (#487)
burningalchemist Apr 5, 2024
106059d
Bump up helm chart to 0.4.3 (#489)
burningalchemist Apr 5, 2024
2cc9ead
fix(helm): update release name for helm charts [skip ci] (#490)
burningalchemist Apr 7, 2024
d7d0017
fix: update gomod version to fix codeql warnings (#491)
burningalchemist Apr 7, 2024
be93279
fix(helm): update .helmignore [skip ci] (#492)
burningalchemist Apr 7, 2024
ebb46db
Bump up helm chart to 0.4.4 (#493)
burningalchemist Apr 7, 2024
0e98a1c
fix(build): sync go versions between promu crossbuild and docker imag…
burningalchemist Apr 7, 2024
c84384f
Bump up helm chart to 0.4.5 (#496)
Fapiko Apr 11, 2024
a3ab283
deps: bump golang.org/x/net from 0.22.0 to 0.23.0 (#497)
dependabot[bot] Apr 19, 2024
f7adb9a
docs: README.md - jobs list typo [skip ci]
burningalchemist Apr 22, 2024
552e520
deps: bump github.com/ClickHouse/clickhouse-go/v2 from 2.23.0 to 2.23…
dependabot[bot] May 2, 2024
302a728
deps: bump github.com/prometheus/client_model from 0.6.0 to 0.6.1 (#502)
dependabot[bot] May 2, 2024
1db996a
deps: bump github.com/prometheus/common from 0.51.1 to 0.53.0 (#504)
dependabot[bot] May 2, 2024
556764e
deps: bump google.golang.org/protobuf from 1.33.0 to 1.34.0 (#503)
dependabot[bot] May 2, 2024
2b78ffc
deps: bump github.com/xo/dburl from 0.22.0 to 0.23.0 (#505)
dependabot[bot] May 2, 2024
a3e11f7
deps: bump github.com/microsoft/go-mssqldb from 1.7.0 to 1.7.1 (#506)
dependabot[bot] May 2, 2024
296a854
deps: bump github.com/aws/aws-sdk-go-v2/config from 1.27.10 to 1.27.1…
dependabot[bot] May 2, 2024
18936a6
feat(helm): Sidecar and Service Account Update (#509)
jluckett-panw May 11, 2024
0c73cae
fix(build): wrong go version reference [skip ci] (#511)
burningalchemist May 11, 2024
84ee75c
Bump up version to 0.14.3 (#512)
burningalchemist May 11, 2024
881da5b
fix!(helm): adjust the logic for serviceAccount creation (#513)
burningalchemist May 11, 2024
0ef6c2e
fix: use the passed jf jobFilters parameter (#521)
burningalchemist May 30, 2024
6e76fa3
docs: Update Readme and Doc [skip ci] (#522)
Neaj-Morshad-101 May 30, 2024
ce86ee1
deps: bump github.com/xo/dburl from 0.23.0 to 0.23.1 (#525)
dependabot[bot] Jun 1, 2024
0ebe920
deps: bump github.com/sethvargo/go-envconfig from 1.0.0 to 1.0.3 (#526)
dependabot[bot] Jun 1, 2024
b680843
deps: bump github.com/ClickHouse/clickhouse-go/v2 from 2.23.2 to 2.25…
dependabot[bot] Jun 1, 2024
8d31a68
deps: bump google.golang.org/protobuf from 1.34.0 to 1.34.1 (#523)
dependabot[bot] Jun 1, 2024
bd045af
deps: bump github.com/microsoft/go-mssqldb from 1.7.1 to 1.7.2 (#528)
dependabot[bot] Jun 1, 2024
1c3b1d5
deps: bump github.com/aws/aws-sdk-go-v2/config from 1.27.11 to 1.27.1…
dependabot[bot] Jun 1, 2024
8eca2fd
deps: bump github.com/prometheus/client_golang from 1.19.0 to 1.19.1 …
dependabot[bot] Jun 1, 2024
2daff3b
deps: bump github.com/snowflakedb/gosnowflake from 1.9.0 to 1.10.1 (#…
dependabot[bot] Jun 1, 2024
3ff0898
deps: bump github.com/aws/aws-sdk-go-v2/service/secretsmanager from 1…
dependabot[bot] Jun 2, 2024
8901d1a
chore: update promu to v0.17 (#534)
burningalchemist Jun 11, 2024
a8dcb45
build: disable symbol table, DWARF generation for builds (#535)
burningalchemist Jun 11, 2024
feab561
Bump up version to 0.14.4 (#536)
burningalchemist Jun 11, 2024
d6dd0d8
Bump up helm chart to 0.5.1 (#537)
burningalchemist Jun 11, 2024
c547cd8
deps: bump github.com/Azure/azure-sdk-for-go/sdk/azidentity from 1.5.…
dependabot[bot] Jun 12, 2024
607a51e
docs: revisit README.md (#545)
burningalchemist Jun 21, 2024
56513fa
docs: minor updates [skip ci] (#546)
burningalchemist Jun 21, 2024
d8e4c6f
refactor: Reload targets and collectors, support SIGHUP (#548)
burningalchemist Jun 23, 2024
0ae142a
feat: drop scrape_errors_total metric with a configurable interval (#…
burningalchemist Jun 27, 2024
67031a9
deps: bump github.com/prometheus/common from 0.53.0 to 0.55.0 (#556)
dependabot[bot] Jul 1, 2024
8523ddf
deps: bump github.com/jackc/pgx/v5 from 5.5.5 to 5.6.0 (#552)
dependabot[bot] Jul 1, 2024
f32d8b1
deps: bump github.com/ClickHouse/clickhouse-go/v2 from 2.25.0 to 2.26…
dependabot[bot] Jul 1, 2024
bbe29a2
deps: bump github.com/aws/aws-sdk-go-v2 from 1.27.0 to 1.30.1 (#555)
dependabot[bot] Jul 1, 2024
62dc490
deps: bump github.com/aws/aws-sdk-go-v2/service/secretsmanager from 1…
dependabot[bot] Jul 1, 2024
e954af5
deps: bump github.com/aws/aws-sdk-go-v2/config from 1.27.16 to 1.27.2…
dependabot[bot] Jul 1, 2024
784e7d2
refactor: add log.format param, deprecate log.json flag (#561)
burningalchemist Jul 8, 2024
cb883e0
Bump up version to 0.15.0 (#560)
burningalchemist Jul 7, 2024
e716263
Bump up helm chart to 0.6.0 (#562)
burningalchemist Jul 9, 2024
8ce8744
fix(helm): ServiceMonitor namespace override (#563)
dtjm Jul 19, 2024
1a9b416
deps: bump github.com/snowflakedb/gosnowflake from 1.10.1 to 1.11.0 (…
dependabot[bot] Aug 2, 2024
bdb5600
deps: bump github.com/ClickHouse/clickhouse-go/v2 from 2.26.0 to 2.27…
dependabot[bot] Aug 2, 2024
193dc7d
deps: bump github.com/sethvargo/go-envconfig from 1.0.3 to 1.1.0 (#568)
dependabot[bot] Aug 2, 2024
9ee7d15
deps: bump github.com/aws/aws-sdk-go-v2/config from 1.27.23 to 1.27.2…
dependabot[bot] Aug 2, 2024
ec0c9cd
deps: bump github.com/aws/aws-sdk-go-v2/service/secretsmanager from 1…
dependabot[bot] Aug 2, 2024
03f49c6
docs: update data_source_name in configuration file [skip ci] (#574)
Neaj-Morshad-101 Aug 9, 2024
eaf57a1
deps: bump github.com/prometheus/common from 0.55.0 to 0.57.0 (#578)
dependabot[bot] Sep 5, 2024
a577831
deps: bump github.com/snowflakedb/gosnowflake from 1.11.0 to 1.11.1 (…
dependabot[bot] Sep 5, 2024
5d9ed64
deps: bump github.com/aws/aws-sdk-go-v2 from 1.30.3 to 1.30.5 (#584)
dependabot[bot] Sep 5, 2024
1aefe04
deps: bump github.com/prometheus/common from 0.57.0 to 0.59.1 (#589)
dependabot[bot] Sep 6, 2024
040e5bf
deps: bump github.com/prometheus/client_golang from 1.20.0 to 1.20.3 …
dependabot[bot] Sep 6, 2024
a6f75b5
deps: bump github.com/aws/aws-sdk-go-v2/config from 1.27.27 to 1.27.3…
dependabot[bot] Sep 9, 2024
521b724
deps: bump github.com/aws/aws-sdk-go-v2/service/secretsmanager from 1…
dependabot[bot] Sep 9, 2024
c1136ae
deps: bump github.com/jackc/pgx/v5 from 5.6.0 to 5.7.0 (#593)
dependabot[bot] Sep 9, 2024
e884e15
deps: bump github.com/jackc/pgx/v5 from 5.7.0 to 5.7.1 (#598)
dependabot[bot] Oct 2, 2024
6e4d3df
deps: bump github.com/prometheus/common from 0.59.1 to 0.60.0 (#597)
dependabot[bot] Oct 2, 2024
131c783
feat(helm): configure liveness and readiness probes (#604)
Ezzahhh Oct 11, 2024
0833fd9
feat(helm): add ability to activate -web.enable-reload flag (#606)
Brice187 Oct 14, 2024
2e673bf
build(mod): update minimum go version to 1.22 (#607)
burningalchemist Oct 14, 2024
180e26d
deps: bump github.com/ClickHouse/clickhouse-go/v2 from 2.27.0 to 2.29…
dependabot[bot] Oct 14, 2024
afacdc7
deps: bump github.com/snowflakedb/gosnowflake from 1.11.1 to 1.11.2 (…
dependabot[bot] Oct 14, 2024
377ba68
deps: bump github.com/aws/aws-sdk-go-v2/service/secretsmanager from 1…
dependabot[bot] Oct 14, 2024
3416f4b
deps: bump github.com/aws/aws-sdk-go-v2/config from 1.27.33 to 1.27.4…
dependabot[bot] Oct 14, 2024
373c1a5
refactor: remove deprecated --log.json flag (#613)
burningalchemist Oct 25, 2024
fc8d20a
build(promu): set go version to 1.23 (#614)
burningalchemist Oct 25, 2024
fb6cca2
deps: bump github.com/prometheus/client_golang from 1.20.4 to 1.20.5 …
dependabot[bot] Oct 25, 2024
0b2cdf9
deps: bump github.com/ClickHouse/clickhouse-go/v2 from 2.29.0 to 2.30…
dependabot[bot] Oct 25, 2024
6ca2ce3
deps: bump github.com/aws/aws-sdk-go-v2/config from 1.27.43 to 1.28.0…
dependabot[bot] Oct 25, 2024
bd6ff35
deps: bump google.golang.org/protobuf from 1.34.2 to 1.35.1 (#615)
dependabot[bot] Oct 25, 2024
cfb08a1
deps: bump github.com/prometheus/common from 0.60.0 to 0.60.1 (#619)
dependabot[bot] Oct 25, 2024
29c47a4
fix(packaging): update -log.format parameter for deb/rpm config (#621)
burningalchemist Oct 26, 2024
a1726ff
Bump up version to 0.16.0 (#622)
burningalchemist Oct 26, 2024
d1db481
feat(helm): add logFormat and logLevel params, update app version (#623)
burningalchemist Oct 26, 2024
fd44637
deps!: bump github.com/prometheus/exporter-toolkit from 0.11.0 to 0.1…
dependabot[bot] Oct 26, 2024
7521621
fix(gomod): follow 1.N.P syntax (#624)
burningalchemist Oct 27, 2024
8a6b1d9
deps: bump github.com/prometheus/exporter-toolkit from 0.13.0 to 0.13…
dependabot[bot] Nov 2, 2024
ad5bb49
deps: bump github.com/snowflakedb/gosnowflake from 1.11.2 to 1.12.0 (…
dependabot[bot] Nov 2, 2024
5bd8f17
deps: bump github.com/aws/aws-sdk-go-v2 from 1.32.2 to 1.32.3 (#632)
dependabot[bot] Nov 2, 2024
e1fac0e
deps: bump github.com/aws/aws-sdk-go-v2/service/secretsmanager from 1…
dependabot[bot] Nov 2, 2024
3f5ceb5
deps: bump github.com/aws/aws-sdk-go-v2/config from 1.28.0 to 1.28.1 …
dependabot[bot] Nov 2, 2024
f5faab5
fix: add query execution duration as debug msg (#639)
burningalchemist Nov 14, 2024
dde9ee5
feat(helm): Add ingress to the helm chart (#640)
Avihais12344 Nov 22, 2024
c4adc86
feat: add go-ora/v2 driver (#648)
burningalchemist Dec 4, 2024
f4f2326
docs: update README.md (#649)
burningalchemist Dec 4, 2024
b44cb33
deps: bump google.golang.org/protobuf from 1.35.1 to 1.35.2 (#646)
dependabot[bot] Dec 4, 2024
5dfa576
deps: bump github.com/aws/aws-sdk-go-v2 from 1.32.3 to 1.32.5 (#645)
dependabot[bot] Dec 4, 2024
769316c
deps: bump github.com/aws/aws-sdk-go-v2/config from 1.28.1 to 1.28.6 …
dependabot[bot] Dec 4, 2024
5dccdc4
deps: bump github.com/aws/aws-sdk-go-v2/service/secretsmanager from 1…
dependabot[bot] Dec 4, 2024
094cd90
docs: add WinSSPI/NTLM connection options (#653)
burningalchemist Dec 11, 2024
a6ca845
deps: bump golang.org/x/crypto from 0.28.0 to 0.31.0 (#654)
dependabot[bot] Dec 12, 2024
9592c14
docs: add timestamp/parseTime snippet (#657)
burningalchemist Dec 12, 2024
d7ff44c
fix(security): Bump golang.org/x/net from 0.30.0 to 0.33.0 (#660)
burningalchemist Dec 19, 2024
1fc7926
deps: bump github.com/prometheus/exporter-toolkit from 0.13.1 to 0.13…
dependabot[bot] Dec 23, 2024
55e2974
deps: bump google.golang.org/protobuf from 1.35.2 to 1.36.0 (#663)
dependabot[bot] Dec 23, 2024
7998411
deps: bump github.com/microsoft/go-mssqldb from 1.7.2 to 1.8.0 (#665)
dependabot[bot] Dec 23, 2024
9f480a1
deps: bump github.com/jackc/pgx/v5 from 5.7.1 to 5.7.2 (#664)
dependabot[bot] Dec 23, 2024
bdccef1
deps: bump github.com/snowflakedb/gosnowflake from 1.12.0 to 1.12.1 (…
dependabot[bot] Dec 23, 2024
ff41595
deps: bump github.com/aws/aws-sdk-go-v2/service/secretsmanager from 1…
dependabot[bot] Dec 23, 2024
98ae2ac
deps: bump github.com/aws/aws-sdk-go-v2/config from 1.28.6 to 1.28.7 …
dependabot[bot] Dec 23, 2024
9709056
Bump version to 0.17.0 (#670)
burningalchemist Dec 23, 2024
6c65cdf
Bump up helm chart to 0.10.1 (#671)
burningalchemist Dec 23, 2024
c33a446
feat(helm): Add path support for ingress in the helm chart (#672)
JiffsMaverick Dec 30, 2024
2659a60
feat(helm): Added template support for config and collector files (#642)
Avihais12344 Jan 1, 2025
36d8104
deps: bump google.golang.org/protobuf from 1.36.0 to 1.36.1 (#673)
dependabot[bot] Jan 1, 2025
c9179cd
deps: bump github.com/prometheus/common from 0.61.0 to 0.62.0 (#685)
dependabot[bot] Feb 2, 2025
d3029e9
deps: bump github.com/ClickHouse/clickhouse-go/v2 from 2.30.0 to 2.30…
dependabot[bot] Feb 2, 2025
0cc0925
deps: bump github.com/snowflakedb/gosnowflake from 1.12.1 to 1.13.0 (…
dependabot[bot] Feb 2, 2025
0b48349
deps: bump github.com/aws/aws-sdk-go-v2/config from 1.28.7 to 1.29.4 …
dependabot[bot] Feb 2, 2025
be65229
deps: bump github.com/aws/aws-sdk-go-v2/service/secretsmanager from 1…
dependabot[bot] Feb 4, 2025
4343811
deps: bump github.com/sijms/go-ora/v2 from 2.8.22 to 2.8.23 (#689)
dependabot[bot] Feb 4, 2025
4a56631
deps: bump google.golang.org/protobuf from 1.36.1 to 1.36.4 (#690)
dependabot[bot] Feb 4, 2025
04b6f62
deps: bump github.com/ClickHouse/clickhouse-go/v2 from 2.30.2 to 2.30…
dependabot[bot] Feb 4, 2025
1bb5023
deps: bump github.com/xo/dburl from 0.23.1 to 0.23.3 (#692)
dependabot[bot] Mar 2, 2025
6876b99
deps: bump github.com/sijms/go-ora/v2 from 2.8.23 to 2.8.24 (#695)
dependabot[bot] Mar 2, 2025
10235cf
deps: bump github.com/prometheus/client_golang from 1.20.5 to 1.21.0 …
dependabot[bot] Mar 2, 2025
a36dd2d
deps: bump github.com/go-sql-driver/mysql from 1.8.1 to 1.9.0 (#699)
dependabot[bot] Mar 2, 2025
1ccb2ac
deps: bump github.com/ClickHouse/clickhouse-go/v2 from 2.30.3 to 2.32…
dependabot[bot] Mar 2, 2025
c859b92
deps: bump github.com/prometheus/exporter-toolkit from 0.13.2 to 0.14…
dependabot[bot] Mar 2, 2025
3bab726
deps: bump google.golang.org/protobuf from 1.36.4 to 1.36.5 (#696)
dependabot[bot] Mar 2, 2025
dae5fb6
deps: bump github.com/aws/aws-sdk-go-v2/service/secretsmanager from 1…
dependabot[bot] Mar 2, 2025
f7431d2
deps: bump github.com/sethvargo/go-envconfig from 1.1.0 to 1.1.1 (#701)
dependabot[bot] Mar 2, 2025
9f05ac1
deps: bump github.com/aws/aws-sdk-go-v2/config from 1.29.4 to 1.29.8 …
dependabot[bot] Mar 2, 2025
5bd21bb
Bump up version to 0.17.1 (#703)
burningalchemist Mar 10, 2025
263edcb
Bump up helm chart to 0.11.1 (#704)
burningalchemist Mar 10, 2025
364c3d4
docs: add example configuration for PostgreSQL 16 (#705)
jtougas Mar 13, 2025
b2a8730
deps: bump golang.org/x/net from 0.35.0 to 0.36.0 (#706)
dependabot[bot] Mar 13, 2025
a59d842
deps: bump github.com/golang-jwt/jwt/v5 from 5.2.1 to 5.2.2 (#709)
dependabot[bot] Apr 16, 2025
3b725c1
deps: bump github.com/ClickHouse/clickhouse-go/v2 from 2.32.2 to 2.34…
dependabot[bot] Apr 16, 2025
6de87ad
deps: bump github.com/xo/dburl from 0.23.3 to 0.23.4 (#712)
dependabot[bot] Apr 16, 2025
7fc9ab0
deps: bump github.com/prometheus/client_golang from 1.21.0 to 1.21.1 …
dependabot[bot] Apr 16, 2025
04b14bc
deps: bump github.com/xo/dburl from 0.23.4 to 0.23.6 (#720)
dependabot[bot] Apr 16, 2025
388548a
deps: bump github.com/go-sql-driver/mysql from 1.9.0 to 1.9.2 (#716)
dependabot[bot] Apr 16, 2025
82a0671
deps: bump github.com/sethvargo/go-envconfig from 1.1.1 to 1.2.0 (#721)
dependabot[bot] Apr 16, 2025
7e0b9f8
deps: bump github.com/jackc/pgx/v5 from 5.7.2 to 5.7.4 (#719)
dependabot[bot] Apr 16, 2025
371bdf7
deps: bump github.com/aws/aws-sdk-go-v2/config from 1.29.8 to 1.29.14…
dependabot[bot] Apr 16, 2025
89878d2
deps: bump github.com/aws/aws-sdk-go-v2/service/secretsmanager from 1…
dependabot[bot] Apr 16, 2025
c0a9a18
deps: bump github.com/snowflakedb/gosnowflake from 1.13.0 to 1.13.2 (…
dependabot[bot] Apr 16, 2025
3918f06
deps: bump google.golang.org/protobuf from 1.36.5 to 1.36.6 (#726)
dependabot[bot] Apr 16, 2025
b936588
deps: bump github.com/prometheus/client_model from 0.6.1 to 0.6.2 (#724)
dependabot[bot] Apr 16, 2025
7bbb287
deps: bump github.com/prometheus/client_golang from 1.21.1 to 1.22.0 …
dependabot[bot] Apr 16, 2025
d2036c4
deps: bump github.com/prometheus/common from 0.62.0 to 0.63.0 (#722)
dependabot[bot] Apr 16, 2025
9738f61
deps: bump golang.org/x/net from 0.36.0 to 0.38.0 (#727)
dependabot[bot] Apr 17, 2025
edcb4f9
feat(helm): add support for initContainers on the chart (#731)
brunomanzo Apr 22, 2025
7879946
feat(helm): add support to relabelings in servicemonitor (#732)
brunomanzo Apr 23, 2025
0fa33fd
deps: bump github.com/snowflakedb/gosnowflake from 1.13.2 to 1.13.3 (…
dependabot[bot] Apr 29, 2025
0509f22
deps: bump github.com/sethvargo/go-envconfig from 1.2.0 to 1.3.0 (#735)
dependabot[bot] May 1, 2025
34fbf76
deps: bump github.com/xo/dburl from 0.23.6 to 0.23.7 (#736)
dependabot[bot] May 1, 2025
55f2754
deps: bump github.com/snowflakedb/gosnowflake from 1.13.3 to 1.14.0 (…
dependabot[bot] May 1, 2025
cc8a920
deps: bump github.com/aws/aws-sdk-go-v2/service/secretsmanager from 1…
dependabot[bot] May 1, 2025
ae24114
Bump up version to 0.17.2 (#734)
burningalchemist May 1, 2025
f28a136
Bump up helm chart to 0.12.2 (#741)
burningalchemist May 5, 2025
44e93a8
build: update go version to 1.24+, remove toolchain directive (#742)
burningalchemist May 5, 2025
9c33cb6
Bump up version to 0.17.3 (#743)
burningalchemist May 6, 2025
0e1b0e8
Bump up helm chart to 0.12.3 (#744)
burningalchemist May 6, 2025
92d2102
feat: add -config.check flag for configuration validation (#745)
deferraz May 7, 2025
613f7b6
deps: bump github.com/snowflakedb/gosnowflake from 1.14.0 to 1.14.1 (…
dependabot[bot] Jun 1, 2025
dc72fdf
deps: bump github.com/microsoft/go-mssqldb from 1.8.0 to 1.8.2 (#750)
dependabot[bot] Jun 2, 2025
f31dfb1
deps: bump github.com/xo/dburl from 0.23.7 to 0.23.8 (#752)
dependabot[bot] Jun 2, 2025
0722376
deps: bump github.com/jackc/pgx/v5 from 5.7.4 to 5.7.5 (#753)
dependabot[bot] Jun 2, 2025
778c232
deps: bump github.com/prometheus/common from 0.63.0 to 0.64.0 (#754)
dependabot[bot] Jun 2, 2025
7862cae
deps: bump github.com/ClickHouse/clickhouse-go/v2 from 2.34.0 to 2.35…
dependabot[bot] Jun 3, 2025
31a5451
deps: bump github.com/sijms/go-ora/v2 from 2.8.24 to 2.9.0 (#756)
dependabot[bot] Jun 10, 2025
44992d8
deps: bump github.com/ClickHouse/clickhouse-go/v2 from 2.35.0 to 2.36…
dependabot[bot] Jun 10, 2025
2df6cf8
deps: bump github.com/aws/aws-sdk-go-v2/service/secretsmanager from 1…
dependabot[bot] Jun 10, 2025
d464fdf
deps: bump github.com/aws/aws-sdk-go-v2/config from 1.29.14 to 1.29.1…
dependabot[bot] Jun 10, 2025
c27a900
build: pin gh-release to v2.2.2 (#761)
burningalchemist Jun 10, 2025
3f2726f
Bump version to 0.18.0 (#762)
burningalchemist Jun 10, 2025
45a4e20
Bump up helm chart to 0.12.4 (#763)
burningalchemist Jun 10, 2025
bb5ec3a
deps: bump github.com/go-sql-driver/mysql from 1.9.2 to 1.9.3 (#768)
dependabot[bot] Jul 2, 2025
c213e07
deps: bump github.com/ClickHouse/clickhouse-go/v2 from 2.36.0 to 2.37…
dependabot[bot] Jul 2, 2025
d2824d9
deps: bump github.com/snowflakedb/gosnowflake from 1.14.1 to 1.15.0 (…
dependabot[bot] Jul 2, 2025
56880a8
deps: bump github.com/aws/aws-sdk-go-v2 from 1.36.3 to 1.36.5 (#770)
dependabot[bot] Jul 2, 2025
8d83643
deps: bump github.com/aws/aws-sdk-go-v2/service/secretsmanager from 1…
dependabot[bot] Jul 2, 2025
408bd0f
deps: bump github.com/microsoft/go-mssqldb from 1.8.2 to 1.9.2 (#772)
dependabot[bot] Jul 2, 2025
79d7aa3
deps: bump github.com/prometheus/common from 0.64.0 to 0.65.0 (#773)
dependabot[bot] Jul 2, 2025
4d802ae
deps: bump github.com/aws/aws-sdk-go-v2/config from 1.29.15 to 1.29.1…
dependabot[bot] Jul 4, 2025
e3901a7
fix: move NULL messages under Debug log level (#778)
burningalchemist Jul 16, 2025
928670c
fix: move NULL messages under Debug log level (#778)
burningalchemist Jul 16, 2025
6e73ff7
Bump version to 0.18.1 (#779)
burningalchemist Jul 16, 2025
e4e66ea
update gitignore
a-monteiro Jul 27, 2025
f897934
Merge tag '0.18.1' into merge-to-0.18.1
a-monteiro Jul 27, 2025
6e8398a
go mod tidy
a-monteiro Jul 27, 2025
d275958
Update trino client to v0.326.0
a-monteiro Jul 27, 2025
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
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: Questions and Answers
url: https://github.com/burningalchemist/sql_exporter/discussions
about: Please ask your questions on installation and usage here.
8 changes: 5 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,18 @@ on:

jobs:
build:
if: ${{ !startsWith(github.event.head_commit.message, 'docs:') }}
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
uses: actions/setup-go@v5
with:
go-version: ^1.18
go-version: ^1.24
check-latest: true
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Style
run: make style
- name: Vet
Expand Down
15 changes: 9 additions & 6 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ on:

jobs:
analyze:
if: |
${{ !startsWith(github.event.head_commit.message, 'docs:') }} ||
${{ !startsWith(github.event.head_commit.message, 'build:') }}
name: Analyze
runs-on: ubuntu-latest

Expand All @@ -25,27 +28,27 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2

- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v5
with:
go-version: ^1.18
go-version: ^1.20

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2
uses: github/codeql-action/autobuild@v3

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
Expand All @@ -59,4 +62,4 @@ jobs:
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
115 changes: 115 additions & 0 deletions .github/workflows/helm-workflow.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
name: Helm
on:
push:
branches:
- master
pull_request:
branches:
- master
env:
HELM_VERSION: 3.12.1
PYTHON_VERSION: 3.9
TARGET_BRANCH: chart-testing-target-branch
TARGET_REMOTE: test
jobs:
helm-jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Helm
uses: azure/setup-helm@v4
with:
version: "v${{ env.HELM_VERSION }}"
- uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
check-latest: true
# ---------------------------------------------------------------
# -- Instead of comparing to the master branch, I'm getting
# -- the commit hash set in the previous step from a
# -- currently released chart. If it doesn't exists, then
# -- I assume that chart is not released and compare to the
# -- previous commit
# --
# -- Also, I'm setting the RepoURL here. Since we plan to support
# -- the official chart in this git repository, the helm
# -- repository is expected to belong to this repo as well.
# ---------------------------------------------------------------
- name: Retrieve the latest commit sha from the helm chart
run: |
HELM_REPO_URL="https://${GITHUB_REPOSITORY_OWNER}.github.io/${GITHUB_REPOSITORY#*/}"
if helm repo add sql-exporter $HELM_REPO_URL
then
helm repo update
echo "TARGET_COMMIT=$(helm show chart sql-exporter/sql-exporter | yq '.annotations.git/commit-sha')" >> "${GITHUB_ENV}"
else
echo "TARGET_COMMIT=$(git show HEAD^1 --pretty=format:%H --no-patch)" >> "${GITHUB_ENV}"
fi
# ---------------------------------------------------------------
# -- As I could find CT doesn't support testing against commits
# -- directly, so I'm creating a new fake remote from a commit
# -- and testing the chart against it. This workaround doesn't
# -- support maintainers validation, but we have it disabled
# -- anyway
# ---------------------------------------------------------------
- name: Prepare a dummy remote to test the chart
run: |
DUMMY_REMOTE=$(mktemp -d)
git init "${DUMMY_REMOTE}"
git remote add "${TARGET_REMOTE}" "${DUMMY_REMOTE}"
git checkout -b "${TARGET_BRANCH}" "${TARGET_COMMIT}"
git push --set-upstream "${TARGET_REMOTE}" "${TARGET_BRANCH}"
git checkout "${GITHUB_SHA}"
- name: Set up chart-testing
uses: helm/[email protected]
- name: Run chart-testing (list-changed)
id: list-changed
run: |
changed=$(ct list-changed --chart-dirs . --target-branch "${TARGET_BRANCH}" --remote "${TARGET_REMOTE}")
if [[ -n "$changed" ]]; then
echo "changed=true" >> "$GITHUB_OUTPUT"
fi
- name: Run chart-testing (lint)
if: steps.list-changed.outputs.changed == 'true'
run: ct lint --target-branch "${TARGET_BRANCH}" --remote "${TARGET_REMOTE}" --validate-maintainers=false --chart-dirs .
- name: Setup helmfile
if: steps.list-changed.outputs.changed == 'true'
uses: mamezou-tech/[email protected]
- name: Create kind cluster
if: steps.list-changed.outputs.changed == 'true'
uses: helm/[email protected]
- name: Init postgres server
if: steps.list-changed.outputs.changed == 'true'
run: |
helmfile -f helm/ci/helmfile.yaml sync
- name: Run chart-testing (install)
if: steps.list-changed.outputs.changed == 'true'
run: ct install --target-branch "${TARGET_BRANCH}" --remote "${TARGET_REMOTE}" --chart-dirs .
- name: Run chart-testing (upgrade)
if: steps.list-changed.outputs.changed == 'true'
run: ct install --target-branch "${TARGET_BRANCH}" --remote "${TARGET_REMOTE}" --chart-dirs . --upgrade
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
# ---------------------------------------------------------------
# -- On each run we're setting an annotation with the current
# -- commit hash, so in case it's released, we will see it
# -- running `$ helm show sql-exporter/sql-exporter`
# ---------------------------------------------------------------
- name: Set the git sha annotations in the helm chart
run: yq -i ".annotations.git/commit-sha = \"${GITHUB_SHA}\"" ./helm/Chart.yaml

- name: Release charts
if: ${{ github.event.repository.default_branch && github.event_name == 'push' }}
uses: helm/chart-releaser-action@main
with:
charts_dir: .
mark_as_latest: false
packages_with_index: true
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
CR_RELEASE_NAME_TEMPLATE: "chart-{{ .Name }}-{{ .Version }}"
54 changes: 50 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@ jobs:
VERSION: ${{ github.ref_name }}
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
uses: actions/setup-go@v5
with:
go-version: ^1.18
go-version: ^1.24
check-latest: true
- name: Check out code into the Go module directory
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Promu - Crossbuild
run: make crossbuild
Expand All @@ -43,7 +44,52 @@ jobs:
run: make crossbuild-checksum

- name: Upload artifacts
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2.2.2
with:
files: |
.tarballs/*
docker:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
needs: build
steps:
- name: Check out the repo
uses: actions/checkout@v4

- name: Get Go version from the '.promu.yml' config
id: promu-go-version
run: printf "version=%s" "$(yq '.go.version' .promu.yml)" >> $GITHUB_OUTPUT

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: burningalchemist/sql_exporter
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}

- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.multi-arch
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64,linux/arm64
provenance: false
build-args: |
GOVERSION=${{ steps.promu-go-version.outputs.version }}
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
/.project
/.settings
.idea/
/.vscode
/sql_exporter
/sql_exporter.yml
test_configs/
.idea/*
5 changes: 4 additions & 1 deletion .promu.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
go:
cgo: false
version: 1.19
version: 1.24
repository:
path: github.com/burningalchemist/sql_exporter
build:
Expand All @@ -14,6 +14,8 @@ build:
-X github.com/prometheus/common/version.Branch={{.Branch}}
-X github.com/prometheus/common/version.BuildUser={{user}}@{{host}}
-X github.com/prometheus/common/version.BuildDate={{date "20060102-15:04:05"}}
-s
-w
tarball:
files:
- LICENSE
Expand All @@ -27,3 +29,4 @@ crossbuild:
- windows/amd64
- linux/armv7
- linux/arm64
- darwin/arm64
22 changes: 22 additions & 0 deletions Dockerfile.multi-arch
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
ARG GOVERSION=latest

FROM --platform=$BUILDPLATFORM quay.io/prometheus/golang-builder:${GOVERSION}-main AS builder

# Get sql_exporter
ADD . /go/src/github.com/burningalchemist/sql_exporter
WORKDIR /go/src/github.com/burningalchemist/sql_exporter

# Do makefile
ARG TARGETOS
ARG TARGETARCH

RUN GOOS=$TARGETOS GOARCH=$TARGETARCH make

# Make image and copy build sql_exporter
FROM --platform=$TARGETPLATFORM quay.io/prometheus/busybox:latest
LABEL maintainer="The Prometheus Authors <[email protected]>"
COPY --from=builder /go/src/github.com/burningalchemist/sql_exporter/sql_exporter /bin/sql_exporter

EXPOSE 9399
USER nobody
ENTRYPOINT [ "/bin/sql_exporter" ]
1 change: 1 addition & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
MIT License

Copyright (c) 2020 Sergei Zyubin
Copyright (c) 2017 Alin Sinpalean

Permission is hereby granted, free of charge, to any person obtaining a copy
Expand Down
24 changes: 20 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,18 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# To distinguish between native Windows and Windows Subsystem for Linux (WSL),
# we have to check how PATH is separated. For WSL and Unix-based systems it's
# a colon; for native Windows it's a semicolon.
ifeq '$(findstring ;,$(PATH))' ';'
GOPATH = $(firstword $(subst ;, ,$(shell $(GO) env GOPATH)))
PREFIX = $(shell cd)
endif

GO := go
GOPATH := $(firstword $(subst :, ,$(shell $(GO) env GOPATH)))
GOPATH ?= $(firstword $(subst :, ,$(shell $(GO) env GOPATH)))
PROMU := $(GOPATH)/bin/promu
PROMU_VERSION := v0.17.0
pkgs = $(shell $(GO) list ./... | grep -v /vendor/)

PREFIX ?= $(shell pwd)
Expand All @@ -30,7 +39,7 @@ style:

test:
@echo ">> running tests"
@$(GO) test -short -race $(pkgs)
@$(GO) test -short $(pkgs)

format:
@echo ">> formatting code"
Expand Down Expand Up @@ -73,10 +82,17 @@ docker:
@echo ">> building docker image"
@docker build -t "$(DOCKER_IMAGE_NAME):$(DOCKER_IMAGE_TAG)" .

# Override for native Windows, where the path separator is a semicolon.
ifeq '$(findstring ;,$(PATH))' ';'
promu:
@set GOOS=windows
@set GOARCH=$(subst AMD64,amd64,$(patsubst i%86,386,$(shell echo %PROCESSOR_ARCHITECTURE%)))
@$(GO) install github.com/prometheus/promu@$(PROMU_VERSION)
else
promu:
@GOOS=$(shell uname -s | tr A-Z a-z) \
GOARCH=$(subst x86_64,amd64,$(patsubst i%86,386,$(shell uname -m))) \
$(GO) install github.com/prometheus/promu@v0.13.0

$(GO) install github.com/prometheus/promu@$(PROMU_VERSION)
endif

.PHONY: all style format build test vet tarball docker promu
Loading
Loading