Commit Graph

6 Commits

Author SHA1 Message Date
Jeroen De Meerleer
d829ac06b0
Update URI check to include CLI request detection.
The code now checks if the request URI is '/metrics' or if the PHP script is running from the command line interface (CLI). This change allows for proper handling of CLI requests in addition to web requests.
2024-06-03 13:51:05 +02:00
Jeroen De Meerleer
1534574e97
Refactor HTTP handling, update Guzzle requests and Twig config.
- Refactored HTTP handling to use nested arrays for options
- Updated Guzzle requests based on new array structure
- Adjusted Twig cache configuration in the code
2024-06-03 13:50:56 +02:00
Jeroen De Meerleer
1dfddd64ba
Refactor Guzzle HTTP requests for flexibility and proxy support
Restructured Guzzle HTTP requests to allow for additional options like proxy support, enhancing flexibility in handling different types of requests.
2024-06-03 13:33:43 +02:00
Jeroen De Meerleer
bcb0d0b23d
Add handling for HTTP response time metric using GuzzleHttp. 2024-06-03 13:03:31 +02:00
Jeroen De Meerleer
226ec5c6a1
Update handling of value assignment when 'jsonelem' is not set.
- Adjusted code to assign $output directly to 'value' if 'jsonelem' is not set.
2024-06-03 13:03:14 +02:00
Jeroen De Meerleer
81e145c753
Added the first code 2024-06-03 11:31:15 +02:00