prometheus-monitoring-stack

by YOTRON

Helm chartv1.2.0MIT

An installer for a naked Prometheus and Grafana stack on your Kubernetes cluster for testing or development. It persists the states on your local harddisk and survives a restart of the Kubernetes nodes.

About this chart

YOTRON is a consultancy company which is focused on DevOps, Cloudmanagement and Data Management with NOSQL and SQL-Databases. Visit us on www.yotron.de ement with NOSQL and SQL-Databases. Visit us on www.yotron.de

Install Prometheus / Grafana

This Helm Package provides an installer for Grafana, Prometheus and Alertmanager in a basic setup. You can configure both from the scratch. Purpose is to develop and to check against the newest versions of Prometheus and Grafana. This installation is not usable for Production.

  • It is an installation from the scratch with a basic preconfiguration
  • Prometheus can be added as Data source within Grafana
  • The Alertmanager and Prometheus components are already connected
  • Data are persistent on the local harddisk

This package installs always the latest Docker version of

  • prom/prometheus: https://hub.docker.com/r/prom/prometheus
  • prom/alertmanager: https://hub.docker.com/r/prom/alertmanager
  • grafana/grafana: https://hub.docker.com/r/grafana/grafana

You can change the deployed version in your values.yaml:

images:
  prometheus: latest
  grafana: latest
  alertmanager: latest

Prerequisites

  • Kubernetes, Version >= 1.16.0
  • HardDisk on the Kubernetes Nodes
  • Helm

Installation

If not already done, add the yotron-helm-charts to your Repositories.

helm repo add yotron-helm-charts http://helm.yotron.de

Afterwards you can install the monitoring stack

helm install kubernetes-monitoring yotron-helm-charts/prometheus-monitoring

Running

After the installation you have a Grafana and a Prometheus in the default namespace running.

Both applications have NodePort-Services

The URLs are

  • Grafana: http://:30000
  • Prometheus: http://:30001
  • Alertmanager: http://:30002

Initial username and password for Grafana is admin/admin.

Ingress

The URLs for the Ingress are located in key ingressUrl of the setting.

Names

Prometheus needs additional ClusterResources. In the setting you have to add a name for Prometheus.

Config

The configurations are available in the package:

  • Alertamanger rules: prometheus-alertmanager-config.yaml
  • Prometheus Config: prometheus-config.yaml

The Alertmanager is configured within Prometheus, but the other configurations for Prometheus and Alertmanager are examples and are not really working together. Happy Configuration.

about us

YOTRON is a service provider and consultancy company which is focused on DevOps, Cloud, Kubernetes. Visit us on www.yotron.de

Deploy prometheus-monitoring-stack with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has prometheus-monitoring-stack on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartprometheus-monitoring-stack is pinned at v1.2.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply