|
| 1 | +// Module included in the following assemblies: |
| 2 | +// |
| 3 | +// doc-Service-Assurance-Framework/assemblies/assembly_configuring-saf-components.adoc |
| 4 | + |
| 5 | +// This module can be included from assemblies using the following include statement: |
| 6 | +// include::<path>/proc_installing-collectd.adoc[leveloffset=+1] |
| 7 | + |
| 8 | +// The file name and the ID are based on the module title. For example: |
| 9 | +// * file name: proc_doing-procedure-a.adoc |
| 10 | +// * ID: [id='proc_doing-procedure-a_{context}'] |
| 11 | +// * Title: = Doing procedure A |
| 12 | +// |
| 13 | +// The ID is used as an anchor for linking to the module. Avoid changing |
| 14 | +// it after the module has been published to ensure existing links are not |
| 15 | +// broken. |
| 16 | +// |
| 17 | +// The `context` attribute enables module reuse. Every module's ID includes |
| 18 | +// {context}, which ensures that the module has a unique ID even if it is |
| 19 | +// reused multiple times in a guide. |
| 20 | +// |
| 21 | +// Start the title with a verb, such as Creating or Create. See also |
| 22 | +// _Wording of headings_ in _The IBM Style Guide_. |
| 23 | + |
| 24 | +[id="installing-collectd"] |
| 25 | += Installing collectd |
| 26 | + |
| 27 | +To install collectd on the overcloud, complete the following steps: |
| 28 | + |
| 29 | +. Copy the file ``/usr/share/openstack-tripleo-heat-templates/environments/collectd-environment.yaml` to your local directory. Open the file, set the following parameters, and list the plugins you want under `CollectdExtraPlugins`. You can also provide parameters in the `ExtraConfig` section: |
| 30 | ++ |
| 31 | +---- |
| 32 | +parameter_defaults: |
| 33 | + CollectdExtraPlugins: |
| 34 | + - disk |
| 35 | + - df |
| 36 | + - virt |
| 37 | +
|
| 38 | + ExtraConfig: |
| 39 | + collectd::plugin::virt::connection: "qemu:///system" |
| 40 | + collectd::plugin::virt::hostname_format: "hostname uuid" |
| 41 | +---- |
| 42 | ++ |
| 43 | +By default, collectd comes with the disk, interface, load, memory, processes, and tcpconns plugins. You can add additional plugins using the `CollectdExtraPlugins` parameter. You can also provide additional configuration information for the `CollectdExtraPlugins` using the `ExtraConfig` option as shown. The example above adds the virt plugin and configures the connection string and the hostname format. |
| 44 | + |
| 45 | +. Include the modified YAML files in the `openstack overcloud deploy` command to install the collectd daemon on all overcloud nodes. For example: |
| 46 | ++ |
| 47 | +---- |
| 48 | +$ openstack overcloud deploy |
| 49 | +--templates /home/templates/environments/collectd.yaml \ |
| 50 | +-e /path-to-copied/collectd-environment.yaml |
| 51 | +---- |
| 52 | ++ |
| 53 | +To view the collectd plugins and configurations, see |
| 54 | +<<appe-saf-collectd-plugins>>. |
0 commit comments