Emmanuel Lodovice
263ca5c943
api/v2: Delete silence respond with 404 when silence is not found ( #3352 )
...
Signed-off-by: Emmanuel Lodovice <lodovice@amazon.com>
2023-05-05 14:06:26 +01:00
Simon Pasquier
fe287e504e
Merge pull request #3306 from simonpasquier/update-http-config-doc
...
docs: document the new proxy-related settings
2023-05-05 14:29:57 +02:00
Alec
3b9cd0408e
Add support for pushover devices ( #3318 )
...
* Add support for pushover devices
Signed-off-by: Alec Pinson <30310787+alec-pinson@users.noreply.github.com>
* update docs
Signed-off-by: Alec Pinson <30310787+alec-pinson@users.noreply.github.com>
---------
Signed-off-by: Alec Pinson <30310787+alec-pinson@users.noreply.github.com>
2023-05-05 13:04:47 +01:00
gotjosh
0f3ab929fa
Slack Notifier: Only return an error when it actually occurs ( #3350 )
2023-05-02 17:59:37 +01:00
Simon Pasquier
0f14383b61
Merge pull request #3346 from prometheus/dependabot/go_modules/github.com/rs/cors-1.9.0
...
Bump github.com/rs/cors from 1.8.3 to 1.9.0
2023-05-02 11:57:23 +02:00
Simon Pasquier
a4cb0f02f2
Merge pull request #3347 from prometheus/dependabot/go_modules/github.com/benbjohnson/clock-1.3.3
...
Bump github.com/benbjohnson/clock from 1.3.0 to 1.3.3
2023-05-02 11:48:55 +02:00
Simon Pasquier
9ee7fa211c
Merge pull request #3348 from prometheus/dependabot/go_modules/github.com/prometheus/client_golang-1.15.0
...
Bump github.com/prometheus/client_golang from 1.14.0 to 1.15.0
2023-05-02 11:28:19 +02:00
Simon Pasquier
6655b197f0
Merge pull request #3349 from prometheus/dependabot/go_modules/golang.org/x/text-0.9.0
...
Bump golang.org/x/text from 0.8.0 to 0.9.0
2023-05-02 11:24:59 +02:00
Simon Pasquier
91ec55ea65
Merge pull request #3345 from prometheus/dependabot/go_modules/gopkg.in/telebot.v3-3.1.3
...
Bump gopkg.in/telebot.v3 from 3.1.2 to 3.1.3
2023-05-02 11:24:30 +02:00
dependabot[bot]
c5b12567e6
Bump golang.org/x/text from 0.8.0 to 0.9.0
...
Bumps [golang.org/x/text](https://github.com/golang/text ) from 0.8.0 to 0.9.0.
- [Release notes](https://github.com/golang/text/releases )
- [Commits](https://github.com/golang/text/compare/v0.8.0...v0.9.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>
2023-05-01 15:58:26 +00:00
dependabot[bot]
74ee0f4775
Bump github.com/prometheus/client_golang from 1.14.0 to 1.15.0
...
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang ) from 1.14.0 to 1.15.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.14.0...v1.15.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>
2023-05-01 15:58:17 +00:00
dependabot[bot]
78196164da
Bump github.com/benbjohnson/clock from 1.3.0 to 1.3.3
...
Bumps [github.com/benbjohnson/clock](https://github.com/benbjohnson/clock ) from 1.3.0 to 1.3.3.
- [Release notes](https://github.com/benbjohnson/clock/releases )
- [Commits](https://github.com/benbjohnson/clock/compare/v1.3.0...v1.3.3 )
---
updated-dependencies:
- dependency-name: github.com/benbjohnson/clock
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-05-01 15:58:10 +00:00
dependabot[bot]
c53ce9bfc4
Bump github.com/rs/cors from 1.8.3 to 1.9.0
...
Bumps [github.com/rs/cors](https://github.com/rs/cors ) from 1.8.3 to 1.9.0.
- [Release notes](https://github.com/rs/cors/releases )
- [Commits](https://github.com/rs/cors/compare/v1.8.3...v1.9.0 )
---
updated-dependencies:
- dependency-name: github.com/rs/cors
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-05-01 15:58:04 +00:00
dependabot[bot]
96ced5205a
Bump gopkg.in/telebot.v3 from 3.1.2 to 3.1.3
...
Bumps gopkg.in/telebot.v3 from 3.1.2 to 3.1.3.
---
updated-dependencies:
- dependency-name: gopkg.in/telebot.v3
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-05-01 15:57:57 +00:00
Francois Gouteroux
29ed85891f
fix: change receiver model pointer to value ( #3338 )
...
* fix: change receiver pointer to value and add test
Signed-off-by: François Gouteroux <francois.gouteroux@gmail.com>
---------
Signed-off-by: François Gouteroux <francois.gouteroux@gmail.com>
2023-04-28 16:00:19 +01:00
gotjosh
4dc20154f6
add reason code to slack notifier ( #3252 )
...
* add reason code to slack notifier
this uses the new error with reason to determine based on status code what the reason is for the slack integration
partial #3231
Signed-off-by: gotjosh <josue.abreu@gmail.com>
* Add some tests
Signed-off-by: gotjosh <josue.abreu@gmail.com>
* Handle the error
Signed-off-by: gotjosh <josue.abreu@gmail.com>
---------
Signed-off-by: gotjosh <josue.abreu@gmail.com>
2023-04-28 14:05:56 +01:00
r0nn
f040f089aa
fix wechat notifier response field name ( #3330 )
...
Signed-off-by: gotjosh <josue.abreu@gmail.com>
2023-04-28 12:40:49 +01:00
Yijie Qin
9a8d1f976e
add reason code to notifiers ( #3307 )
...
* add reason code to notifiers
Signed-off-by: Yijie Qin <qinyijie@amazon.com>
2023-04-07 17:05:17 +02:00
Simon Pasquier
bb1c123b7f
Merge pull request #3226 from an5t/telegram-token-file
...
Support loading Telegram bot token from file
2023-04-06 17:15:17 +02:00
Simon Pasquier
2888649b47
Merge pull request #3314 from prometheus/dependabot/go_modules/github.com/go-openapi/strfmt-0.21.7
...
Bump github.com/go-openapi/strfmt from 0.21.3 to 0.21.7
2023-04-03 12:00:30 +02:00
Simon Pasquier
fb7ce70f90
Merge pull request #3316 from prometheus/dependabot/go_modules/github.com/aws/aws-sdk-go-1.44.234
...
Bump github.com/aws/aws-sdk-go from 1.44.211 to 1.44.234
2023-04-03 11:46:29 +02:00
Simon Pasquier
74df564cba
Merge pull request #3313 from prometheus/dependabot/go_modules/github.com/hashicorp/golang-lru/v2-2.0.2
...
Bump github.com/hashicorp/golang-lru/v2 from 2.0.1 to 2.0.2
2023-04-03 11:30:50 +02:00
Simon Pasquier
4676fca5a5
Merge pull request #3312 from prometheus/dependabot/go_modules/golang.org/x/tools-0.7.0
...
Bump golang.org/x/tools from 0.6.0 to 0.7.0
2023-04-03 11:29:45 +02:00
dependabot[bot]
372afd3091
Bump github.com/aws/aws-sdk-go from 1.44.211 to 1.44.234
...
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go ) from 1.44.211 to 1.44.234.
- [Release notes](https://github.com/aws/aws-sdk-go/releases )
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.211...v1.44.234 )
---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-04-01 15:59:23 +00:00
dependabot[bot]
beadc540d5
Bump github.com/go-openapi/strfmt from 0.21.3 to 0.21.7
...
Bumps [github.com/go-openapi/strfmt](https://github.com/go-openapi/strfmt ) from 0.21.3 to 0.21.7.
- [Release notes](https://github.com/go-openapi/strfmt/releases )
- [Commits](https://github.com/go-openapi/strfmt/compare/v0.21.3...v0.21.7 )
---
updated-dependencies:
- dependency-name: github.com/go-openapi/strfmt
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-04-01 15:58:45 +00:00
dependabot[bot]
4390cffda6
Bump github.com/hashicorp/golang-lru/v2 from 2.0.1 to 2.0.2
...
Bumps [github.com/hashicorp/golang-lru/v2](https://github.com/hashicorp/golang-lru ) from 2.0.1 to 2.0.2.
- [Release notes](https://github.com/hashicorp/golang-lru/releases )
- [Commits](https://github.com/hashicorp/golang-lru/compare/v2.0.1...v2.0.2 )
---
updated-dependencies:
- dependency-name: github.com/hashicorp/golang-lru/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-04-01 15:58:33 +00:00
dependabot[bot]
4f9e921ef3
Bump golang.org/x/tools from 0.6.0 to 0.7.0
...
Bumps [golang.org/x/tools](https://github.com/golang/tools ) from 0.6.0 to 0.7.0.
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.6.0...v0.7.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>
2023-04-01 15:58:17 +00:00
Simon Pasquier
5004dff1f8
docs: document the new proxy-related settings
...
The version of `github.com/prometheus/common` imported by Alertmanager
adds several fields to the `http_config` and `oauth2` structs for
setting proxy parameters:
* `no_proxy`
* `proxy_from_environment`
* `proxy_connect_header`
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2023-03-28 11:35:04 +02:00
Simon Pasquier
747430cd42
Merge pull request #3303 from prometheus/repo_sync
...
Synchronize common files from prometheus/prometheus
2023-03-22 18:35:46 +01:00
prombot
dcf5dd0d3f
Update common Prometheus files
...
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2023-03-21 17:49:30 +00:00
Julien Pivotto
14a265b710
Add receiver name to the alerts page ( #3289 )
...
Signed-off-by: Julien Pivotto <roidelapluie@o11y.eu>
2023-03-09 16:32:13 +00:00
Simon Pasquier
e35e13d7a1
Merge pull request #3266 from mrueg/kingpinv2
...
Update gopkg.in/alecthomas/kingpin.v2 to github.com/alecthomas/kingpin/v2
2023-03-08 21:16:29 +01:00
Manuel Rüger
f2f411094e
Update gopkg.in/alecthomas/kingpin.v2 to github.com/alecthomas/kingpin/v2
...
Upstream changed package name, see:
https://github.com/alecthomas/kingpin#overview
Signed-off-by: Manuel Rüger <manuel@rueg.eu>
2023-03-08 15:02:24 +01:00
gotjosh
3ee2cd0f12
Metrics: Silence maintenance success and failure ( #3285 )
...
* Metrics: Silence maintenance success and failure
Due to various reasons, we've observed different kind of errors on this area. From read-only disks to silly code bugs.
Errors during maintenance are effectively a _data loss_ and therefore we should encourage proper monitoring of this area.
This PR Introduces a total and failure metric for silence maintenance. If agreed, I'll do the same for the nflog and fix the flaky test like I did for silences while I'm there.
Signed-off-by: gotjosh <josue.abreu@gmail.com>
2023-03-08 12:32:59 +00:00
gotjosh
28925efbd8
Metrics: Notification log maintenance success and failure ( #3286 )
...
* Metrics: Notification log maintenance success and failure
Due to various reasons, we've observed different kind of errors on this area. From read-only disks to silly code bugs. Errors during maintenance are effectively a data loss and therefore, we should encourage proper monitoring of this area.
Similar to #3285
---------
Signed-off-by: gotjosh <josue.abreu@gmail.com>
2023-03-08 10:29:05 +00:00
George Robinson
72b0cb0f40
Fix comments as per Josh's feedback ( #3284 )
2023-03-07 11:25:20 +00:00
George Robinson
012dbc9d81
Fix corruption in templates that use title function ( #3278 )
...
This commit fixes data corruption in templates that use the title
function as it used a shared cases.Title when casers should not
be shared between goroutines. When templates that used the title
function were executed at the same time, data corruption would occur
in the text that was being cased. This is fixed using a separate
caser for each function call.
Add tests to assertDefaultFuncs are thread-safe
Signed-off-by: George Robinson <george.robinson@grafana.com>
2023-03-07 11:37:39 +01:00
Soon-Ping
6bb49b2f1c
Added note on data retention to documentation for repeat_interval ( #3147 )
...
* Added note on data retention to documentation for repeat_interval
Signed-off-by: Soon-Ping Phang <soonping@amazon.com>
---------
Signed-off-by: Soon-Ping Phang <soonping@amazon.com>
2023-03-07 11:27:12 +01:00
Ghazanfar
d8bea84adc
Make TrimSpace available for use in the template ( #3281 )
...
* Make TrimSpace available for use in the template
Signed-off-by: Ghazanfar <ghazanfar.isc@gmail.com>
2023-03-07 09:38:57 +01:00
Simon Rozet
41eb1213bb
support loading webhook URL from a file ( #3223 )
...
* support loading webhook URL from a file
/cc #2498
Signed-off-by: Simon Rozet <me@simonrozet.com>
* notify/webhook: add test for reading url from file
Signed-off-by: Simon Rozet <me@simonrozet.com>
* notify/pushover: add tests for reading secrets from files
Signed-off-by: Simon Rozet <me@simonrozet.com>
---------
Signed-off-by: Simon Rozet <me@simonrozet.com>
2023-03-03 15:31:14 +01:00
Simon Pasquier
44bb5c9bd3
Merge pull request #3272 from prometheus/dependabot/go_modules/golang.org/x/tools-0.6.0
...
Bump golang.org/x/tools from 0.4.0 to 0.6.0
2023-03-03 11:49:29 +01:00
dependabot[bot]
65fb326421
Bump golang.org/x/tools from 0.4.0 to 0.6.0
...
Bumps [golang.org/x/tools](https://github.com/golang/tools ) from 0.4.0 to 0.6.0.
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.4.0...v0.6.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>
2023-03-02 16:28:40 +00:00
Simon Pasquier
60d01e287b
Merge pull request #3271 from prometheus/dependabot/go_modules/github.com/stretchr/testify-1.8.2
...
Bump github.com/stretchr/testify from 1.8.1 to 1.8.2
2023-03-02 17:27:31 +01:00
Simon Pasquier
158d4a9828
Merge pull request #3273 from prometheus/dependabot/go_modules/golang.org/x/text-0.7.0
...
Bump golang.org/x/text from 0.6.0 to 0.7.0
2023-03-02 17:27:13 +01:00
Simon Pasquier
0fc6b556e8
Merge pull request #3268 from prometheus/dependabot/go_modules/github.com/aws/aws-sdk-go-1.44.211
...
Bump github.com/aws/aws-sdk-go from 1.44.191 to 1.44.211
2023-03-02 17:26:56 +01:00
Augustin Husson
6809cf2ef1
deactivate button based on the location
...
Signed-off-by: Augustin Husson <augustin.husson@amadeus.com>
2023-03-02 14:46:50 +01:00
Augustin Husson
1927ba4fe0
simplify url-builder function
...
Signed-off-by: Augustin Husson <augustin.husson@amadeus.com>
2023-03-02 11:19:04 +01:00
dependabot[bot]
3061701437
Bump github.com/go-openapi/validate from 0.22.0 to 0.22.1 ( #3269 )
...
Bumps [github.com/go-openapi/validate](https://github.com/go-openapi/validate ) from 0.22.0 to 0.22.1.
- [Release notes](https://github.com/go-openapi/validate/releases )
- [Commits](https://github.com/go-openapi/validate/compare/v0.22.0...v0.22.1 )
---
updated-dependencies:
- dependency-name: github.com/go-openapi/validate
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-03-01 16:06:11 +00:00
dependabot[bot]
28d2baa973
Bump golang.org/x/text from 0.6.0 to 0.7.0
...
Bumps [golang.org/x/text](https://github.com/golang/text ) from 0.6.0 to 0.7.0.
- [Release notes](https://github.com/golang/text/releases )
- [Commits](https://github.com/golang/text/compare/v0.6.0...v0.7.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>
2023-03-01 15:58:56 +00:00
dependabot[bot]
94879d9e2a
Bump github.com/stretchr/testify from 1.8.1 to 1.8.2
...
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify ) from 1.8.1 to 1.8.2.
- [Release notes](https://github.com/stretchr/testify/releases )
- [Commits](https://github.com/stretchr/testify/compare/v1.8.1...v1.8.2 )
---
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>
2023-03-01 15:58:44 +00:00