Skip to content

Commit

Permalink
Add prometheus-operator app
Browse files Browse the repository at this point in the history
* 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 b1dfbdd
Show file tree
Hide file tree
Showing 5 changed files with 69 additions and 0 deletions.
1 change: 1 addition & 0 deletions prometheus-operator/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
uninstall.sh
23 changes: 23 additions & 0 deletions prometheus-operator/install.sh
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
Binary file added prometheus-operator/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions prometheus-operator/manifest.yaml
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
35 changes: 35 additions & 0 deletions prometheus-operator/post_install.md
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.

0 comments on commit b1dfbdd

Please sign in to comment.