Commit Graph
32 Commits
Author SHA1 Message Date
Damien Grisonnet b9563b9c2d jsonnet: improve adapter queries readability
Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com>
2021-07-05 15:29:45 +02:00
Damien Grisonnet 8812e45501 jsonnet: readjust prometheus-adapter intervals
Previously, prometheus-adapter configuration wasn't taking into account
the scrape interval of kubelet, node-exporter and windows-exporter
leading to getting non fresh results, and even negative results from the
CPU queries when the irate() function was extrapolating data.
To fix that, we want to set the interval used in the irate() function in
the CPU queries to 4x scrape interval in order to extrapolate data
between the last two scrapes. This will improve the freshness of the cpu
usage exposed and prevent incorrect extrapolations.

Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com>
2021-07-05 15:28:25 +02:00
Damien GrisonnetandGitHub 4d8104817d Merge pull request #1131 from paulfantom/improve-all-namespace
jsonnet: improve all-namespaces addon
2021-06-01 11:00:55 +02:00
Damien GrisonnetandGitHub 68b926f643 Merge pull request #1170 from paulfantom/include-versions
scripts: include kube-rbac-proxy and config-reloader in version upgrades
2021-05-31 11:58:28 +02:00
Damien Grisonnet a4a4d4b744 jsonnet: add PDB to prometheus-adapter
Adding a PodDisruptionBudget to prometheus-adapter ensure that at least
one replica of the adapter is always available. This make sure that even
during disruption the aggregated API is available and thus does not
impact the availability of the apiserver.

Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com>
2021-05-05 16:15:25 +02:00
Damien Grisonnet fa05e2cde8 jsonnet: export anti-affinity addon
Export the antiaffinity function of the anti-affinity addon to make it
possible to extend the addon to component that are not present in the
kube-prometheus stack.

Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com>
2021-04-27 15:30:06 +02:00
Damien Grisonnet 4c6a06cf7e jsonnet: make prometheus-adapter highly-available
Prometheus-adapter is a component of the monitoring stack that in most
cases require to be highly available. For instance, we most likely
always want the autoscaling pipeline to be available and we also want to
avoid having no available backends serving the metrics API apiservices
has it would result in both the AggregatedAPIDown alert firing and the
kubectl top command not working anymore.

In order to make the adapter highly-avaible, we need to increase its
replica count to 2 and come up with a rolling update strategy and a
pod anti-affinity rule based on the kubernetes hostname to prevent the
adapters to be scheduled on the same node. The default rolling update
strategy for deployments isn't enough as the default maxUnavaible value
is 25% and is rounded down to 0. This means that during rolling-updates
scheduling will fail if there isn't more nodes than the number of
replicas. As for the maxSurge, the default should be fine as it is
rounded up to 1, but for clarity it might be better to just set it to 1.
For the pod anti-affinity constraints, it would be best if it was hard,
but having it soft should be good enough and fit most use-cases.

Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com>
2021-04-22 09:57:14 +02:00
Damien Grisonnet ed5a2f94fc jsonnet: fix test failures with platformPatch
Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com>
2021-04-09 12:59:18 +02:00
Damien Grisonnet b59b2c23d8 examples: update platform snippets and doc
Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com>
2021-04-06 11:42:29 +02:00
Damien Grisonnet f06175bb3b jsonnet: add function to apply platform patches
Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com>
2021-03-31 18:00:04 +02:00
Damien Grisonnet 8973a90049 examples: use ExampleAlert instead of Watchdog
Replace Watchdog alerts part of the `example-group` in some examples by
ExampleAlert alerts to reinforce the fact that this is just an example.

Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com>
2021-03-25 18:11:56 +01:00
Damien Grisonnet 9f6c7d7654 examples/thanos-sidecar: fix image url
Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com>
2021-03-10 11:47:57 +01:00
Damien Grisonnet 816c73acc6 examples: cleanup thanos-sidecar addon imports
Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com>
2021-03-10 10:59:59 +01:00
Damien Grisonnet d37a299499 jsonnet,manifests: bump grafana to v7.3.5
Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com>
2020-12-11 14:19:29 +01:00
Damien Grisonnet 6a05efd636 Cut release-0.7
Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com>
2020-12-10 09:55:20 +01:00
Damien Grisonnet 6eb8c9d123 ci: migrate to github actions
Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com>
2020-09-21 10:36:59 +02:00
Damien Grisonnet 152c02b7f8 manifests: regenerate
Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com>
2020-09-10 16:15:53 +02:00
Damien Grisonnet 9e18cf2097 jsonnet: bump kube-rbac-proxy to v0.6.0
Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com>
2020-09-10 16:15:35 +02:00
Damien Grisonnet ce1bc17d98 doc: update release-0.5 compatibility
kubernetes-mixin release-0.4 is only supported by 1.18+

Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com>
2020-05-26 18:27:32 +02:00
Damien Grisonnet be4b525774 build.sh: fix json files cleanup
Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com>
2020-04-29 13:10:32 +02:00
Damien Grisonnet 7f9b082ed3 go.mod: remove unused packages
Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com>
2020-04-07 10:56:49 +02:00
Damien Grisonnet 7b4adb08f6 test.sh: update PATH to use project tooling
Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com>
2020-04-07 10:55:17 +02:00
Damien Grisonnet c9900d6a57 Makefile: export GO111MODULE=on
Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com>
2020-04-07 10:38:13 +02:00
Damien Grisonnet 026425117d Makefile: use go install instead of go build
Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com>
2020-04-06 18:50:56 +02:00
Damien Grisonnet f4b8064899 README: remove make in docker guidance
Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com>
2020-04-06 18:15:36 +02:00
Damien Grisonnet 9a7ba10755 build.sh: update PATH to use project tooling
Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com>
2020-04-06 18:15:34 +02:00
Damien Grisonnet cb49f90491 ci: use golang tooling
Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com>
2020-04-06 12:50:11 +02:00
Damien Grisonnet a9df00baec mod: add tooling dependencies
Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com>
2020-04-06 12:49:51 +02:00
Damien Grisonnet 0f6cd6d0a8 Makefile: remove containerized tooling
Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com>
2020-04-06 12:47:57 +02:00
Damien GrisonnetandLili Cosic 63bdb7d931 doc: add kubernetes compatibility matrix
Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com>

Co-Authored-By: Lili Cosic <cosiclili@gmail.com>
2020-03-31 13:39:26 +02:00
Damien Grisonnet 848285797c doc: add note related to example.jsonnet
Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com>
2020-03-05 10:23:27 +01:00
Damien Grisonnet b5ba409b9a doc: update release version in customizing section
Fixes #435

Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com>
2020-03-04 13:14:04 +01:00