mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-22 09:13:01 +02:00
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:
@@ -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"
|
||||
|
||||
@@ -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";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user