Skip to content
Discussion options

You must be logged in to vote

I found a way to do this after applying the manifests, with this command:

kubectl -n monitoring patch prometheus/k8s --type=json --patch='[{"op":"replace","path":"/spec/scrapeInterval","value":"15s"}]'

This will patch the PrometheusSpec object setting the scrapeInterval to 15s. After a while the prometheus-operator will apply this new configuration to the prometheus instance.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@paulfantom
Comment options

@betonetotbo
Comment options

@paulfantom
Comment options

Answer selected by betonetotbo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants