From ec78d7f477c00558541e4fe3fa00d306cf864be3 Mon Sep 17 00:00:00 2001 From: Jens Henrik Goebbert Date: Wed, 12 Mar 2025 16:23:17 +0100 Subject: [PATCH 1/3] set prometheus to False --- jupyter_resource_usage/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jupyter_resource_usage/config.py b/jupyter_resource_usage/config.py index 4a86c12..ef5abac 100644 --- a/jupyter_resource_usage/config.py +++ b/jupyter_resource_usage/config.py @@ -171,7 +171,7 @@ def _disk_path_default(self): ).tag(config=True) enable_prometheus_metrics = Bool( - default_value=True, + default_value=False, help=""" Set to False in order to disable reporting of Prometheus style metrics. """, From e708cc0103f3097deb89b336765d178d378c6600 Mon Sep 17 00:00:00 2001 From: goebbert1 Date: Thu, 13 Mar 2025 11:55:46 +0100 Subject: [PATCH 2/3] comment on change of default for Prometheus metric --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0e59e4d..d9184de 100644 --- a/README.md +++ b/README.md @@ -162,10 +162,10 @@ Mirroring CPU and Memory, the trait `disk_warning_threshold` signifies when to f ### Disable Prometheus Metrics There is a [known bug](https://github.com/jupyter-server/jupyter-resource-usage/issues/123) with Prometheus metrics which -causes "lag"/pauses in the UI. To workaround this you can disable Prometheus metric reporting using: - +causes "lag"/pauses in the UI. Hence, the Prometheus metric reporting is disabled by default (for all versions > 1.1.1). +If you want to use the Prometheus metric reporting you need to enable it with: ``` ---ResourceUseDisplay.enable_prometheus_metrics=False +--ResourceUseDisplay.enable_prometheus_metrics=True ``` ## Enable alternative frontend From 564427c9dff7811cfdf8f43e1bffe97839564ef3 Mon Sep 17 00:00:00 2001 From: Jens Henrik Goebbert Date: Tue, 19 Aug 2025 13:51:47 +0200 Subject: [PATCH 3/3] Update README.md --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d9184de..fa8292e 100644 --- a/README.md +++ b/README.md @@ -162,8 +162,10 @@ Mirroring CPU and Memory, the trait `disk_warning_threshold` signifies when to f ### Disable Prometheus Metrics There is a [known bug](https://github.com/jupyter-server/jupyter-resource-usage/issues/123) with Prometheus metrics which -causes "lag"/pauses in the UI. Hence, the Prometheus metric reporting is disabled by default (for all versions > 1.1.1). +causes "lag"/pauses in the UI. Hence, the Prometheus metric reporting is disabled by default (for all versions > 1.1.1). + If you want to use the Prometheus metric reporting you need to enable it with: + ``` --ResourceUseDisplay.enable_prometheus_metrics=True ```