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

6195 Commits

Author SHA1 Message Date
Simon Pasquier
34941afa1a Merge pull request #5964 from simonpasquier/rework-controller-configs
chore: reduce code duplication in components
2023-11-27 09:11:32 +01:00
Pranshu Srivastava
9e9a7536a8 fix: handle duplicate sources (#6006)
* fix: handle duplicate sources

Skip appending sources with the same key for ConfigMaps and Secrets in
the AlertmanagerConfiguration.

Fixes: #5905

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

* fixup! fix: handle duplicate sources

---------

Signed-off-by: Pranshu Srivastava <rexagod@gmail.com>
2023-11-24 16:51:39 -03:00
github-actions[bot]
88eca6a97b Merge pull request #6118 from prometheus-operator/dependabot/go_modules/github.com/google/uuid-1.4.0
build(deps): bump github.com/google/uuid from 1.3.1 to 1.4.0
2023-11-24 13:34:31 +00:00
dependabot[bot]
a0a8209355 build(deps): bump github.com/google/uuid from 1.3.1 to 1.4.0
Bumps [github.com/google/uuid](https://github.com/google/uuid) from 1.3.1 to 1.4.0.
- [Release notes](https://github.com/google/uuid/releases)
- [Changelog](https://github.com/google/uuid/blob/master/CHANGELOG.md)
- [Commits](https://github.com/google/uuid/compare/v1.3.1...v1.4.0)

---
updated-dependencies:
- dependency-name: github.com/google/uuid
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-24 12:54:25 +00:00
Simon Pasquier
0adb2e1bd2 Merge pull request #6116 from philipgough/kube-updates
chore: bump k8s.io/client-go to v0.28.4
2023-11-24 10:25:18 +01:00
Philip Gough
e0f6a0698a chore: bump k8s.io/client-go to v0.28.4 2023-11-23 16:23:48 +00:00
Simon Pasquier
065900b4f1 Merge pull request #6114 from simonpasquier/fix-go-mod
chore: tidy up go.{mod,sum} files
2023-11-23 16:28:55 +01:00
Simon Pasquier
7b2da7f9eb chore: tidy up go.{mod,sum} files
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2023-11-23 15:47:45 +01:00
dongjiang
712a2c1664 feat: add track_timestamps_staleness limit to CRDs (#6105)
---------

Signed-off-by: dongjiang1989 <dongjiang1989@126.com>
Co-authored-by: Simon Pasquier <spasquie@redhat.com>
2023-11-22 14:44:09 +01:00
Simon Pasquier
05ea249223 Merge pull request #6109 from adinhodovic/nil-check
fix: Check for nil in MS Teams config
2023-11-20 14:55:26 +01:00
adinhodovic
5ff31daff7 fix: Check for nil in MS Teams config
Signed-off-by: adinhodovic <hodovicadin@gmail.com>
2023-11-20 11:53:20 +01:00
Simon Pasquier
754b2e2fb2 Merge pull request #6106 from prometheus-operator/depguard
Remove depguard file filters
2023-11-20 10:25:09 +01:00
Arthur Silva Sens
27c3a8c5b0 Remove depguard file filters
Signed-off-by: Arthur Silva Sens <arthur.sens@coralogix.com>
2023-11-17 13:30:07 -03:00
Arthur Silva Sens
0a2b02340a Fully enable depguard (#6103)
Signed-off-by: Arthur Silva Sens <arthur.sens@coralogix.com>
2023-11-17 13:28:48 -03:00
Simon Pasquier
2d53c246eb Merge pull request #6104 from simonpasquier/update-podmon-api-doc
chore: update PodMonitor documentation
2023-11-17 16:00:15 +01:00
Simon Pasquier
b6b6e29a70 Merge pull request #6037 from adinhodovic/add-azuread-oauth
feat: Add azuread oauth support to remote write
2023-11-17 15:26:10 +01:00
Simon Pasquier
49630bdeed chore: update PodMonitor documentation
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2023-11-17 15:18:44 +01:00
github-actions[bot]
7e0ea8c76e Merge pull request #6101 from prometheus-operator/dependabot/go_modules/k8s.io/apimachinery-0.28.4
build(deps): bump k8s.io/apimachinery from 0.28.3 to 0.28.4
2023-11-17 13:27:42 +00:00
dependabot[bot]
342b5e7c27 build(deps): bump k8s.io/apimachinery from 0.28.3 to 0.28.4
Bumps [k8s.io/apimachinery](https://github.com/kubernetes/apimachinery) from 0.28.3 to 0.28.4.
- [Commits](https://github.com/kubernetes/apimachinery/compare/v0.28.3...v0.28.4)

---
updated-dependencies:
- dependency-name: k8s.io/apimachinery
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-17 12:40:25 +00:00
Simon Pasquier
bc69406498 Merge pull request #6097 from simonpasquier/prom-2.48
chore: bump to Prometheus v2.48.0
2023-11-17 13:14:38 +01:00
adinhodovic
7f22f69a42 feat: Add azuread oauth support to remote write
Signed-off-by: adinhodovic <hodovicadin@gmail.com>
2023-11-17 13:11:07 +01:00
Simon Pasquier
3287e5182a Merge pull request #6098 from slashpai/consul
fix: convert consul scheme to lowercase while setting prometheus config
2023-11-17 12:04:39 +01:00
Simon Pasquier
6b5731517d Merge pull request #6099 from adinhodovic/skip-already-sharded-scrape-configs
fix(shards): Skip adding shard relabel rules automatically if already set
2023-11-17 11:39:00 +01:00
Jayapriya Pai
28214a4824 fix: convert consul scheme to lowercase while setting prometheus config
Signed-off-by: Jayapriya Pai <slashpai9@gmail.com>
2023-11-17 14:18:16 +05:30
Simon Pasquier
173aa81dbc chore: bump to Prometheus v2.48.0
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2023-11-17 09:46:55 +01:00
Simon Pasquier
d8b4ed3368 Merge pull request #6096 from prometheus-operator/update-office-hours
Update Office Hours Meetings
2023-11-17 09:34:55 +01:00
adinhodovic
5c8245927a fix(shards): Skip adding shard relabel rules automatically if already set 2023-11-17 00:19:28 +01:00
Simon Pasquier
b6610bb4e1 Merge pull request #6095 from simonpasquier/update-smon-api-doc
chore: update ServiceMonitor documentation
2023-11-16 20:07:22 +01:00
Arthur Silva Sens
01a7962bf3 Update Office Hours Meetings
Signed-off-by: Arthur Silva Sens <arthur.sens@coralogix.com>
2023-11-16 14:46:39 -03:00
Simon Pasquier
89c2ce975c chore: update ServiceMonitor documentation
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2023-11-16 16:50:37 +01:00
Simon Pasquier
259ea32dc2 Merge pull request #6009 from slashpai/gce_sd
feat: add GCE SD support in ScrapeConfig CRD
2023-11-16 16:20:50 +01:00
Simon Pasquier
9063247a8e Merge pull request #6094 from slashpai/consul_tag_update
change: update json tags for ConsulSD configs
2023-11-16 16:20:06 +01:00
Jayapriya Pai
6624457b38 feat: add GCE SD support in ScrapeConfig CRD
Fixes #6079

Related-to #5509

Signed-off-by: Jayapriya Pai <slashpai9@gmail.com>
2023-11-16 19:37:45 +05:30
Simon Pasquier
7bf2457f4f Merge pull request #6090 from slashpai/doc_update
docs: update strategic merge patch documentation
2023-11-16 14:51:03 +01:00
Simon Pasquier
5e9eed43e4 chore: reduce code duplication in components
* Share parsing for the logging flags across all binaries.
* Refactor and share the web server implementation between the operator
  and the admission webhook.
* Refactor controller configuration structs to include only the required
  parameters.
* Parse label and field selector arguments early instead of doing it in
  each controller.

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2023-11-16 14:42:28 +01:00
Jayapriya Pai
088792da00 docs: update strategic merge patch documentation
Related-to #6080

Signed-off-by: Jayapriya Pai <slashpai9@gmail.com>
2023-11-16 19:12:25 +05:30
Jayapriya Pai
10a8a796a6 change: update json tags for ConsulSD configs
some of the json tags were not following
Kubernetes conventions

Signed-off-by: Jayapriya Pai <slashpai9@gmail.com>
2023-11-16 18:48:03 +05:30
github-actions[bot]
89dae67222 Merge pull request #6093 from prometheus-operator/dependabot/go_modules/github.com/alecthomas/kingpin/v2-2.4.0
build(deps): bump github.com/alecthomas/kingpin/v2 from 2.3.2 to 2.4.0
2023-11-16 12:49:21 +00:00
github-actions[bot]
9cc4fa6bc8 Merge pull request #6092 from prometheus-operator/dependabot/go_modules/github.com/prometheus/prometheus-0.48.0
build(deps): bump github.com/prometheus/prometheus from 0.47.2 to 0.48.0
2023-11-16 12:45:52 +00:00
dependabot[bot]
21731af3a0 build(deps): bump github.com/alecthomas/kingpin/v2 from 2.3.2 to 2.4.0
Bumps [github.com/alecthomas/kingpin/v2](https://github.com/alecthomas/kingpin) from 2.3.2 to 2.4.0.
- [Release notes](https://github.com/alecthomas/kingpin/releases)
- [Commits](https://github.com/alecthomas/kingpin/compare/v2.3.2...v2.4.0)

---
updated-dependencies:
- dependency-name: github.com/alecthomas/kingpin/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-16 12:05:04 +00:00
dependabot[bot]
498f5800ec build(deps): bump github.com/prometheus/prometheus from 0.47.2 to 0.48.0
Bumps [github.com/prometheus/prometheus](https://github.com/prometheus/prometheus) from 0.47.2 to 0.48.0.
- [Release notes](https://github.com/prometheus/prometheus/releases)
- [Changelog](https://github.com/prometheus/prometheus/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prometheus/prometheus/compare/v0.47.2...v0.48.0)

---
updated-dependencies:
- dependency-name: github.com/prometheus/prometheus
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-16 12:04:58 +00:00
Simon Pasquier
85dcc94ca3 Merge pull request #6078 from slashpai/azuresd
feat: Add support for Azure SD in ScrapeConfig CRD
2023-11-16 11:43:58 +01:00
Simon Pasquier
0eaa3bed46 Merge pull request #5993 from simonpasquier/optimize-metadata-informers
feat: optimize memory usage of secret/configmap informers
2023-11-16 09:38:45 +01:00
Jayapriya Pai
8033a10497 feat: add support for Azure SD in ScrapeConfig CRD
Fixes #6077

Related-to #5509

Signed-off-by: Jayapriya Pai <slashpai9@gmail.com>
2023-11-16 09:26:24 +05:30
Simon Pasquier
b1c1a03a2b Merge pull request #6089 from slashpai/kubesd
feat: support remaining roles in kubernetesSD
2023-11-15 16:10:14 +01:00
Simon Pasquier
9b3edc3516 Merge pull request #5988 from slashpai/actions_update
.github/workflows: skip unit and e2e tests for *.md file updates
2023-11-15 10:34:17 +01:00
Simon Pasquier
2c67ca6fc4 feat: optimize memory usage of secret/configmap informers
The secrets and configmaps informers only need to store the name,
namespace and resource version of the objects: the event handlers don't
look at the other metadata fields. By stripping the rest of the
metadata, we can save a fair share of memory on clusters with lots of
secrets/configmaps.

Experiments show that the maximum memory usage with/without the change
is similar but once the situation settles, we have a ~80% decrease in
memory usage with this commit (from 300MB -> 50MB). More details (with
graphs) in the pull request.

To take full advantage of this optimization, we also tune the GOGC
variable to "30" to reclaim the memory faster after startup.

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2023-11-15 09:42:44 +01:00
Jayapriya Pai
e065e08e28 .github/workflows: skip unit and e2e tests for *.md file updates
Signed-off-by: Jayapriya Pai <slashpai9@gmail.com>
2023-11-15 12:39:02 +05:30
Simon Pasquier
b836d96445 Merge pull request #6081 from simonpasquier/fix-run-external
chore: remove TLS files only on exit
2023-11-14 15:12:10 +01:00
Jayapriya Pai
399b6bdea8 feat: support remaining roles in kubernetesSD
add service, pod, endpoints, endpointslice and ingress roles
to KubernetesSDConfigs in ScrapeConfig CRD

Fixes #6086

Signed-off-by: Jayapriya Pai <slashpai9@gmail.com>
2023-11-14 19:24:13 +05:30