fix(deps): update module github.com/prometheus/alertmanager to v0.27.0
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
github.com/prometheus/alertmanager | require | minor |
v0.21.0 -> v0.27.0
|
Release Notes
prometheus/alertmanager (github.com/prometheus/alertmanager)
v0.27.0
: 0.27.0 / 2024-02-28
- [CHANGE] Discord Integration: Enforce max length in
message
. #3597 - [CHANGE] API: Removal of all
api/v1/
endpoints. These endpoints now log and return a deprecation message and respond with a status code of410
. #2970 - [FEATURE] UTF-8 Support: Introduction of support for any UTF-8 character as part of label names and matchers. Please read more below. #3453, #3483, #3567, #3570
- [FEATURE] Metrics: Introduced the experimental feature flag
--enable-feature=receiver-name-in-metrics
to include the receiver name in the following metrics: #3045alertmanager_notifications_total
alertmanager_notifications_failed_totall
alertmanager_notification_requests_total
alertmanager_notification_requests_failed_total
alertmanager_notification_latency_seconds
- [FEATURE] Metrics: Introduced a new gauge named
alertmanager_inhibition_rules
that counts the number of configured inhibition rules. #3681 - [FEATURE] Metrics: Introduced a new counter named
alertmanager_alerts_supressed_total
that tracks muted alerts, it contains areason
label to indicate the source of the mute. #3565 - [ENHANCEMENT] Discord Integration: Introduced support for
webhook_url_file
. #3555 - [ENHANCEMENT] Microsoft Teams Integration: Introduced support for
webhook_url_file
. #3555 - [ENHANCEMENT] Microsoft Teams Integration: Add support for
summary
. #3616 - [ENHANCEMENT] Metrics: Notification metrics now support two new values for the label
reason
,contextCanceled
andcontextDeadlineExceeded
. #3631 - [ENHANCEMENT] Email Integration: Contents of
auth_password_file
are now trimmed of prefixed and suffixed whitespace. #3680 - [BUGFIX] amtool: Fixes the error
scheme required for webhook url
when using amtool with--alertmanager.url
. #3509 - [BUGFIX] Mixin: Fix
AlertmanagerFailedToSendAlerts
,AlertmanagerClusterFailedToSendAlerts
, andAlertmanagerClusterFailedToSendAlerts
to make sure they ignore thereason
label. #3599
Removal of API v1
The Alertmanager v1
API has been deprecated since January 2019 with the release of Alertmanager v0.16.0
. With the release of version 0.27.0
it is now removed.
A successful HTTP request to any of the v1
endpoints will log and return a deprecation message while responding with a status code of 410
.
Please ensure you switch to the v2
equivalent endpoint in your integrations before upgrading.
Alertmanager support for all UTF-8 characters in matchers and label names
Starting with Alertmanager v0.27.0
, we have a new parser for matchers that has a number of backwards incompatible changes. While most matchers will be forward-compatible, some will not. Alertmanager is operating a transition period where it supports both UTF-8 and classic matchers, so it's entirely safe to upgrade without any additional configuration. With that said, we recommend the following:
-
If this is a new Alertmanager installation, we recommend enabling UTF-8 strict mode before creating an Alertmanager configuration file. You can enable strict mode with
alertmanager --config.file=config.yml --enable-feature="utf8-strict-mode"
. -
If this is an existing Alertmanager installation, we recommend running the Alertmanager in the default mode called fallback mode before enabling UTF-8 strict mode. In this mode, Alertmanager will log a warning if you need to make any changes to your configuration file before UTF-8 strict mode can be enabled. Alertmanager will make UTF-8 strict mode the default in the next two versions, so it's important to transition as soon as possible.
Irrespective of whether an Alertmanager installation is a new or existing installation, you can also use amtool
to validate that an Alertmanager configuration file is compatible with UTF-8 strict mode before enabling it in Alertmanager server by running amtool check-config config.yml
and inspecting the log messages.
Should you encounter any problems, you can run the Alertmanager with just the classic parser enabled by running alertmanager --config.file=config.yml --enable-feature="classic-mode"
. If so, please submit a bug report via GitHub issues.
v0.26.0
: 0.26.0 / 2023-08-23
- [SECURITY] Fix stored XSS via the /api/v1/alerts endpoint in the Alertmanager UI.
- [CHANGE] Telegram Integration:
api_url
is now optional. #2981 - [CHANGE] Telegram Integration:
ParseMode
default is nowHTML
instead ofMarkdownV2
. #2981 - [CHANGE] Webhook Integration:
url
is now marked as a secret. It will no longer show up in the logs as clear-text. #3228 - [CHANGE] Metrics: New label
reason
foralertmanager_notifications_failed_total
metric to indicate the type of error of the alert delivery. #3094 #3307 - [FEATURE] Clustering: New flag
--cluster.label
, to help to block any traffic that is not meant for the cluster. #3354 - [FEATURE] Integrations: Add Microsoft Teams as a supported integration. #3324
- [ENHANCEMENT] Telegram Integration: Support
bot_token_file
for loading this secret from a file. #3226 - [ENHANCEMENT] Webhook Integration: Support
url_file
for loading this secret from a file. #3223 - [ENHANCEMENT] Webhook Integration: Leading and trailing white space is now removed for the contents of
url_file
. #3363 - [ENHANCEMENT] Pushover Integration: Support options
device
andsound
(sound was previously supported but undocumented). #3318 - [ENHANCEMENT] Pushover Integration: Support
user_key_file
andtoken_file
for loading this secret from a file. #3200 - [ENHANCEMENT] Slack Integration: Support errors wrapped in successful (HTTP status code 200) responses. #3121
- [ENHANCEMENT] API: Add
CORS
andCache-Control
HTTP headers to all version 2 API routes. #3195 - [ENHANCEMENT] UI: Receiver name is now visible as part of the alerts page. #3289
- [ENHANCEMENT] Templating: Better default text when using
{{ .Annotations }}
and{{ .Labels }}
. #3256 - [ENHANCEMENT] Templating: Introduced a new function
trimSpace
which removes leading and trailing white spaces. #3223 - [ENHANCEMENT] CLI:
amtool silence query
now supports the--id
flag to query an individual silence. #3241 - [ENHANCEMENT] Metrics: Introduced
alertmanager_nflog_maintenance_total
andalertmanager_nflog_maintenance_errors_total
to monitor maintenance of the notification log. #3286 - [ENHANCEMENT] Metrics: Introduced
alertmanager_silences_maintenance_total
andalertmanager_silences_maintenance_errors_total
to monitor maintenance of silences. #3285 - [ENHANCEMENT] Logging: Log GroupKey and alerts on alert delivery when using debug mode. #3438
- [BUGFIX] Configuration: Empty list of
receivers
andinhibit_rules
would cause the alertmanager to crash. #3209 - [BUGFIX] Templating: Fixed a race condition when using the
title
function. It is now race-safe. #3278 - [BUGFIX] API: Fixed duplicate receiver names in the
api/v2/receivers
API endpoint. #3338 - [BUGFIX] API: Attempting to delete a silence now returns the correct status code,
404
instead of500
. #3352 - [BUGFIX] Clustering: Fixes a panic when
tls_client_config
is empty. #3443
v0.25.1
: 0.25.1 / 2023-08-23
- [SECURITY] Fix stored XSS via the /api/v1/alerts endpoint in the Alertmanager UI (CVE-2023-40577).
v0.25.0
: 0.25.0 / 2022-12-22
- [CHANGE] Change the default
parse_mode
value fromMarkdownV2
toHTML
for Telegram. #2981 - [CHANGE] Make
api_url
field optional for Telegram. #2981 - [CHANGE] Use CanonicalMIMEHeaderKey instead of TitleCasing for email headers. #3080
- [CHANGE] Reduce the number of notification logs broadcasted between peers by expiring them after (2 * repeat interval). #2982
- [FEATURE] Add
proxy_url
support for OAuth2 in HTTP client configuration. #3010 - [FEATURE] Reload TLS certificate and key from disk when updated. #3168
- [FEATURE] Add Discord integration. #2948
- [FEATURE] Add Webex integration. #3132
- [ENHANCEMENT] Add
--web.systemd-socket
flag to systemd socket activation listeners instead of port listeners (Linux only). #3140 - [ENHANCEMENT] Add
enable_http2
support in HTTP client configuration. #3010 - [ENHANCEMENT] Add
min_version
support to select the minimum TLS version in HTTP client configuration. #3010 - [ENHANCEMENT] Add
max_version
support to select the maximum TLS version in HTTP client configuration. #3168 - [ENHANCEMENT] Emit warning logs when truncating messages in notifications. #3145
- [ENHANCEMENT] Add
--data.maintenance-interval
flag to define the interval between the garbage collection and snapshotting to disk of the silences and the notification logs. #2849 - [ENHANCEMENT] Support HEAD method for the
/-/healty
and/-/ready
endpoints. #3039 - [ENHANCEMENT] Truncate messages with the
…
ellipsis character instead of the 3-dots string...
. #3072 - [ENHANCEMENT] Add support for reading global and local SMTP passwords from files. #3038
- [ENHANCEMENT] Add Location support to time intervals. #2782
- [ENHANCEMENT] UI: Add 'Link' button to alerts in list. #2880
- [ENHANCEMENT] Add the
source
field to the PagerDuty configuration. #3106 - [ENHANCEMENT] Add support for reading PagerDuty routing and service keys from files. #3107
- [ENHANCEMENT] Log response details when notifications fail for Webhooks, Pushover and VictorOps. #3103
- [ENHANCEMENT] UI: Allow to choose the first day of the week as Sunday or Monday. #3093
- [ENHANCEMENT] Add support for reading VictorOps API key from file. #3111
- [ENHANCEMENT] Support templating for Opsgenie's responder type. #3060
- [BUGFIX] Fail configuration loading if
api_key
andapi_key_file
are defined at the same time. #2910 - [BUGFIX] Fix the
alertmanager_alerts
metric to avoid counting resolved alerts as active. Also added a newalertmanager_marked_alerts
metric that retain the old behavior. #2943 - [BUGFIX] Trim contents of Slack API URLs when reading from files. #2929
- [BUGFIX] amtool: Avoid panic when the label value matcher is empty. #2968
- [BUGFIX] Fail configuration loading if
api_url
is empty for OpsGenie. #2910 - [BUGFIX] Fix email template for resolved notifications. #3166
- [BUGFIX] Use the HTML template engine when the parse mode is HTML for Telegram. #3183
v0.24.0
: 0.24.0 / 2022-03-24
- [CHANGE] Add the
/api/v2
prefix to all endpoints in the OpenAPI specification and generated client code. #2696 - [CHANGE] Remove the
github.com/prometheus/alertmanager/client
Go package. #2763 - [FEATURE] Add
--cluster.tls-config
experimental flag to secure cluster traffic via mutual TLS. #2237 - [FEATURE] Add support for active time intervals. Active and mute time intervals should be defined via
time_intervals
rather thanmute_time_intervals
(the latter is deprecated but it will be supported until v1.0). #2779 - [FEATURE] Add Telegram integration. #2827
- [ENHANCEMENT] Add
update_alerts
field to the OpsGenie configuration to update message and description when sending alerts. #2519 - [ENHANCEMENT] Add
--cluster.allow-insecure-public-advertise-address-discovery
feature flag to enable discovery and use of public IP addresses for clustering. #2719 - [ENHANCEMENT] Add
entity
andactions
fields to the OpsGenie configuration. #2753 - [ENHANCEMENT] Add
opsgenie_api_key_file
field to the global configuration. #2728 - [ENHANCEMENT] Add support for
teams
responders to the OpsGenie configuration. #2685 - [ENHANCEMENT] Add the User-Agent header to all notification requests. #2730
- [ENHANCEMENT] Re-enable HTTP/2. #2720
- [ENHANCEMENT] web: Add support for security-related HTTP headers. #2759
- [ENHANCEMENT] amtool: Allow filtering of silences by
createdBy
author. #2718 - [ENHANCEMENT] amtool: add
--http.config.file
flag to configure HTTP settings. #2764 - [BUGFIX] Fix HTTP client configuration for the SNS receiver. #2706
- [BUGFIX] Fix unclosed file descriptor after reading the silences snapshot file. #2710
- [BUGFIX] Fix field names for
mute_time_intervals
in JSON marshaling. #2765 - [BUGFIX] Ensure that the root route doesn't have any matchers. #2780
- [BUGFIX] Truncate the message's title to 1024 chars to avoid hitting Slack limits. #2774
- [BUGFIX] Fix the default HTML email template (
email.default.html
) to match with the canonical source. #2798 - [BUGFIX] Detect SNS FIFO topic based on the rendered value. #2819
- [BUGFIX] Avoid deleting and recreating a silence when an update is possible. #2816
- [BUGFIX] api/v2: Return 200 OK when deleting an expired silence. #2817
- [BUGFIX] amtool: Fix the silence's end date when adding a silence. The end date is (start date + duration) while it used to be (current time + duration). The new behavior is consistent with the update operation. #2741
v0.23.0
: 0.23.0 / 2021-08-25
- [FEATURE] Add AWS SNS receiver. #2615
- [FEATURE] amtool: add new template render command. #2538
- [ENHANCEMENT] amtool: Add ability to skip TLS verification for amtool. #2663
- [ENHANCEMENT] amtool: Detect version drift and warn users. #2672
- [BUGFIX] Time-based muting: Ensure time interval comparisons are in UTC. #2648
- [BUGFIX] amtool: Fix empty isEqual when talking to incompatible alertmanager. #2668
v0.22.2
: 0.22.2 / 2021-06-01
- [BUGFIX] Include pending silences for future muting decisions. #2590
v0.22.1
: 0.22.1 / 2021-05-27
This release addresses a regression in the API v1 that was introduced in 0.22.0. Matchers in silences created with the API v1 could be considered negative matchers. This affects users using amtool prior to v0.17.0.
- [BUGFIX] API v1: Decode matchers without isEqual are positive matchers. #2603
v0.22.0
: 0.22.0 / 2021-05-21
- [CHANGE] Amtool and Alertmanager binaries help now prints to stdout. #2505
- [CHANGE] Use path relative to the configuration file for certificates and password files. #2502
- [CHANGE] Display Silence and Alert dates in ISO8601 format. #2363
- [FEATURE] Add date picker to silence form views. #2262
- [FEATURE] Add support for negative matchers. #2434 #2460 and many more.
- [FEATURE] Add time-based muting to routing tree. #2393
- [FEATURE] Support TLS and basic authentication on the web server. #2446
- [FEATURE] Add OAuth 2.0 client support in HTTP client. #2560
- [ENHANCEMENT] Add composite durations in the configuration (e.g. 2h20m). #2353
- [ENHANCEMENT] Add follow_redirect option to disable following redirects. #2551
- [ENHANCEMENT] Add metric for permanently failed notifications. #2383
- [ENHANCEMENT] Add support for custom authorization scheme. #2499
- [ENHANCEMENT] Add support for not following HTTP redirects. #2499
- [ENHANCEMENT] Add support to set the Slack URL from a file. #2534
- [ENHANCEMENT] amtool: Add alert status to extended and simple output. #2324
- [ENHANCEMENT] Do not omit false booleans in the configuration page. #2317
- [ENHANCEMENT] OpsGenie: Propagate labels to Opsgenie details. #2276
- [ENHANCEMENT] PagerDuty: Filter out empty images and links. #2379
- [ENHANCEMENT] WeChat: add markdown support. #2309
- [BUGFIX] Fix a possible deadlock on shutdown. #2558
- [BUGFIX] UI: Fix extended printing of regex sign. #2445
- [BUGFIX] UI: Fix the favicon when using a path prefix. #2392
- [BUGFIX] Make filter labels consistent with Prometheus. #2403
- [BUGFIX] alertmanager_config_last_reload_successful takes templating failures into account. #2373
- [BUGFIX] amtool: avoid nil dereference in silence update. #2427
- [BUGFIX] VictorOps: Catch routing_key templating errors. #2467
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.