Skip to content

Commit 67d9d2b

Browse files
committed
confd: extend infix-system with service runtime statistics
Add statistics container to service model with memory usage, uptime, and restart count tracking. Updates YANG revision to 2025-12-02. Signed-off-by: Richard Alpe <[email protected]>
1 parent 245f31c commit 67d9d2b

File tree

3 files changed

+28
-1
lines changed

3 files changed

+28
-1
lines changed

src/confd/yang/confd.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ MODULES=(
3737
3838
3939
40-
"infix-system@2025-10-18.yang"
40+
"infix-system@2025-12-02.yang"
4141
4242
4343

src/confd/yang/confd/infix-system.yang

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ module infix-system {
2828
contact "[email protected]";
2929
description "Infix augments and deviations to ietf-system.";
3030

31+
revision 2025-12-02 {
32+
description "Extend services with runtime statistics:
33+
- Add statistics container with memory-usage, uptime, restart-count";
34+
reference "internal";
35+
}
3136
revision 2025-10-18 {
3237
description "New system-state status:
3338
- Add system resource usage: memory, loadavg, filesystem usage
@@ -508,6 +513,28 @@ module infix-system {
508513
description
509514
"Detailed current status of the process.";
510515
}
516+
517+
container statistics {
518+
description "Service resource usage and runtime statistics";
519+
config false;
520+
521+
leaf memory-usage {
522+
type uint64;
523+
units "bytes";
524+
description "Current memory usage in bytes";
525+
}
526+
527+
leaf uptime {
528+
type uint64;
529+
units "seconds";
530+
description "Time service has been running";
531+
}
532+
533+
leaf restart-count {
534+
type uint32;
535+
description "Number of service restarts";
536+
}
537+
}
511538
}
512539
}
513540

File renamed without changes.

0 commit comments

Comments
 (0)