Kube-Prometheus-Stack Upgrade Prometheus Version

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!

2 Answers

Maybe your chart repository is not updated.

Update your chart repo:

$ helm repo add prometheus-community 

$ 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.

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Maya Lin-Takahashi

Maya Lin-Takahashi

Consumer Tech & Gadget Reviewer

Maya is a hardware enthusiast who tests and reviews smart home devices, smartphones, wearables, and audio gear. She focuses on practical consumer value and build quality.

Share this article
Twitter Facebook Pinterest