
Networks with names that match this regular expression are always reported, up to the maximum specified by maxNumberNetworks. Before you increase this setting, verify that your application environment and Controller can handle the increased resource requirements. Specifies a custom sampling interval for collecting volume metrics on Linux.Ĭhanging this setting can affect the resource consumption of your deployment. If you want to add one, use the same indentation and formatting as the volumeMonitorConfig:whitelistSelectorRegex field. The default ServerMonitoring.yml file does not include a blacklistSelectorRegex field for volumes. If a volume name matches both the blacklist and whitelist regexes, metrics for that network are reported (the whitelist takes priority) up to the maximum specified by maxNumberVolumes. This setting is useful for filtering out irrelevant metrics. Volumes with names that match this regular expression are excluded. Volumes with names that match this regular expression are always reported, up to the maximum specified by maxNumberVolumes. Before you increase this setting, verify that your application environment and Controller can process the increased resource requirements.
EDIT YML FILE UPDATE

If you'd like to overwrite the original file, I recommend writing to a temporary file first and only if that succeeds, use os.rename to move that file in place of the original one.

Yaml.dump(ymldoc, ostream, default_flow_style=False, sort_keys=False) With open("modified.yml", "w") as ostream: If you'd like to save the output to a file, you can provide an output stream as the second argument to dump(): #!/usr/bin/python
EDIT YML FILE CODE
Print(yaml.dump(y, default_flow_style=False, sort_keys=False))Ī similar piece of python code as a one-liner that you can put in a bash script would look something like this (and produce the same output): python -c 'import yaml f=open("config.yml") y=yaml.safe_load(f) y = "new_admin_pass" print(yaml.dump(y, default_flow_style=False, sort_keys=False))' Here are the fundamentals: #!/usr/bin/python
EDIT YML FILE INSTALL
Since you don't want to install yq you could use python that you most probably already have installed.
