Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update NDB branch #5

Open
wants to merge 351 commits into
base: ndb
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
351 commits
Select commit Hold shift + click to select a range
f9d41e4
Update common Prometheus files
prombot Mar 17, 2021
36cae2d
Merge pull request #536 from prometheus/repo_sync
SuperQ Mar 23, 2021
8a9312a
Update common Prometheus files
prombot Mar 24, 2021
0ca2f90
Update Go version
SuperQ Mar 24, 2021
3381d9c
Merge pull request #538 from prometheus/repo_sync
SuperQ Mar 24, 2021
662d1a1
fix innodb_metrics for mariadb 10.5+ (fixes #494) (#523)
maemigh Apr 8, 2021
67f6bc7
Support authenticating using mTLS client cert and no password (#539)
tirsen Apr 8, 2021
42ea20e
Add collect.mysql.user flag to docs (#530)
pioziol123 Apr 8, 2021
8e0d856
Update build (#543)
SuperQ Apr 8, 2021
0dde132
Release 0.13.0-rc.0 (#546)
SuperQ Apr 25, 2021
634e99c
Add TLS and basic authentication
Jan 12, 2021
fd9ca0b
Update common Prometheus files (#544)
prombot Apr 28, 2021
d92905b
Improve parsing of boolean strings (#548)
SuperQ Apr 28, 2021
5e7485c
Merge pull request #522 from roidelapluie/bauth
SuperQ May 18, 2021
693f62f
Release 0.13.0
SuperQ May 18, 2021
ad2847c
Merge pull request #552 from prometheus/superq/release_0.13
SuperQ May 21, 2021
3c436a7
allow exporting dates as timestamps grom GLOBAL STATUS
mmiller1 Jul 2, 2021
7fb4c7c
the time package actually expects MST as the timezone layout indicator
mmiller1 Jul 6, 2021
0a9bdb9
handle multiple TS formats in GLOBAL STATUS
mmiller1 Jul 6, 2021
cd3cf61
Fix typo in logs
mkopinsky Jul 7, 2021
144a4ad
suggested changes
mmiller1 Jul 8, 2021
9a2abc2
Merge pull request #561 from mmiller1/master
SuperQ Jul 20, 2021
4cea47a
Update common Prometheus files
prombot Aug 7, 2021
5070cf3
Merge pull request #567 from prometheus/repo_sync
SuperQ Aug 7, 2021
7cfb0ed
Update common Prometheus files
prombot Sep 12, 2021
f8b636f
Merge pull request #576 from prometheus/repo_sync
SuperQ Sep 12, 2021
5132a1c
fix mysql_slave_hosts_info for mysql 5.5 and mariadb 10.5, add unit test
fhamme Sep 13, 2021
cf82946
Merge pull request #577 from betanummeric/fix-show-slave-hosts
SuperQ Sep 13, 2021
d6dace0
Replace $__interval with $__rate_interval
rgeyer Oct 1, 2021
cff37c5
Update remaining queries that had an irate 'safety' conditional
rgeyer Oct 4, 2021
d094d63
Merge pull request #580 from grafana/mixin-rate-interval
tomwilkie Oct 5, 2021
3a7de14
Data source template should be labelled 'Data Source'
tomwilkie Oct 20, 2021
f9e31d0
Whoops, actually update template.
tomwilkie Oct 21, 2021
24b6fe0
Merge pull request #584 from prometheus/datasource-label
SuperQ Oct 21, 2021
d1687be
Update common Prometheus files
prombot Oct 23, 2021
4e8e2b9
Merge pull request #585 from prometheus/repo_sync
SuperQ Oct 23, 2021
498ebd0
Update common Prometheus files (#586)
prombot Nov 8, 2021
3c116d1
Update go & dependencies
Nov 8, 2021
c9d7a01
Change branch to main
Nov 8, 2021
0b115d8
Update common Prometheus files
prombot Nov 13, 2021
3f06854
Merge pull request #597 from prometheus/repo_sync
SuperQ Nov 13, 2021
d6b25c5
Wrong name
7olstoy Nov 26, 2021
492c004
Merge pull request #602 from 7olstoy/patch-1
SuperQ Nov 26, 2021
4bbd404
Rewrite processlist collector
roman-vynar Dec 2, 2021
d960a90
Change blank>unknown, add args to the test
roman-vynar Dec 3, 2021
733987b
Add mysql_transaction_isolation metric
hateeyan Dec 20, 2021
55df534
compatible with mysql<=5.7
hateeyan Dec 21, 2021
17460a4
Fixed metric names
roman-vynar Jan 3, 2022
3c5f433
Merge pull request #603 from roman-vynar/processlist-new
SuperQ Jan 5, 2022
ec78ddb
Merge pull request #605 from hateeyan/transaction_isolation
SuperQ Jan 5, 2022
63b5265
Merge pull request #562 from mkopinsky/patch-1
SuperQ Jan 5, 2022
6a52c58
Merge pull request #512 from oiooj/master
SuperQ Jan 5, 2022
af48e94
Merge branch 'main' into replica_host_status
SuperQ Jan 5, 2022
50068ab
Merge pull request #496 from roidelapluie/replica_host_status
SuperQ Jan 5, 2022
aaa8e51
Update common Prometheus files
prombot Jan 6, 2022
4c51d37
Merge pull request #609 from prometheus/repo_sync
SuperQ Jan 6, 2022
d13522e
Merge branch 'main' into pr/478
SuperQ Jan 6, 2022
e2ff660
Merge pull request #480 from Gremash/pr/478
SuperQ Jan 6, 2022
2d53711
Replace unmaintained UUID library (#618)
srlobo Mar 2, 2022
5070ecf
Update mixin (#619)
SuperQ Mar 3, 2022
ca1b9af
Release 0.14.0 (#607)
SuperQ Mar 4, 2022
5609e31
Update common Prometheus files (#620)
prombot Mar 4, 2022
1e0e993
Update common Prometheus files
prombot Mar 7, 2022
a9bb08b
Update common Prometheus files
prombot May 6, 2022
3d2a10b
Allow tlsCfg.InsecureSkipVerify outside of mTLS (#631)
jfach May 20, 2022
e0e07b7
Update common Prometheus files (#636)
prombot Jun 3, 2022
6ed4a18
Update build (#632)
SuperQ Jun 7, 2022
951c33a
Bump github.com/prometheus/client_golang from 1.12.1 to 1.12.2 (#637)
dependabot[bot] Jun 7, 2022
d3211d2
Bump github.com/go-kit/log from 0.2.0 to 0.2.1 (#639)
dependabot[bot] Jun 8, 2022
d66a380
Bump gopkg.in/ini.v1 from 1.66.4 to 1.66.6 (#638)
dependabot[bot] Jun 8, 2022
5e1aaf7
Fixup mixin linting (#646)
SuperQ Jul 3, 2022
02e4d6c
Update common Prometheus files (#641)
prombot Jul 3, 2022
4e46dd9
Bump github.com/prometheus/common from 0.34.0 to 0.35.0 (#645)
dependabot[bot] Jul 3, 2022
2898735
Remove ioutil (#650)
inosato Jul 28, 2022
c7ab579
Bump github.com/prometheus/common from 0.35.0 to 0.37.0 (#653)
dependabot[bot] Aug 26, 2022
593b009
Support for scraping multiple mysqld hosts (#651)
MattiasAng Sep 1, 2022
94615a7
Fix README formatting
bgarret Sep 6, 2022
fa5c7a9
fix: log message without any key (#564)
greut Sep 16, 2022
503f1fa
Update common Prometheus files (#666)
prombot Sep 24, 2022
8154687
Update to exporter-toolkit v0.8.1 (#677)
DaAwesomeP Nov 15, 2022
432760e
Bump github.com/prometheus/client_golang from 1.13.0 to 1.14.0 (#681)
dependabot[bot] Nov 15, 2022
93f3538
Bump gopkg.in/ini.v1 from 1.66.6 to 1.67.0 (#670)
dependabot[bot] Nov 15, 2022
e25198d
Fix infoSchemaInnodbMetricsEnabledColumnQuery
cezmunsta Nov 29, 2022
73711b5
Update Go (#688)
SuperQ Nov 29, 2022
11d5070
Bump github.com/prometheus/exporter-toolkit from 0.8.1 to 0.8.2 (#690)
dependabot[bot] Dec 1, 2022
530e351
Fix unclosed code block in README.md (#691)
ericyan Dec 9, 2022
359736d
docs: fix prometheus scrape example in README
vokey Feb 7, 2023
b3483ee
using mysql.Config.FormatDSN() in FormDSN() (#708)
soara Mar 1, 2023
aa12ba2
fix duplicated collector when collectParams was passed in probe mode …
LeoQuote Mar 4, 2023
a58cad5
Bump github.com/go-sql-driver/mysql from 1.6.0 to 1.7.0 (#702)
dependabot[bot] Mar 5, 2023
d395057
Update common Prometheus files (#695)
prombot Mar 5, 2023
104e2f6
Update build (#711)
SuperQ Mar 5, 2023
8fa4a07
Update common Prometheus files (#712)
prombot Mar 5, 2023
ecbdeb0
Fix a mixture of error messages and metrics is returned from the
yosida95 Mar 7, 2023
0fbab6f
Update exporter-toolkit
SuperQ Mar 13, 2023
bcdb983
Merge pull request #715 from prometheus/superq/update_toolkit
SuperQ Mar 13, 2023
875ffd7
Bump github.com/prometheus/common from 0.41.0 to 0.42.0
dependabot[bot] Mar 13, 2023
e866f6a
Merge pull request #716 from prometheus/dependabot/go_modules/github.…
SuperQ Mar 13, 2023
b09db64
Merge pull request #705 from vokey/main
SuperQ Mar 14, 2023
4aaccd7
Merge pull request #714 from yosida95/early-return
SuperQ Mar 14, 2023
c0d5150
Merge pull request #659 from bgarret/patch-2
SuperQ Mar 14, 2023
ac1c2d6
Add MySQL TLS configurations (#718)
soara Mar 16, 2023
2fabbb3
Update common Prometheus files (#720)
prombot Mar 27, 2023
fad2c0c
Add support for collecting metrics from sys.user_summary (#628)
ejortegau Mar 28, 2023
6ad9f25
Fix shared metrics between requests (#722)
LeoQuote Apr 11, 2023
04224f2
Refactor mysql_up metric
SuperQ Apr 11, 2023
35ddd2b
Merge pull request #723 from prometheus/superq/scrape_up
SuperQ Apr 12, 2023
7f4eb83
Merge pull request #687 from cezmunsta/fix-infoSchemaInnodbMetricsEna…
SuperQ Apr 14, 2023
0c4f492
add support for unix:// target to the multi-target scraping
yosida95 Feb 10, 2023
34817b7
Merge pull request #707 from yosida95/unix-domain-socket
SuperQ Apr 14, 2023
6e73fce
Release v0.15.0-rc.0
SuperQ Mar 14, 2023
480e9f5
Merge pull request #717 from prometheus/superq/0.15.0-rc.0
SuperQ Apr 14, 2023
bdb0fed
Fix CircleCI tag building
SuperQ Apr 14, 2023
c7f52f5
Use target in DSN builder.
tinpotnick Apr 25, 2023
fd8bc25
issue-#725: use STRAIGHT_JOIN in infoSchemaAutoIncrementQuery
ColinDKelley Apr 25, 2023
6c77b4d
Add config.my-cnf hot reload `/-/reload`
May 15, 2023
9ebc083
Correct `mysql_info_schema_threads` in dashboard
towo May 17, 2023
8a4555b
Rename subsystem const
SuperQ May 23, 2023
0138b18
Merge pull request #738 from prometheus/superq/fix_subsystem
SuperQ May 23, 2023
02bf0e7
feat: logTargetWhileError
May 17, 2023
4119297
feat: rename xmysql to mysql
May 26, 2023
1f2cf98
use float64 for latencies, uint64 is not large enough
ats-frosmo May 19, 2023
454a0a9
Bump github.com/prometheus/client_golang from 1.14.0 to 1.15.1
dependabot[bot] Jun 1, 2023
20b38e1
Merge pull request #736 from mingregister/logtarget
SuperQ Jun 2, 2023
e685593
Merge pull request #741 from prometheus/dependabot/go_modules/github.…
SuperQ Jun 2, 2023
fa9d247
Bump github.com/prometheus/client_model from 0.3.0 to 0.4.0
dependabot[bot] Jun 2, 2023
6d58c3c
Merge pull request #740 from prometheus/dependabot/go_modules/github.…
SuperQ Jun 2, 2023
878189f
Update Prometheus Go modules
SuperQ May 23, 2023
4968540
Merge pull request #739 from prometheus/superq/toolkit
SuperQ Jun 2, 2023
548f7a1
Merge pull request #737 from singularity-xx/main
SuperQ Jun 2, 2023
7b43e02
Merge branch 'prometheus:main' into main
winfredwz Jun 9, 2023
6e6a1e7
check ReloadConfig error
winfredwz Jun 9, 2023
c195971
check ReloadConfig error
winfredwz Jun 9, 2023
54dd561
Merge pull request #728 from babblevoice/bug-target-ignored
SuperQ Jun 15, 2023
4e7cf5c
Bump github.com/smartystreets/goconvey from 1.7.2 to 1.8.0
dependabot[bot] Jun 15, 2023
6e476ee
Bump github.com/go-sql-driver/mysql from 1.7.0 to 1.7.1
dependabot[bot] Jun 15, 2023
41e6900
Merge pull request #735 from b1-systems/fix/grafana-example
SuperQ Jun 15, 2023
2ca3da6
Merge pull request #726 from Invoca/prometheus-issue-#725-info_schema…
SuperQ Jun 15, 2023
8503280
Merge pull request #732 from prometheus/dependabot/go_modules/github.…
SuperQ Jun 15, 2023
8a5c20d
Update mysqld_exporter.go
SuperQ Jun 15, 2023
7667e7f
Merge pull request #730 from prometheus/dependabot/go_modules/github.…
SuperQ Jun 15, 2023
e7ab147
Merge pull request #734 from winfredwz/main
SuperQ Jun 15, 2023
d867de4
Allow empty passwords
SuperQ Jun 15, 2023
01d7d7c
Update common Prometheus files
prombot Jun 17, 2023
588ce20
Merge pull request #743 from prometheus/repo_sync
SuperQ Jun 17, 2023
2b7699b
Merge pull request #742 from prometheus/superq/empty_password
SuperQ Jun 19, 2023
931b76d
Don't use HOME env in the my-cnf config (#745)
SuperQ Jun 22, 2023
6ca2a42
Release 0.15.0 (#744)
SuperQ Jun 24, 2023
9150b0c
Bump github.com/smartystreets/goconvey from 1.8.0 to 1.8.1 (#751)
dependabot[bot] Jul 3, 2023
6195c53
Bump github.com/prometheus/client_golang from 1.15.1 to 1.16.0 (#752)
dependabot[bot] Jul 3, 2023
c0b5cc3
Update common Prometheus files (#748)
prombot Jul 3, 2023
1aa313f
Update common Prometheus files (#753)
prombot Aug 15, 2023
59ecd93
Update common Prometheus files (#762)
prombot Aug 15, 2023
20b217d
Bump github.com/prometheus/client_golang from 1.16.0 to 1.17.0 (#772)
dependabot[bot] Oct 1, 2023
edc5ce2
Bump github.com/google/uuid from 1.3.0 to 1.3.1 (#768)
dependabot[bot] Oct 1, 2023
1990602
Update common Prometheus files (#767)
prombot Oct 1, 2023
c8b9064
Update common Prometheus files (#773)
prombot Oct 3, 2023
fe8ee93
Switch spell check to golangci-lint (#792)
SuperQ Dec 11, 2023
ee0dcbb
Bump github.com/alecthomas/kingpin/v2 from 2.3.2 to 2.4.0 (#789)
dependabot[bot] Dec 11, 2023
dbe130d
Bump github.com/prometheus/common from 0.44.0 to 0.45.0 (#779)
dependabot[bot] Dec 11, 2023
08ee915
Bump github.com/google/uuid from 1.3.1 to 1.4.0 (#782)
dependabot[bot] Dec 11, 2023
6e00f64
Update common Prometheus files (#786)
prombot Dec 11, 2023
3b33f84
Bump github.com/google/go-cmp from 0.5.9 to 0.6.0 (#780)
dependabot[bot] Dec 11, 2023
b193d3f
Fixup mixin linting (#793)
SuperQ Dec 11, 2023
36ba371
Bump github.com/prometheus/client_model (#781)
dependabot[bot] Dec 11, 2023
ba1100e
Update golang to 1.21 (#791)
blkperl Dec 11, 2023
cc34968
Release v0.15.1 (#794)
blkperl Dec 12, 2023
9f7a739
Update common Prometheus files (#795)
prombot Dec 12, 2023
c6cd5cd
Bump github.com/prometheus/common from 0.45.0 to 0.46.0 (#809)
dependabot[bot] Feb 2, 2024
dff0208
Bump github.com/DATA-DOG/go-sqlmock from 1.5.0 to 1.5.2 (#810)
dependabot[bot] Feb 2, 2024
eced57e
Update common Prometheus files (#796)
prombot Feb 2, 2024
9d640ce
Bump github.com/google/uuid from 1.4.0 to 1.6.0 (#808)
dependabot[bot] Feb 2, 2024
971fc25
Bump github.com/prometheus/exporter-toolkit from 0.10.0 to 0.11.0 (#801)
dependabot[bot] Feb 2, 2024
b76cd22
Update common Prometheus files (#811)
prombot Feb 15, 2024
9322c35
Update common Prometheus files (#817)
prombot Feb 16, 2024
edd2653
Update docker registry link in README.md (#813)
OscarVanL Feb 16, 2024
ebf1a6c
Update common Prometheus files (#820)
prombot Feb 26, 2024
057adca
Bump github.com/prometheus/client_golang from 1.18.0 to 1.19.0 (#823)
dependabot[bot] Mar 3, 2024
c05bbb4
Bump github.com/prometheus/client_model from 0.5.0 to 0.6.0 (#822)
dependabot[bot] Mar 3, 2024
bc8e542
Update common Prometheus files (#825)
prombot Mar 19, 2024
f3d4ccd
Support for prometheus scrape timeout in probe endpoint (#828)
mmontes11 Apr 10, 2024
9995377
Update common Prometheus files (#829)
prombot Apr 10, 2024
11377f2
Bump github.com/go-sql-driver/mysql from 1.7.1 to 1.8.1 (#830)
dependabot[bot] Apr 10, 2024
0c89d59
Update common Prometheus files (#832)
prombot Apr 10, 2024
f6a64d7
Support MySQL 8.4 replicas syntax (#837)
mtanda May 15, 2024
42794a2
Update common Prometheus files (#834)
prombot May 15, 2024
8ccb651
Update build (#838)
SuperQ May 15, 2024
dd8afce
Update common Prometheus files (#839)
prombot May 15, 2024
31bc75a
Add the instance struct to handle connections (#859)
s10 Aug 12, 2024
940532b
Bump github.com/prometheus/common from 0.53.0 to 0.55.0 (#851)
dependabot[bot] Aug 12, 2024
bb4b4ba
Bump github.com/prometheus/client_golang from 1.19.0 to 1.19.1 (#845)
dependabot[bot] Aug 12, 2024
afcd075
Fix fetching tmpTables vs tmpDiskTables from performance_schema (#853)
cristiangreco Aug 27, 2024
d65c5e6
Fetch lock time and cpu time from performance schema (#862)
cristiangreco Aug 28, 2024
18bce7f
skip SPACE_TYPE column for MariaDB >=10.5 (#860)
s10 Aug 29, 2024
38eea6a
Update common Prometheus files (#842)
prombot Aug 29, 2024
c553e82
refactor: Optimize code by using built-in constants in the standard l…
wangqingfree Aug 29, 2024
8d9157c
Fix Docker run command and update documentation for cnf file handling…
jcy0308 Aug 29, 2024
5e63bbe
Fixed parsing of timestamps with non-zero padded days (#841)
baldowl Aug 29, 2024
3a996a4
Update info_schema_auto_increment.go (#833)
nicolevv Aug 29, 2024
263b96d
Fix race condition in ReloadConfig (#760)
ajmaidak Aug 29, 2024
4914f25
Change processlist query to support ONLY_FULL_GROUP_BY sql_mode (#684)
darxriggs Aug 29, 2024
fe4b6cd
replication_applier_status_by_worker requires mysql 8.0 (#683)
ajmaidak Aug 29, 2024
6c60a31
Bump github.com/prometheus/common from 0.55.0 to 0.57.0 (#865)
dependabot[bot] Aug 29, 2024
c131b67
Bump github.com/prometheus/client_golang from 1.19.1 to 1.20.2 (#864)
dependabot[bot] Aug 29, 2024
a1503cf
Update common Prometheus files (#866)
prombot Aug 29, 2024
4a91371
Update common Prometheus files (#870)
prombot Sep 14, 2024
abc1816
Bump exporter-toolkit and fix associated test (#873)
dswarbrick Sep 19, 2024
be5dc65
chore!: adopt log/slog, drop go-kit/log (#875)
tjhop Oct 10, 2024
04268cc
Update common Prometheus files (#872)
prombot Oct 10, 2024
bed2b5d
Bump github.com/prometheus/exporter-toolkit from 0.13.0 to 0.13.1 (#887)
dependabot[bot] Nov 8, 2024
e07a5a8
Update common Prometheus files (#882)
prombot Nov 8, 2024
8f88a60
Bump github.com/prometheus/client_golang from 1.20.4 to 1.20.5 (#888)
dependabot[bot] Nov 8, 2024
762b1e7
info_schema_tables: do not collect the `sys` schema (#879)
frivoire Nov 8, 2024
694449f
Update Go version (#890)
SuperQ Nov 8, 2024
cac4d10
Release 0.16.0 (#889)
cristiangreco Nov 8, 2024
c366424
Release v0.16.0 (#891)
SuperQ Nov 8, 2024
08969eb
Update common Prometheus files (#892)
prombot Nov 10, 2024
d6ae7aa
Update common Prometheus files (#893)
prombot Nov 12, 2024
8c897e0
Update common Prometheus files (#894)
prombot Nov 26, 2024
2ef168b
Add perf_schema quantile columns to collector (#897)
matthewnolf Nov 28, 2024
7bd13ba
Update common Prometheus files (#901)
prombot Dec 29, 2024
c407e35
Bump github.com/prometheus/exporter-toolkit from 0.13.1 to 0.13.2 (#903)
dependabot[bot] Jan 1, 2025
b51a99c
Update common Prometheus files (#907)
prombot Jan 16, 2025
c6a1d2b
Update common Prometheus files (#915)
prombot Feb 9, 2025
22c7a26
Fix #905: use SUM_LOCK_TIME and SUM_CPU_TIME with mysql >= 8.0.28
cristiangreco Feb 10, 2025
27ef617
Update Mixin dashboard to editable: false (#911)
grooverdan Feb 14, 2025
770a3ff
Fix typo for locahost (#914)
bebehei Feb 14, 2025
a802109
Fix database quoting problem in collector 'info_schema.tables' (#908)
oblitorum Feb 14, 2025
28bb162
use two separate queries and add tests
cristiangreco Feb 14, 2025
f96e207
Merge branch 'prometheus:main' into cristian/issue-905
cristiangreco Feb 14, 2025
9bddc1a
Merge pull request #916 from cristiangreco/cristian/issue-905
cristiangreco Feb 14, 2025
10b9e92
Bump github.com/prometheus/common from 0.61.0 to 0.62.0 (#912)
dependabot[bot] Feb 14, 2025
2db8b5f
Add missing metrics_path to multi-target example (#899)
tvenieris Feb 19, 2025
92feb65
Prepare release 0.17.0
cristiangreco Feb 18, 2025
3d2c6d8
update version
cristiangreco Feb 21, 2025
c325602
Merge pull request #917 from prometheus/cristian/release-0.16.1
cristiangreco Feb 21, 2025
67f514f
Fix query on perf_schema.events_statements_summary_by_digest
cristiangreco Feb 21, 2025
18c62ac
Merge pull request #920 from prometheus/cristian/fix-events-stmts-que…
cristiangreco Feb 21, 2025
77210b0
Prepare release 0.17.1
cristiangreco Feb 21, 2025
ce68e7b
Merge pull request #921 from prometheus/cristian/release-0.17.1
cristiangreco Feb 21, 2025
dd80986
Use QUANTILE columns only with mysql >= 8.0.28
cristiangreco Feb 24, 2025
99d131b
fix
cristiangreco Feb 25, 2025
f46fdd6
Merge pull request #922 from prometheus/cristian/ps_statements_quantiles
cristiangreco Feb 25, 2025
e84f4f2
Prepare release 0.17.2 (#923)
cristiangreco Feb 26, 2025
9547963
Bump github.com/google/go-cmp from 0.6.0 to 0.7.0 (#927)
dependabot[bot] Mar 2, 2025
0985023
Bump github.com/prometheus/client_golang from 1.20.5 to 1.21.0 (#928)
dependabot[bot] Mar 2, 2025
281aec8
Bump github.com/go-sql-driver/mysql from 1.8.1 to 1.9.0 (#929)
dependabot[bot] Mar 2, 2025
cedcf62
Update common Prometheus files (#932)
prombot Mar 8, 2025
36be4a7
Add exporter for RocksDB context metrics (#931)
cl-bvl Mar 8, 2025
46acc01
Update common Prometheus files (#939)
prombot Mar 23, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
199 changes: 83 additions & 116 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,134 +1,101 @@
---
version: 2.1

orbs:
prometheus: prometheus/prometheus@0.17.1
executors:
# Whenever the Go version is updated here, .travis.yml and .promu.yml
# Whenever the Go version is updated here, .promu.yml
# should also be updated.
golang:
docker:
- image: circleci/golang:1.12

- image: cimg/go:1.23
jobs:
test:
executor: golang

steps:
- checkout
- run: make promu
- run: make check_license style staticcheck unused build test-short
- run: git diff --exit-code
- store_artifacts:
path: mysqld_exporter
destination: /build/mysql_exporter
- run: rm -v mysqld_exporter

codespell:
- prometheus/setup_environment
- run: make check_license style staticcheck unused build test-short
- prometheus/store_artifact:
file: mysqld_exporter
integration:
docker:
- image: circleci/python

- image: cimg/go:1.23
- image: << parameters.mysql_image >>
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
MYSQL_ROOT_HOST: '%'
parameters:
mysql_image:
type: string
steps:
- checkout
- run: sudo pip install codespell
- run: codespell --skip=".git,./vendor,ttar,Makefile.common" -L uint,ist

build:
machine: true
working_directory: /home/circleci/.go_workspace/src/github.com/prometheus/mysqld_exporter

steps:
- checkout
- run: make promu
- run: promu crossbuild -v
- persist_to_workspace:
root: .
paths:
- .build
- store_artifacts:
path: .build
destination: /build

docker_hub_master:
executor: golang

steps:
- checkout
- setup_remote_docker
- attach_workspace:
at: .
- run: ln -s .build/linux-amd64/mysqld_exporter mysqld_exporter
- run: make docker
- run: make docker DOCKER_REPO=quay.io/prometheus
- run: docker images
- run: docker login -u $DOCKER_LOGIN -p $DOCKER_PASSWORD
- run: docker login -u $QUAY_LOGIN -p $QUAY_PASSWORD quay.io
- run: make docker-publish
- run: make docker-publish DOCKER_REPO=quay.io/prometheus

docker_hub_release_tags:
- checkout
- setup_remote_docker
- run: docker version
- run: docker-compose --version
- run: make build
- run: make test
mixin:
executor: golang

environment:
DOCKER_IMAGE_NAME: prom/mysqld-exporter
QUAY_IMAGE_NAME: quay.io/prometheus/mysqld-exporter

steps:
- checkout
- setup_remote_docker
- attach_workspace:
at: .
- run: make promu
- run: promu crossbuild tarballs
- run: promu checksum .tarballs
- run: promu release .tarballs
- store_artifacts:
path: .tarballs
destination: releases
- run: ln -s .build/linux-amd64/mysqld_exporter mysqld_exporter
- run: make docker DOCKER_IMAGE_TAG=$CIRCLE_TAG
- run: make docker DOCKER_IMAGE_TAG=$CIRCLE_TAG DOCKER_REPO=quay.io/prometheus
- run: docker login -u $DOCKER_LOGIN -p $DOCKER_PASSWORD
- run: docker login -u $QUAY_LOGIN -p $QUAY_PASSWORD quay.io
- run: |
if [[ "$CIRCLE_TAG" =~ ^v[0-9]+(\.[0-9]+){2}$ ]]; then
make docker-tag-latest DOCKER_IMAGE_TAG="$CIRCLE_TAG"
make docker-tag-latest DOCKER_IMAGE_TAG="$CIRCLE_TAG" DOCKER_REPO=quay.io/prometheus
make docker-publish DOCKER_IMAGE_TAG="latest"
make docker-publish DOCKER_IMAGE_TAG="latest" DOCKER_REPO=quay.io/prometheus
fi
- run: make docker-publish DOCKER_IMAGE_TAG="$CIRCLE_TAG"
- run: make docker-publish DOCKER_REPO=quay.io/prometheus DOCKER_IMAGE_TAG="$CIRCLE_TAG"

- checkout
- run: go install github.com/monitoring-mixins/mixtool/cmd/mixtool@latest
- run: go install github.com/google/go-jsonnet/cmd/jsonnetfmt@latest
- run: make -C mysqld-mixin lint build
workflows:
version: 2
mysqld_exporter:
jobs:
- test:
filters:
tags:
only: /.*/
- build:
filters:
tags:
only: /.*/
- codespell:
filters:
tags:
only: /.*/
- docker_hub_master:
context: org-context
requires:
- test
- build
filters:
branches:
only: master
- docker_hub_release_tags:
context: org-context
requires:
- test
- build
filters:
tags:
only: /^v[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)$/
branches:
ignore: /.*/
- test:
filters:
tags:
only: /.*/
- integration:
matrix:
parameters:
mysql_image:
- percona:5.6
- mysql:5.7.33
- mysql:8.0
- mysql:8.4
- mariadb:10.5
- mariadb:10.6
- mariadb:10.11
- mariadb:11.4
- prometheus/build:
name: build
parallelism: 3
promu_opts: "-p linux/amd64 -p windows/amd64 -p linux/arm64 -p darwin/amd64 -p darwin/arm64 -p linux/386"
filters:
tags:
ignore: /^v.*/
branches:
ignore: /^(main|release-.*|.*build-all.*)$/
- prometheus/build:
name: build_all
parallelism: 12
filters:
branches:
only: /^(main|release-.*|.*build-all.*)$/
tags:
only: /^v.*/
- mixin:
filters:
tags:
only: /.*/
- prometheus/publish_main:
context: org-context
requires:
- test
- build_all
filters:
branches:
only: main
- prometheus/publish_release:
context: org-context
requires:
- test
- build_all
filters:
tags:
only: /^v.*/
branches:
ignore: /.*/
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "gomod"
directory: "/"
schedule:
interval: "monthly"
57 changes: 57 additions & 0 deletions .github/workflows/container_description.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
---
name: Push README to Docker Hub
on:
push:
paths:
- "README.md"
- "README-containers.md"
- ".github/workflows/container_description.yml"
branches: [ main, master ]

permissions:
contents: read

jobs:
PushDockerHubReadme:
runs-on: ubuntu-latest
name: Push README to Docker Hub
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
- name: Set docker hub repo name
run: echo "DOCKER_REPO_NAME=$(make docker-repo-name)" >> $GITHUB_ENV
- name: Push README to Dockerhub
uses: christian-korneck/update-container-description-action@d36005551adeaba9698d8d67a296bd16fa91f8e8 # v1
env:
DOCKER_USER: ${{ secrets.DOCKER_HUB_LOGIN }}
DOCKER_PASS: ${{ secrets.DOCKER_HUB_PASSWORD }}
with:
destination_container_repo: ${{ env.DOCKER_REPO_NAME }}
provider: dockerhub
short_description: ${{ env.DOCKER_REPO_NAME }}
# Empty string results in README-containers.md being pushed if it
# exists. Otherwise, README.md is pushed.
readme_file: ''

PushQuayIoReadme:
runs-on: ubuntu-latest
name: Push README to quay.io
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
- 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
run: echo "DOCKER_REPO_NAME=$(make docker-repo-name)" >> $GITHUB_ENV
- name: Push README to quay.io
uses: christian-korneck/update-container-description-action@d36005551adeaba9698d8d67a296bd16fa91f8e8 # v1
env:
DOCKER_APIKEY: ${{ secrets.QUAY_IO_API_TOKEN }}
with:
destination_container_repo: ${{ env.DOCKER_REPO_NAME }}
provider: quay
# Empty string results in README-containers.md being pushed if it
# exists. Otherwise, README.md is pushed.
readme_file: ''
39 changes: 39 additions & 0 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
# This action is synced from https://github.com/prometheus/prometheus
name: golangci-lint
on:
push:
paths:
- "go.sum"
- "go.mod"
- "**.go"
- "scripts/errcheck_excludes.txt"
- ".github/workflows/golangci-lint.yml"
- ".golangci.yml"
pull_request:

permissions: # added using https://github.com/step-security/secure-repo
contents: read

jobs:
golangci:
permissions:
contents: read # for actions/checkout to fetch code
pull-requests: read # for golangci/golangci-lint-action to fetch pull requests
name: lint
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install Go
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
with:
go-version: 1.24.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@55c2c1448f86e01eaae002a5a3a9624417608d84 # v6.5.2
with:
args: --verbose
version: v1.64.6
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@
*-stamp
.idea
*.iml
/vendor
8 changes: 4 additions & 4 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
run:
modules-download-mode: vendor

---
# Run only staticcheck for now. Additional linters will be enabled one-by-one.
linters:
enable:
- staticcheck
- misspell
- staticcheck
- sloglint
disable-all: true
7 changes: 3 additions & 4 deletions .promu.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
go:
# Whenever the Go version is updated here, .travis.yml and
# .circle/config.yml should also be updated.
version: 1.12
# Whenever the Go version is updated here, .circle/config.yml should also
# be updated.
version: 1.23
repository:
path: github.com/prometheus/mysqld_exporter
build:
flags: -mod=vendor -a -tags netgo
ldflags: |
-X github.com/prometheus/common/version.Version={{.Version}}
-X github.com/prometheus/common/version.Revision={{.Revision}}
Expand Down
34 changes: 0 additions & 34 deletions .travis.yml

This file was deleted.

Loading