Commit graph

10 commits

Author SHA1 Message Date
Adam James
5e0d57cce0 Add Graphite Web HTTP request timeout option
If the Graphite Web server is unreachable, all requests for frontend
pages containing graphs hang until the backend HTTP request times out,
resulting in a very poor UX.

The Guzzle documentation states that the default behaviour is to wait
indefinitely, however in our testing the cURL handler has an internal
default of 30 seconds:

https://docs.guzzlephp.org/en/stable/request-options.html#timeout

This commit makes the HTTP request timeout configurable and sets a
reasonable default of 10 seconds.
2024-02-20 15:43:34 +01:00
Yonas Habteab
b5006894a3 GraphiteWebClient: Replace custom vendors with Guzzle\Http 2023-08-21 16:00:33 +02:00
Sukhwinder Dhillon
10c7378b06
Make graphite path wildcards work (#267) 2022-03-22 11:41:49 +01:00
Johannes Meyer
53743669ec Fix style issues 2021-04-08 15:31:09 +02:00
Alexander A. Klimov
a9db19adab Implement optional graphs assembling debugging
refs #150
2018-03-28 18:01:48 +02:00
Alexander A. Klimov
839ca7e618 Escape '[' and ']' in metric paths while /render 2018-01-09 13:55:28 +01:00
Alexander A. Klimov
d4c4ca9680 Preserve the configured Graphite Web URL as is
refs #91
2017-12-20 15:32:28 +01:00
Alexander A. Klimov
84fba6f5a1 Add switch for insecure TLS 2017-12-19 10:48:30 +01:00
Alexander A. Klimov
be1c93324d Use the iplx cURL client and Json::decode() 2017-10-04 16:34:49 +02:00
Alexander A. Klimov
1b8e84e674 Remove all hardcoding from Graphite Web client
refs #54
2017-09-29 11:32:04 +02:00