From 11d20a3b91b69ac1205fceac352f78e7a0986615 Mon Sep 17 00:00:00 2001
From: Jan David Mol <mol@astron.nl>
Date: Tue, 14 May 2024 11:46:53 +0200
Subject: [PATCH] Scrape Jupyter metrics

---
 infra/jobs/station/jupyter.levant.nomad | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/infra/jobs/station/jupyter.levant.nomad b/infra/jobs/station/jupyter.levant.nomad
index 19b91aebb..003c9984d 100644
--- a/infra/jobs/station/jupyter.levant.nomad
+++ b/infra/jobs/station/jupyter.levant.nomad
@@ -16,10 +16,15 @@ job "jupyter" {
     }
 
     service {
+      tags = ["scrape"]
       name = "jupyter"
       port = "8888"
       task = "jupyter"
-      address_mode="alloc"
+      address_mode = "alloc"
+
+      meta {
+        metrics_path = "/jupyter/metrics"
+      }
     }
 
     task "jupyter-lab" {
-- 
GitLab