]> git.99rst.org Git - openwrt-luci.git/blob
12ed9568f69b6cda1787cec7009e03cf3f57612a
[openwrt-luci.git] /
1 /*
2 * Copyright 2011 Manuel Munz <freifunk at somakoma dot de>
3 * Licensed to the public under the Apache License 2.0.
4 */
5
6 'use strict';
7 'require baseclass';
8
9 return baseclass.extend({
10 title: _('Disk Usage'),
11
12 rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
13 return [{
14 title: "%H: Disk I/O operations on %pi",
15 vlabel: "Operations/s",
16 number_format: "%5.1lf%sOp/s",
17
18 data: {
19 types: [ "disk_ops" ],
20 sources: {
21 disk_ops: [ "read", "write" ],
22 },
23
24 options: {
25 disk_ops__read: {
26 title: "Reads",
27 color: "00ff00",
28 flip : false
29 },
30
31 disk_ops__write: {
32 title: "Writes",
33 color: "ff0000",
34 flip : true
35 }
36 }
37 }
38 }, {
39 title: "%H: Disk I/O bandwidth on %pi",
40 vlabel: "Bytes/s",
41 number_format: "%5.1lf%sB/s",
42
43 detail: true,
44
45 data: {
46 types: [ "disk_octets" ],
47 sources: {
48 disk_octets: [ "read", "write" ]
49 },
50 options: {
51 disk_octets__read: {
52 title: "Read",
53 color: "00ff00",
54 flip : false
55 },
56 disk_octets__write: {
57 title: "Write",
58 color: "ff0000",
59 flip : true
60 }
61 }
62 }
63 }];
64 }
65 });
git clone https://git.99rst.org/PROJECT