[ansible] Use collectd_config for default_read_plugins
[barometer.git] / docker / ansible / roles / config_files / tasks / default_read_import.yml
1 # Copyright 2018-21 OPNFV, Intel Corporation and Red Hat
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #     http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14 ---
15 - name: enable contextswitch  plugin
16   set_fact:
17      collectd_plugins: "{{ collectd_plugins | union(['contextswitch']) | unique }}"
18   tags:
19     - en_default_all
20     - contextswitch
21
22 - name: enable cpu plugin
23   set_fact:
24     collectd_plugins: "{{ collectd_plugins | union(['cpu']) | unique }}"
25   tags:
26     - en_default_all
27     - cpu
28
29 - name: enable cpufreq plugin
30   set_fact:
31     collectd_plugins: "{{ collectd_plugins | union(['cpufreq']) | unique }}"
32   tags:
33     - en_default_all
34     - cpufreq
35
36 - name: enable df plugin
37   set_fact:
38     collectd_plugins: "{{ collectd_plugins | union(['df']) | unique }}"
39   tags:
40     - en_default_all
41     - df
42
43 - name: enable disk plugin
44   set_fact:
45     collectd_plugins: "{{ collectd_plugins | union(['disk']) | unique }}"
46   tags:
47     - en_default_all
48     - disk
49
50 - name: enable ethstat plugin
51   set_fact:
52     collectd_plugins: "{{ collectd_plugins | union(['ethstat']) | unique }}"
53   tags:
54     - en_default_all
55     - ethstat
56
57 - name: enable ipc plugin
58   set_fact:
59     collectd_plugins: "{{ collectd_plugins | union(['ipc']) | unique }}"
60   tags:
61     - en_default_all
62     - ipc
63
64 - name: enable irq plugin
65   set_fact:
66     collectd_plugins: "{{ collectd_plugins | union(['irq']) | unique }}"
67   tags:
68     - en_default_all
69     - irq
70
71 - name: enable load plugin
72   set_fact:
73     collectd_plugins: "{{ collectd_plugins | union(['load']) | unique }}"
74   tags:
75     - en_default_all
76     - load
77
78 - name: enable memory plugin
79   set_fact:
80     collectd_plugins: "{{ collectd_plugins | union(['memory']) | unique }}"
81   tags:
82     - en_default_all
83     - memory
84
85 - name: enable numa plugin
86   set_fact:
87     collectd_plugins: "{{ collectd_plugins | union(['numa']) | unique }}"
88   tags:
89     - en_default_all
90     - numa
91
92 - name: enable processes plugin
93   set_fact:
94     collectd_plugins: "{{ collectd_plugins | union(['processes']) | unique }}"
95   tags:
96     - en_default_all
97     - processes
98
99 - name: enable swap plugin
100   set_fact:
101     collectd_plugins: "{{ collectd_plugins | union(['swap']) | unique }}"
102   tags:
103     - en_default_all
104     - swap
105
106 - name: enable turbostat plugin
107   set_fact:
108     collectd_plugins: "{{ collectd_plugins | union(['turbostat']) | unique }}"
109   tags:
110     - en_default_all
111     - turbostat
112
113 - name: enable uptime plugin
114   set_fact:
115     collectd_plugins: "{{ collectd_plugins | union(['uptime']) | unique }}"
116   tags:
117     - en_default_all
118     - uptime