Commit Graph

49 Commits

Author SHA1 Message Date
Jonathan Amiez
3ba4b5602a Enable PodMonitors discovery across namespaces 2019-12-05 15:09:40 +01:00
Sergiusz Urbaniak
03b36af546 Merge pull request #282 from BenoitKnecht/prometheus-config
prometheus: Let name and replicas be set in _config
2019-10-25 09:45:11 +02:00
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
Jake Utley
4e5b454ba8 Add metrics_path label to kubelet servicemonitor endpoints (#277)
* Add metrics_path label to kubelet servicemonitor endpoints

* Set kubelet metric_path label in jsonnet

* Add generated kubelet servicemonitor
2019-10-24 09:16:57 +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
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
Rajat Vig
0bc30832d0 Bump to newer release for Prometheus and Alertmanager 2019-07-09 23:02:26 -07:00
Israel Sotomayor
6e65c508f8 fix: typo 2019-06-15 23:59:30 +00:00
Rajat Vig
fa93506941 Update Prometheus, Node Exporter & Grafana (#119)
* Update Prometheus, Node Exporter & Grafana

* Update Prometheus to 2.10.0

* Add generated manifests

* Update lock reference to git sha

* Retrigger Travis
2019-06-13 08:22:01 +02:00
Matthias Loibl
107028fff3 Remove extra ksonnet4 dependency 2019-05-29 17:58:29 +02:00
Matthias Loibl
bedeadb7f5 Add ksonnet4 with ksonnet.beta.4 and update all imports 2019-05-29 17:57:52 +02:00
Frederic Branczyk
f8bd9b89f7 kube-prometheus: Don't drop non-pod metrics
These metrics can still be valuable to troubleshoot components running
in cgroups on the host, outside the scope of Kubernetes pods.
2019-04-09 15:28:44 +02:00
Matthias Loibl
3fbc968930 contrib/kube-prometheus: Update Prometheus, Thanos & Grafana 2019-03-12 18:28:39 +01:00
Frederic Branczyk
a1b85016a3 kube-prometheus: Drop disabled and high cardinality metrics 2019-02-06 14:29:26 +01:00
Lucas Serven
fd697ffbff contrib/kube-prometheus: remove node role
This commit removes get/list/watch on nodes for the Prometheus-k8s
instance, as Prometheus pods do not need that privilege for anything.
2019-01-28 14:21:01 +01:00
Max Leonard Inden
f0d8ba64d7 kube-prometheus: Remove enableAdminAPI configuration option
Manifest generation fails if this option is not set. Instead, remove the
option and require users to patch the object in case they need it.
2019-01-21 17:09:14 +01:00
Purandare, Aditya
fcda42b123 Remove api flag from jsonnet files 2019-01-17 23:32:10 +05:30
Purandare, Aditya
85c4c2b8df Turn prometheus admin API off by default 2019-01-17 23:32:09 +05:30
Purandare, Aditya
95771caf8c Remove updates to helm chart, fix typo in flag, add make generated files 2019-01-17 23:32:08 +05:30
Purandare, Aditya
e3b989ccd3 Add prometheus admin flag feature to helm, kube-prometheus and jsonnet files 2019-01-17 23:32:08 +05:30
BennX
cb149a10bc Add SessionAffinity ClusterIP to prometheus service.
Adds SessionAffinity ClusterIP to the prometheus service to prevent grafana from querying different instances when loading/updating metrics.
2019-01-08 16:13:35 +01:00
Brian Christie
e6c43d286d contrib/kube-prometheus: Add jobLabel to ServiceMonitorCoreDNS 2018-12-18 12:26:03 +00:00
Matthias Loibl
dee254fa01 contrib/kube-prometheus: Set securityContext in the manifests 2018-12-07 17:32:34 +01:00
Fabian Stäber
b9a6730daf fix syntax error in prometheus.libsonnet 2018-11-28 10:20:23 +01:00
Maxim Ivanov
4a15683db4 Do not error if no $._config.prometheus.rules are set 2018-11-27 15:29:46 +00:00
Frederic Branczyk
d7fc1eb32b kube-prometheus: Adapt CoreDNS default configuration to default CoreDNS installs 2018-11-21 16:22:27 +01:00
Matthias Loibl
174e84f3e5 *: Update to Proemtheus v2.5.0 as default 2018-11-07 16:23:50 +01:00
Manuel Rüger
be55290b3f *: Update to Prometheus v2.4.3 2018-10-09 18:35:29 +02:00
Matthias Loibl
eca6e62402 contrib/kube-prometheus: Drop etcd metrics by apiserver & kube controller 2018-10-01 14:11:04 +02:00
Frederic Branczyk
873ef744a5 Merge pull request #1929 from mxinden/prometheus-2.4.0
*: Update to Prometheus 2.4.0
2018-09-28 15:58:21 +02:00
Matthias Loibl
0f0c168b44 *: Update to Prometheus v2.4.0 2018-09-28 15:16:26 +02:00
Matthias Loibl
916863e4d5 contrib/kube-prometheus: Set podAntiAffinity for Prometheus & Alertmanager
contrib/kube-prometheus: Generate new manifests with antiAffinity

contrib/kube-prometheus: jb update

Documentation: Generate after updating kube-prometheus manifests

contrib/kube-prometheus: Move antiaffinity into own jsonnet file

foobar
2018-09-28 10:15:22 +02:00
Max Leonard Inden
d482cef033 Update Prometheus to v2.3.2 and Alertmanager to 0.15.2 2018-08-16 11:05:14 +02:00
Frederic Branczyk
ff878498df kube-promethes: Fix default serviceMonitorSelector 2018-08-13 15:12:15 +02:00
Robert Nemeti
43dc7999ca provide empty hash to serviceMonitorNamespaceSelector, which selects all the namespaces by default 2018-08-06 08:19:28 +00:00
Robert Nemeti
0f76dc63b6 add serviceMonitorNamespaceSelector to the prometheus jsonnet library
to implement the feature from PR #1227
2018-08-06 07:38:26 +00:00
Vasilis Remmas
d009846be9 Create rolebinding using $._config.namespace
Assign the rolebinding to an existing serviceaccount
2018-08-02 10:59:34 +02:00
prune
facf7cc0e1 minor update as requested in PR 2018-08-01 07:35:28 -04:00
prune
fc382e15cd allow creation of role and rolebindings for other namespaces in jsonnet
replaced default namespaces rbac rules by a loop


set right variable name
2018-07-27 07:48:17 -04:00
Frederic Branczyk
6312998080 kube-prometheus: Bump various versions 2018-06-25 13:48:36 +02:00
Frederic Branczyk
1d5623d4a0 kube-prometheus: Extract prometheus-operator jsonnet out of contrib 2018-06-06 18:01:32 +02:00
Frederic Branczyk
e84b101fe7 *: Rename RuleFile to PrometheusRule 2018-06-05 13:34:13 +02:00
Max Leonard Inden
8f3b505049 kube-prometheus: Adjust to new Prometheus rule file CRD
89fc4e306972604eba2dcb961a6d29cc27a668ad introduced the new Prometheus
rule file custom resource definition. This patch adjusts the
kube-prometheus project to use the new custom resource definition.
2018-06-04 20:23:02 +02:00
Frederic Branczyk
b7d0da01d5 kube-prometheus: Remove unnecessary namespace selectors 2018-05-31 17:37:43 +02:00
Matthias Loibl
23cd630d33 Change the roleBinding and rules names too 2018-05-25 22:46:58 +02:00
Matthias Loibl
da6fc256b5 Make the prometheus & alertmanager name configurable 2018-05-25 18:02:23 +02:00
Frederic Branczyk
fef0a65938 Adapt docs on additional rules and dashboards 2018-05-18 11:00:11 +02:00
Frederic Branczyk
edf21e4382 kube-prometheus/jsonnet: Use jsonnet-bundler 2018-04-28 19:05:19 +01:00