1
0
mirror of https://github.com/coreos/prometheus-operator.git synced 2026-02-05 15:46:31 +01:00

152 Commits

Author SHA1 Message Date
Thomas Boerger
5e8d9c5128 feat: integrate all supported rocketchat attributes for alertmanagerconfig CR (#8016)
* feat: integrate all supported rocketchat attributes for alertmanagerconfig CR

* fix: drop rocketchat file references as requested

* fix: correctly format the generated code

* feat: move rocketchat validations into validation package

* chore: revert token/tokenID optional requirement

* feat: use ValidateTemplateURL for Rocket.Chat links

* Simplify code

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

---------

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
Co-authored-by: Simon Pasquier <spasquie@redhat.com>
2026-02-05 10:51:30 +00:00
kartik
69b36538b3 fix: validate nonzero duration in AlertmanagerConfig (#8126)
* add valid alertmanagerconfig

* update validation check for global alertmanagerconfig object

* add validation marker

* add e2e test for amcfg

* fix depedency issues

* add sanitization logic & monitorv1duration field

* update tests with monitorv1duration field logic

* validate and update fields

* update import dependencies

* update unnecessary groupwait conversion

* update generated files and formatting

* update error handling && refine methods

* nonemptyduration validation for groupwait

* retrigger CI

* update validation for groupwait

* remove toplevel route validation for intervals

* simplify handling of zero durations

Zero durations are converted to empty strings which makes use of the
default value defined at a higher level in the routing tree.

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

* Fix generated file

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

* Fix test compilation

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

---------

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
Co-authored-by: Simon Pasquier <spasquie@redhat.com>
2026-02-05 10:26:44 +00:00
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
53f570e28d make generate
Signed-off-by: Jayapriya Pai <slashpai9@gmail.com>
2026-01-28 09:07:01 +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
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
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
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
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
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
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
Craig Ringer
fe00f73cb4 Merge pull request #7981 from ringerc/docs-portNumber-acts-as-selector
docs: Mention that portNumber behaves like a selector
2025-11-03 13:02:05 +00:00
Simon Pasquier
a2d5da1922 Merge pull request #8017 from simonpasquier/consistent-scheme-type
chore: update documentation for the 'scheme' field
2025-10-16 16:48:49 +02:00
Simon Pasquier
40a5fa96cf chore: clarify documentation on metadataConfig
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2025-10-13 13:13:24 +02:00
Simon Pasquier
8116f769c1 chore: update documentation for the 'scheme' field
This commit also clarifies the meaning of the 'url' field in the Prober
spec which isn't a "true" URL.

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2025-10-10 16:09:57 +02:00
Sam McBroom
2fc9523883 chore: Update FIPS STS endpoint description
Signed-off-by: Sam McBroom <sam.mcbroom@appian.com>
2025-10-07 07:17:43 -07:00
Jayapriya Pai
264d19a9a9 Merge pull request #7987 from appian/usefips
feat: add support for configuring `use_fips_sts_endpoint` in sigv4 config
2025-10-07 19:01:19 +05:30
Simon Pasquier
51cba2baef Merge pull request #7975 from simonpasquier/drop-invalid-authn-settings
fix: prevent duplicate authentication settings in PodMonitor
2025-10-07 15:09:09 +02:00
Jayapriya Pai
bdf0c5b644 Merge pull request #7985 from slashpai/utf8-label-fix
feat: allow UTF-8 characters in label names
2025-10-07 15:27:24 +05:30
Jayapriya Pai
a2e1f38665 feat: allow UTF-8 characters in label names
Follow-up from #7637 to complete the UTF8 support for labels

Related-to: #7362

Assisted-by: Cursor
Signed-off-by: Jayapriya Pai <slashpai9@gmail.com>
2025-10-07 14:26:37 +05:30