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

138 Commits

Author SHA1 Message Date
Ashwin Sriram
91822d37d8 chore: Docs Restructuring (#6650) 2024-07-02 09:08:03 -03:00
Jayapriya Pai
21e69ffe58 chore: cut 0.75.0
Signed-off-by: Jayapriya Pai <slashpai9@gmail.com>
2024-06-26 17:21:04 +05:30
Simon Pasquier
ef34de2298 chore: cut v0.74.0
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2024-05-17 16:07:25 +02:00
Jayapriya Pai
3aa2b0ec69 chore:cut v0.73.2
Signed-off-by: Jayapriya Pai <slashpai9@gmail.com>

Co-authored-by: Simon Pasquier <spasquie@redhat.com>
2024-04-19 19:46:27 +05:30
Jayapriya Pai
7e83f96928 chore: cut v0.73.1
Signed-off-by: Jayapriya Pai <slashpai9@gmail.com>
2024-04-10 19:23:20 +05:30
Jayapriya Pai
4795a94e29 chore: cut v0.73.0
Signed-off-by: Jayapriya Pai <slashpai9@gmail.com>
2024-04-03 21:06:03 +05:30
Arthur Silva Sens
95e0561f60 Prepare 0.72 release (#6329)
Signed-off-by: Arthur Silva Sens <arthur.sens@coralogix.com>
2024-03-04 14:40:59 -03:00
Simon Pasquier
cf22056b6b chore: cut v0.71.2
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2024-01-25 15:05:31 +01:00
Simon Pasquier
6b50c8c47d chore: cut v0.71.1
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2024-01-23 14:37:27 +01:00
Simon Pasquier
9c26b6a94c chore: cut v0.71.0 (#6223)
* chore: cut v0.71.0

---------

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
Co-authored-by: Jayapriya Pai <slashpai9@gmail.com>
2024-01-12 08:52:53 +00:00
Arthur Silva Sens
895cb3b005 feat: emit events for invalid configurations (#6179)
* feat: emit events for invalid configurations

Emit events when the controller rejects a resource, owing to an invalid
configuration.

Fixes: #3611

Signed-off-by: Pranshu Srivastava <rexagod@gmail.com>

* Decouple event recorder from operator metrics

Signed-off-by: Arthur Silva Sens <arthur.sens@coralogix.com>

* Only emit events if permissions were given

Signed-off-by: Arthur Silva Sens <arthur.sens@coralogix.com>

* Keep operator name consistent across telemetry

Signed-off-by: Arthur Silva Sens <arthur.sens@coralogix.com>

* Address comments

Signed-off-by: Arthur Silva Sens <arthur.sens@coralogix.com>

---------

Signed-off-by: Pranshu Srivastava <rexagod@gmail.com>
Signed-off-by: Arthur Silva Sens <arthur.sens@coralogix.com>
Co-authored-by: Pranshu Srivastava <rexagod@gmail.com>
2024-01-10 08:59:47 -03:00
paulfantom
c2c673f712 *: release 0.70
Signed-off-by: paulfantom <pawel@krupa.net.pl>
2023-11-30 15:47:47 +01:00
Simon Pasquier
f460e7a66d chore: cut v0.69.1
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2023-11-09 10:31:16 +01:00
Simon Pasquier
fc2a36df04 chore: cut v0.69.0
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2023-11-03 16:25:19 +01:00
gadisn
904b710b15 docs: fix typo 'cluster' -> 'pod' (#5952)
* docs: fix typo 'cluster' -> 'pod'

* Adapt code review phrasing suggestion
2023-10-02 17:31:05 +02:00
Chirayu Kapoor
7f9bdca5d3 Check if operator has access to storageclass | Add logic to verify if storageclass exist | Add e2e test for invalid storageclass | RBAC to access storageclass
Signed-off-by: Chirayu Kapoor <chirayu.kapoor@suse.com>
2023-09-25 17:39:33 +05:30
Arthur Silva Sens
52526e3b0c Prepare 0.68 release (#5896)
Signed-off-by: Arthur Silva Sens <arthur.sens@coralogix.com>
2023-09-08 11:27:53 -03:00
Simon Pasquier
3f7882c4de chore: cut v0.67.1 (#5790)
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2023-08-03 10:57:22 +00:00
Simon Pasquier
71d804bc96 chore: cut v0.67.0
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2023-07-27 15:47:41 +02:00
Arthur Silva Sens
255766e670 Add 0.66.0 CHANGELOG entry
Signed-off-by: GitHub <noreply@github.com>
2023-06-14 14:38:46 +00:00
Philip Gough
93282ad50f Sync main with 0.65.2 release (#5623)
* Fix relabelings for ScrapeConfig (#5611)

Signed-off-by: EtienneBarbier <etienne.barbier@atos.net>

* chore: Prep for release 0.65.2 (#5622)

* test: Add tests for ScrapeConfig relabelling

---------

Signed-off-by: EtienneBarbier <etienne.barbier@atos.net>
Co-authored-by: Etienne Barbier <etienne.barbier@atos.net>
2023-05-31 16:45:41 +00:00
Philip Gough
b5e9f22fff Prep for release v0.65.1 (#5555)
* release-chore: Bump version to 0.65.1

* release-chore: make clean generate docs

* release-chore: Update versions in go.mod

* release-chore: Add CHANGELOG for v0.65.1
2023-05-05 17:13:26 +01:00
Philip Gough
fa7f9eb24e Release 0.65.0 prep (#5548)
* release-chore: Bump version to 0.65.0

* release-chore: make clean generate

* release-chore: Update versions in go.mod

* release-chore: Add CHANGELOG for v0.65.0

* release-chore: make docs

* test:e2e: Modify semver check for ThanosRuler

* test:e2e: Add namespace to WaitForThanosRulerReady sig
2023-05-04 16:45:19 +01:00
Guillaume Hérail
b07f92c4ed feat: Add ScrapeConfig CRD (#5335)
* api/v1alpha1: Add ScrapeConfig CRD

Co-authored-by: Simon Pasquier <spasquie@redhat.com>
Co-authored-by: Joao Marcal <joao.marcal12@gmail.com>

* api/v1: Add ScrapeConfig selectors to Prometheus

Co-authored-by: Joao Marcal <joao.marcal12@gmail.com>

* prometheus/server/operator: Add ScrapeConfig selection logic

Co-authored-by: Arthur Silva Sens <arthursens2005@gmail.com>

* prometheus/server/operator: Add static_config generation from ScrapeConfig

Co-authored-by: Joao Marcal <joao.marcal12@gmail.com>

* prometheus/server/operator: Add file_sd_config and http_sd_config generation from ScrapeConfig

Co-authored-by: Joao Marcal <joao.marcal12@gmail.com>

* prometheus/server/operator: Check ScrapeConfig permissions before trying to select them

* prometheus/server/operator: Check that the ScrapeConfig CRD is installed

* fix: Apply suggestions from Joao

Co-authored-by: Joao Marcal <joao.marcal12@gmail.com>

* fix: Apply suggestion from mrueg

Co-authored-by: Manuel Rüger <manuel@rueg.eu>

* fix: Properly generate scrape configurations for PrometheusAgent

Also check that the ScrapeConfig CRD is installed and that the operator has the
right permissions.

* fix: Address Joao's points

Co-authored-by: Joao Marcal <joao.marcal12@gmail.com>

* fix: ScrapeConfig only needs get,list,watch

References:
- https://github.com/prometheus-operator/prometheus-operator/pull/5335#discussion_r1162861091

Co-authored-by: Arthur Silva Sens <arthursens2005@gmail.com>

* fix: Implement ScrapeConfig ResourceEventHandlerFuncs

References:
- https://github.com/prometheus-operator/prometheus-operator/pull/5335#discussion_r1162901259

Co-authored-by: Arthur Silva Sens <arthursens2005@gmail.com>

* fix: Missing permissions for prometheus-operator's serviceaccount

* fix: Address Arthur's feedback

Co-authored-by: Arthur Silva Sens <arthursens2005@gmail.com>

* fix: Address Simon's feedback

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

* feat: Add ScrapeConfig.HonorTimestamps

* feat: Add ScrapeConfig.HonorLabels

* fix: Address feedback from Joao

Co-authored-by: Joao Marcal <joao.marcal12@gmail.com>

* fix: Address Simon's feedback

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

* chore: Finalize the move to CRDChecker

* fix: Include ScrapeConfig in e2e tests

* docs: spec.ProbeSelector -> spec.probeSelector

* fix: Don't addEventHandler if we don't have a scrape confirm informer

* fix: Address feedback from Simon and Philip

Co-authored-by: Simon Pasquier <spasquie@redhat.com>
Co-authored-by: Philip Gough <philip.p.gough@gmail.com>

* fix: Wrap error with a better error message

* fix: Linting

---------

Co-authored-by: Simon Pasquier <spasquie@redhat.com>
Co-authored-by: Joao Marcal <joao.marcal12@gmail.com>
Co-authored-by: Arthur Silva Sens <arthursens2005@gmail.com>
Co-authored-by: Manuel Rüger <manuel@rueg.eu>
Co-authored-by: Philip Gough <philip.p.gough@gmail.com>
2023-05-03 15:54:31 +01:00
Simon Pasquier
c8e01fd7f1 Merge pull request #5520 from simonpasquier/thanosruler-status
feat: add ThanosRuler's status subresource
2023-04-26 14:18:14 +02:00
Simon Pasquier
ee81ee2c4b chore: cut v0.64.1
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2023-04-24 14:40:50 +02:00
Simon Pasquier
318530d92c feat: add ThanosRuler's status subresource
Following #4580 and 5270, this change implements the status subresource
for the ThanosRuler CRD.

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2023-04-21 15:09:19 +02:00
Simon Pasquier
28b3f5304f chore: cut v0.64.0
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2023-03-29 08:56:03 +02:00
Simon Pasquier
3964662c23 chore: cut v0.64.0-rc.1
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2023-03-28 18:04:33 +02:00
Simon Pasquier
4e487a8a8c chore: cut v0.64.0-rc.0
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2023-03-28 09:56:24 +02:00
Arthur Silva Sens
cc47b1e160 Prometheus Agent support (#5385)
* Introduce PrometheusAgent CRD

Operator is able to run with PrometheusAgent resources in the cluster, but doesn't do anything with them yet. This is the first step to implement the Prometheus Agent Operator.

Signed-off-by: Arthur Silva Sens <arthursens2005@gmail.com>

* Re-enable configmap and secret informers

Signed-off-by: Arthur Silva Sens <arthursens2005@gmail.com>
(cherry picked from commit 1a71db03db6b41cd0cee9d0193b6ea3884bb5bae)

* Implement Resolve for Agent operator

Signed-off-by: Arthur Silva Sens <arthursens2005@gmail.com>
(cherry picked from commit 49558165b9178b6c1bda833a48f7bfe1468c942a)

* Operator is able to create Agent Statefulset

Signed-off-by: Arthur Silva Sens <arthursens2005@gmail.com>
(cherry picked from commit 7a3826683c92f917312c866a2bb6401dc54b95f2)

* Agent Operator creates secret from ServiceMonitors

Signed-off-by: Arthur Silva Sens <arthursens2005@gmail.com>
(cherry picked from commit 11232669befb4de9d0765dfadfe5fae00b575f11)

* Agent Operator creates secret from PodMonitors

Signed-off-by: Arthur Silva Sens <arthursens2005@gmail.com>
(cherry picked from commit 5ae551734bac2babc056c86443d15729d43d12b0)

* Agent Operator creates secret from Probes

Signed-off-by: Arthur Silva Sens <arthursens2005@gmail.com>
(cherry picked from commit 9637612fbbe9617335fd6188271ebf2cc74a3693)

* Agent Operator configures remote-write

Signed-off-by: Arthur Silva Sens <arthursens2005@gmail.com>
(cherry picked from commit c4bdf230d527e19f8b77ca5f938b9254ed344f7d)

* Agent Operator configures additionalScrapeConfigs

Signed-off-by: Arthur Silva Sens <arthursens2005@gmail.com>
(cherry picked from commit d9f28db764641e682bf4fe8963310f791979c387)

* Implement UpdateStatus

Signed-off-by: Arthur Silva Sens <arthursens2005@gmail.com>
(cherry picked from commit c546ecaf3e8b73916df44a8f48b279c6988e32f5)

* Add resource handlers

Signed-off-by: Arthur Silva Sens <arthursens2005@gmail.com>
(cherry picked from commit 5b83359445e20f88ea5fff80302fce62d58058b9)

* make format

Signed-off-by: Arthur Silva Sens <arthursens2005@gmail.com>
(cherry picked from commit 6507964ba28f4ebf32ce3203db752444e288c45d)

* Only start agent operator if there is enough permission

Signed-off-by: Arthur Silva Sens <arthursens2005@gmail.com>

* Remove node endpoint syncronization from agent operator

The server operator already handles it

Signed-off-by: ArthurSens <arthursens2005@gmail.com>

* Move PrometheusAgent API from v1 to v1alpha1

Signed-off-by: ArthurSens <arthursens2005@gmail.com>

* pkg/prometheus/agent/statefulset.go: Fix image concatenation

Signed-off-by: ArthurSens <arthursens2005@gmail.com>

* Avoid name colisions between Prometheus Agents and Servers

Signed-off-by: ArthurSens <arthursens2005@gmail.com>

* agent/createOrUpdateConfigurationSecret: Do not handle case where servicemonitor and podmonitor selectors are empty

Signed-off-by: ArthurSens <arthursens2005@gmail.com>

* make format

Signed-off-by: ArthurSens <arthursens2005@gmail.com>

* make --always-make format generate

Signed-off-by: ArthurSens <arthursens2005@gmail.com>

* Remove unused fields from Operator struct

Signed-off-by: Arthur Silva Sens <arthursens2005@gmail.com>

* Add deployment mode as new selector label for agent/server ssts

Signed-off-by: Arthur Silva Sens <arthursens2005@gmail.com>

* WIP: Fix OperatorUpgrade e2e test

Signed-off-by: Arthur Silva Sens <arthursens2005@gmail.com>

* Panic if type casting PrometheusInterface doesn't return Prometheus/Agent

Signed-off-by: Arthur Silva Sens <arthursens2005@gmail.com>

* Detect whether PrometheusAgent CRD is installed or not

If the operator's service account has all permissions on the cluster and
the CRD isn't installed then the PrometheusAgent controller will run
but fail because of the absence of the CRD.

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

* Create dedicated governing service for Prometheus agent

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

---------

Signed-off-by: Arthur Silva Sens <arthursens2005@gmail.com>
Signed-off-by: ArthurSens <arthursens2005@gmail.com>
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
Co-authored-by: Simon Pasquier <spasquie@redhat.com>
2023-03-27 12:30:01 +02:00
Philip Gough
1a38cb5fde Prep for release v0.63.0 (#5325)
* Update default versions of Thanos and Prometheus

* make: clean generate after bumping to v0.63.0

* mod: Update versions to v0.63.0

* docs: Add changelog for v0.63.0

* make: docs

* chore: Remove unrequired check in alertmanager test
2023-02-08 15:41:17 +00:00
Simon Pasquier
d078b93b36 feat: add Alertmanager's status subresource
Following #4580, this change implements the status subresource for the
Alertmanager CRD.

Co-authored-by: JoaoBraveCoding <jmarcal@redhat.com>
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2023-01-12 10:00:08 +01:00
Simon Pasquier
abcebfa00e release: cut v0.62.0
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2023-01-05 15:13:38 +01:00
Simon Pasquier
4bd7d35b22 release: cut v0.61.1
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2022-11-24 15:57:02 +01:00
Filip Petkovski
99be0e2a2d Update docs
Signed-off-by: Filip Petkovski <filip.petkovsky@gmail.com>
2022-11-16 12:45:30 +01:00
Simon Pasquier
2c5f2f7999 release: cut v0.60.1
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2022-10-10 16:45:34 +02:00
Simon Pasquier
229faee27b release: cut v0.60.0
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2022-10-06 15:21:13 +02:00
Philip Gough
580b420d7d chore: Prep for 0.59.2 (#5037) 2022-09-20 15:04:49 +01:00
Philip Gough
11d439ee6d 0.59.1 (#5013)
* docs: Update changelog for v0.59.1

* chore: Prep for v0.59.1
2022-09-12 15:51:04 +01:00
Philip Gough
3582c6487e make: docs 2022-09-02 11:38:15 +01:00
Paweł Krupa (paulfantom)
aa41dba30d *: generate world 2022-07-20 10:45:02 +02:00
Simon Pasquier
1a54cb64ed Documentation: fix weight values
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2022-07-13 14:25:10 +02:00
Simon Pasquier
60847642eb Documentation/rbac.md: refresh document
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2022-07-13 14:25:10 +02:00
Simon Pasquier
35d31811a4 *: cut v0.57.0
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2022-06-03 09:08:03 +02:00
Simon Pasquier
81664fb589 *: cut v0.56.3
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2022-05-24 09:38:00 +02:00
Simon Pasquier
9a10512236 *: cut v0.56.2
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2022-05-09 08:53:16 +02:00
Simon Pasquier
947dfbb90b *: cut v0.56.1 (#4763)
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2022-05-04 10:51:42 +02:00
Simon Pasquier
8ebf3f5df3 *: cut v0.56.0 (#4737)
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2022-04-22 12:07:38 +02:00
yngwiewang
581a846e28 Documentation: fix rbac.md (#4740)
fix a typo

Co-authored-by: yngwiewang <yngwiewang@163.com>
2022-04-21 14:15:55 +02:00