aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/nar-herder.in9
1 files changed, 7 insertions, 2 deletions
diff --git a/scripts/nar-herder.in b/scripts/nar-herder.in
index fd4b7b4..b0c4498 100644
--- a/scripts/nar-herder.in
+++ b/scripts/nar-herder.in
@@ -45,6 +45,7 @@
(oop goops)
(logging logger)
(logging port-log)
+ (prometheus)
(fibers)
(fibers conditions)
(fibers web server)
@@ -270,7 +271,10 @@
(format #f "~a (~5a): ~a~%"
(strftime "%F %H:%M:%S" (localtime time))
lvl
- str)))))
+ str))))
+ (metrics-registry (make-metrics-registry
+ #:namespace
+ "narherder")))
(define (download-database)
(let ((database-uri
@@ -383,6 +387,7 @@
canonical-storage
#:ttl (assq-ref opts 'narinfo-ttl)
#:negative-ttl (assq-ref opts 'narinfo-negative-ttl)
- #:logger lgr)
+ #:logger lgr
+ #:metrics-registry metrics-registry)
#:host (assq-ref opts 'host)
#:port (assq-ref opts 'port))))))