Closed hansedong closed 3 months ago
Unfortunately the --watch-interval=3m0s
in default prometheus config-reloader is not supported to be changed.
You can use the custom config-reload image victoriametrics/operator:config-reloader-v0.38.0
by adding env VM_USECUSTOMCONFIGRELOADER: true in operator, this config-reloader watches related secret(mounted as config file) instead of file itself, and reload the process once change being made.
Since v0.43.0 operator adds new field configReloaderExtraArgs for VMAgent, VMAlert, VMAuth and VMAlertmanager CRDs. It allows to configure params for custom config-reloader container, provided by operator.
In any other cases, it's possible to use container patch:
kind: VMagent
spec:
containers:
- name: config-reloader
args:
# note, you must provide a full list of args, not only your changes.
- change-any-args
I have deployed
VMAgent
, and every timeVMStaticScrape
changes, the collection configuration ofVMAgent
needs to wait for a period of time to take effect. The waiting time is 3 minutes.The following is the log of
VMAgent
.I see that the configuration item
watch-interval
is not defined in the containerconfig-reloader
currently started inVMAgent
. The default value for this parameter is 3m. I would like to adjust this parameter, is there any way to do it?