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 <richard@bit42.se>
This commit is contained in:
Richard Alpe
2025-12-17 15:34:02 +01:00
parent 45ff5d232e
commit 97e89cfccc
3 changed files with 28 additions and 1 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ MODULES=(
"infix-firewall-services@2025-04-26.yang"
"infix-firewall-icmp-types@2025-04-26.yang"
"infix-meta@2025-12-10.yang"
"infix-system@2025-10-18.yang"
"infix-system@2025-12-02.yang"
"infix-services@2025-12-10.yang"
"ieee802-ethernet-interface@2019-06-21.yang"
"infix-ethernet-interface@2024-02-27.yang"
+27
View File
@@ -28,6 +28,11 @@ module infix-system {
contact "kernelkit@googlegroups.com";
description "Infix augments and deviations to ietf-system.";
revision 2025-12-02 {
description "Extend services with runtime statistics:
- Add statistics container with memory-usage, uptime, restart-count";
reference "internal";
}
revision 2025-10-18 {
description "New system-state status:
- Add system resource usage: memory, loadavg, filesystem usage
@@ -508,6 +513,28 @@ module infix-system {
description
"Detailed current status of the process.";
}
container statistics {
description "Service resource usage and runtime statistics";
config false;
leaf memory-usage {
type uint64;
units "bytes";
description "Current memory usage in bytes";
}
leaf uptime {
type uint64;
units "seconds";
description "Time service has been running";
}
leaf restart-count {
type uint32;
description "Number of service restarts";
}
}
}
}