1
0
mirror of https://github.com/prometheus/mysqld_exporter.git synced 2025-04-18 09:24:02 +03:00

769 Commits

Author SHA1 Message Date
Cristian Greco
f5b6d99d0e
Merge pull request #943 from prometheus/dependabot/go_modules/github.com/go-sql-driver/mysql-1.9.1
Bump github.com/go-sql-driver/mysql from 1.9.0 to 1.9.1
2025-04-09 10:07:36 +02:00
Cristian Greco
6ef207e681
Merge pull request #942 from prometheus/repo_sync
Synchronize common files from prometheus/prometheus
2025-04-09 10:07:03 +02:00
dependabot[bot]
658198cad0
Bump github.com/go-sql-driver/mysql from 1.9.0 to 1.9.1
Bumps [github.com/go-sql-driver/mysql](https://github.com/go-sql-driver/mysql) from 1.9.0 to 1.9.1.
- [Release notes](https://github.com/go-sql-driver/mysql/releases)
- [Changelog](https://github.com/go-sql-driver/mysql/blob/master/CHANGELOG.md)
- [Commits](https://github.com/go-sql-driver/mysql/compare/v1.9.0...v1.9.1)

---
updated-dependencies:
- dependency-name: github.com/go-sql-driver/mysql
  dependency-version: 1.9.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-01 19:03:30 +00:00
prombot
ffd0fdbfda Update common Prometheus files
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2025-03-28 17:48:53 +00:00
PrometheusBot
46acc010dd
Update common Prometheus files (#939)
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2025-03-23 16:59:46 +01:00
Vladimir Buyanov
36be4a76ff
Add exporter for RocksDB context metrics (#931)
Signed-off-by: Vladimir Buyanov <b.vladimir@clickadu.com>
2025-03-09 00:14:33 +01:00
PrometheusBot
cedcf62bb1
Update common Prometheus files (#932)
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2025-03-08 15:05:46 +01:00
dependabot[bot]
281aec8120
Bump github.com/go-sql-driver/mysql from 1.8.1 to 1.9.0 (#929)
Bumps [github.com/go-sql-driver/mysql](https://github.com/go-sql-driver/mysql) from 1.8.1 to 1.9.0.
- [Release notes](https://github.com/go-sql-driver/mysql/releases)
- [Changelog](https://github.com/go-sql-driver/mysql/blob/master/CHANGELOG.md)
- [Commits](https://github.com/go-sql-driver/mysql/compare/v1.8.1...v1.9.0)

---
updated-dependencies:
- dependency-name: github.com/go-sql-driver/mysql
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-02 20:53:58 +01:00
dependabot[bot]
09850237e9
Bump github.com/prometheus/client_golang from 1.20.5 to 1.21.0 (#928)
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.20.5 to 1.21.0.
- [Release notes](https://github.com/prometheus/client_golang/releases)
- [Changelog](https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prometheus/client_golang/compare/v1.20.5...v1.21.0)

---
updated-dependencies:
- dependency-name: github.com/prometheus/client_golang
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-02 20:42:39 +01:00
dependabot[bot]
9547963c66
Bump github.com/google/go-cmp from 0.6.0 to 0.7.0 (#927)
Bumps [github.com/google/go-cmp](https://github.com/google/go-cmp) from 0.6.0 to 0.7.0.
- [Release notes](https://github.com/google/go-cmp/releases)
- [Commits](https://github.com/google/go-cmp/compare/v0.6.0...v0.7.0)

---
updated-dependencies:
- dependency-name: github.com/google/go-cmp
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-02 20:42:27 +01:00
Cristian Greco
e84f4f22f8
Prepare release 0.17.2 (#923)
Signed-off-by: Cristian Greco <cristian@regolo.cc>
v0.17.2
2025-02-26 08:12:31 +01:00
Cristian Greco
f46fdd6d55
Merge pull request #922 from prometheus/cristian/ps_statements_quantiles
Use QUANTILE columns only with mysql >= 8.0.28
2025-02-25 12:21:52 +01:00
Cristian Greco
99d131b009 fix
Signed-off-by: Cristian Greco <cristian@regolo.cc>
2025-02-25 09:49:48 +01:00
Cristian Greco
dd80986aad Use QUANTILE columns only with mysql >= 8.0.28
Followup of #916 and #920. These columns are not available in MariaDB.

Signed-off-by: Cristian Greco <cristian@regolo.cc>
2025-02-24 21:56:07 +01:00
Cristian Greco
ce68e7b555
Merge pull request #921 from prometheus/cristian/release-0.17.1
Prepare release 0.17.1
v0.17.1
2025-02-21 21:12:27 +01:00
Cristian Greco
77210b0843 Prepare release 0.17.1
Signed-off-by: Cristian Greco <cristian@regolo.cc>
2025-02-21 20:26:04 +01:00
Cristian Greco
18c62ac6af
Merge pull request #920 from prometheus/cristian/fix-events-stmts-query-printf
Fix query on perf_schema.events_statements_summary_by_digest
2025-02-21 20:22:53 +01:00
Cristian Greco
67f514f7a7 Fix query on perf_schema.events_statements_summary_by_digest
Followup of https://github.com/prometheus/mysqld_exporter/pull/916,
where I wrongly deleted query params formatting.

Signed-off-by: Cristian Greco <cristian@regolo.cc>
2025-02-21 20:07:01 +01:00
Cristian Greco
c325602039
Merge pull request #917 from prometheus/cristian/release-0.16.1
Prepare release 0.17.0
v0.17.0
2025-02-21 16:18:30 +01:00
Cristian Greco
3d2c6d8ac1 update version
Signed-off-by: Cristian Greco <cristian@regolo.cc>
2025-02-21 16:12:26 +01:00
Cristian Greco
92feb6536a Prepare release 0.17.0
Update changelog for 0.17.0.

Signed-off-by: Cristian Greco <cristian@regolo.cc>
2025-02-20 18:25:53 +01:00
Thomas Venieris
2db8b5fd84
Add missing metrics_path to multi-target example (#899)
Addresses issue 815:
https://github.com/prometheus/mysqld_exporter/issues/815

Like the author of the issue, I also used the example in the README file
to setup scraping with Prometheus only to discover that by default the
/metrics end-point is scraped instead.

Signed-off-by: Thomas Venieris <thomas.venieris@gmail.com>
2025-02-19 12:10:05 +01:00
dependabot[bot]
10b9e926d7
Bump github.com/prometheus/common from 0.61.0 to 0.62.0 (#912)
Bumps [github.com/prometheus/common](https://github.com/prometheus/common) from 0.61.0 to 0.62.0.
- [Release notes](https://github.com/prometheus/common/releases)
- [Changelog](https://github.com/prometheus/common/blob/main/RELEASE.md)
- [Commits](https://github.com/prometheus/common/compare/v0.61.0...v0.62.0)

---
updated-dependencies:
- dependency-name: github.com/prometheus/common
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-14 16:44:37 +01:00
Cristian Greco
9bddc1aa7a
Merge pull request #916 from cristiangreco/cristian/issue-905
Fix #905: use SUM_LOCK_TIME and SUM_CPU_TIME with mysql >= 8.0.28
2025-02-14 14:41:01 +01:00
Cristian Greco
f96e207215
Merge branch 'prometheus:main' into cristian/issue-905 2025-02-14 12:56:47 +01:00
Cristian Greco
28bb162de3 use two separate queries and add tests
Signed-off-by: Cristian Greco <cristian@regolo.cc>
2025-02-14 12:53:33 +01:00
Jason Ng
a802109c48
Fix database quoting problem in collector 'info_schema.tables' (#908)
Signed-off-by: Jason Ng <oblitorum@gmail.com>
Co-authored-by: Cristian Greco <cristian@regolo.cc>
2025-02-14 10:16:23 +01:00
Benedikt Heine
770a3ffb7e
Fix typo for locahost (#914)
This must be a typo in the README only.

There is no other occurence when doing `git grep locahost` for this
value.

Signed-off-by: Benedikt Heine <bebe@bebehei.de>
Co-authored-by: Ben Kochie <superq@gmail.com>
2025-02-14 10:14:30 +01:00
Daniel Black
27ef617b9c
Update Mixin dashboard to editable: false (#911)
This was reported by the mixtool lint:
  mixtool lint mixin.libsonnet
  [uneditable-dashboard] 'MySQL': Dashboard 'MySQL' is editable, it should be set to 'editable: false'

Signed-off-by: Daniel Black <daniel@mariadb.org>
2025-02-14 09:37:05 +01:00
Cristian Greco
22c7a26ad3 Fix #905: use SUM_LOCK_TIME and SUM_CPU_TIME with mysql >= 8.0.28
Fix issue introduced in https://github.com/prometheus/mysqld_exporter/pull/862

Only query SUM_LOCK_TIME and SUM_CPU_TIME when using MySQL >= 8.0.28.

Fixes https://github.com/prometheus/mysqld_exporter/issues/905

Signed-off-by: Cristian Greco <cristian@regolo.cc>
2025-02-10 22:22:50 +01:00
PrometheusBot
c6a1d2be49
Update common Prometheus files (#915)
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2025-02-09 09:20:00 +01:00
PrometheusBot
b51a99ca35
Update common Prometheus files (#907)
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2025-01-16 09:59:38 +01:00
dependabot[bot]
c407e35c62
Bump github.com/prometheus/exporter-toolkit from 0.13.1 to 0.13.2 (#903)
Bumps [github.com/prometheus/exporter-toolkit](https://github.com/prometheus/exporter-toolkit) from 0.13.1 to 0.13.2.
- [Release notes](https://github.com/prometheus/exporter-toolkit/releases)
- [Changelog](https://github.com/prometheus/exporter-toolkit/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prometheus/exporter-toolkit/compare/v0.13.1...v0.13.2)

---
updated-dependencies:
- dependency-name: github.com/prometheus/exporter-toolkit
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-01 21:14:55 +01:00
PrometheusBot
7bd13baec1
Update common Prometheus files (#901)
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2024-12-29 19:18:20 +01:00
MattNolf
2ef168bf68
Add perf_schema quantile columns to collector (#897)
* Use summary to represent query latency quantiles.

This change replaces the individual quantile (95,99,999) metrics
with a summary that captures those respective quantiles. Enables
a more prometheus native representation of the data.

---------

Signed-off-by: Matt Nolf <matt.nolf@grafana.com>
2024-11-28 15:53:43 +01:00
PrometheusBot
8c897e047e
Update common Prometheus files (#894)
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2024-11-26 18:45:06 +01:00
PrometheusBot
d6ae7aaf8d
Update common Prometheus files (#893)
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2024-11-12 19:22:08 +01:00
PrometheusBot
08969ebeca
Update common Prometheus files (#892)
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2024-11-10 14:31:37 +01:00
Ben Kochie
c366424252
Release v0.16.0 (#891)
* [CHANGE] Replace logging library go-kit/log with slog #875
* [FEATURE] Support for prometheus scrape timeout in probe endpoint #828
* [ENHANCEMENT] Support MySQL 8.4 replicas syntax #837
* [ENHANCEMENT] Fetch lock time and cpu time from performance schema #862
* [ENHANCEMENT] Add the instance struct to handle connections #859
* [ENHANCEMENT] Optimize code by using built-in constants in the standard lib #844
* [BUGFIX] Fix fetching tmpTables vs tmpDiskTables from performance_schema #853
* [BUGFIX] Skip SPACE_TYPE column for MariaDB >=10.5 #860
* [BUGFIX] Fixed parsing of timestamps with non-zero padded days #841
* [BUGFIX] Fix auto_increment metric collection errors caused by using collation in INFORMATION_SCHEMA searches #833
* [BUGFIX] Fix race condition in ReloadConfig #760
* [BUGFIX] Change processlist query to support ONLY_FULL_GROUP_BY sql_mode #684
* [BUGFIX] replication_applier_status_by_worker requires mysql 8.0 #683
* [BUGFIX] Update docker registry link in README.md #813
* [BUGFIX] Fix Docker run command and update documentation for cnf file handling #843
* [BUGFIX] info_schema_tables: do not collect the sys schema #879

Signed-off-by: SuperQ <superq@gmail.com>
v0.16.0
2024-11-08 16:55:27 +01:00
Cristian Greco
cac4d10ea8
Release 0.16.0 (#889)
Changes:
* [CHANGE] Replace logging library go-kit/log with slog #875
* [FEATURE] Support for prometheus scrape timeout in probe endpoint #828
* [ENHANCEMENT] Support MySQL 8.4 replicas syntax #837
* [ENHANCEMENT] Fetch lock time and cpu time from performance schema #862
* [ENHANCEMENT] Add the instance struct to handle connections #859
* [ENHANCEMENT] Optimize code by using built-in constants in the standard lib #844
* [BUGFIX] Fix fetching tmpTables vs tmpDiskTables from performance_schema #853
* [BUGFIX] Skip SPACE_TYPE column for MariaDB >=10.5 #860
* [BUGFIX] Fixed parsing of timestamps with non-zero padded days #841
* [BUGFIX] Fix auto_increment metric collection errors caused by using collation in INFORMATION_SCHEMA searches #833
* [BUGFIX] Fix race condition in ReloadConfig #760
* [BUGFIX] Change processlist query to support ONLY_FULL_GROUP_BY sql_mode #684
* [BUGFIX] replication_applier_status_by_worker requires mysql 8.0 #683
* [BUGFIX] Update docker registry link in README.md #813
* [BUGFIX] Fix Docker run command and update documentation for cnf file handling #843
* [BUGFIX] info_schema_tables: do not collect the sys schema #879

Signed-off-by: Cristian Greco <cristian@regolo.cc>
2024-11-08 16:52:53 +01:00
Ben Kochie
694449fba5
Update Go version (#890)
Update Go build to 1.23.

Signed-off-by: SuperQ <superq@gmail.com>
2024-11-08 16:52:38 +01:00
Florent Rivoire
762b1e7a90
info_schema_tables: do not collect the sys schema (#879)
Signed-off-by: Florent Rivoire <frivoire@users.noreply.github.com>
2024-11-08 15:15:02 +01:00
dependabot[bot]
8f88a6069c
Bump github.com/prometheus/client_golang from 1.20.4 to 1.20.5 (#888)
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.20.4 to 1.20.5.
- [Release notes](https://github.com/prometheus/client_golang/releases)
- [Changelog](https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prometheus/client_golang/compare/v1.20.4...v1.20.5)

---
updated-dependencies:
- dependency-name: github.com/prometheus/client_golang
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-08 15:10:32 +01:00
PrometheusBot
e07a5a800c
Update common Prometheus files (#882)
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2024-11-08 11:55:11 +01:00
dependabot[bot]
bed2b5d9f7
Bump github.com/prometheus/exporter-toolkit from 0.13.0 to 0.13.1 (#887)
Bumps [github.com/prometheus/exporter-toolkit](https://github.com/prometheus/exporter-toolkit) from 0.13.0 to 0.13.1.
- [Release notes](https://github.com/prometheus/exporter-toolkit/releases)
- [Changelog](https://github.com/prometheus/exporter-toolkit/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prometheus/exporter-toolkit/compare/v0.13.0...v0.13.1)

---
updated-dependencies:
- dependency-name: github.com/prometheus/exporter-toolkit
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-08 11:54:53 +01:00
PrometheusBot
04268cc9d9
Update common Prometheus files (#872)
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2024-10-10 18:05:24 +02:00
TJ Hoplock
be5dc65671
chore!: adopt log/slog, drop go-kit/log (#875)
* chore!: adopt log/slog, drop go-kit/log

Requires: prometheus/common#697

This PR includes:
- linter updates to enable `sloglint` linter
- Go dep updates for prometheus/{client_golang,common,exporter-toolkit}
  libs
- refactorings to adopt log/slog in favor of go-kit/log

The bulk of this PR was automated by the following script which is being
used to aid in converting the various exporters/projects to use slog:

https://gist.github.com/tjhop/49f96fb7ebbe55b12deee0b0312d8434

Builds and passes tests locally with go workspaces and up-to-date main
branch of prometheus/common.

Signed-off-by: TJ Hoplock <t.hoplock@gmail.com>

* build(deps): bump prometheus/common to v0.60.0

Signed-off-by: TJ Hoplock <t.hoplock@gmail.com>

---------

Signed-off-by: TJ Hoplock <t.hoplock@gmail.com>
2024-10-10 18:04:21 +02:00
Daniel Swarbrick
abc1816f37
Bump exporter-toolkit and fix associated test (#873)
Bump exporter-toolkit dependency to v0.12.0 and fix a (IMHO overly
brittle) test that breaks due to a cosmetic change in the landing page.

Signed-off-by: Daniel Swarbrick <daniel.swarbrick@gmail.com>
2024-09-19 11:45:45 -07:00
PrometheusBot
4a9137109a
Update common Prometheus files (#870)
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2024-09-14 14:52:36 +02:00
PrometheusBot
a1503cf655
Update common Prometheus files (#866)
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2024-08-29 21:58:58 +02:00