Commit Graph

7 Commits

Author SHA1 Message Date
8af61f97b0
Added /config endpoint and link in 404 page
The update includes the addition of a new '/config' endpoint in index.php, which returns the application's configuration as a JSON response. A corresponding link to this new endpoint has also been added to the 404 error page.
2024-06-13 17:43:32 +02:00
f75be1fcaf
Added git installation and version endpoint
In the Dockerfile, a new command has been added to install git. This allows for more flexibility in managing code versions within the container. In addition, a new endpoint '/version' has been introduced in index.php which returns JSON data about the last commit, its timestamp and the current branch. This provides an easy way to check versioning information directly from the application.
2024-06-13 17:42:18 +02:00
f06c804c24
Updated response handling and added 404 page
The code changes include an update to the response handling in index.php. Now, it checks if the request URI is '/metrics'. If so, it continues with the previous behavior of executing a script and outputting its result. If not, it loads a new 404 error page using Twig templating engine.

A new file '404.twig' has been added under templates directory which serves as a custom 404 error page. It displays the requested URI and provides a link back to '/metrics'.
2024-06-13 16:03:44 +02:00
3021ec4436
Added newline for better readability in metrics template
A newline has been added to the metrics.twig template to improve code readability. This change separates different sections of the code, making it easier to understand and maintain.
2024-06-13 13:40:35 +02:00
2ffac2254c
Update metric type based on definition, add detailed description
- Update metric type based on definition
- Add detailed description for metric type if defined
2024-06-05 08:33:24 +02:00
069e550a3f
Refactor metric retrieval and display
Improved handling of submetrics for better data organization and presentation. Updated metric values based on retrieved data, ensuring accurate representation in the metrics template file.
2024-06-03 23:47:40 +02:00
5d76b42c23
Added the first code 2024-06-03 19:48:39 +02:00