File status/metrics/index.php
Last commit: Mon Oct 28 22:27:13 2024 +0100 Jan Dankert New: Metrics in the Openmetrics text format. For now only some system infos, maybe some special cms metrics in the future.
1 <?php 2 // CMS metrics for openmetrics/prometheus 3 4 require('../../modules/autoload.php'); 5 6 use cms\base\Startup; 7 use cms\status\Metrics; 8 9 Startup::initialize(); 10 11 try { 12 Metrics::execute(); 13 14 } catch (Exception $e) { 15 16 if (!headers_sent()) 17 header('HTTP/1.0 500 Internal Server Error'); 18 19 echo $e->__toString(); 20 }
Downloadstatus/metrics/index.php
History Mon, 28 Oct 2024 22:27:13 +0100 Jan Dankert New: Metrics in the Openmetrics text format. For now only some system infos, maybe some special cms metrics in the future.