Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Alertmanager vendor #6560

Merged
merged 7 commits into from
Nov 20, 2023
Merged

Update Alertmanager vendor #6560

merged 7 commits into from
Nov 20, 2023

Conversation

alexweav
Copy link
Contributor

@alexweav alexweav commented Nov 3, 2023

What this PR does

Upgrades the vendoring of Alertmanager to the latest tip of main.

Which issue(s) this PR fixes or relates to

n/a

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

@@ -378,13 +379,14 @@ func (am *Alertmanager) ApplyConfig(userID string, conf *config.Config, rawCfg s
for _, ti := range conf.TimeIntervals {
timeIntervals[ti.Name] = ti.TimeIntervals
}
intervener := timeinterval.NewIntervener(timeIntervals)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New layer wrapping the time intervals map: prometheus/alertmanager#3556

@@ -474,7 +476,7 @@ func buildReceiverIntegrations(nc config.Receiver, tmpl *template.Template, fire
return
}
n = wrapper(name, n)
integrations = append(integrations, notify.NewIntegration(n, rs, name, i))
integrations = append(integrations, notify.NewIntegration(n, rs, name, i, nc.Name))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alexweav alexweav marked this pull request as ready for review November 3, 2023 22:15
@alexweav alexweav requested review from grafanabot and a team as code owners November 3, 2023 22:15
@stevesg stevesg self-requested a review November 3, 2023 22:24
Copy link
Contributor

@gotjosh gotjosh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

No new file-based configurations that we need to restrict, the aws-sdk version bump seems safe and the majority of the changes come from the fact that I updated the open API generator which added harmless changes to the generated models for the Alertmanager client.

@@ -694,6 +689,7 @@ type PushoverConfig struct {
Priority string `yaml:"priority,omitempty" json:"priority,omitempty"`
Retry duration `yaml:"retry,omitempty" json:"retry,omitempty"`
Expire duration `yaml:"expire,omitempty" json:"expire,omitempty"`
TTL duration `yaml:"ttl,omitempty" json:"ttl,omitempty"`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to let the frontend folks know that this option is now support in Mimir so that Grafana can be adjusted. cc: @gillesdemey

@gotjosh gotjosh enabled auto-merge (squash) November 17, 2023 21:29
@gotjosh
Copy link
Contributor

gotjosh commented Nov 17, 2023

@grafana/mimir-maintainers this is good to go, but I can't merge due to restrictions - can someone please hit the green button? TIA

@alexweav alexweav force-pushed the alexweav/upgrade-alertmanager branch from ffd53fc to 421d65a Compare November 20, 2023 14:08
@gotjosh gotjosh merged commit 515cc50 into main Nov 20, 2023
28 checks passed
@gotjosh gotjosh deleted the alexweav/upgrade-alertmanager branch November 20, 2023 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants