|
115 | 115 | ############################################################################### |
116 | 116 | # INPUT PLUGINS # |
117 | 117 | ############################################################################### |
| 118 | +[[inputs.cpu]] |
| 119 | + percpu = false |
| 120 | + totalcpu = true |
| 121 | + collect_cpu_time = false |
| 122 | + report_active = false |
| 123 | + core_tags = false |
| 124 | + |
| 125 | +[[inputs.disk]] |
| 126 | +[[inputs.mem]] |
| 127 | +[[inputs.swap]] |
118 | 128 |
|
119 | 129 | [[inputs.win_perf_counters]] |
120 | 130 | [[inputs.win_perf_counters.object]] |
121 | 131 | # Processor usage, alternative to native, reports on a per core. |
122 | 132 | ObjectName = "Processor" |
123 | | - Instances = ["*"] |
| 133 | + Instances = ["_Total"] |
124 | 134 | Counters = [ |
125 | 135 | "% Idle Time", |
126 | 136 | "% Interrupt Time", |
|
225 | 235 | ] |
226 | 236 | Instances = ["_Total"] |
227 | 237 | Measurement = "win_swap" |
228 | | - |
229 | | -[[inputs.oracledb]] |
230 | | - ## Connection string, e.g. easy connect string like |
231 | | - connection_string = "192.168.56.105:1521/xe" |
232 | | - # or oracle net connect descriptor string like |
233 | | - # (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=dbhost.example.com)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=orclpdb1))) |
234 | | - # connection_string = "(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.56.105)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=XE)))" |
235 | | - ## Database credentials |
236 | | - username = "system" |
237 | | - password = "oracle" |
238 | | - ## Role, either SYSDBA, SYSASM, SYSOPER or empty |
239 | | - role = "" |
240 | | - ## Path to the Oracle Client library directory, optional. |
241 | | - # Should be used if there is no LD_LIBRARY_PATH variable |
242 | | - # or not possible to confugire it properly. |
243 | | - client_lib_dir = "C:/Oracle/instantclient_19_11" |
244 | | - ## Define the toml config where the sql queries are stored |
245 | | - # Structure : |
246 | | - # [[inputs.oracledb.query]] |
247 | | - # sqlquery string |
248 | | - # script string |
249 | | - # schema string |
250 | | - # tag_columns array of strings |
251 | | - [[inputs.oracledb.query]] |
252 | | - # Query name, optional. Used in logging. |
253 | | - name = "" |
254 | | - # OracleDB sql query |
255 | | - sqlquery = "select n.wait_class as wait_class, round(m.time_waited/m.INTSIZE_CSEC,3) wait_value from v$waitclassmetric m, v$system_wait_class n where m.wait_class_id=n.wait_class_id and n.wait_class != 'Idle' union select 'CPU', round(value/100,3) wait_value from v$sysmetric where metric_name='CPU Usage Per Sec' and group_id=2 union select 'CPU_OS', round((prcnt.busy*parameter.cpu_count)/100,3) - aas.cpu from ( select value busy from v$sysmetric where metric_name='Host CPU Utilization (%)' and group_id=2 ) prcnt, ( select value cpu_count from v$parameter where name='cpu_count' ) parameter, ( select 'CPU', round(value/100,3) cpu from v$sysmetric where metric_name='CPU Usage Per Sec' and group_id=2) aas" |
256 | | - # The script option can be used to specify the .sql file path. |
257 | | - # If script and sqlquery options specified at same time, sqlquery will be used. |
258 | | - script = "" |
259 | | - # Schema name. If provided, then ALTER SESSION SET CURRENT_SCHEMA query will be executed |
260 | | - schema = "" |
261 | | - # Query execution timeout, in seconds. |
262 | | - timeout = 10 |
263 | | - # Array of column names, which would be stored as tags |
264 | | - tag_columns = ["WAIT_CLASS"] |
265 | | - [[inputs.oracledb.query]] |
266 | | - # Query name, optional. Used in logging. |
267 | | - name = "" |
268 | | - # OracleDB sql query |
269 | | - sqlquery = "select n.wait_class wait_class, n.name wait_name, m.wait_count cnt, round(10*m.time_waited/nullif(m.wait_count,0),3) avgms from v$eventmetric m, v$event_name n where m.event_id=n.event_id and n.wait_class <> 'Idle' and m.wait_count > 0 order by 1" |
270 | | - # The script option can be used to specify the .sql file path. |
271 | | - # If script and sqlquery options specified at same time, sqlquery will be used. |
272 | | - script = "" |
273 | | - # Schema name. If provided, then ALTER SESSION SET CURRENT_SCHEMA query will be executed |
274 | | - schema = "" |
275 | | - # Query execution timeout, in seconds. |
276 | | - timeout = 10 |
277 | | - # Array of column names, which would be stored as tags |
278 | | - tag_columns = ["WAIT_CLASS"] |
0 commit comments