Commit Graph

94 Commits

Author SHA1 Message Date
Frederic Branczyk 0eabd2e536 kube-prometheus: Fix Alertmanager secret namespace. 2018-10-16 14:33:14 +02:00
Damien Lespiau 253abe0f96 contrib/kube-prometheus: Introduce a withImageRepository mixin
This mixin replaces all images prefixes by $repository to generate manifests
that will point to an internal registry.
2018-10-16 11:59:31 +01:00
Damien Lespiau 466cbe50b0 contrib/kube-prometheus: Add a script to sync images to an internal registry
Crazy at it sounds, some Kubernetes installations don't have access to Internet
and source all their images from an internal registry.

sync-to-internal-registry.jsonnet is a jsonnet snippet that helps with the task
of pushing upstream images used by the prometheus operator to an internal
registry by printing the right docker pull/tag/push commands.

$ jsonnet -J vendor -S --tla-str repository=internal-registry.com/organization sync-to-internal-registry.jsonnet
docker pull quay.io/coreos/addon-resizer:1.0
docker tag quay.io/coreos/addon-resizer:1.0 internal-registry.com/organization/addon-resizer:1.0
docker push internal-registry.com/organization/addon-resizer:1.0
docker pull quay.io/prometheus/alertmanager:v0.15.2
docker tag quay.io/prometheus/alertmanager:v0.15.2 internal-registry.com/organization/alertmanager:v0.15.2
docker push internal-registry.com/organization/alertmanager:v0.15.2
...
2018-10-16 11:59:31 +01:00
Lucas Servén Marín 8a4b01427f Merge pull request #1958 from nrobert13/objectify_alertmanager_config
objectify alertmanager config
2018-10-15 13:11:26 +02:00
Matthias Loibl e1ed50158b contrib/kube-prometheus: Fix AlertmanagerConfigInconsistent alert expression 2018-10-12 14:43:20 +02:00
Matthias Loibl 36c9451752 Update kube-prometheus' dependency of prometheus-operator to v0,24 2018-10-12 13:46:56 +02:00
Matthias Loibl acd8924d57 Add triggered_total metric to alertmanager controller
Update client_golang for wrappable registerer
2018-10-10 18:06:00 +02:00
Manuel Rüger be55290b3f *: Update to Prometheus v2.4.3 2018-10-09 18:35:29 +02:00
Robert Nemeti bb6b5099dc allow backward compatibility with the textblock 2018-10-02 15:14:21 +02:00
Matthias Loibl eca6e62402 contrib/kube-prometheus: Drop etcd metrics by apiserver & kube controller 2018-10-01 14:11:04 +02:00
Robert Nemeti 6c7c756b26 objectify alertmanager config
this way it will be possible to merge configs
2018-10-01 10:28:23 +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
Frederic Branczyk d480b41d8f Merge pull request #1935 from metalmatze/antiaffinity
contrib/kube-prometheus: Set antiAffinity for Prometheus & Alertmanager
2018-09-28 15:51:30 +02:00
Matthias Loibl 0f0c168b44 *: Update to Prometheus v2.4.0 2018-09-28 15:16:26 +02:00
Lucas Serven 3ff5d01277 contrib: remove duplicate alertmanager alert 2018-09-28 11:40:12 +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
Elisiano Petrini 59fd4cd63e Add initial thanos support to kube-prometheus
This is distributed as a library that the user is meant to import.
example:

```
kp =  (import 'kube-prometheus/kube-prometheus.libsonnet') +
      (import 'kube-prometheus/kube-prometheus-thanos.libsonnet') +
      {
        _config+:: {...}
      };
```
2018-09-26 15:20:16 +02:00
Lucas Servén Marín bb2a9e87bc Merge pull request #1891 from metalmatze/prometheus-operator-alerts
kube-prometheus: Add Prometheus Operator alerts
2018-09-14 14:22:10 +02:00
Lucas Serven 7e34199dd8 contrib: jsonnetfile newline 2018-09-14 13:36:43 +02:00
Matthias Loibl 24141c464f contrib/kube-prometheus: Improve consistency of Prometheus Operator alerts 2018-09-14 13:33:49 +02:00
Matthias Loibl 407aaa5e2f contrib/kube-prometheus: Alert in 10% erros when reconciling Prom & Alertmanager 2018-09-14 11:08:15 +02:00
Matthias Loibl 8d38e81521 contrib/kube-prometheus: Create missing Prometheus operator alerts 2018-09-14 11:05:28 +02:00
Matthias Loibl 483a1c115f contrib/kube-prometheus: Fix outdated alerts to use message annotation 2018-09-13 14:59:50 +02:00
Lucas Serven 34dd0a798a contrib/.../alerts: improve alert messages 2018-09-07 15:23:51 +02:00
Frederic Branczyk 6536496716 kube-prometheus: Improve disk alert
Only trigger disk running full alerts when the disk capacity is over 85%
and use recording rule of the kubernetes-mixin to only consider real
physical filesystems.
2018-09-05 23:00:57 +02:00
Frederic Branczyk 4c90bd93b0 kube-prometheus: Update Prometheus Operator dependency 2018-08-27 13:58:06 -06:00
Sergiusz Urbaniak 2a9a31875a kube-prometheus: fix root typo in node-exporter
Currently, we are mounting `/root` from the host as `/host/root`.
Instead simply `/` from the host should be mounted.

This fixes it

Signed-off-by: Sergiusz Urbaniak <sergiusz.urbaniak@gmail.com>
2018-08-23 11:59:04 +02:00
Frederic Branczyk e7437ade81 Merge pull request #1732 from jolson490/kube-prometheus_documentation
kube-prometheus documentation
2018-08-22 20:28:52 +02:00
Frederic Branczyk da2536398c kube-prometheus: Update node-exporter to v0.16.0 2018-08-20 22:00:14 +02:00
Sergiusz Urbaniak 106ed84217 kube-prometheus: bind mount host rootfs into node exporter
Fixes https://github.com/prometheus/node_exporter#474 in the operator
Fixes #569 (by making the mount explicit)

Signed-off-by: Sergiusz Urbaniak <sergiusz.urbaniak@gmail.com>
2018-08-17 11:50:49 +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 f291ce1005 kube-prometheus: bump Prometheus Operator version 2018-08-14 16:34:05 +02:00
Frederic Branczyk a559123a2b kube-prometheus: Allow skipping etcd TLS errors 2018-08-13 21:33:33 +02:00
Frederic Branczyk ff878498df kube-promethes: Fix default serviceMonitorSelector 2018-08-13 15:12:15 +02:00
Henrique Fernandes 25bb07fe7d Fix typos 2018-08-08 10:14:23 -03:00
Lucas Serven 28e3ef5a6d contrib/kube-prometheus: bump prometheus-operator
This commit bumps the version of the Prometheus Operator jsonnet
dependency in kube-prometheus. With this change, kube-prometheus now
supports Prometheus Operator v0.23.0.
2018-08-07 17:44:01 +02:00
Frederic Branczyk 0d35d31c1f Merge pull request #1730 from nrobert13/prometheus_jsonnet_add_SM_NS_Selector
add serviceMonitorNamespaceSelector to the prometheus jsonnet library
2018-08-07 09:27:19 +02:00
Lucas Serven 7213f93e41 *: cut 0.23.0 2018-08-06 16:05:42 +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
Joshua Olson 0e9b446143 Merge branch 'master' into kube-prometheus_documentation 2018-08-01 09:26:28 -05:00
Joshua Olson bed6e4865a kube-prometheus: update etcd info
Resolves issue #1629 in this repository.
2018-08-01 09:17:58 -05: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 9a011bb8ac kube-prometheus: Use locking mechanism for jsonnet dependencies 2018-07-25 17:21:50 +02:00
Mark Eijsermans cf6232c479 adjust rbac apiGroups to support core workloads api apps/v1 2018-07-24 18:05:16 -07:00
Ali Rizwan d728ab5511 Only alert for nodes that currently exist (#1661) 2018-07-23 12:20:54 +02:00
seph 596b8697d0 Set default scrape values
We default to a 30s scrapeInterval, we may as well also set scrapeTimeout to the same.
2018-07-17 10:24:10 -04:00
seph 358c8477ea Resource config now in config.kubeStateMetrics
As requested, this updates the resource specification to live directly in config.kubeStateMetrics

It also clarifies the config variables. These names are what google uses in some of their tooling.

(And a slight tweak to the way collectors are specified)
2018-07-17 09:59:48 -04:00