]> git.ipfire.org Git - thirdparty/systemd.git/commit
[metrics] Introduce metrics API framework
authorYaping Li <202858510+YapingLi04@users.noreply.github.com>
Thu, 16 Oct 2025 06:21:36 +0000 (23:21 -0700)
committerYaping Li <202858510+YapingLi04@users.noreply.github.com>
Mon, 2 Feb 2026 16:03:48 +0000 (08:03 -0800)
commitfd73cd6c912a4d31f404d54700654d8398ea8f27
tree49b3641de4dacb874c23c140bfe1072451758fcd
parent9e5b898d3a791af8b8ea75efc01f62b171ccbe94
[metrics] Introduce metrics API framework

This commit introduces the shared code for the metrics API framework:

- Metrics API definitions
- Code to set up the varlink server
- The describe method which shows all the metrics families
- The list method which lists all the metrics
- Type definitions related to MetricFamily
- Common code to build json objects
src/shared/meson.build
src/shared/metrics.c [new file with mode: 0644]
src/shared/metrics.h [new file with mode: 0644]
src/shared/varlink-io.systemd.Metrics.c [new file with mode: 0644]
src/shared/varlink-io.systemd.Metrics.h [new file with mode: 0644]