Benoît Knecht
dc77f255de
prometheus: Let name and replicas be set in _config
...
Before #260 , the Prometheus name and number of replicas could be
configured in `_config.prometheus.name` and
`_config.prometheus.replicas` respectively.
It isn't the case anymore, which means that configurations that did set
a custom name for Prometheus will get a second Prometheus instance
called `k8s` when they upgrade kube-prometheus.
This commit adds back the ability to configure both of these parameters
in `_config`.
2019-10-24 09:39:04 +02:00
Benoît Knecht
a7884a6c18
node-exporter: Use configured resources for kube-rbac-proxy ( #279 )
...
Since #132 , `kube-rbac-proxy` resources can be configured in
`config.resources['kube-rbac-proxy']`, but the node-exporter daemonset
was still using hard-coded values.
This commit sets the request and limit resources to the configured
values for the `kube-rbac-proxy` container in the node-exporter pods.
2019-10-23 10:58:24 +02:00
albertdb
24aebaf985
Bump prometheus-adapter and Grafana versions ( #270 )
...
* Bumping prometheus-adapter and Grafana versions
* Bumping prometheus-adapter version in libsonnet file
* Regenerating lockfile
* Bumping Grafana version in libsonnet file
* Updating kustomization.yaml
2019-10-21 12:42:19 +02:00
Frederic Branczyk
3d5fc3e38d
Merge pull request #252 from benjaminhuo/ksm-autoscaler
...
Add cluster-proportional-vertical-autoscaler as a seperate deployment for ksm
2019-10-16 15:38:29 +02:00
Benjamin
a16d5b69ab
Add seperate autoscaler for ksm
...
Signed-off-by: Benjamin <benjamin@yunify.com >
2019-10-16 16:02:44 +08:00
Sergiusz Urbaniak
bd8d597f8d
jsonnet/kube-prometheus/kube-promehtues-anti-affinity: fix construction
...
Currently, anti affinity sources configuration from the global configuration,
not respecting local prometheus settings.
This fixes it.
2019-10-08 17:30:12 +02:00
Sergiusz Urbaniak
bcadf3ae05
Merge pull request #260 from s-urbaniak/prometheus-constructor
...
kube-prometheus/prometheus: Add local configuration
2019-10-08 17:16:01 +02:00
Sergiusz Urbaniak
40a5dc2b71
kube-prometheus/prometheus: Add local configuration
...
This adds constructor'esque configuration options for prometheus assets.
They still reference global _config default values for backwards compatibility
but allow overriding values for new instances of prometheus assets.
2019-10-08 11:37:26 +02:00
Sean Fausett
5155e57141
jsonnet/kube-prometheus/prometheus-adapter: fix nodeQuery rate for window
2019-10-08 08:48:55 +13:00
paulfantom
d2dd84bc0f
jsonnet/kube-prometheus/prometheus-adapter: fix incorrect window in containerQuery
2019-10-06 18:57:14 +02:00
paulfantom
c72ae7b63c
increase time period for rate over cadvisor metrics
2019-10-02 16:31:55 +02:00
Sergiusz Urbaniak
ee7d0d367f
jsonnet/prometheus-adapter: Fix query for k8s 1.16
2019-09-27 11:02:32 +02:00
Lili Cosic
48eefc51d9
jsonnet/kube-prometheus/kube-state-metrics: Do not drop job label
...
Currently a lot of alerts relly on the job='kube-state-metrics' label.
2019-09-26 14:14:08 +02:00
Frederic Branczyk
4da422095b
Merge pull request #239 from simonpasquier/improve-target-down-message
...
jsonnet/kube-prometheus/alerts: improve TargetDown message
2019-09-25 09:56:53 +02:00
Simon Pasquier
b9504efef7
jsonnet/kube-prometheus/alerts: improve TargetDown message
...
Signed-off-by: Simon Pasquier <spasquie@redhat.com >
2019-09-25 09:11:03 +02:00
Lili Cosic
b6c6d39fb9
sonnet/kube-prometheus/node-exporter: Fix typo
2019-09-24 17:02:03 +02:00
Guus van Weelden
b6becc0936
removing addonResizer from ksm
...
the addonresizer could lead to problems with the kube-state-metrics
it is also removed from the ksm maintained kubernetes manifests
https://github.com/kubernetes/kube-state-metrics/pull/750
Signed-off-by: Guus van Weelden <guus.vanweelden@moia.io >
2019-09-24 14:19:59 +02:00
Lili Cosic
974d3a70be
jsonnet/kube-prometheus/kube-state-metrics: Drop ksm own labels
...
These labels are confusing and misleading, as they describe
kube-state-metrics itself not the target itself.
2019-09-23 18:28:14 +02:00
Lili Cosic
26750eadf5
Bump prometheus-operator to 0.33 release
2019-09-12 17:49:29 +02:00
Alexandre Veyrenc
81038c7f3c
Kubespray deploys CoreDNS with label k8s-app=kube-dns
2019-09-09 11:39:00 +02:00
yeya24
53ebff6465
add the missing quote
...
Signed-off-by: yeya24 <yb532204897@gmail.com >
2019-09-04 10:33:02 -04:00
yeya24
223a3be924
bump thanos image version
...
Signed-off-by: yeya24 <yb532204897@gmail.com >
2019-09-03 10:24:48 -04:00
Lili Cosic
907d6071e6
jsonnet/kube-prometheus/jsonnetfile.json: Bump prometheus-operator
...
release
2019-08-30 18:09:07 +02:00
Sergiusz Urbaniak
5bea571be1
jsonnet/prometheus-adapter: fix resource override for raw node query
2019-08-29 17:33:26 +02:00
Sergiusz Urbaniak
f383664170
jsonnet/kube-prometheus-prometheus-adapter: fix node query
...
Currently, we use the node:node_memory_bytes_total:sum and node:node_memory_bytes_available:sum
recording rules for the memory node query.
These recording rules have been removed in https://github.com/coreos/kube-prometheus/pull/191 .
This fixes it by using raw queries.
2019-08-29 13:19:33 +02:00
Frederic Branczyk
fa6d6833cd
Merge pull request #189 from kylebyerly-hp/patch-2
...
Add labels for namespace and service to TargetDown
2019-08-29 08:12:06 +02:00
Kyle Byerly
fda5811975
Add labels for namespace and service to TargetDown
2019-08-28 15:29:26 -06:00
Prune Sebastien THOMAS
2511a6c529
use real alertmanager name
...
`alertmanager-main` is hardcoded where it should derive from the real alertmanager name as defined by the user
2019-08-27 11:53:12 -04:00
paulfantom
2396fa9483
jsonnet/kube-prometheus: add node-mixin
2019-08-26 10:56:30 +02:00
paulfantom
bcbf54805a
jsonnet/kube-prometheus/alerts: remove alerts provided by node_exporter mixin
2019-08-26 10:56:05 +02:00
Matthias Loibl
da959c6436
Merge pull request #185 from bgagnon/fix-72
...
Fix wrong config used for node-exporter container limits
2019-08-19 11:11:22 +02:00
Lili Cosic
909f51b3bd
jsonnet/kube-prometheus: Prevent many-to-many matching
...
If there is more than one prometheus-operator pod, which happens briefly
when we delete the prometheus-operator pod, we can see the errors of
many-to-many matching, this whitelists the labels matching, and excluded
the pod.
2019-08-16 15:55:17 +02:00
Benoit Gagnon
04309dcdb6
fix wrong config used for node-exporter container limits
2019-08-12 13:23:10 -04:00
Frederic Branczyk
636f2b6e81
Merge pull request #132 from bgagnon/fix-72
...
Add mixin to strip cpu/memory limits (issue #72 )
2019-08-12 10:29:31 +02:00
Benoit Gagnon
da644166a3
use proper operator so requests are not stripped
2019-08-10 14:35:06 -04:00
Benoit Gagnon
16c22b7250
move resources requests/limits to _config and simplify mixin
2019-08-10 14:31:28 -04:00
Guus van Weelden
c793073789
set kubeStateMetrics version to 1.7.2
...
Signed-off-by: Guus van Weelden <guus.vanweelden@moia.io >
2019-08-09 16:09:03 +02:00
Frederic Branczyk
e7d1ada775
Merge pull request #141 from dominikhahn/master
...
Increase ntp clockskewdetected accuracy to 5ms
2019-08-05 10:31:31 +02:00
Lili Cosic
8b570f5fbb
jsonnet/kube-state-metrics: Fix storageclass role
...
The resource is called storageclasses not storageclass.
2019-07-31 16:53:06 +02:00
Lili Cosic
62caa7adc9
jsonnet/kube-prometheus/kube-state-metrics: Bump 1.7.1
2019-07-31 16:52:03 +02:00
Matthias Loibl
6faecd63b7
Bump kube-state-metrics to 1.7.0-rc.1 and add storageclass rules
2019-07-31 16:51:27 +02:00
Matthias Loibl
7d6183a9ec
jsonnet/kube-prometheus/kube-state-metrics: Move rules into array
2019-07-31 16:51:27 +02:00
Lili Cosic
ccb138374e
jsonnet: Include node name in NodeDiskRunningFull
...
This makes it easier to indetify which node alert is firing for.
Currently only device namespace and pod name were included in
the alert.
2019-07-24 17:52:39 +02:00
Lili Cosic
44dab89344
jsonet: Relabel instance to node name
...
This allows us to display the node name in alerts, instead of the IP.
2019-07-24 17:34:54 +02:00
Ryan Phillips
176a187117
change to use GA kubelet OS label
2019-07-18 15:19:07 -05:00
Matthias Loibl
a535968c33
Add empty podMonitorSelector to Prometheus resource
2019-07-18 16:35:01 +02:00
Frederic Branczyk
c8c850ef2b
jsonnet: Use upstream prometheus-mixin
2019-07-11 15:35:48 +02:00
Matthias Loibl
f1cd88fdbb
Remove Thanos components from kube-prometheus except sidecar
2019-07-10 16:39:41 +02:00
Frederic Branczyk
daf2e76bc6
Merge pull request #144 from zachaller/patch-1
...
Update kube-state-metrics.libsonnet
2019-07-10 09:45:31 +02:00
Rajat Vig
0bc30832d0
Bump to newer release for Prometheus and Alertmanager
2019-07-09 23:02:26 -07:00