| 1 | [main] |
| 2 | # The wake up frequency of the main daemon (in seconds) |
| 3 | main-loop-interval: 5 |
| 4 | |
| 5 | # The data collection interval for host statistics (in seconds) |
| 6 | host-monitor-interval: 5 |
| 7 | |
| 8 | # The data collection interval for guest statistics (in seconds) |
| 9 | guest-monitor-interval: 5 |
| 10 | |
| 11 | # The wake up frequency of the guest manager (in seconds). The guest manager |
| 12 | # sets up monitoring and control for newly-created guests and cleans up after |
| 13 | # deleted guests. |
| 14 | guest-manager-interval: 5 |
| 15 | |
| 16 | # The wake up frequency of the policy engine (in seconds). During each |
| 17 | # interval the policy engine evaluates the policy and passes the results |
| 18 | # to each enabled controller plugin. |
| 19 | policy-engine-interval: 10 |
| 20 | |
| 21 | # The interface MOM using to discover active guests and collect guest memory |
| 22 | # statistics. There're two choices for it: libvirt or vdsm. |
| 23 | hypervisor-interface: libvirt |
| 24 | |
| 25 | # A comma-separated list of Controller plugins to enable |
| 26 | controllers: Balloon |
| 27 | |
| 28 | # Sets the maximum number of statistic samples to keep for the purpose of |
| 29 | # calculating moving averages. |
| 30 | sample-history-length: 10 |
| 31 | |
| 32 | # The URI to use when connecting to this host's libvirt interface. If this is |
| 33 | # left blank then the system default URI is used. |
| 34 | libvirt-hypervisor-uri: |
| 35 | |
| 36 | # Set this to an existing, writable directory to enable plotting. For each |
| 37 | # invocation of the program a subdirectory momplot-NNN will be created where NNN |
| 38 | # is a sequence number. Within that directory, tab-delimited data files will be |
| 39 | # created and updated with all data generated by the configured Collectors. |
| 40 | plot-dir: |
| 41 | |
| 42 | # Activate the RPC server on the designated port (-1 to disable). RPC is |
| 43 | # disabled by default until authentication is added to the protocol. |
| 44 | rpc-port: -1 |
| 45 | |
| 46 | # At startup, load a policy from the given file. If empty, no policy is loaded |
| 47 | policy: |
| 48 | |
| 49 | # At startup, load policies from the given directory. Only filenames matching |
| 50 | # *.policy will be considered. Each loaded policy will be named according to |
| 51 | # the file's basename. Policies are concatenated in alphabetical order by name |
| 52 | # for evaluation. |
| 53 | policy-dir: |
| 54 | |
| 55 | # The default behaviour of MOM is to monitor each VM in a separate thread. |
| 56 | # This approach offers isolation between VMs, and avoids that one unresponding |
| 57 | # VM affects the monitoring of the others. The drawback is the increased resource |
| 58 | # consumption, which can be high when monitoring hundreds of VMs. |
| 59 | # Some Hypervisor interfaces (vdsmxmlrpc, vdsm) already take care to ensure |
| 60 | # responsivenes and deal internally with unresponsive VMs. MOM can take |
| 61 | # advantage of those guarantees, and do the monitoring using a single thread. |
| 62 | # If set to false, disable the current behaviour and configure MOM to monitor |
| 63 | # all the VMs using only one thread. |
| 64 | guest-manager-multi-thread: |
| 65 | |
| 66 | [logging] |
| 67 | # Set the destination for program log messages. This can be either 'stdio' or |
| 68 | # a filename. When the log goes to a file, log rotation will be done |
| 69 | # automatically. |
| 70 | log: stdio |
| 71 | |
| 72 | # Set the logging verbosity level. The following levels are supported: |
| 73 | # 5 or debug: Debugging messages |
| 74 | # 4 or info: Detailed messages concerning normal program operation |
| 75 | # 3 or warn: Warning messages (program operation may be impacted) |
| 76 | # 2 or error: Errors that severely impact program operation |
| 77 | # 1 or critical: Emergency conditions |
| 78 | # This option can be specified by number or name. |
| 79 | verbosity: info |
| 80 | |
| 81 | #log: /var/log/mom.log |
| 82 | ## The following two variables are used only when logging is directed to a file. |
| 83 | # Set the maximum size of a log file (in bytes) before it is rotated. |
| 84 | #max-bytes: 2097152 |
| 85 | # Set the maximum number of rotated logs to retain. |
| 86 | #backup-count: 5 |
| 87 | |
| 88 | [host] |
| 89 | # A comma-separated list of Collector plugins to use for Host data collection. |
| 90 | collectors: HostMemory |
| 91 | |
| 92 | [guest] |
| 93 | # A comma-separated list of Collector plugins to use for Guest data collection. |
| 94 | collectors: GuestQemuProc, GuestMemory, GuestBalloon |
| 95 | |
| 96 | # Collector-specific configuration for GuestQemuAgent |
| 97 | [Collector: GuestQemuAgent] |
| 98 | # Set the base path where the host-side sockets for guest communication can be |
| 99 | # found. The GuestQemuAgent Collector will try to open the socket: |
| 100 | # <socket_path>/<socket_name_template> |
| 101 | # after appropriate socket_name_template substitution as explained below. |
| 102 | socket_path: /var/lib/libvirt/qemu |
| 103 | |
| 104 | # Set the socket name template. Default: %(name)s.agent |
| 105 | # socket name is determined by substituting 'name' |
| 106 | # key in the template with guest name. |
| 107 | # Assuming guest name 'instance-00000001' and default template, |
| 108 | # socketname will be instance-00000001.agent. |
| 109 | # The GuestQemuAgent Collector will try to open the socket: |
| 110 | # <socket_path>/<socket_name_template> |
| 111 | # after guest name substitution in the template. |
| 112 | socket_name_template: %(name)s.agent |
| 113 | |
| 114 | [Collector: GuestNetworkDaemon] |
| 115 | # Helper program to convert guest names to IP addresses. This is only used by |
| 116 | # the GuestNetworkDaemon Collector. See doc/name-to-ip for an example. |
| 117 | #name-to-ip-helper: doc/name-to-ip |