aboutsummaryrefslogtreecommitdiff
path: root/guix-data-service/web
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2024-03-05 11:15:04 +0000
committerChristopher Baines <mail@cbaines.net>2024-03-05 11:15:04 +0000
commit184d3416717971cdf0c8b84709a7180efd5127b9 (patch)
tree08acd11550088164ef8241998cefa2462fe37082 /guix-data-service/web
parentca69d3329d57c463aef76eddc32c3172becb5c56 (diff)
downloaddata-service-184d3416717971cdf0c8b84709a7180efd5127b9.tar
data-service-184d3416717971cdf0c8b84709a7180efd5127b9.tar.gz
Report the size of the guix database and WAL file
Since the Guix daemon doesn't export these metrics, instrument it here.
Diffstat (limited to 'guix-data-service/web')
-rw-r--r--guix-data-service/web/controller.scm6
1 files changed, 5 insertions, 1 deletions
diff --git a/guix-data-service/web/controller.scm b/guix-data-service/web/controller.scm
index 1ac081b..1fb369c 100644
--- a/guix-data-service/web/controller.scm
+++ b/guix-data-service/web/controller.scm
@@ -201,7 +201,10 @@
(get-gc-metrics-updater registry))
(port-metrics-updater
- (get-port-metrics-updater registry)))
+ (get-port-metrics-updater registry))
+
+ (guix-metrics-updater
+ (get-guix-metrics-updater registry)))
(define guile-time-metrics-updater
(let ((internal-real-time
@@ -437,6 +440,7 @@
(gc-metrics-updater)
(port-metrics-updater)
+ (guix-metrics-updater)
(guile-time-metrics-updater)
(list (build-response