Skip to content

Commit 9a26231

Browse files
committed
test: update unit data with service statistics
Signed-off-by: Richard Alpe <[email protected]>
1 parent 868965b commit 9a26231

File tree

3 files changed

+309
-47
lines changed

3 files changed

+309
-47
lines changed
Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
1-
NAME STATUS PID DESCRIPTION
2-
udevd running 1185 Device event daemon (udev)
3-
dbus running 2248 D-Bus message bus daemon
4-
confd running 3039 Configuration daemon
5-
netopeer running 3548 NETCONF server
6-
dnsmasq running 2249 DHCP/DNS proxy
7-
tty:hvc0 running 3559 Getty on hvc0
8-
iitod running 2340 LED daemon
9-
klishd running 3560 CLI backend daemon
10-
mdns-alias running 3617 mDNS alias advertiser
11-
mstpd stopped - Spanning Tree daemon
12-
rauc running 3564 Software update service
13-
resolvconf done - Update DNS configuration
14-
statd running 3472 Status daemon
15-
staticd running 3653 Static routing daemon
16-
syslogd running 2241 System log daemon
17-
watchdogd running 2242 System watchdog daemon
18-
zebra running 3587 Zebra routing daemon
19-
mdns running 3616 Avahi mDNS-SD daemon
20-
chronyd running 3618 Chrony NTP v3/v4 daemon
21-
lldpd running 3633 LLDP daemon (IEEE 802.1ab)
22-
nginx running 3635 Web server
23-
rousette running 3636 RESTCONF server
24-
sshd running 3641 OpenSSH daemon
1+
NAME STATUS PID MEM UP RST DESCRIPTION 
2+
udevd running 1185 23m 0 Device event daemon (udev)
3+
dbus running 2248 23m 0 D-Bus message bus daemon
4+
confd running 3039 23m 0 Configuration daemon
5+
netopeer running 3548 23m 0 NETCONF server
6+
dnsmasq running 2249 23m 0 DHCP/DNS proxy
7+
tty:hvc0 running 3559 23m 0 Getty on hvc0
8+
iitod running 2340 23m 0 LED daemon
9+
klishd running 3560 23m 0 CLI backend daemon
10+
mdns-alias running 3617 23m 0 mDNS alias advertiser
11+
mstpd stopped 0 Spanning Tree daemon
12+
rauc running 3564 23m 0 Software update service
13+
resolvconf done 2 Update DNS configuration
14+
statd running 3472 23m 0 Status daemon
15+
staticd running 3653 23m 0 Static routing daemon
16+
syslogd running 2241 23m 0 System log daemon
17+
watchdogd running 2242 23m 0 System watchdog daemon
18+
zebra running 3587 23m 0 Zebra routing daemon
19+
mdns running 3616 23m 0 Avahi mDNS-SD daemon
20+
chronyd running 3618 23m 0 Chrony NTP v3/v4 daemon
21+
lldpd running 3633 23m 0 LLDP daemon (IEEE 802.1ab)
22+
nginx running 3635 23m 0 Web server
23+
rousette running 3636 23m 0 RESTCONF server
24+
sshd running 3641 23m 0 OpenSSH daemon

test/case/statd/system/ietf-system.json

Lines changed: 138 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -135,139 +135,254 @@
135135
"pid": 1185,
136136
"name": "udevd",
137137
"status": "running",
138-
"description": "Device event daemon (udev)"
138+
"description": "Device event daemon (udev)",
139+
"statistics": {
140+
"memory-usage": "0",
141+
"uptime": "1390",
142+
"restart-count": 0
143+
}
139144
},
140145
{
141146
"pid": 2248,
142147
"name": "dbus",
143148
"status": "running",
144-
"description": "D-Bus message bus daemon"
149+
"description": "D-Bus message bus daemon",
150+
"statistics": {
151+
"memory-usage": "0",
152+
"uptime": "1390",
153+
"restart-count": 0
154+
}
145155
},
146156
{
147157
"pid": 3039,
148158
"name": "confd",
149159
"status": "running",
150-
"description": "Configuration daemon"
160+
"description": "Configuration daemon",
161+
"statistics": {
162+
"memory-usage": "0",
163+
"uptime": "1390",
164+
"restart-count": 0
165+
}
151166
},
152167
{
153168
"pid": 3548,
154169
"name": "netopeer",
155170
"status": "running",
156-
"description": "NETCONF server"
171+
"description": "NETCONF server",
172+
"statistics": {
173+
"memory-usage": "0",
174+
"uptime": "1388",
175+
"restart-count": 0
176+
}
157177
},
158178
{
159179
"pid": 2249,
160180
"name": "dnsmasq",
161181
"status": "running",
162-
"description": "DHCP/DNS proxy"
182+
"description": "DHCP/DNS proxy",
183+
"statistics": {
184+
"memory-usage": "0",
185+
"uptime": "1390",
186+
"restart-count": 0
187+
}
163188
},
164189
{
165190
"pid": 3559,
166191
"name": "tty:hvc0",
167192
"status": "running",
168-
"description": "Getty on hvc0"
193+
"description": "Getty on hvc0",
194+
"statistics": {
195+
"memory-usage": "0",
196+
"uptime": "1388",
197+
"restart-count": 0
198+
}
169199
},
170200
{
171201
"pid": 2340,
172202
"name": "iitod",
173203
"status": "running",
174-
"description": "LED daemon"
204+
"description": "LED daemon",
205+
"statistics": {
206+
"memory-usage": "0",
207+
"uptime": "1390",
208+
"restart-count": 0
209+
}
175210
},
176211
{
177212
"pid": 3560,
178213
"name": "klishd",
179214
"status": "running",
180-
"description": "CLI backend daemon"
215+
"description": "CLI backend daemon",
216+
"statistics": {
217+
"memory-usage": "0",
218+
"uptime": "1388",
219+
"restart-count": 0
220+
}
181221
},
182222
{
183223
"pid": 3617,
184224
"name": "mdns-alias",
185225
"status": "running",
186-
"description": "mDNS alias advertiser "
226+
"description": "mDNS alias advertiser ",
227+
"statistics": {
228+
"memory-usage": "0",
229+
"uptime": "1388",
230+
"restart-count": 0
231+
}
187232
},
188233
{
189234
"pid": 0,
190235
"name": "mstpd",
191236
"status": "stopped",
192-
"description": "Spanning Tree daemon"
237+
"description": "Spanning Tree daemon",
238+
"statistics": {
239+
"memory-usage": "0",
240+
"uptime": "0",
241+
"restart-count": 0
242+
}
193243
},
194244
{
195245
"pid": 3564,
196246
"name": "rauc",
197247
"status": "running",
198-
"description": "Software update service"
248+
"description": "Software update service",
249+
"statistics": {
250+
"memory-usage": "0",
251+
"uptime": "1388",
252+
"restart-count": 0
253+
}
199254
},
200255
{
201256
"pid": 0,
202257
"name": "resolvconf",
203258
"status": "done",
204-
"description": "Update DNS configuration"
259+
"description": "Update DNS configuration",
260+
"statistics": {
261+
"memory-usage": "0",
262+
"uptime": "0",
263+
"restart-count": 2
264+
}
205265
},
206266
{
207267
"pid": 3472,
208268
"name": "statd",
209269
"status": "running",
210-
"description": "Status daemon"
270+
"description": "Status daemon",
271+
"statistics": {
272+
"memory-usage": "0",
273+
"uptime": "1389",
274+
"restart-count": 0
275+
}
211276
},
212277
{
213278
"pid": 3653,
214279
"name": "staticd",
215280
"status": "running",
216-
"description": "Static routing daemon"
281+
"description": "Static routing daemon",
282+
"statistics": {
283+
"memory-usage": "0",
284+
"uptime": "1388",
285+
"restart-count": 0
286+
}
217287
},
218288
{
219289
"pid": 2241,
220290
"name": "syslogd",
221291
"status": "running",
222-
"description": "System log daemon"
292+
"description": "System log daemon",
293+
"statistics": {
294+
"memory-usage": "0",
295+
"uptime": "1390",
296+
"restart-count": 0
297+
}
223298
},
224299
{
225300
"pid": 2242,
226301
"name": "watchdogd",
227302
"status": "running",
228-
"description": "System watchdog daemon"
303+
"description": "System watchdog daemon",
304+
"statistics": {
305+
"memory-usage": "0",
306+
"uptime": "1390",
307+
"restart-count": 0
308+
}
229309
},
230310
{
231311
"pid": 3587,
232312
"name": "zebra",
233313
"status": "running",
234-
"description": "Zebra routing daemon"
314+
"description": "Zebra routing daemon",
315+
"statistics": {
316+
"memory-usage": "0",
317+
"uptime": "1388",
318+
"restart-count": 0
319+
}
235320
},
236321
{
237322
"pid": 3616,
238323
"name": "mdns",
239324
"status": "running",
240-
"description": "Avahi mDNS-SD daemon"
325+
"description": "Avahi mDNS-SD daemon",
326+
"statistics": {
327+
"memory-usage": "0",
328+
"uptime": "1388",
329+
"restart-count": 0
330+
}
241331
},
242332
{
243333
"pid": 3618,
244334
"name": "chronyd",
245335
"status": "running",
246-
"description": "Chrony NTP v3/v4 daemon"
336+
"description": "Chrony NTP v3/v4 daemon",
337+
"statistics": {
338+
"memory-usage": "0",
339+
"uptime": "1388",
340+
"restart-count": 0
341+
}
247342
},
248343
{
249344
"pid": 3633,
250345
"name": "lldpd",
251346
"status": "running",
252-
"description": "LLDP daemon (IEEE 802.1ab)"
347+
"description": "LLDP daemon (IEEE 802.1ab)",
348+
"statistics": {
349+
"memory-usage": "0",
350+
"uptime": "1388",
351+
"restart-count": 0
352+
}
253353
},
254354
{
255355
"pid": 3635,
256356
"name": "nginx",
257357
"status": "running",
258-
"description": "Web server"
358+
"description": "Web server",
359+
"statistics": {
360+
"memory-usage": "0",
361+
"uptime": "1388",
362+
"restart-count": 0
363+
}
259364
},
260365
{
261366
"pid": 3636,
262367
"name": "rousette",
263368
"status": "running",
264-
"description": "RESTCONF server"
369+
"description": "RESTCONF server",
370+
"statistics": {
371+
"memory-usage": "0",
372+
"uptime": "1388",
373+
"restart-count": 0
374+
}
265375
},
266376
{
267377
"pid": 3641,
268378
"name": "sshd",
269379
"status": "running",
270-
"description": "OpenSSH daemon"
380+
"description": "OpenSSH daemon",
381+
"statistics": {
382+
"memory-usage": "0",
383+
"uptime": "1388",
384+
"restart-count": 0
385+
}
271386
}
272387
]
273388
}

0 commit comments

Comments
 (0)