summaryrefslogtreecommitdiff
path: root/src/pmdas/netbsd/root_netbsd
blob: c05ce4a8cbe3dad10bbb8ee46edff5fde1e3f81c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
/*
 * Metrics for NetBSD kernel PMDA
 *
 * Copyright (c) 2012 Ken McDonell  All Rights Reserved.
 * 
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License as published by the
 * Free Software Foundation; either version 2 of the License, or (at your
 * option) any later version.
 * 
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 * for more details.
 */

/*
 * the domain for the NETBSD PMDA ...
 */
#ifndef NETBSD
#define NETBSD 116
#endif

root {
    hinv
    kernel
    disk
    mem
    network
    swap
}

hinv {
    ncpu	NETBSD:0:0
    ndisk	NETBSD:1:0
    physmem	NETBSD:0:1
    pagesize	NETBSD:1:3
    cpu
}

hinv.cpu {
    vendor	NETBSD:0:15
    model	NETBSD:0:16
    arch	NETBSD:0:17
}

kernel {
    all
    percpu
}

kernel.all {
    pswitch	NETBSD:0:22
    syscall	NETBSD:0:23
    intr	NETBSD:0:24
    hz		NETBSD:0:13
    load	NETBSD:0:2
    cpu
}

kernel.all.cpu {
    user	NETBSD:0:3
    nice	NETBSD:0:4
    sys		NETBSD:0:5
    intr	NETBSD:0:6
    idle	NETBSD:0:7
}

kernel.percpu {
    cpu
}

kernel.percpu.cpu {
    user	NETBSD:0:8
    nice	NETBSD:0:9
    sys		NETBSD:0:10
    intr	NETBSD:0:11
    idle	NETBSD:0:12
}

disk {
    dev
    all
}

disk.dev {
    read	NETBSD:2:0
    write	NETBSD:2:1
    total	NETBSD:2:2
    read_bytes	NETBSD:2:3
    write_bytes	NETBSD:2:4
    total_bytes	NETBSD:2:5
    blkread	NETBSD:2:12
    blkwrite	NETBSD:2:13
    blktotal	NETBSD:2:14
}

disk.all {
    read	NETBSD:2:6
    write	NETBSD:2:7
    total	NETBSD:2:8
    read_bytes	NETBSD:2:9
    write_bytes	NETBSD:2:10
    total_bytes	NETBSD:2:11
    blkread	NETBSD:2:15
    blkwrite	NETBSD:2:16
    blktotal	NETBSD:2:17
}

mem {
    util
}

mem.util {
    all		NETBSD:1:4
    used	NETBSD:1:5
    free	NETBSD:1:6
    bufmem	NETBSD:1:7
    cached	NETBSD:1:8
    wired	NETBSD:1:9
    active	NETBSD:1:10
    inactive	NETBSD:1:11
    avail	NETBSD:1:12
}

network {
    interface
}

network.interface {
    mtu		NETBSD:3:0
    up		NETBSD:3:1
    baudrate	NETBSD:3:2
    in
    out
    total
}

network.interface.in {
    bytes	NETBSD:3:3
    packets	NETBSD:3:4
    mcasts	NETBSD:3:5
    errors	NETBSD:3:6
    drops	NETBSD:3:7
}

network.interface.out {
    bytes	NETBSD:3:8
    packets	NETBSD:3:9
    mcasts	NETBSD:3:10
    errors	NETBSD:3:11
    collisions	NETBSD:3:12
}

network.interface.total {
    bytes	NETBSD:3:13
    packets	NETBSD:3:14
    mcasts	NETBSD:3:15
    errors	NETBSD:3:16
}

swap {
    pagesin	NETBSD:0:18
    pagesout	NETBSD:0:19
    in		NETBSD:0:20
    out		NETBSD:0:21
    length	NETBSD:0:25
    used	NETBSD:0:26
    free	NETBSD:1:1
}

#undef NETBSD