Question

Kubernetes Monitoring Stack - Change Prometheus Global Scrape Interval

Hi, I installed the one click “Kubernetes Monitoring Stack” to my cluster justnow. I tried to check some metrics from the grafana dashboard but the prometheus scraping_interval config is too slow (defaults to 30s) for my usecase.

More explanation regarding the scraping_interval I talked about can be found here https://prometheus.io/docs/prometheus/latest/configuration/configuration/.

I have tried editing various service monitor but was not successful. Is there anything I can try to change the setting? Any assistance would be much appreciated. Thanks!


Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Accepted Answer

Hello, I have working on this package as well. After a lot of grief, it is my recommendation that you ONLY edit, the values.yaml file. This is designed to expose these configurable values. Then do a helm update. What is the values.yaml file you ask? Well go here: https://helm.sh/docs/helm/helm_show_values/

pipe this to a file, called values.yaml. Then edit the this file with what you need to change. Then update the installation. This will overwrite the default values in the chart with your changes.

helm upgrade my-prometheus prometheus-community/kube-prometheus-stack --namespace monitoring -f values.yaml

Hope this helps

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.