Commit Graph

822 Commits

Author SHA1 Message Date
Joao Marcal
a38f7012a9 Adds port name to prometheus-adapter jsonnet 2022-06-21 14:17:05 +01:00
Joao Marcal
3fa00f11f3 Adds readinessProbe and livenessProbe to prometheus-adapter jsonnet
Problem: Currently the prometheus-adapter pods are restarted at the same
time even though the deployment is configured with strategy RollingUpdate.
This happens because the kubelet does not know when the prometheus-adapter
pods are ready to start receiving requests.

Solution: Add both readinessProbe and livenessProbe to the
prometheus-adapter, this way the kubelet will know when either the pod
stoped working and should be restarted or simply when it ready to start
receiving requests.

Issue: https://bugzilla.redhat.com/show_bug.cgi?id=2048333
2022-06-21 14:14:16 +01:00
Arunprasad Rajkumar
b54ad2ea71 Adjust NodeFilesystemSpaceFillingUp thresholds according default kubelet GC behavior
Previously[1] we attempted to do the same, but there was a
misunderstanding about the GC behavior and it caused the alert to be
fired even before GC comes into play.

According to[2][3] kubelet GC kicks in only when `imageGCHighThresholdPercent` is hit which is set to 85% by default. However `NodeFilesystemSpaceFillingUp` is set to fire as soon as 80% usage is hit.

This commit changes the `fsSpaceFillingUpWarningThreshold` to 15% so
that we give ample time to GC to reclaim unwanted images. This commit
also changes `fsSpaceFillingUpCriticalThreshold` to 10% which gives more time to admins to react to warning before sending critical alert.

[1] https://github.com/prometheus-operator/kube-prometheus/pull/1357
[2] https://docs.openshift.com/container-platform/4.10/nodes/nodes/nodes-nodes-garbage-collection.html#nodes-nodes-garbage-collection-images_nodes-nodes-configuring
[3] https://kubernetes.io/docs/reference/config-api/kubelet-config.v1beta1/

Signed-off-by: Arunprasad Rajkumar <arajkuma@redhat.com>
(cherry picked from commit 6ff8bfbb02)
2022-04-27 08:03:57 +05:30
Philip Gough
35a61d9a0e Update PodMonitor for kube-proxy
Signed-off-by: yogeek <gdupin@gmail.com>
2022-04-08 16:21:54 +02:00
Paweł Krupa (paulfantom)
701e3c91eb jsonnet: filter out kube-proxy alerts when kube-proxy is disabled
Signed-off-by: Paweł Krupa (paulfantom) <pawel@krupa.net.pl>
(cherry picked from commit 86ac6f79b1)
2022-02-01 17:34:11 +00:00
Philip Gough
8ae302328f jsonnet: Bump to patch release of prometheus-operator 2021-12-20 14:32:43 +00:00
Philip Gough
fb9021cf9a jsonnet: Bump versions for 0.10 release 2021-12-20 09:30:36 +00:00
Philip Gough
480cb2ced4 jsonnet: Pin deps for 0.10 2021-12-17 11:38:05 +00:00
Philip Gough
16bc5d63b3 jsonnet: Drop deprecated coredns_cache_misses_total
Deprecated via https://github.com/coredns/coredns/pull/4781
2021-12-16 18:07:14 +00:00
Philip Gough
1263e1cba3 jsonnet: Drop deprecated apiserver_longrunning_gauge and apiserver_registered_watchers metrics
Drop deprecated metric to fix failing test.

Dropped via https://github.com/kubernetes/kubernetes/pull/103793
2021-12-16 17:08:01 +00:00
Paweł Krupa
3c8103b34c Merge pull request #1543 from arajkumar/add-thanos-targetgroup 2021-12-16 10:08:37 +01:00
Arunprasad Rajkumar
1ff5273f87 Deprecate thanosSelector and keep until 0.10.0
Signed-off-by: Arunprasad Rajkumar <arajkuma@redhat.com>
2021-12-13 16:23:37 +05:30
Prometheus Operator Bot
b40f0aa68c [bot] [main] Automated version update 2021-12-13 07:41:10 +00:00
Arunprasad Rajkumar
1fb864ec21 Remove thanosSelector and expose mixin._config.thanos config variable for thanos sidecar
This commit removes existing `thanosSelector` and exposes a single config variable `mixin._config.thanos` to customize thanos sidecar mixins. It follows same structure as d2d74dac98/mixin/config.libsonnet

Signed-off-by: Arunprasad Rajkumar <arajkuma@redhat.com>
2021-12-10 08:56:44 +05:30
sweetpotatoman
bd9e2d4d2d Security: Upgrade Grafana Version, Fixes CVE-2021-43798 2021-12-09 11:33:34 +08:00
Prometheus Operator Bot
0a339a710a [bot] [main] Automated version update 2021-12-06 07:40:35 +00:00
junot
bd95a19cc3 fix default empty groups for k8s PrometheusRule 2021-12-03 14:08:59 +08:00
Paweł Krupa
431b662602 Merge pull request #1497 from paulfantom/k3s-mountpoints 2021-11-28 12:40:10 +01:00
Paweł Krupa
974b37e620 Merge pull request #1520 from PaytmLabs/feature/recommended-instance-label 2021-11-25 12:42:03 +01:00
Paweł Krupa
0f6faaacde Merge pull request #1501 from ArthurSens/as/strip-limits-refactor 2021-11-24 13:15:07 +01:00
Maxime Brunet
5e375b394b Use recommended instance label for Prometheus/Alertmanager resources 2021-11-23 13:12:31 -08:00
Maxime Brunet
80d04a1d53 addons: Always use proper values scope for namespace 2021-11-22 17:10:17 -08:00
Arthur Silva Sens
fcd8d01fa1 Merge pull request #1506 from ArthurSens/as/split-doc-customization
docs/customizations: Move customization examples to dedicated folder
2021-11-22 18:25:56 -03:00
Prometheus Operator Bot
a9054030d7 [bot] [main] Automated version update 2021-11-22 07:40:23 +00:00
ArthurSens
af00060d9c docs/customizations: Move customization examples to dedicated folder
With the objective of improving our README, customization examples are being moved to a dedicated folder under `docs/`.

Signed-off-by: ArthurSens <arthursens2005@gmail.com>
2021-11-18 18:57:22 +00:00
Andrei Nistor
30175b5e3c Use matchers in routing tree 2021-11-16 14:14:35 +02:00
Andrei Nistor
72f6ff3758 Refactor deprecated inhibit rules matchers 2021-11-15 18:45:19 +02:00
ArthurSens
42e7df4d70 jsonnet/addons/strip-limits: Simplify logic
Since `release-0.8` resources has become a first-class object to all components of kube-prometheus. Therefore, we're simplifying this addon to reflect those changes.

Signed-off-by: ArthurSens <arthursens2005@gmail.com>
2021-11-15 14:38:15 +00:00
Prometheus Operator Bot
cb946bf72e [bot] [main] Automated version update 2021-11-15 07:40:21 +00:00
paulfantom
947965d77b jsonnet: exclude k3s containerd mountpoints 2021-11-10 18:27:58 +01:00
paulfantom
33328c7023 jsonnet/kube-prometheus: swap prometheus-operator branch to main 2021-11-09 14:03:44 +01:00
Paweł Krupa
2c25661fad Merge pull request #1476 from paulfantom/alerting 2021-11-08 11:25:23 +01:00
Prometheus Operator Bot
612a79fda2 [bot] [main] Automated version update 2021-11-08 07:40:26 +00:00
paulfantom
dbc64a0300 jsonnet: do not hide alerting configuration
Signed-off-by: paulfantom <pawel@krupa.net.pl>
2021-11-04 12:41:36 +01:00
paulfantom
9c959bac74 jsonnet: establish convention for components default fields
Signed-off-by: paulfantom <pawel@krupa.net.pl>
2021-11-02 14:19:04 +01:00
paulfantom
25d8bb00dc jsonnet: run fmt 2021-11-01 20:07:04 +01:00
paulfantom
40e0687203 jsonnet: code cleanup 2021-11-01 11:30:35 +01:00
paulfantom
1870702831 jsonnet: unify metadata management 2021-11-01 11:19:34 +01:00
Paweł Krupa
ba8ec69845 Merge pull request #1463 from andrein/prometheus-adapter
Fix prometheus URL in prometheus-adapter
2021-10-26 16:13:31 +02:00
Andrei Nistor
a6442df06c Fix prometheus URL in prometheus-adapter. 2021-10-26 16:35:37 +03:00
Paweł Krupa
0beb368080 Merge pull request #1462 from paulfantom/node-exporter-default-container 2021-10-25 20:12:18 +02:00
paulfantom
1a67ab3655 jsonnet: annotate default container for node-exporter DS
Signed-off-by: paulfantom <pawel@krupa.net.pl>
2021-10-25 16:31:12 +02:00
Prometheus Operator Bot
7b0c4193e8 [bot] [main] Automated version update 2021-10-25 07:40:27 +00:00
paulfantom
5c1b660d16 jsonnet: do not hide prometheus object 2021-10-22 14:04:10 +02:00
Paweł Krupa
cd044aa542 Merge pull request #1450 from paulfantom/grafana-refactor
jsonnet: include rewritten kubernetes-grafana library
2021-10-22 11:43:53 +02:00
Paweł Krupa
0bb59980f2 Merge pull request #1453 from saswatamcode/add-mdox 2021-10-21 17:29:08 +02:00
Paweł Krupa
aef85157d7 Merge pull request #1347 from stpabhi/fix-sync-to-internal-registry
fix sync-to-internal-registry.jsonnet
2021-10-21 16:20:36 +02:00
Saswata Mukherjee
7e94f218e1 Add mdox link checking and formatting
Signed-off-by: Saswata Mukherjee <saswataminsta@yahoo.com>
2021-10-21 19:12:33 +05:30
Saswata Mukherjee
13cfbe3b3d Setup mdox
Signed-off-by: Saswata Mukherjee <saswataminsta@yahoo.com>
2021-10-21 19:12:30 +05:30
paulfantom
ade451bf04 jsonnet: refactor grafana component to include new kubernetes-grafana library 2021-10-20 19:24:39 +02:00