Commit Graph

634 Commits

Author SHA1 Message Date
dependabot[bot]
e868ef8446
Bump github.com/stretchr/testify from 1.8.4 to 1.9.0 (#207) 2024-03-12 09:15:22 +00:00
Artem Gavrilov
04645da80c
PMM-12897 Move DB specific metrics queries to low resolution (#199) 2024-03-07 13:40:55 +03:00
Artem Gavrilov
1b1eb48d55
Merge pull request #193 from percona/PMM-12893-rolling-collection-strategy
PMM-12894 Rolling strategy for connections utilization
2024-03-07 12:10:40 +02:00
Artem Gavrilov
0ba671d6da Merge remote-tracking branch 'origin/main' into PMM-12893-rolling-collection-strategy 2024-03-06 17:36:44 +02:00
Nurlan Moldomurov
6ae0186edc
PMM-12981 enable database wraparound collector. (#203) 2024-03-06 14:48:35 +03:00
dependabot[bot]
7cefaaae70
Bump golang.org/x/sys from 0.17.0 to 0.18.0 (#200)
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.17.0 to 0.18.0.
- [Commits](https://github.com/golang/sys/compare/v0.17.0...v0.18.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  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>
2024-03-04 23:47:27 +03:00
Artem Gavrilov
3785857894 PMM-12894 Fix metrics for master db 2024-02-26 21:28:00 +02:00
Artem Gavrilov
27e91bbd44 PMM-12894 Fix metrics collisions 2024-02-26 19:48:22 +02:00
Artem Gavrilov
7300148014 PMM-12894 Fix default exporter name 2024-02-26 18:59:10 +02:00
Artem Gavrilov
13516602b5 PMM-12893 Cleanup 2024-02-20 16:53:37 +02:00
Artem Gavrilov
96b7d12d15 PMM-12893 Fix handler logger 2024-02-20 16:52:55 +02:00
Artem Gavrilov
5c8b4e27d9 PMM-12894 Fix collectors names 2024-02-20 16:38:45 +02:00
Artem Gavrilov
7578a75279 Merge remote-tracking branch 'origin/main' into PMM-12893-rolling-collection-strategy 2024-02-20 16:31:35 +02:00
Artem Gavrilov
ba116e97b3 PMM-12894 Cleanup 2024-02-20 16:31:22 +02:00
dependabot[bot]
7e8a943970
Bump github.com/prometheus/client_model from 0.5.0 to 0.6.0 (#195)
Bumps [github.com/prometheus/client_model](https://github.com/prometheus/client_model) from 0.5.0 to 0.6.0.
- [Release notes](https://github.com/prometheus/client_model/releases)
- [Commits](https://github.com/prometheus/client_model/compare/v0.5.0...v0.6.0)

---
updated-dependencies:
- dependency-name: github.com/prometheus/client_model
  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>
2024-02-20 09:11:39 +00:00
dependabot[bot]
bbcceec999
Bump github.com/golangci/golangci-lint from 1.56.1 to 1.56.2 in /tools (#196)
Bumps [github.com/golangci/golangci-lint](https://github.com/golangci/golangci-lint) from 1.56.1 to 1.56.2.
- [Release notes](https://github.com/golangci/golangci-lint/releases)
- [Changelog](https://github.com/golangci/golangci-lint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/golangci/golangci-lint/compare/v1.56.1...v1.56.2)

---
updated-dependencies:
- dependency-name: github.com/golangci/golangci-lint
  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-02-20 00:11:49 +03:00
Artem Gavrilov
5a5b5ad515 PMM-12893 Cleanup and improvements 2024-02-19 14:21:59 +02:00
Artem Gavrilov
36ecf927ff PMM-12893 Cleanup 2024-02-19 14:04:03 +02:00
Artem Gavrilov
b33837eae2 PMM-12893 go mod tidy 2024-02-19 14:03:11 +02:00
Artem Gavrilov
a2e83b2456 PMM-12893 Make max connections value configurable 2024-02-16 18:34:12 +02:00
Artem Gavrilov
ae81fb7c19 PMM-12893 Use rolling strategy for connection utilization 2024-02-16 18:24:38 +02:00
Artem Gavrilov
8210082259 Partially revert 47295e8 2024-02-14 19:00:21 +02:00
Artem Gavrilov
4328194f15 Revert "PMM-12154 performance improvement."
This reverts commit 3e125ad52b.
2024-02-14 16:03:49 +02:00
dependabot[bot]
0b10d1aa11
Bump github.com/golangci/golangci-lint from 1.53.3 to 1.56.1 in /tools (#192)
Bumps [github.com/golangci/golangci-lint](https://github.com/golangci/golangci-lint) from 1.53.3 to 1.56.1.
- [Release notes](https://github.com/golangci/golangci-lint/releases)
- [Changelog](https://github.com/golangci/golangci-lint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/golangci/golangci-lint/compare/v1.53.3...v1.56.1)

---
updated-dependencies:
- dependency-name: github.com/golangci/golangci-lint
  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>
2024-02-13 12:48:42 +03:00
Alex Demidoff
729335a5d5
PMM-7 bump go up to 1.21 (#188)
* PMM-7 bump go up to 1.20

* PMM-7 bump go up to 1.21

* PMM-7 update dependencies

* PMM-7 tidy up the deps
2024-02-13 09:42:13 +00:00
dependabot[bot]
c6043584e9
Bump golangci/golangci-lint-action from 3.7.0 to 4.0.0 (#189)
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 3.7.0 to 4.0.0.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](3a91952989...3cfe3a4abb)

---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jiří Čtvrtka <62988319+JiriCtvrtka@users.noreply.github.com>
2024-02-13 09:12:24 +00:00
dependabot[bot]
ccd9894258
Bump golang.org/x/sys from 0.16.0 to 0.17.0 (#190)
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.16.0 to 0.17.0.
- [Commits](https://github.com/golang/sys/compare/v0.16.0...v0.17.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  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>
2024-02-13 10:09:59 +01:00
dependabot[bot]
a30029e893
Bump github.com/reviewdog/reviewdog from 0.16.0 to 0.17.0 in /tools (#187)
Bumps [github.com/reviewdog/reviewdog](https://github.com/reviewdog/reviewdog) from 0.16.0 to 0.17.0.
- [Release notes](https://github.com/reviewdog/reviewdog/releases)
- [Changelog](https://github.com/reviewdog/reviewdog/blob/master/CHANGELOG.md)
- [Commits](https://github.com/reviewdog/reviewdog/compare/v0.16.0...v0.17.0)

---
updated-dependencies:
- dependency-name: github.com/reviewdog/reviewdog
  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>
2024-01-23 12:16:10 +03:00
Alex Demidoff
6d0878f176
ci: remove the environment since unused (#186)
It's going to be much less noice on the PR :)
2024-01-18 10:20:10 +00:00
dependabot[bot]
cf75053a03
Bump github.com/DATA-DOG/go-sqlmock from 1.5.0 to 1.5.2 (#184)
Bumps [github.com/DATA-DOG/go-sqlmock](https://github.com/DATA-DOG/go-sqlmock) from 1.5.0 to 1.5.2.
- [Release notes](https://github.com/DATA-DOG/go-sqlmock/releases)
- [Commits](https://github.com/DATA-DOG/go-sqlmock/compare/v1.5.0...v1.5.2)

---
updated-dependencies:
- dependency-name: github.com/DATA-DOG/go-sqlmock
  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-01-18 13:13:49 +03:00
dependabot[bot]
51f03803c0
Bump github.com/tklauser/go-sysconf from 0.3.12 to 0.3.13 (#174)
Bumps [github.com/tklauser/go-sysconf](https://github.com/tklauser/go-sysconf) from 0.3.12 to 0.3.13.
- [Release notes](https://github.com/tklauser/go-sysconf/releases)
- [Commits](https://github.com/tklauser/go-sysconf/compare/v0.3.12...v0.3.13)

---
updated-dependencies:
- dependency-name: github.com/tklauser/go-sysconf
  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-01-17 11:30:19 +03:00
Nurlan Moldomurov
45ee42b933
PMM-12781 Disable pg wal collector by default. (#182) 2024-01-15 14:39:46 +03:00
dependabot[bot]
2b9735ee5e
Bump github.com/reviewdog/reviewdog from 0.15.0 to 0.16.0 in /tools (#178)
Bumps [github.com/reviewdog/reviewdog](https://github.com/reviewdog/reviewdog) from 0.15.0 to 0.16.0.
- [Release notes](https://github.com/reviewdog/reviewdog/releases)
- [Changelog](https://github.com/reviewdog/reviewdog/blob/master/CHANGELOG.md)
- [Commits](https://github.com/reviewdog/reviewdog/compare/v0.15.0...v0.16.0)

---
updated-dependencies:
- dependency-name: github.com/reviewdog/reviewdog
  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>
2024-01-15 09:45:15 +00:00
dependabot[bot]
35d23fb357
Bump actions/setup-go from 3.5.0 to 5.0.0 (#175)
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 3.5.0 to 5.0.0.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v3.5.0...v5)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-11 11:25:57 +00:00
dependabot[bot]
6ed6a3f6b3
Bump github.com/cloudflare/circl from 1.3.3 to 1.3.7 in /tools (#180)
Bumps [github.com/cloudflare/circl](https://github.com/cloudflare/circl) from 1.3.3 to 1.3.7.
- [Release notes](https://github.com/cloudflare/circl/releases)
- [Commits](https://github.com/cloudflare/circl/compare/v1.3.3...v1.3.7)

---
updated-dependencies:
- dependency-name: github.com/cloudflare/circl
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-11 11:22:10 +00:00
dependabot[bot]
e660512770
Bump golang.org/x/sys from 0.15.0 to 0.16.0 (#181)
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.15.0 to 0.16.0.
- [Commits](https://github.com/golang/sys/compare/v0.15.0...v0.16.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  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>
2024-01-11 14:18:57 +03:00
Francisco Miguel Biete Banon
69eb75f920
pg_replication_slots in standby (#147)
WAL functions cannot be executed in standby servers
```
ERROR:  recovery is in progress
HINT:  WAL control functions cannot be executed during recovery.
```

In PostgreSQL 16 replication slots persist in the standby servers.
This is also the case when using extensions like pg_failover_slots that transfer the slot information to the standby.

This condition will make those queries to return values only in the primary node avoiding the errors.

Co-authored-by: Jiří Čtvrtka <62988319+JiriCtvrtka@users.noreply.github.com>
Co-authored-by: Nurlan Moldomurov <nurlan.moldomurov@percona.com>
2024-01-10 08:09:48 +00:00
dependabot[bot]
58dd34528f
Bump golang.org/x/crypto from 0.14.0 to 0.17.0 (#176)
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.14.0 to 0.17.0.
- [Commits](https://github.com/golang/crypto/compare/v0.14.0...v0.17.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-03 11:48:58 +01:00
dependabot[bot]
d44c3d5f61
Bump github.com/alecthomas/kingpin/v2 from 2.3.2 to 2.4.0 (#172)
Bumps [github.com/alecthomas/kingpin/v2](https://github.com/alecthomas/kingpin) from 2.3.2 to 2.4.0.
- [Release notes](https://github.com/alecthomas/kingpin/releases)
- [Commits](https://github.com/alecthomas/kingpin/compare/v2.3.2...v2.4.0)

---
updated-dependencies:
- dependency-name: github.com/alecthomas/kingpin/v2
  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>
2023-11-20 23:27:38 +03:00
Jiří Čtvrtka
cc475843a1
PMM-11341 Include permissions in database query. (#162) 2023-11-16 11:33:37 +01:00
Nurlan Moldomurov
a31633e5f7
Merge pull request #170 from percona/PMM-12154-pull-upstream-changes
Pmm 12154 pull upstream changes
2023-11-15 16:56:34 +03:00
Nurlan Moldomurov
9d86c07476
Update go.sum 2023-11-15 16:55:42 +03:00
Nurlan Moldomurov
4f33f19862
Merge branch 'main' into PMM-12154-pull-upstream-changes 2023-11-15 16:55:02 +03:00
Nurlan Moldomurov
d8c068d8e1 PMM-7 add name to copy. 2023-11-15 16:38:27 +03:00
Joe Adams
f62273552e Adjust collector to use separate connection per scrape (#931)
Fixes #921

Signed-off-by: Joe Adams <github@joeadams.io>
(cherry picked from commit 2a5692c028)
2023-11-15 16:38:27 +03:00
dependabot[bot]
af66408bce
Bump golang.org/x/sys from 0.13.0 to 0.14.0 (#168)
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.13.0 to 0.14.0.
- [Commits](https://github.com/golang/sys/compare/v0.13.0...v0.14.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  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>
2023-11-10 09:23:09 +01:00
dependabot[bot]
9f62c3cb80
Bump github.com/prometheus/client_model from 0.4.0 to 0.5.0 (#164)
Bumps [github.com/prometheus/client_model](https://github.com/prometheus/client_model) from 0.4.0 to 0.5.0.
- [Release notes](https://github.com/prometheus/client_model/releases)
- [Commits](https://github.com/prometheus/client_model/compare/v0.4.0...v0.5.0)

---
updated-dependencies:
- dependency-name: github.com/prometheus/client_model
  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>
2023-10-31 06:59:42 +00:00
dependabot[bot]
8adbe7b886
Bump github.com/stretchr/testify from 1.8.2 to 1.8.4 (#163)
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.8.2 to 1.8.4.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.8.2...v1.8.4)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  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>
2023-10-31 09:55:23 +03:00
dependabot[bot]
0621a771f1
Bump github.com/prometheus/promu from 0.12.0 to 0.15.0 in /tools (#140)
Bumps [github.com/prometheus/promu](https://github.com/prometheus/promu) from 0.12.0 to 0.15.0.
- [Release notes](https://github.com/prometheus/promu/releases)
- [Changelog](https://github.com/prometheus/promu/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prometheus/promu/compare/v0.12.0...v0.15.0)

---
updated-dependencies:
- dependency-name: github.com/prometheus/promu
  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>
2023-10-30 08:11:04 +01:00
dependabot[bot]
866e32227c
Bump golang.org/x/net from 0.7.0 to 0.17.0 (#154)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.7.0 to 0.17.0.
- [Commits](https://github.com/golang/net/compare/v0.7.0...v0.17.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-26 17:20:19 +03:00