diff OrthancServer/Sources/OrthancRestApi/OrthancRestSystem.cpp @ 5431:4be5f117aa0d

metrics
author Alain Mazy <am@osimis.io>
date Tue, 21 Nov 2023 10:32:42 +0100
parents 62bb63346185
children 59e3b6f8c5be
line wrap: on
line diff
--- a/OrthancServer/Sources/OrthancRestApi/OrthancRestSystem.cpp	Mon Nov 20 17:01:48 2023 +0100
+++ b/OrthancServer/Sources/OrthancRestApi/OrthancRestSystem.cpp	Tue Nov 21 10:32:42 2023 +0100
@@ -955,6 +955,8 @@
     registry.SetIntegerValue("orthanc_up_time_s", serverUpTime);
     registry.SetIntegerValue("orthanc_last_change", lastChange["Last"].asInt64());
 
+    context.PublishCacheMetrics();
+
     std::string s;
     registry.ExportPrometheusText(s);