diff options
author | Christopher Baines <mail@cbaines.net> | 2020-12-01 22:42:41 +0000 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2020-12-01 22:42:41 +0000 |
commit | 9c9e702553c5bf9edfac34b4ed6fa1c4a6ec6e38 (patch) | |
tree | 709cbdd34289647d9867bc328d6026ac1c25c9c6 /guix-build-coordinator/agent-messaging | |
parent | 37e78be1336870ebff07b644f6fb228bf484b702 (diff) | |
download | build-coordinator-9c9e702553c5bf9edfac34b4ed6fa1c4a6ec6e38.tar build-coordinator-9c9e702553c5bf9edfac34b4ed6fa1c4a6ec6e38.tar.gz |
Add metrics for the database and WAL size
I particularly want to monitor the WAL growth, as I don't think SQLite's usual
approach to keeping the size down is sufficient.
Diffstat (limited to 'guix-build-coordinator/agent-messaging')
-rw-r--r-- | guix-build-coordinator/agent-messaging/http/server.scm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/guix-build-coordinator/agent-messaging/http/server.scm b/guix-build-coordinator/agent-messaging/http/server.scm index 8546b70..098253c 100644 --- a/guix-build-coordinator/agent-messaging/http/server.scm +++ b/guix-build-coordinator/agent-messaging/http/server.scm @@ -181,6 +181,9 @@ port. Also, the port used can be changed by passing the --port option.\n" (metric-set internal-run-time (get-internal-run-time)) + ;; These are the db size metrics + (datastore-update-metrics! datastore) + (for-each (match-lambda ((system . count) (metric-set builds-total |