1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
Here's the corresponding example used in mysql-filesystem-engine.
drizzle> CREATE TABLE LoadAverage (
load1 DECIMAL(3, 2),
load5 DECIMAL(3, 2),
load15 DECIMAL(3, 2),
active_processes VARCHAR(12),
lastpid INTEGER) ENGINE=FILESYSTEM, FILE="/proc/loadavg";
drizzle> select * from LoadAverage;
+-------+-------+--------+------------------+---------+
| load1 | load5 | load15 | active_processes | lastpid |
+-------+-------+--------+------------------+---------+
| 0.00 | 0.00 | 0.00 | 1/97 | 6061 |
+-------+-------+--------+------------------+---------+
|