49 Commits

Author SHA1 Message Date
Paweł Krupa
db7f3c9107
Merge pull request #1125 from kaflake/feature/configGrafanaImage
can change grafanaImage over $.values.common.images
2021-05-03 09:55:19 +02:00
Nagel, Felix
14e6143037 replace double quotes with single quotes 2021-05-03 06:35:59 +02:00
Nagel, Felix
7e5d4196b9 can change grafanaImage over $.values.common.images 2021-04-30 14:05:23 +02:00
Nagel, Felix
be2964887f can change configmapReload over $.values.common.images 2021-04-30 12:46:48 +02:00
Paweł Krupa
a3d67f5219
Merge pull request #1095 from dgrisonnet/prometheus-adapter-ha
Make prometheus-adapter highly-available
2021-04-22 12:00:39 +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
paulfantom
7b69800686
jsonnet: add default container annotation for KSM and blackbox
Signed-off-by: paulfantom <pawel@krupa.net.pl>
2021-04-21 18:43:00 +02:00
ArthurSens
c96c639ef1 Add summary
Signed-off-by: ArthurSens <arthursens2005@gmail.com>
2021-04-16 18:06:47 +00:00
ArthurSens
92016ef68d Change message to description
Signed-off-by: ArthurSens <arthursens2005@gmail.com>
2021-04-16 18:06:47 +00:00
Paweł Krupa
07136d1d6e
Merge pull request #1039 from paulfantom/unify-config
jsonnet: unify internal configuration field name
2021-04-16 15:05:26 +02:00
Paweł Krupa
2ba8d8aca2
Merge pull request #1058 from mansikulkarni96/windows_exporter 2021-04-07 10:07:33 +02:00
mansikulkarni96
7ba0479433 jsonnet: Add windows_exporter queries for adapter
This commit includes windows_exporter metrics in the
node queries for the prometheus adapter configuration.
This will help obtain the resource metrics: memory and
CPU for Windows nodes. This change will also help in
displaying metrics reported through the 'kubectl top'
command which currently reports 'unknown' status for
Windows nodes.
2021-03-29 14:55:11 -04:00
viperstars
d1f401a73d add cluster role to list and watch ingresses in api group "networking.k8s.io" 2021-03-29 14:19:35 +08:00
paulfantom
0bf34a24f8
jsonnet: unify internal configuration field name
Signed-off-by: paulfantom <pawel@krupa.net.pl>
2021-03-22 12:48:55 +01:00
Petr Enkov
094cdb34e8
allow install grafana plugins 2021-03-22 11:57:11 +04:00
ArthurSens
2fa7ef162f Add externalLabels on Prometheus defaults
Signed-off-by: ArthurSens <arthursens2005@gmail.com>
2021-03-18 18:36:10 +00:00
paulfantom
0d2e0875d9
jsonnet/prometheus-adapter: include pause container in resource calculations 2021-03-16 15:17:22 +01:00
paulfantom
30a41d18d8
jsonnet: conditionally add PDB 2021-03-15 23:39:24 +01:00
paulfantom
9d327cb328
jsonnet: add PDB to alertmanager and prometheus pods 2021-03-15 16:33:18 +01:00
Matthias Loibl
8e5bf00c54
Merge pull request #984 from paulfantom/am_resources
jsonnet/alertmanager: add default alertmanager resource requirements
2021-03-08 10:20:20 +01:00
ArthurSens
bb2971e874 Add runbook_url annotation for custom mixins
Signed-off-by: ArthurSens <arthursens2005@gmail.com>
2021-03-05 14:07:01 +00:00
ArthurSens
e586afb280 Add runbook_url annotation to all alerts
Signed-off-by: ArthurSens <arthursens2005@gmail.com>
2021-03-05 13:39:40 +00:00
paulfantom
f7f817a79e
jsonnet/alertmanager: better name for prometheus-rule object 2021-03-01 13:26:46 +01:00
paulfantom
23c8d865f5
jsonnet/alertmanager: add default alertmanager resource requirements
Co-authored-by: Latch M <latch_mihaylov@homedepot.com>
2021-02-25 18:51:34 +01:00
Paweł Krupa
f691421c91
Merge pull request #960 from paulfantom/k8s-control-plane
Do not modify $.prometheus object when it is not needed (k8s control plane)
2021-02-23 10:30:17 +01:00
Frederic Branczyk
da05d36c31
Merge pull request #941 from paulfantom/ksm-krp-cpu
increase default CPU values for main kube-rbac-proxy sidecar in kube-state-metrics
2021-02-23 09:50:16 +01:00
paulfantom
7c95f88a2b
jsonnet: increase default CPU values for main krp sidecar in ksm
Signed-off-by: paulfantom <pawel@krupa.net.pl>
2021-02-23 09:36:24 +01:00
paulfantom
c80a82b19a
jsonnet/kube-prometheus: create k8s control plane component
* Extract ServiceMonitors related to k8s control plane from prometheus
object into separate one
* Add kubernetes-mixin to new object

Signed-off-by: paulfantom <pawel@krupa.net.pl>
2021-02-22 16:36:14 +01:00
Maxime Brunet
f039fc94cf
Ensure Prometheus ServiceMonitor is unique 2021-02-19 17:09:52 -08:00
Paweł Krupa
daad0e1fae
Merge pull request #925 from shreyashah1903/fix-kubelet-label
kubelet: Update label selector
2021-02-19 10:19:35 +01:00
paulfantom
cff8fec592
jsonnet: better name for prometheus PrometheusRule object 2021-02-12 09:40:14 +01:00
paulfantom
30d3d5950d
jsonnet: do not include thanos field when not needed
Signed-off-by: paulfantom <pawel@krupa.net.pl>
2021-02-10 12:06:43 +01:00
Shreya Shah
ff3e0e1ee4 Update kubelet label selector 2021-02-09 17:52:54 +05:30
paulfantom
4245ded81b
jsonnet: bump node-exporter to 1.1.0 and remove deprecated flag 2021-02-06 19:58:45 +01:00
Paweł Krupa
2ff04a63a3
Merge pull request #907 from paulfantom/grafana-v2
jsonnet/grafana: re-map datasources and config
2021-02-05 16:59:31 +01:00
paulfantom
a9dd864c67
jsonnet/grafana: re-map datasources and config
Signed-off-by: paulfantom <pawel@krupa.net.pl>
2021-02-05 16:49:41 +01:00
Lili Cosic
73db89874e
Merge pull request #914 from paulfantom/typo
jsonnet: remove superfluous quotation mark
2021-02-05 16:48:13 +01:00
paulfantom
0b0b967764
jsonnet: thanos sidecar as first-level addon
Signed-off-by: paulfantom <pawel@krupa.net.pl>
2021-02-04 14:43:16 +01:00
paulfantom
6dfd6d891c
jsonnet: remove superfluous quotation mark 2021-02-03 16:41:58 +01:00
Paweł Krupa
e3cd00e01a
Merge pull request #904 from paulfantom/dashboarding_issues
Dashboarding issues
2021-02-02 11:09:11 +01:00
paulfantom
ab3dff2016
examples,jsonnet: expose kubernetes-grafana API to fix grafana examples
Signed-off-by: paulfantom <pawel@krupa.net.pl>
2021-02-02 10:24:07 +01:00
Simon Pasquier
102d4c6513 Default alerting to Alertmanager API v2
Alertmanager API v2 is available for more than 2 years now, there's no
reason to not use it by default.

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2021-01-29 15:57:16 +01:00
Paweł Krupa
40c1c7a190
Merge pull request #885 from lanmarti/hotfix/884
Changed labels for grafana service monitor selector
2021-01-29 10:48:19 +01:00
Jimmi Dyson
5b6f50ffb2
jsonnet: Upgrade configmap-reload image to v0.5.0 to fix CVE 2021-01-27 10:56:44 +00:00
paulfantom
d3ad5de993
jsonnet/kube-promethues/components: remove veth interfaces from node_exporter metrics
Signed-off-by: paulfantom <pawel@krupa.net.pl>
2021-01-25 14:49:13 +01:00
lanmarti
70cfe27872 Added quotes around label key 2021-01-25 13:03:05 +01:00
lanmarti
ff3e611245 Changed labels for grafana service monitor selector 2021-01-25 13:03:05 +01:00
paulfantom
369730b701
jsonnet: move ksm--autoscaler to addons 2021-01-18 16:41:19 +01:00
paulfantom
1eedb90c17
jsonnet: move files around
Signed-off-by: paulfantom <pawel@krupa.net.pl>
2021-01-15 15:07:10 +01:00