1 #Copyright 2018 OPNFV and Intel Corporation
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
7 # http://www.apache.org/licenses/LICENSE-2.0
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.
16 - name: enable contextswitch plugin
18 path: "{{ config_file_dir }}/default_read_plugins.conf"
19 regexp: '(\s+)#LoadPlugin contextswitch(\s+.*)?$'
20 replace: '\1LoadPlugin contextswitch\2'
24 - name: enable cpu plugin
26 path: "{{ config_file_dir }}/default_read_plugins.conf"
27 regexp: '(\s+)#LoadPlugin cpu(\s+.*)?$'
28 replace: '\1LoadPlugin cpu\2'
32 - name: enable cpufreq plugin
34 path: "{{ config_file_dir }}/default_read_plugins.conf"
35 regexp: '(\s+)#LoadPlugin cpufreq(\s+.*)?$'
36 replace: '\1LoadPlugin cpufreq\2'
40 - name: enable df plugin
42 path: "{{ config_file_dir }}/default_read_plugins.conf"
43 regexp: '(\s+)#LoadPlugin df(\s+.*)?$'
44 replace: '\1LoadPlugin df\2'
48 - name: enable disk plugin
50 path: "{{ config_file_dir }}/default_read_plugins.conf"
51 regexp: '(\s+)#LoadPlugin disk(\s+.*)?$'
52 replace: '\1LoadPlugin disk\2'
56 - name: enable ethstat plugin
58 path: "{{ config_file_dir }}/default_read_plugins.conf"
59 regexp: '(\s+)#LoadPlugin ethstat(\s+.*)?$'
60 replace: '\1LoadPlugin ethstat\2'
64 - name: enable ipc plugin
66 path: "{{ config_file_dir }}/default_read_plugins.conf"
67 regexp: '(\s+)#LoadPlugin ipc(\s+.*)?$'
68 replace: '\1LoadPlugin ipc\2'
72 - name: enable irq plugin
74 path: "{{ config_file_dir }}/default_read_plugins.conf"
75 regexp: '(\s+)#LoadPlugin irq(\s+.*)?$'
76 replace: '\1LoadPlugin irq\2'
80 - name: enable load plugin
82 path: "{{ config_file_dir }}/default_read_plugins.conf"
83 regexp: '(\s+)#LoadPlugin load(\s+.*)?$'
84 replace: '\1LoadPlugin load\2'
88 - name: enable memory plugin
90 path: "{{ config_file_dir }}/default_read_plugins.conf"
91 regexp: '(\s+)#LoadPlugin memory(\s+.*)?$'
92 replace: '\1LoadPlugin memory\2'
96 - name: enable numa plugin
98 path: "{{ config_file_dir }}/default_read_plugins.conf"
99 regexp: '(\s+)#LoadPlugin numa(\s+.*)?$'
100 replace: '\1LoadPlugin numa\2'
104 - name: enable processes plugin
106 path: "{{ config_file_dir }}/default_read_plugins.conf"
107 regexp: '(\s+)#LoadPlugin processes(\s+.*)?$'
108 replace: '\1LoadPlugin processes\2'
112 - name: enable swap plugin
114 path: "{{ config_file_dir }}/default_read_plugins.conf"
115 regexp: '(\s+)#LoadPlugin swap(\s+.*)?$'
116 replace: '\1LoadPlugin swap\2'
120 - name: enable turbostat plugin
122 path: "{{ config_file_dir }}/default_read_plugins.conf"
123 regexp: '(\s+)#LoadPlugin turbostat(\s+.*)?$'
124 replace: '\1LoadPlugin turbostat\2'
128 - name: enable uptime plugin
130 path: "{{ config_file_dir }}/default_read_plugins.conf"
131 regexp: '(\s+)#LoadPlugin uptime(\s+.*)?$'
132 replace: '\1LoadPlugin uptime\2'