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

631 Commits

Author SHA1 Message Date
Simon Pasquier
12c0669629 fix: enable remote-write for Ruler only when set
Closes #7492

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2025-05-06 14:35:43 +02:00
Jayapriya Pai
1eda48dba1 fix: e2e test framework helper
Signed-off-by: Jayapriya Pai <slashpai9@gmail.com>
2025-04-16 10:45:42 +05:30
Simon Pasquier
a5d494da73 feat: add terminationGracePeriodSeconds field (#7439)
This change adds the `terminationGracePeriodSeconds` field to the
Alertmanager, Prometheus, PrometheusAgent and ThanosRuler CRDs.

Closes #3433

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2025-04-15 18:25:11 +05:30
Simon Pasquier
865b1d4673 test: fix testThanosRulerStateless
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2025-04-11 17:41:16 +02:00
Simon Pasquier
235acd11ad Merge pull request #7444 from simonpasquier/add-thanos-rw2
feat: add remote-write support for ThanosRuler
2025-04-11 11:34:40 +02:00
Simon Pasquier
8382e70a0c chore: update Thanos to v0.38.0
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2025-04-08 11:13:58 +02:00
Nutmos
fe80859e15 [Chore] Refactor ScalewaySD (#7413)
---------

Co-authored-by: AshwinSriram11 <ashwinsriram11@gmail.com>
2025-04-01 17:04:50 +02:00
dongjiang
5a8daae34b chore: Upgrade golangci-lint to v2 and golangci-lint-action to v7.0.0 (#7430)
---------

Signed-off-by: dongjiang <dongjiang1989@126.com>
Co-authored-by: Simon Pasquier <spasquie@redhat.com>
2025-03-31 09:51:44 +02:00
M Viswanath Sai
23324cfd34 Feat: Add Retain field to the Prometheus CRD (#7377) 2025-03-28 13:27:07 +01:00
Simon Pasquier
036a56054c fix: unblock feature-gates CI
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2025-03-14 15:02:51 +01:00
M Viswanath Sai
e61abf1b84 Merge pull request #7149 from mviswanathsai/alertmanager-mtls
Feature: Enable configuring mTLS (ClusterTLS) in AlertManager
2025-03-11 09:03:27 +01:00
M Viswanath Sai
9bc6e5e7db Merge pull request #7274 from mviswanathsai/shard-autoretention-featuregate
Add ShardRetentionPolicy to Prometheus API
2025-02-28 15:29:04 +01:00
dongjiang
b939f97e57 remove openstacksd role
Signed-off-by: dongjiang <dongjiang1989@126.com>
2025-02-28 10:38:23 +08:00
dongjiang
35f6d05105 feat: Add support the loadbalancer role in OpenStackSDConfig (#7356)
---------

Signed-off-by: dongjiang <dongjiang1989@126.com>
Co-authored-by: M Viswanath Sai <110663831+mviswanathsai@users.noreply.github.com>
Co-authored-by: Simon Pasquier <spasquie@redhat.com>
2025-02-27 15:59:51 +01:00
Thomas Rouaux
4f32e47eed feat: add serviceName option to ThanosRuler and AlertManager CRD (#7325) 2025-02-21 17:01:25 +01:00
Sky Singh
8a4cadd574 test : modify the test to use an empty protocol string (which defaults to HTTP)
Signed-off-by: Akash Singh <akash.singh@vance.tech>
Signed-off-by: Sky Singh <akashsingh2210670@gmail.com>
2025-02-20 19:20:21 +05:30
Simon Pasquier
bae76143b2 chore: add e2e tests on operator metrics
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2025-02-17 20:27:59 +01:00
Simon Pasquier
c0e32a49d4 test: skip DNS service discovery tests
The website used for testing is unreachable for now.

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2025-02-17 15:33:52 +01:00
Nutmos
6f3c19ae6d chore: Refactor OpenStackSDConfig (#7244)
Co-authored-by: Jayapriya Pai <slashpai9@gmail.com>
2025-02-04 19:51:14 +05:30
Dhruv
3643b5d93e chore: Refactor OVHCloudSDConfig (#7238)
Signed-off-by: slashexx <dhruvpuri.35@gmail.com>
2025-01-31 09:52:22 +05:30
Hélia Barroso
a2deea7f0b feat - refactor azuresd
Signed-off-by: Hélia Barroso <helia_barroso@hotmail.com>
2025-01-29 10:23:39 +00:00
Hélia Barroso
ad19922410 [feat] - Refactor GCESDConfig (#7220)
* [feat] - Refactor GCESDConfig
Signed-off-by: Hélia Barroso <helia_barroso@hotmail.com>
2025-01-29 15:40:25 +05:30
M Viswanath Sai
78bffbb698 Feat: Add servicename field to the Prometheus server and agent CRDs (#6687) 2025-01-15 13:51:32 +01:00
dongjiang
6cfb80cfbb chore: Update golangci-lint to v1.63.4 (#7250)
* update golangci-lint to v1.63.4

Signed-off-by: dongjiang <dongjiang1989@126.com>
2025-01-09 15:51:33 +05:30
Simon Pasquier
3904e3ac9c Merge pull request #7235 from simonpasquier/refactor-agent-controller
chore: reduce code duplication in agent controller
2025-01-06 12:15:46 +01:00
Simon Pasquier
11249283c2 chore: reduce code duplication in agent controller
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2024-12-24 17:10:46 +01:00
Nutmos
f7d94b4b8a Refactor LightSailSDConfig (#7231)
* add test case
2024-12-24 14:00:36 +01:00
Simon Pasquier
3212ad9148 chore: improve documentation of web TLS configuration
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2024-12-20 14:42:44 +01:00
Jayapriya Pai
58d9d3a7a3 CHANGE/BugFix: Rename scrapeFallbackProtocol to fallbackScrapeProtocol
While reviewing #7197 noticed that Prometheus is using
`fallback_scrape_protocol` for the field hence updating to
match similar naming to avoid confusion among users.

This is a newly introduced field in this release v0.79
so we want to update it in patch release before users use this field.

Signed-off-by: Jayapriya Pai <slashpai9@gmail.com>
2024-12-17 10:32:52 +05:30
Jayapriya Pai
58b1d22c29 fix: validate smtp smarthost and smtp from fields
SMTP smarthost and SMTP from are required
fields which needs to be specified at
either global or at receiver level.

This change will make sure reconciliation fails
if there is empty at both levels.

Related-to #6003

Signed-off-by: Jayapriya Pai <slashpai9@gmail.com>
2024-12-13 16:07:04 +05:30
Jayapriya Pai
2826f866f6 chore: add test for Prometheus v2
Signed-off-by: Jayapriya Pai <slashpai9@gmail.com>
2024-12-04 09:55:46 +05:30
dongjiang
20cc1a0125 feat: Support portNumber in addition of port name for PodMonitor CRD (#7150)
---------

Signed-off-by: dongjiang <dongjiang1989@126.com>
2024-11-29 14:12:17 +01:00
dongjiang
c5de052771 chore: optimize AM APIVersion validation (#7118)
* optimize am APIVersion


---------

Signed-off-by: dongjiang1989 <dongjiang1989@126.com>
2024-11-27 11:56:20 +01:00
dongjiang
d3b8e5921d feat: add support fallback_scrape_protocol option for each scrape CRD and globally (#7131)
* add fallback scrape protocol


---------

Signed-off-by: dongjiang1989 <dongjiang1989@126.com>
2024-11-21 10:35:54 +01:00
M Viswanath Sai
5c8981ec34 Refactor Consul SD Configurations (#6738) 2024-11-13 15:55:07 +01:00
Ashwin Sriram
465cfbcec7 Refactor Digital Ocean Service Discovery (#7006)
* Refactor DigitalOcean SD config
2024-11-12 16:38:41 +01:00
Simon Pasquier
d5dbb3df3e chore: fix TestPrometheusVersionUpgrade
This change reduces the scope of the upgrade tests: we're now testing
from the current LTS version (v2.45.0) to the latest stable release.

Closes #7039

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2024-11-05 16:12:56 +01:00
Simon Pasquier
e8db5dd39a chore: allow to save e2e diagnostics to disk
When the E2E_DIAGNOSTIC_DIRECTORY environment variable is set, the test
framework will save all collected information (logs, events, resources,
...) to this directory.

Related to #6973

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2024-10-30 15:20:13 +01:00
Simon Pasquier
7ac474a3b8 chore: refactor shared functions in pkg/prometeus
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2024-10-24 18:00:59 +02:00
Simon Pasquier
aa58fe3f4c feat: add support for Remote Write v2.0
This change includes the following:
* New `messageVersion` field to the remote write configuration to select
  between v1 and v2 message formats.
* New `remoteWriteReceiverMessageVersions` to select which message
  format(s) to accept when the remote receiver is configured.
* Stricter validation for the remote write's URL (not breaking since an
  empty URL value would already fail the Prometheus configuration
  loading)

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2024-10-23 10:51:21 +02:00
dongjiang1989
25f077ba61 fix e2e fail
Signed-off-by: dongjiang1989 <dongjiang1989@126.com>
2024-10-12 10:29:30 +08:00
M Viswanath Sai
983070faf3 ScrapeConfig: Refactor StaticConfig (#6867) 2024-10-11 17:27:46 +02:00
Stavros Foteinopoulos
d723855170 Add ability for custom DNSConfig and DNSPolicy (#3899)
---------

Signed-off-by: Stavros Foteinopoulos <stafot@gmail.com>
Co-authored-by: Simon Pasquier <spasquie@redhat.com>
2024-10-08 17:00:40 +02:00
M Viswanath Sai
a3563cc976 FIX: LabelName validation issue (#6892)
* add validation for staticConfig
2024-10-07 12:40:41 +02:00
Jayapriya Pai
f187d4211f chore: add e2e test label for namespaces
Signed-off-by: Jayapriya Pai <slashpai9@gmail.com>
2024-10-01 21:28:34 +05:30
Léon Hollender
c74695025d feat: empty string values test cases 2024-09-30 08:59:35 +02:00
Jayapriya Pai
e05d22d0b2 Merge pull request #6959 from slashpai/prom3
.github/workflow: Fix prometheus 3 tests
2024-09-25 18:19:33 +05:30
Simon Pasquier
255238205b test: improve e2e test troubleshooting
This change gathers and dumps useful information when an end-to-end test
fails.

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2024-09-25 11:17:45 +02:00
Jayapriya Pai
c61034952d chore: Fix prometheus 3 tests
Update workflow and e2e tests for Prometheus 3

Related-to #6942

Signed-off-by: Jayapriya Pai <slashpai9@gmail.com>
2024-09-25 12:27:55 +05:30
Jayapriya Pai
c846674a17 feat: add experimental Prometheus 3 support (#6940)
* feat: add experimental Prometheus 3 support

Fixes #6939

Signed-off-by: Jayapriya Pai <slashpai9@gmail.com>
2024-09-18 18:33:32 +05:30