Commit graph

40 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
d3553d557d Cast args explicitly to string 2023-08-30 13:33:36 +02:00
Yonas Habteab
8de35ac903 Fix can't perform numeric operation with non-numeric type 2023-08-30 13:33:36 +02:00
raviks789
c7abdfa0f3 Fix PHP 8.2 support issues 2023-06-28 11:30:02 +02:00
Eric Lippmann
173e740dee Fix code style 2022-09-19 09:51:37 +02:00
Johannes Meyer
aff4079986 Don't perform static calls on traits 2022-01-14 11:32:00 +01:00
Johannes Meyer
53743669ec Fix style issues 2021-04-08 15:31:09 +02:00
Florian Strohmaier
71c6ad259c CommonForm: Add class .inline to form
refs #215
2019-08-26 15:44:56 +02:00
Alexander A. Klimov
7997be46ae Respect a user's timezone preferences
refs #138
2018-02-26 15:33:12 +01:00
Alexander A. Klimov
8f7be9ee5d Fix form element validation
refs #115
2018-01-10 18:37:30 +01:00
lippserd
d012b74fb2
Merge pull request #97 from Icinga/feature/insecure-tls
Add switch for insecure TLS
2017-12-19 11:41:11 +01:00
Alexander A. Klimov
84fba6f5a1 Add switch for insecure TLS 2017-12-19 10:48:30 +01:00
Alexander A. Klimov
a410e50c82 Add setting: Disable "no graphs found"
refs #99
2017-12-18 18:09:55 +01:00
Alexander A. Klimov
daea0c2c78 Merge branch 'feature/option-default-time-range-98'
fixes #98
2017-12-18 11:31:13 +01:00
Alexander A. Klimov
1c843915ac Add global option to set default time range
refs #98
2017-12-15 16:32:19 +01:00
Alexander A. Klimov
2450fcb2fe Parameterize the service variable vars.check_command
refs #101
2017-12-15 14:33:56 +01:00
Alexander A. Klimov
b224e6f709 Close custom time range picker on update 2017-11-27 15:57:32 +01:00
Alexander A. Klimov
2d5f858da5 Simplify backend config 2017-11-27 10:32:01 +01:00
Alexander A. Klimov
4065cfd4ba Add placeholders to the custom time range picker 2017-11-22 10:55:57 +01:00
Alexander A. Klimov
2ff8c5edad Fix password misrepresentation 2017-11-21 19:14:34 +01:00
Alexander A. Klimov
4716cbc405 Use flyover instead of an URL parameter to display the custom time range picker form
refs #44
2017-11-16 15:05:35 +01:00
Alexander A. Klimov
a9dae9e1b9 Pre-select range "1 hour" by default
refs #78
2017-11-07 14:54:57 +01:00
Alexander A. Klimov
218355dd18 Fix not working SomeType[string] in code docs 2017-09-29 14:13:10 +02:00
Alexander A. Klimov
d75b31158f Split configuration form
refs #54
2017-09-26 11:20:49 +02:00
Alexander A. Klimov
9d9b8ff207 Align to Icinga 2's GraphiteWriter's capabilities
refs #54
2017-09-25 19:01:00 +02:00
Alexander A. Klimov
8939b11b73 Fix forms' data-base-target
refs #27
2017-09-20 10:51:09 +02:00
Alexander A. Klimov
f02ab19872 Use the time range picker in the detail view
refs #27
2017-09-07 17:33:46 +02:00
Alexander A. Klimov
64c776ca9a Centralize URL parameters
refs #33
2017-09-07 12:27:07 +02:00
Alexander A. Klimov
37a4b9ad3e Connect the two forms
refs #33
2017-09-07 11:08:24 +02:00
Alexander A. Klimov
9970fa8cb9 Apply the relative range start (if any) to the absolute range selector
refs #33
2017-09-06 18:32:57 +02:00
Alexander A. Klimov
fe9eeba818 Group date and time inputs
refs #33
2017-09-06 17:16:06 +02:00
Alexander A. Klimov
7fd314a09b Handle users' mistakes gracefully
refs #33
2017-09-06 15:34:38 +02:00
Alexander A. Klimov
288c451737 Split form into common and custom time ranges selector
refs #33
2017-09-06 14:04:52 +02:00
Alexander A. Klimov
0a8d182407 Enhance common ranges dropdowns
refs #33
2017-09-06 11:59:03 +02:00
Alexander A. Klimov
f8d8600d08 Add relative date/time ranges
refs #33
2017-09-05 18:22:09 +02:00
Alexander A. Klimov
dc47c074d7 Handle absolute dates and times before 1970-01-01T00:00:01+0000
refs #33
2017-09-05 13:15:57 +02:00
Alexander A. Klimov
968e95754c Add time range picker form
refs #33
2017-09-05 13:02:31 +02:00
Alexander A. Klimov
8e7e7c0450 /config: enhance form element description
refs #36
2017-09-01 16:38:33 +02:00
Alexander A. Klimov
32ddce05bc Support Graphite Web with HTTP basic authn
refs #36
2017-08-31 14:34:32 +02:00
Alexander A. Klimov
f86bf88dcc Make the Graphite Web URL configurable over the WebUI
refs #28
2017-08-30 14:55:36 +02:00