1
0
mirror of https://github.com/coreos/prometheus-operator.git synced 2026-02-05 06:45:27 +01:00

962 Commits

Author SHA1 Message Date
Rajat Vig
c111fdfd3c Merge pull request #8348 from rajatvig/feat/bodysizelimit-sc
scrapeconfig: add bodySizeLimit field
2026-02-02 14:29:18 +01:00
Hélia Barroso
446c84244d fix: sns templating issue (#8320)
* fix: sns templating issue
2026-01-29 15:55:23 +05:30
Jayapriya Pai
2ddd67fbf7 chore: cut v0.88.1
Signed-off-by: Jayapriya Pai <slashpai9@gmail.com>
2026-01-28 08:54:41 +05:30
Simon Pasquier
3bdb9c0537 fix: relax URL validation on WebhookConfig
Relates to #8315

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2026-01-28 08:54:00 +05:30
Jayapriya Pai
7376128340 fix: allow templated URLs in PagerDuty config fields
Change ClientURL and Href fields in PagerDutyConfig, PagerDutyImageConfig,
and PagerDutyLinkConfig from *URL to *string to support Go templates.

Related-to #8315

Signed-off-by: Jayapriya Pai <slashpai9@gmail.com>
2026-01-28 08:53:59 +05:30
Simon Pasquier
d4b0f495dc fix: relax validation on RocketChat template URLs
Relates to #8315

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2026-01-28 08:53:59 +05:30
Simon Pasquier
181b8dd396 fix: relax validation on Pushover URL
The Pushover URL can be a template string.

Related to #8315

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2026-01-28 08:53:59 +05:30
Hélia Barroso
a547a6d4c1 fix: am slack templating issue 2026-01-28 08:53:54 +05:30
Hélia Barroso
e17fd68b55 fix: typo in am discord receiver (#8293)
Signed-off-by: Hélia Barroso <helia_barroso@hotmail.com>
2026-01-19 10:15:20 +01:00
Listell McLean
f064750055 alertmanager: add hostNetwork support
Allows Alertmanager Pods to use the host's network namespace by adding the hostNetwork field to the AlertmanagerSpec.
2026-01-14 18:08:52 +00:00
Nutmos
e7e119fbba Feat: Add validations to SNS Receiver in Alertmanager Config CR (#8217)
* api: update variable type

to match the type of optional and add more validation

* am-validation: add url validation and test case

to semantically verify URL

* alertmanager: move test case to operator

to validate at the correct part

* validation: update validation method and error message

for a clear validation and clean code

* validation: update validationSnsConfig method

to let the compiler guess variable type

* validation: update import order

to fix golang lint check

* trigger ci
2026-01-13 21:06:54 +01:00
Nutmos
455778f38c Merge pull request #8271 from nutmos/feat/wechat-receiver-string-validation
Feat: Add WeChat Receiver String Validations
2026-01-13 16:54:29 +01:00
Nutmos
7cf511edf6 Feat: Add validations to Email Receiver in Alertmanager Config (#8270)
* alertmanager: update type of variables in email config

to have stricter validation

* amcfg: update test cases

to match the new variable type

* e2e: update test cases

to match new var type

* validation: update error log

to match variable type

* api: allow empty string in html

to align with the expected behaviour
2026-01-13 14:45:14 +01:00
Nutmos
7bc5a41a76 Feat: Add OpsGenie Receiver String Validations (#8267)
* alertmanager: add validations and update variable type

to cover more validations

* validation: update test case

to match the new type of variable
2026-01-12 17:07:05 +01:00
Jayapriya Pai
7d1d99052d chore: cut v0.88.0
Signed-off-by: Jayapriya Pai <slashpai9@gmail.com>
2026-01-09 15:03:07 +05:30
Nutmos
37ac74f402 Merge pull request #8235 from nutmos/feat/add-slack-validations
Feat: Add Validations to Slack Receiver in Alertmanager Config CR
2026-01-07 14:19:49 +01:00
Hélia Barroso
2abf82c647 feat: Add scope support for AzureAD Remote Write (#8240)
* feat: add scope support for azuread rw

Signed-off-by: Hélia Barroso <helia_barroso@hotmail.com>

* fix: rebase

Signed-off-by: Hélia Barroso <helia_barroso@hotmail.com>

---------

Signed-off-by: Hélia Barroso <helia_barroso@hotmail.com>
2026-01-07 12:43:06 +00:00
Lukas Paluch
b45259dc4f docs(alertmanager_types.go): fix misleading doc for WebexConfig
issue was introduced in f3bd79f142
2026-01-07 12:15:13 +01:00
Hélia Barroso
327d864f3a feat: add azure auth workload_identity (#7998)
* feat: add azure workload idendity

* feat: add azure workload identity

Signed-off-by: Hélia Barroso <helia_barroso@hotmail.com>

* Update pkg/prometheus/operator.go

Co-authored-by: Simon Pasquier <spasquie@redhat.com>

* Update pkg/prometheus/operator.go

Co-authored-by: Simon Pasquier <spasquie@redhat.com>

* feat: checks

Signed-off-by: Hélia Barroso <helia_barroso@hotmail.com>

* feat: tests

Signed-off-by: Hélia Barroso <helia_barroso@hotmail.com>

* feat: tests thanos

Signed-off-by: Hélia Barroso <helia_barroso@hotmail.com>

* fix: comments

Signed-off-by: Hélia Barroso <helia_barroso@hotmail.com>

* fix: comments

Signed-off-by: Hélia Barroso <helia_barroso@hotmail.com>

* fix: tests

Signed-off-by: Hélia Barroso <helia_barroso@hotmail.com>

---------

Signed-off-by: Hélia Barroso <helia_barroso@hotmail.com>
Co-authored-by: Simon Pasquier <spasquie@redhat.com>
2026-01-07 11:10:05 +00:00
Nutmos
a5f0f7f0c5 Feat: Add Validations to Pushover Receiver in Alertmanager Config CR (#8239)
* alertmanager: update pushover variables, add validations and update conversion method

to have more strict validations

* validation: add url validation for pushover config

to cover more use case of validation

* amcfg: update test case

to fix var error
2026-01-07 10:33:12 +01:00
slashexx
2f624871ef add remaining CEL Validations
Signed-off-by: slashexx <dhruvpuri.35@gmail.com>
2026-01-07 10:39:09 +05:30
Nutmos
0a6303acba Feat: Add validations for PagerDuty Receiver in Alertmanager Config CR (#8113)
* change type to url, remove operator check and add semantic validation

* update conversion config

* trigger ci

* change url to pointer and regenerate files

* add empty string test case

* update test case

* update url

* update back url validation in operator

* trigger ci

* remove url validation from operator

* trigger ci

* add exclusion of empty string

* fix typo

* add e2e test case for url

* alertmanager: update optional var type to *string and add minlength validation

to have stricter validation

* validation: update url validation

to use the new method validatURLPtr

* alertmanager: change href to URL and add validation

to cover more cases
2026-01-06 15:41:08 +01:00
Nutmos
137c9eff00 Feat: Add VictorOps Receiver CR Validations (#8220)
* alertmanager: update type

to add more validation

* validation: fix issue

wrong type

* Change to deref for shorter implementation

* alertmanager: fix typo

to address the variable type issue

* validation: update url validation

to use the new method
2026-01-05 17:14:11 +01:00
Simon Pasquier
9db1527060 feat: use minReadySeconds as default first delay
This commit removes the `dispatchStartDelay` field from the Alertmanager
CRD and uses instead the `minReadySeconds` value as the default
duration to delay the first flush of aggregation groups.

When Kubernetes performs pod updates (due to spec updates or pod
eviction),`minReadySeconds` defines how long a statefulset's pod should
be ready before kube-controller-manager can proceed with the next pod
update. The main use case of `minReadySeconds` is to ensure that
Prometheus has resent all alerts before updating the next pod hence it
makes sense for Alertmanager to wait the same amount of time before
sending alert notifications. Users who want to use another value for
`--dispatch.start-delay` can customize it using the
`.spec.additionalArgs` field.

The removal of `dispatchStartDelay` is possible because the field hasn't
been made available in any public release.

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2026-01-05 12:05:37 +01:00
Simon Pasquier
bcf1866513 Merge pull request #8202 from simonpasquier/support-update-strategy
feat: expose update strategy for workloads
2026-01-05 11:59:01 +01:00
Nutmos
6a92553ec0 Feat: Add URL validation for Webhook receiver (#8125)
* update to url type

* update generated files

* update e2e test cases

* trigger ci

* update url validation method

* trigger ci

* validation: update validation method

make the url validation shorter
2025-12-24 15:12:05 +01:00
Nutmos
11651486ce Feat: Add API URL validation for OpsGenie receiver in CR (#8206)
* add url validation for opsgenie CR

* trigger ci

* add opsgenie test case

* update validation

* fix linter
2025-12-24 12:44:42 +00:00
Varun Deep Saini
a1f0fcba66 api: add listType markers to AlertmanagerConfig v1alpha1 (#8207)
* api: add listType markers to AlertmanagerConfig v1alpha1

* resolve comments

* fixes
2025-12-24 13:34:37 +01:00
Nutmos
39145f810d Feat: Add API URL validation for WeChat receiver in CR (#8196)
* reupdate file

* trigger ci
2025-12-24 11:56:28 +01:00
Simon Pasquier
19febac62b feat: expose update strategy for workloads
This commit introduces a new `updateStrategy` field for
statefulset-based workloads (Prometheus, PrometheusAgent, Alertmanager
and ThanosRuler). While for now, there's a 1:1 mapping with StatefulSet
strategies, it paves the way to the introduction of custom strategies
which may be required to streamline operations in case of broken updates
(similar to the scenario explained in
https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#forced-rollback).

Closes #5435

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2025-12-23 14:31:34 +01:00
dongjiang
d504fac8b7 chore: Refactor tracingConfig for alertmanager (#8192)
---------

Signed-off-by: dongjiang1989 <dongjiang1989@126.com>
2025-12-22 13:43:09 +01:00
Nutmos
b4b6cd8d21 Feat: Add API URL validation for Telegram receiver in CR (#8199)
* change api url to url type and add validation

* update test case
2025-12-22 13:34:36 +01:00
Simon Pasquier
4fc65465fa chore: unify HTTP configuration for ServiceMonitor CRD (#8139)
* chore: unify HTTP configuration for ServiceMonitor CRD

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

* test: fix Alertmanager unit tests

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

* test: fix Prometheus unit tests

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

* test: fix e2e tests

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

* test: fix pkg/apis/monitoring tests

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

---------

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2025-12-19 13:11:51 +01:00
Nutmos
65da264330 Merge pull request #8177 from nutmos/feat/add-support-dispatch.start-delay-flag
Feat: Add the new dispatch.start-delay flag for Alertmanager
2025-12-17 14:13:56 +00:00
Hélia Barroso
f3b2dae17e Merge pull request #8161 from heliapb/feat/add_timeout_slack
feat: add timeout to alertmanager slack config
2025-12-17 14:02:34 +00:00
Hélia Barroso
4c31ea2f71 fix: rebase, ci
Signed-off-by: Hélia Barroso <helia_barroso@hotmail.com>
2025-12-16 18:24:02 +00:00
Hélia Barroso
e724e9d353 feat: add timeout to alertmanager pagerduty config
Signed-off-by: Hélia Barroso <helia_barroso@hotmail.com>
2025-12-16 18:16:11 +00:00
Simon Pasquier
9712d0ea93 Merge branch 'release-0.87' into merge-release-0.87
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2025-12-10 14:58:54 +01:00
Simon Pasquier
650bf3c06e chore: cut v0.87.1
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2025-12-09 17:39:56 +01:00
Hélia Barroso
6382f83e0a feat: add status subresource to AlertmanagerConfig (#7999)
* feat: add status subresource to alertmanager

Signed-off-by: Hélia Barroso <helia_barroso@hotmail.com>

* feat: add am config beta

Signed-off-by: Hélia Barroso <helia_barroso@hotmail.com>

---------

Signed-off-by: Hélia Barroso <helia_barroso@hotmail.com>
2025-12-08 11:21:50 +01:00
Hélia Barroso
89e92af73f Merge pull request #8102 from heliapb/feat/add_scrape_native_histograms
feat: add `scrape_native_histograms`
2025-12-08 11:17:27 +01:00
Simon Pasquier
f09aa3caf4 feat: expose pod management policy for workloads
This commit introduces a new `podManagementPolicy` field for
statefulset-based workloads (Prometheus, PrometheusAgent, Alertmanager
and ThanosRuler). While the default will still be `Parallel`, users have
expressed the need to use `OrderedReady` in specific situations.

Closes #2753

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2025-11-28 20:07:21 +01:00
Simon Pasquier
fb6d4439a2 Merge pull request #8112 from simonpasquier/unify-http-config-for-probes
feat: unify HTTP configuration for Probe CRD
2025-11-28 16:23:56 +01:00
Simon Pasquier
355cd36130 change: add new arguments to manifests
This commit adds the following arguments in jsonnet + default manifests:

* `--watch-referenced-objects-in-all-namespaces=true`
* `--disable-unmanaged-prometheus-configuration=true`

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2025-11-28 12:43:51 +01:00
Hélia Barroso
a198a5ff2c fix: pushover doc
Signed-off-by: Hélia Barroso <helia_barroso@hotmail.com>
2025-11-24 11:18:19 +00:00
Simon Pasquier
ca5bf4a119 feat: unify HTTP configuration for Probe CRD
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2025-11-21 17:42:25 +01:00
Simon Pasquier
0ff52b38b8 Cut 0.87.0 (#8109)
* Skip medium.com links in mdox configuration

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

* chore: cut v0.87.0

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

---------

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2025-11-21 10:47:16 +01:00
Simon Pasquier
ddbbdf4ad2 chore: cut v0.87.0
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2025-11-20 15:40:53 +01:00
Hélia Barroso
d1ff82ef9e feat: add support for monospace in pushoverConfig (#8018)
---------

Signed-off-by: Hélia Barroso <helia_barroso@hotmail.com>
2025-11-20 15:25:19 +01:00
Nutmos
df692bf15f Feat: set Azure Manage Identity Client ID default to empty value (#7815)
---------

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
Co-authored-by: Simon Pasquier <spasquie@redhat.com>
2025-11-19 18:00:17 +01:00