Commit Graph

11 Commits

Author SHA1 Message Date
Max Leonard Inden
310f471cf6 contrib/kube: Add rbac role to discover prometheus
The current example-app setup in the kube-prometheus project is able to
discover scraping targets in the default namespace. It is not able to
discover the configured Alertmanager in the monitoring namespace.

This patch adds an alertmanager-discovery rbac role, to permit the
above described action. In addition it does the following cleanups:

- Remove kubeconfig configuration in deploy and teardown script. kubectl
chooses .kube/config whenever KUBECONFIG is not set by default

- Remove namespace specification option via NAMESPACE env var. In most
of the manifests the metadata/namespace was hardcoded anyways, in
addition in the promtheus frontend role binding the service account
namespace is hardcoded to default as well.

- Instead of `kubectl {apply,delete}` individual manifests, the deploy
and teardown shell scripts {apply,delete} on the entire folder.
2018-03-19 17:13:33 +01:00
Francisco Ripoli
5d33cbb166 example service monitoring updated with missing config
added service account, role and role binding for the prometheus frontend
example, also updated prometheus to use the correct service account

fixes #1049
2018-03-08 17:36:05 +00:00
Daniel Sachse
6213964317 Updated to prometheus 1.7.1
This updates prometheus to 1.7.1 where it was missing
2017-09-21 17:08:01 +02:00
Frederic Branczyk
40a45fcf7d *: adapt all manifests from v1alpha1 to v1 2017-08-23 14:36:00 +02:00
Frederic Branczyk
a152fabfd3 Merge pull request #391 from brancz/alerting
Alerting
2017-06-07 14:08:23 +02:00
Frederic Branczyk
373e5cf096 *: use Prometheus 1.7 2017-06-07 13:17:11 +02:00
eedugon
3238ba257a small changes in k8s/minikube and example-app (#392)
* namespace has to be kube-system

In order for this service to be discovered by ServiceMonitor k8s-apps-http, it should belong to namespace kube-system.

* namespace has to be kube-system

* namespace has to be kube-system

for service discovery to work within prometheus configuration (ServiceMonitor k8s-app) these service and endpoints should belong to kube-system namespace. Otherwise the service monitor won't fetch it.

* selector was incorrect

selector prometheus: prometheus-frontend is incorrect, the name of the Prometheus resource in the example is "frontend", not "prometheus-frontend"
2017-05-31 11:55:56 -07:00
Frederic Branczyk
fbab1e4212 *: bump versions 2017-05-18 11:15:34 +02:00
Fabian Reinartz
d53553444b Remove unnecessary prometheus- prefix 2017-05-02 12:10:44 +02:00
Fabian Reinartz
48bda634ce Bump default Prometheus version to 1.6.1 2017-04-20 16:08:16 +02:00
Frederic Branczyk
89ed6773e7 Add 'contrib/kube-prometheus/' from commit '81c0d2f4d30f63a4e274c2870c5afc89241827b0'
git-subtree-dir: contrib/kube-prometheus
git-subtree-mainline: 050ca21276696c8603375c699513ec487301ed62
git-subtree-split: 81c0d2f4d3
2017-03-06 09:55:36 +01:00