Prometheus Installation with Helm: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
=External=
=External=
* https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-prometheus-stack
* https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-prometheus-stack
* https://github.com/prometheus-operator/kube-prometheus
=Internal=
* [[Prometheus_Operations#Installation|Prometheus Operations]]
=Overview=
=Overview=
Installs [[Prometheus]], [[Grafana]], etc.
Installs [[Prometheus]], [[Grafana]], etc.
=Internal=
* [[Prometheus#Subjects|Prometheus]]


=Install=
=Install=


Install the "kube-prometheus-stack" Helm chart.
Install the "kube-prometheus-stack" Helm chart.
Various walkthroughs seem to prefer to name the Prometheus namespace "prom". We shall use this conventions.


<syntaxhighlight lang='bash'>
<syntaxhighlight lang='bash'>
Line 16: Line 19:
helm repo update
helm repo update


helm install -n prometheus prometheus prometheus-community/kube-prometheus-stack
kubectl create ns prom
helm install -n prom prometheus prometheus-community/kube-prometheus-stack
</syntaxhighlight>
</syntaxhighlight>
Optionally, perform the [[#Post-Install|post-install]] steps.


=Post-Install=
=Post-Install=
* [[Prometheus_Operations#Expose_Console_in_Kubernetes|Expose Prometheus console in Kubernetes]]
* [[Grafana_Operations#Expose_Grafana_Locally|Expose Grafana locally over a LoadBalancer service]]
* [[Grafana_Operations#Expose_Grafana_Locally|Expose Grafana locally over a LoadBalancer service]]
* [[Grafana_Operations#Change_Admin_Password|Recover (or change) Grafana password]]
* [[Grafana_Operations#Change_Admin_Password|Recover (or change) Grafana password]]
* [[Grafana_Operations#Set_Light_Theme|Set Grafana light theme]]


=Uninstall=
=Uninstall=


<syntaxhighlight lang='bash'>
<syntaxhighlight lang='bash'>
helm uninstall -n prometheus prometheus
helm uninstall -n prom prometheus
</syntaxhighlight>
</syntaxhighlight>

Latest revision as of 05:32, 16 October 2020

External

Internal

Overview

Installs Prometheus, Grafana, etc.

Install

Install the "kube-prometheus-stack" Helm chart.

Various walkthroughs seem to prefer to name the Prometheus namespace "prom". We shall use this conventions.

helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo add stable https://kubernetes-charts.storage.googleapis.com/
helm repo update

kubectl create ns prom
helm install -n prom prometheus prometheus-community/kube-prometheus-stack

Optionally, perform the post-install steps.

Post-Install

Uninstall

helm uninstall -n prom prometheus