kube-prometheus-stack Upgrade Prometheus Version

11/4/2020

I installed kube-prometheus-stack in here. I noticed the Prometheus has the version of 1.7. I am wondering how can I upgrade it to 2.0or up?

I used helm install latest prometheus-community/kube-prometheus-stack to install kube-prometheus-stack.

Thanks!

-- kevin
kubernetes
kubernetes-helm
prometheus
prometheus-operator

2 Answers

11/5/2020

The default value for the Prometheus version used in the kube-prometheus-stack Helm chart is v2.22.0, as you can see here.

So, you don't need to do anything special to get Prometheus 2+. If you get Prometheus 1.7, this value is most probably overwritten in your values.yaml file.

-- weibeld
Source: StackOverflow

11/5/2020

Maybe your chart repository is not updated.

Update your chart repo:

$ helm repo add prometheus-community https://prometheus-community.github.io/helm-charts

$ helm repo update

Varify:

$ helm search repo prometheus-community/kube-prometheus-stack
NAME                                      	CHART VERSION	APP VERSION	DESCRIPTION                                       
prometheus-community/kube-prometheus-stack	11.0.0       	0.43.0     	kube-prometheus-stack collects Kubernetes manif...

Now try installing again:

$ helm install latest prometheus-community/kube-prometheus-stack

You will have Prometheus of version v2.22.0.

-- Kamol Hasan
Source: StackOverflow