-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* The configuration for the prometheus-operator may change based on the cluster size, I could look in to what the posibilities are now or for a future version.
- Loading branch information
Akos Veres
committed
Oct 8, 2019
1 parent
6296a26
commit 3e03728
Showing
5 changed files
with
69 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
uninstall.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
|
||
NAMESPACE=monitoring | ||
|
||
# Create the namespace for prometheus-operator | ||
kubectl create namespace ${NAMESPACE} | ||
|
||
# Create CRDs due to a bug. More information on https://github.com/helm/charts/tree/master/stable/prometheus-operator#helm-fails-to-create-crds | ||
kubectl apply -f https://raw.githubusercontent.com/coreos/prometheus-operator/master/example/prometheus-operator-crd/alertmanager.crd.yaml | ||
kubectl apply -f https://raw.githubusercontent.com/coreos/prometheus-operator/master/example/prometheus-operator-crd/prometheus.crd.yaml | ||
kubectl apply -f https://raw.githubusercontent.com/coreos/prometheus-operator/master/example/prometheus-operator-crd/prometheusrule.crd.yaml | ||
kubectl apply -f https://raw.githubusercontent.com/coreos/prometheus-operator/master/example/prometheus-operator-crd/servicemonitor.crd.yaml | ||
kubectl apply -f https://raw.githubusercontent.com/coreos/prometheus-operator/master/example/prometheus-operator-crd/podmonitor.crd.yaml | ||
|
||
# Update your local Helm chart repository cache | ||
helm repo update | ||
|
||
# Install the prometheus-operator Helm chart | ||
helm install \ | ||
--name prometheus-operator \ | ||
--namespace ${NAMESPACE} \ | ||
--set prometheusOperator.createCustomResource=false \ | ||
stable/prometheus-operator |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
name: prometheus-operator | ||
title: "Prometheus Operator" | ||
version: Stable | ||
maintainer: "@puck" | ||
description: Prometheus Operator App install prometheus, alertmanager, grafana and other tools to monitor your kubernetes cluster. | ||
url: https://github.com/coreos/prometheus-operator | ||
dependencies: | ||
- Helm | ||
category: monitoring |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Prometheus-Operator | ||
|
||
The [prometheus-operator](https://github.com/coreos/prometheus-operator) | ||
creates/configures/manages Prometheus clusters atop Kubernetes. | ||
|
||
## Details | ||
|
||
The prometheus-operator stack is installed in the `monitoring` namespace, to check the pods/services installed use: | ||
```sh | ||
kubectl get pods -n monitoring | ||
kubectl get services -n monitoring | ||
``` | ||
|
||
The installed services are: | ||
* prometheus-operator | ||
* prometheus | ||
* alertmanager | ||
* node-exporter | ||
* kube-state-metrics | ||
* grafana | ||
|
||
Service monitors to scrape internal kubernetes components: | ||
* kube-apiserver | ||
* kube-scheduler | ||
* kube-controller-manager | ||
* etcd | ||
* kube-dns/coredns | ||
* kube-proxy | ||
|
||
|
||
For further details on this specific installation please see the [Helm chart](https://github.com/helm/charts/tree/master/stable/prometheus-operator). | ||
|
||
## Configuration | ||
|
||
Visit [prometheus-operator](https://github.com/coreos/prometheus-operator) to learn how to configure Prometheus & Alertmanager. |