Commit Graph

3334 Commits

Author SHA1 Message Date
Simon Pasquier 7f1b261afe
Merge pull request #3913 from prometheus/dependabot/npm_and_yarn/ui/react-app/eslint-webpack-plugin-4.2.0
Bump eslint-webpack-plugin from 4.0.1 to 4.2.0 in /ui/react-app
2024-07-02 15:21:51 +02:00
dependabot[bot] c2a0e8ac0e
Bump eslint-webpack-plugin from 4.0.1 to 4.2.0 in /ui/react-app
Bumps [eslint-webpack-plugin](https://github.com/webpack-contrib/eslint-webpack-plugin) from 4.0.1 to 4.2.0.
- [Release notes](https://github.com/webpack-contrib/eslint-webpack-plugin/releases)
- [Changelog](https://github.com/webpack-contrib/eslint-webpack-plugin/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/eslint-webpack-plugin/compare/v4.0.1...v4.2.0)

---
updated-dependencies:
- dependency-name: eslint-webpack-plugin
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-02 07:33:12 +00:00
Simon Pasquier cc17be7b6f
Merge pull request #3911 from prometheus/dependabot/npm_and_yarn/ui/react-app/eslint-plugin-prettier-5.1.3
Bump eslint-plugin-prettier from 4.2.1 to 5.1.3 in /ui/react-app
2024-07-02 09:32:21 +02:00
Simon Pasquier 3a3dd06816
Merge pull request #3912 from prometheus/dependabot/npm_and_yarn/ui/react-app/css-loader-7.1.2
Bump css-loader from 6.7.3 to 7.1.2 in /ui/react-app
2024-07-02 09:32:02 +02:00
Simon Pasquier c200cfdcab
Merge pull request #3910 from prometheus/dependabot/go_modules/github.com/jessevdk/go-flags-1.6.1
Bump github.com/jessevdk/go-flags from 1.5.0 to 1.6.1
2024-07-02 09:31:30 +02:00
Simon Pasquier a3a8459245
Merge pull request #3909 from prometheus/dependabot/go_modules/gopkg.in/telebot.v3-3.3.6
Bump gopkg.in/telebot.v3 from 3.2.1 to 3.3.6
2024-07-02 09:30:33 +02:00
Simon Pasquier e6a3abbf17
Merge pull request #3908 from prometheus/dependabot/go_modules/github.com/prometheus/common-0.55.0
Bump github.com/prometheus/common from 0.54.0 to 0.55.0
2024-07-02 09:30:07 +02:00
Simon Pasquier 69272fccf0
Merge pull request #3907 from prometheus/dependabot/go_modules/github.com/aws/aws-sdk-go-1.54.11
Bump github.com/aws/aws-sdk-go from 1.53.14 to 1.54.11
2024-07-02 09:28:11 +02:00
dependabot[bot] 6e7976ca2a
Bump css-loader from 6.7.3 to 7.1.2 in /ui/react-app
Bumps [css-loader](https://github.com/webpack-contrib/css-loader) from 6.7.3 to 7.1.2.
- [Release notes](https://github.com/webpack-contrib/css-loader/releases)
- [Changelog](https://github.com/webpack-contrib/css-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/css-loader/compare/v6.7.3...v7.1.2)

---
updated-dependencies:
- dependency-name: css-loader
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-01 15:57:16 +00:00
dependabot[bot] 01a97d23a0
Bump eslint-plugin-prettier from 4.2.1 to 5.1.3 in /ui/react-app
Bumps [eslint-plugin-prettier](https://github.com/prettier/eslint-plugin-prettier) from 4.2.1 to 5.1.3.
- [Release notes](https://github.com/prettier/eslint-plugin-prettier/releases)
- [Changelog](https://github.com/prettier/eslint-plugin-prettier/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-plugin-prettier/compare/v4.2.1...v5.1.3)

---
updated-dependencies:
- dependency-name: eslint-plugin-prettier
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-01 15:56:58 +00:00
dependabot[bot] cd0cc19557
Bump github.com/jessevdk/go-flags from 1.5.0 to 1.6.1
Bumps [github.com/jessevdk/go-flags](https://github.com/jessevdk/go-flags) from 1.5.0 to 1.6.1.
- [Release notes](https://github.com/jessevdk/go-flags/releases)
- [Commits](https://github.com/jessevdk/go-flags/compare/v1.5.0...v1.6.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-01 15:41:11 +00:00
dependabot[bot] e429f564c8
Bump gopkg.in/telebot.v3 from 3.2.1 to 3.3.6
Bumps gopkg.in/telebot.v3 from 3.2.1 to 3.3.6.

---
updated-dependencies:
- dependency-name: gopkg.in/telebot.v3
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-01 15:41:03 +00:00
dependabot[bot] 24e34388dd
Bump github.com/prometheus/common from 0.54.0 to 0.55.0
Bumps [github.com/prometheus/common](https://github.com/prometheus/common) from 0.54.0 to 0.55.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.54.0...v0.55.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>
2024-07-01 15:40:58 +00:00
dependabot[bot] c317712214
Bump github.com/aws/aws-sdk-go from 1.53.14 to 1.54.11
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.53.14 to 1.54.11.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.53.14...v1.54.11)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-01 15:40:34 +00:00
dependabot[bot] 3b7a7e571f
Bump @emotion/react from 11.10.6 to 11.11.4 in /ui/react-app (#3787)
* Bump @emotion/react from 11.10.6 to 11.11.4 in /ui/react-app

Bumps [@emotion/react](https://github.com/emotion-js/emotion) from 11.10.6 to 11.11.4.
- [Release notes](https://github.com/emotion-js/emotion/releases)
- [Changelog](https://github.com/emotion-js/emotion/blob/main/CHANGELOG.md)
- [Commits](https://github.com/emotion-js/emotion/compare/@emotion/react@11.10.6...@emotion/react@11.11.4)

---
updated-dependencies:
- dependency-name: "@emotion/react"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update react-app assets

Signed-off-by: Simon Pasquier <spasquie@redhat.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Simon Pasquier <spasquie@redhat.com>
2024-07-01 13:59:03 +02:00
Simon Pasquier 1d943c1c52
Merge pull request #3888 from prometheus/dependabot/npm_and_yarn/ui/react-app/webpack-5.92.1
Bump webpack from 5.76.0 to 5.92.1 in /ui/react-app
2024-06-28 16:31:08 +02:00
Simon Pasquier bffed61b97
Update react-app assets
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2024-06-28 16:24:58 +02:00
dependabot[bot] a465885055
Bump webpack from 5.76.0 to 5.92.1 in /ui/react-app
Bumps [webpack](https://github.com/webpack/webpack) from 5.76.0 to 5.92.1.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.76.0...v5.92.1)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-28 14:16:34 +00:00
Simon Pasquier 4c1a187fef
Merge pull request #3788 from prometheus/dependabot/npm_and_yarn/ui/react-app/use-query-params-2.2.1
Bump use-query-params from 2.2.0 to 2.2.1 in /ui/react-app
2024-06-25 16:02:57 +02:00
dongjiang 7d615b778f
feat(env): add auto go maxprocs (#3837)
* add auto go maxprocs

---------

Signed-off-by: dongjiang1989 <dongjiang1989@126.com>
Signed-off-by: dongjiang <dongjiang1989@126.com>
2024-06-25 14:29:08 +02:00
George Robinson 94ac36b3e0
Fix MaxSilenceSizeBytes limit causes incomplete updates of existing silences (#3897)
This commit fixes a bug where the MaxSilenceSizeBytes limit can
cause an incomplete update of existing silences, where the old
silence can be expired but the new silence cannot be created
because it would exceed the maximum size limit.

Signed-off-by: George Robinson <george.robinson@grafana.com>
2024-06-25 13:23:09 +01:00
George Robinson 58dc6f8d33
Fix invalid silence causes incomplete updates (#3898)
This commit fixes a bug where an invalid silence causes incomplete
updates of existing silences. This is fixed moving validation
out of the setSilence method and putting it at the start of the
Set method instead.

Signed-off-by: George Robinson <george.robinson@grafana.com>
2024-06-25 12:38:33 +01:00
George Robinson b676fc4d2e
Add tests for create and then update silences (#3899)
This commit adds a unit test for the postSilencesHandler to
create and then update a silence. It shows that changing the
ID of an existing silence returns 404 Not Found, and removing
the ID of an existing silence re-creates that silence with
a different ID.

Signed-off-by: George Robinson <george.robinson@grafana.com>
2024-06-25 11:58:45 +01:00
George Robinson ffd7681fb4
Improve test coverage for silences (#3896)
This commit improves the existing test coverage for silences to
cover a number of additional cases, and also improve the comments
of existing cases.

Signed-off-by: George Robinson <george.robinson@grafana.com>
2024-06-24 15:32:16 +01:00
George Robinson b4443817e8
Fix MaxSilences limit causes incomplete updates of existing silences (#3877)
* Fix MaxSilences limit causes incomplete updates of existing silences

This commit fixes a bug where the MaxSilences limit can cause an
incomplete update of existing silences, where the old silence can
be expired but the new silence cannot be created because it would
exceeded the maximum number of silences.

Signed-off-by: George Robinson <george.robinson@grafana.com>

---------

Signed-off-by: George Robinson <george.robinson@grafana.com>
2024-06-24 15:11:10 +01:00
prombot 228cd12e65 Update common Prometheus files
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2024-06-21 17:47:40 +00:00
Simon Pasquier 36d653ab9f
Merge pull request #3755 from prometheus/dependabot/npm_and_yarn/ui/react-app/fork-ts-checker-webpack-plugin-9.0.2
Bump fork-ts-checker-webpack-plugin from 7.3.0 to 9.0.2 in /ui/react-app
2024-06-21 16:33:50 +02:00
Simon Pasquier 7c455af540
Merge pull request #3767 from prometheus/dependabot/npm_and_yarn/ui/react-app/webpack-5.76.0
Bump webpack from 5.75.0 to 5.76.0 in /ui/react-app
2024-06-21 16:32:36 +02:00
Simon Pasquier 1e6ca4f66d
Merge pull request #3732 from sathieu/default_smtp_tls_config
Support default SMTP TLS config
2024-06-21 16:32:14 +02:00
Simon Pasquier a03c2b9343
Merge pull request #3855 from prometheus/dependabot/go_modules/github.com/cespare/xxhash/v2-2.3.0
Bump github.com/cespare/xxhash/v2 from 2.2.0 to 2.3.0
2024-06-21 16:26:52 +02:00
Kapil Ramwani 25def02a7f
Fix: Hide config.SecretURL when the URL is incorrect. (#3887)
* fix: Hide config.SecretURL when the URL is incorrect.

    Updated the config.go to redact the URL.
    Added test cases to check URL stays hidden.
Signed-off-by: Kapil Ramwani(kanishkramwani6@gmail.com)

---------

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
Co-authored-by: Simon Pasquier <spasquie@redhat.com>
2024-06-21 16:19:06 +02:00
George Robinson 52eb1fc4aa
Rename matchers package to matcher singular (#3777)
* Rename matchers package to matcher singular

I realized that we had named the package plural "matchers" when
its idiomatic in Go to use singular package names.

---------

Signed-off-by: George Robinson <george.robinson@grafana.com>
2024-06-21 16:17:27 +02:00
PrometheusBot 04174d7d7b
Synchronize common files from prometheus/prometheus (#3848)
* Update common Prometheus files

Signed-off-by: prombot <prometheus-team@googlegroups.com>

* chore: fix test

Signed-off-by: Simon Pasquier <spasquie@redhat.com>

---------

Signed-off-by: prombot <prometheus-team@googlegroups.com>
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
Co-authored-by: Simon Pasquier <spasquie@redhat.com>
2024-06-21 16:14:46 +02:00
Simon Pasquier 02a017311e
Merge pull request #3881 from grobinson-grafana/grobinson/remove-id-from-set
Remove Id return from silences.Set(*pb.Silence)
2024-06-21 16:03:14 +02:00
dependabot[bot] 24be2dc3e3
Bump fork-ts-checker-webpack-plugin from 7.3.0 to 9.0.2 in /ui/react-app
Bumps [fork-ts-checker-webpack-plugin](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin) from 7.3.0 to 9.0.2.
- [Release notes](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/releases)
- [Changelog](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/blob/main/CHANGELOG.md)
- [Commits](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/compare/v7.3.0...v9.0.2)

---
updated-dependencies:
- dependency-name: fork-ts-checker-webpack-plugin
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-21 13:55:14 +00:00
George Robinson cc6de9c666 Remove Id return from silences.Set(*pb.Silence)
This commit removes the Id from the method silences.Set(*pb.Silence)
as it is redundant. The Id is still set even when creating a silence
fails. This will be fixed in a later change.

Signed-off-by: George Robinson <george.robinson@grafana.com>
2024-06-20 15:47:49 +01:00
George Robinson e690fbe250
Rename silence limit to max-silence-size-bytes (#3886)
* Rename silence limit to max-silence-size-bytes

This commit renames an existing (unreleased) limit from
max-per-silence-bytes to max-silence-size-bytes.

Signed-off-by: George Robinson <george.robinson@grafana.com>

* Update help

Signed-off-by: George Robinson <george.robinson@grafana.com>

---------

Signed-off-by: George Robinson <george.robinson@grafana.com>
2024-06-20 15:20:52 +01:00
George Robinson 124da3462d
Silence limits as functions (#3885)
* Silence limits as functions

This commit changes silence limits from a struct of ints to a struct
of functions that return individual limits. This allows limits
to be lazy-loaded and updated without having to call silences.New().

Signed-off-by: George Robinson <george.robinson@grafana.com>

* Add explicit test for no limits

Signed-off-by: George Robinson <george.robinson@grafana.com>

* Fix run()

Signed-off-by: George Robinson <george.robinson@grafana.com>

---------

Signed-off-by: George Robinson <george.robinson@grafana.com>
2024-06-20 14:50:53 +01:00
George Robinson db32fab612
Replace incorrect use of fmt.Errorf (#3883) 2024-06-20 12:02:05 +01:00
Emmanuel Lodovice 730bd752d1
Return error when TmplText errors in sns notifier (#3879)
* Return error when TmplText errors in sns notifier

Signed-off-by: Emmanuel Lodovice <lodovice@amazon.com>

* Use fmt.Errorf instead of errors.Wrap

Signed-off-by: Emmanuel Lodovice <lodovice@amazon.com>

---------

Signed-off-by: Emmanuel Lodovice <lodovice@amazon.com>
2024-06-17 09:44:11 +01:00
gotjosh 7e2cd80c2d
Revert "Return error when TmplText errors in sns notifier (#3531)" (#3876)
This reverts commit 603a72800e.
2024-06-14 10:27:32 +01:00
Emmanuel Lodovice 603a72800e
Return error when TmplText errors in sns notifier (#3531)
Signed-off-by: Emmanuel Lodovice <lodovice@amazon.com>
2024-06-13 08:21:49 +01:00
dependabot[bot] b59669f438
Bump golang.org/x/tools from 0.20.0 to 0.22.0 (#3867)
Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.20.0 to 0.22.0.
- [Release notes](https://github.com/golang/tools/releases)
- [Commits](https://github.com/golang/tools/compare/v0.20.0...v0.22.0)

---
updated-dependencies:
- dependency-name: golang.org/x/tools
  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-06-06 09:13:59 +01:00
dependabot[bot] 6e27339d67
Bump github.com/cespare/xxhash/v2 from 2.2.0 to 2.3.0
Bumps [github.com/cespare/xxhash/v2](https://github.com/cespare/xxhash) from 2.2.0 to 2.3.0.
- [Commits](https://github.com/cespare/xxhash/compare/v2.2.0...v2.3.0)

---
updated-dependencies:
- dependency-name: github.com/cespare/xxhash/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-06 08:09:34 +00:00
dependabot[bot] b8a6390dd6
Bump github.com/aws/aws-sdk-go from 1.52.3 to 1.53.14 (#3856)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.52.3 to 1.53.14.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.52.3...v1.53.14)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  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-06-06 09:08:32 +01:00
Sergey 33e680a34d
feat: add time helpers (#3863)
Signed-off-by: Sergey <freak12techno@gmail.com>
Co-authored-by: gotjosh <josue.abreu@gmail.com>
2024-06-05 15:23:42 +01:00
George Robinson f9d5a08759
Fix TestSilenceLimits tests (#3866)
This commit fixes silence tests that relied on the maintenance
function running at a fixed 100ms interval. If the go runtime
that runs the maintenance is not scheduled with 150ms then the
test will fail.

Signed-off-by: George Robinson <george.robinson@grafana.com>
2024-06-05 15:03:00 +01:00
dependabot[bot] 2c189d81d9
Bump golang.org/x/text from 0.14.0 to 0.15.0 (#3854)
Bumps [golang.org/x/text](https://github.com/golang/text) from 0.14.0 to 0.15.0.
- [Release notes](https://github.com/golang/text/releases)
- [Commits](https://github.com/golang/text/compare/v0.14.0...v0.15.0)

---
updated-dependencies:
- dependency-name: golang.org/x/text
  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-06-03 18:39:46 +01:00
dependabot[bot] e74466904a
Bump github.com/prometheus/client_golang from 1.19.0 to 1.19.1 (#3857)
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.19.0 to 1.19.1.
- [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.19.0...v1.19.1)

---
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-06-03 18:39:01 +01:00
George Robinson dbe6312f09
Limits should include expired silences (#3862)
* Limits should include expired silences

Signed-off-by: George Robinson <george.robinson@grafana.com>

* Fix docs

Signed-off-by: George Robinson <george.robinson@grafana.com>

---------

Signed-off-by: George Robinson <george.robinson@grafana.com>
2024-06-03 09:12:19 +01:00