TwiN
798c4248ff
refactor(badge): Fix formatting
2022-08-10 21:09:22 -04:00
Jesibu
1bce4e727e
feat(api): Configurable response time badge thresholds ( #309 )
...
* recreated all changes for setting thresholds on Uptime Badges
* Suggestion accepted: Update core/ui/ui.go
Co-authored-by: TwiN <twin@linux.com>
* Suggestion accepted: Update core/ui/ui.go
Co-authored-by: TwiN <twin@linux.com>
* implemented final suggestions by Twin
* Update controller/handler/badge.go
* Update README.md
* test: added the suggestons to set the UiConfig at another line
Co-authored-by: TwiN <twin@linux.com>
2022-08-10 21:05:34 -04:00
TwiN
ab2bee9c4b
chore!: Update module from v3 to v4
2022-06-20 21:25:14 -04:00
TwiN
829a9c2679
fix(dns): Use Cloudflare's DNS instead of Google's DNS
2022-06-16 20:21:44 -04:00
TwiN
dfcdc57a18
test(dns): Fix case with inconsistent results
2022-06-16 20:09:25 -04:00
TwiN
43e8c57701
test(dns): Fix case with inconsistent results
2022-06-16 20:02:46 -04:00
TwiN
e620fd1214
docs: List possible values for Result.DNSRCode
2022-06-16 20:02:46 -04:00
asymness
5807d76c2f
feat(ui): Implement parameter to hide URL from results ( #294 )
...
* Add support for HideURL UI config parameter
* Redact whole URL when hide-url parameter is set to true
* Add integration test for hide-url functionality
* Document the hide-url config parameter in README
* Apply suggestions from code review
Co-authored-by: TwiN <twin@linux.com>
* Update test to have client config with 1ms timeout
* Re-align README tables
* Update core/endpoint_test.go
* Update core/endpoint_test.go
Co-authored-by: TwiN <twin@linux.com>
2022-06-16 17:53:03 -04:00
TwiN
fea95b8479
perf(storage): Improve benchmarks and fix race condition
2022-06-13 20:35:51 -04:00
wei
cf9c00a2ad
feat(metrics): Add more metrics ( #278 )
...
* add gatus_results_success and gatus_results_duration_seconds
* add metrics namespace
* add result http metrics
* add more metrics
* update
* extract endpoint type method
* initializedMetrics
* remove too many metrics
* update naming
* chore(metrics): Refactor code and merge results_dns_return_code_total, results_http_status_code_total into results_code_total
* docs(metrics): Update results_certificate_expiration_seconds description
* add TestEndpoint_Type
* remove name in table test
Co-authored-by: TwiN <twin@linux.com>
2022-05-16 21:10:45 -04:00
TwiN
0bf2271a73
test: Improve coverage for endpoint health evaluation edge cases ( #262 )
2022-03-15 20:53:03 -04:00
TwiN
bd4b91bbbd
fix: Display "<redacted>" instead of "host" in errors ( #262 )
2022-03-15 20:51:59 -04:00
Shashank D
fdec317df0
fix(config): replace hostname in error string if opted ( #262 )
2022-03-15 20:17:57 -04:00
TwiN
8970ad5ad5
refactor: Align new code from #259 with existing code
2022-03-09 21:05:57 -05:00
Andre Bindewald
c4255e65bc
feat(client): OAuth2 Client credential support ( #259 )
...
* Initial implementation
* Added OAuth2 support to `client` config
* Revert "Initial implementation"
This reverts commit 7f2f3a603a
.
* Restore vendored clientcredentials
* configureOAuth2 is now a func (including tests)
* README update
* Use the same OAuth2Config in all related tests
* Cleanup & comments
2022-03-09 20:53:51 -05:00
TwiN
6da281bf4e
Disallow certain characters in endpoint name, group and alert description
2021-12-12 17:03:11 -05:00
Eng Zer Jun
7a05bdcb82
refactor: move from io/ioutil to io and os packages
...
The io/ioutil package has been deprecated as of Go 1.16, see
https://golang.org/doc/go1.16#ioutil . This commit replaces the existing
io/ioutil functions with their new definitions in io and os packages.
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2021-12-03 14:44:17 +08:00
TwiN
d3805cd77a
Fix #197 ; Fix #198 : Deprecate storage.file in favor of storage.path and deprecate persistence with memory storage type
2021-11-04 21:33:13 -04:00
TwiN
dd70136e6c
Omit empty hostname and errors field
2021-11-03 22:18:23 -04:00
TwiN
a94c480c22
Fix typo in comment
2021-11-03 22:17:58 -04:00
TwiN
fb2448c15a
Omit fields that are not set
2021-10-24 15:03:41 -04:00
TwiN
6ed93d4b82
Rename Service to Endpoint ( #192 )
...
* Add clarifications in comments
* #191 : Rename Service to Endpoint
2021-10-23 16:47:12 -04:00
TwiN
6c45f5b99c
⚠ Migrate TwinProduction/gatus to TwiN/gatus
2021-10-07 21:28:04 -04:00
TwiN
422eaa6d37
Fix typo
2021-10-07 20:55:15 -04:00
TwinProduction
2d3fe9795f
Add v3 to module path
...
Gatus wasn't intended to be used as a library, but I have a use case now.
2021-10-03 21:53:59 -04:00
TwinProduction
dee04945d0
Minor update
2021-10-03 15:03:09 -04:00
TwinProduction
ac43ef4ab7
Refactor some code
2021-09-30 20:56:09 -04:00
Carlotronics
30cb7b6ec8
Health check for SSL/TLS services ( #177 )
...
* protocol: starttls: add timeout support
Signed-off-by: Charles Decoux <charles@phowork.fr>
* protocol: add ssl support
Signed-off-by: Charles Decoux <charles@phowork.fr>
2021-09-30 16:15:17 -04:00
TwinProduction
044f0454f8
Domain migration
2021-09-18 12:42:11 -04:00
newsr
9bd5c38a96
Add enabled parameter to service ( #175 )
...
* feat: Add enabled flag to service
* Add IsEnabled method
Co-authored-by: 1newsr <1newsr@users.noreply.github.com>
2021-09-18 11:52:11 -04:00
TwinProduction
f41560cd3e
Add configuration for whether to resolve failed conditions or not
2021-09-14 19:34:46 -04:00
TwinProduction
06ef7f9efe
Add test for NewEventFromResult
2021-09-06 16:34:03 -04:00
TwinProduction
66e312b72f
Remove old memory uptime implementation and auto migration
2021-09-06 13:28:35 -04:00
TwinProduction
6e38114e27
Remove deprecated service[].insecure parameter (in favor of service[].client.insecure)
2021-09-06 13:28:35 -04:00
TwinProduction
9c99cc522d
Close #159 : Add the ability to hide the hostname of a service
2021-09-06 13:28:35 -04:00
TwinProduction
becc17202b
Remove uptime from /api/v1/services/{key}/statuses and return the entire service status instead of a map
2021-09-06 13:28:35 -04:00
TwinProduction
bab69478dd
Improve comment on HourlyUptimeStatistics.TotalExecutionsResponseTime
2021-08-21 18:12:06 -04:00
TwinProduction
d65cebb1fb
Remove Uptime.Last* parameters
2021-08-13 01:25:50 -04:00
TwinProduction
0b6fc6b520
Add GetUptimeByKey to store interface
2021-08-13 01:25:50 -04:00
TwinProduction
f6c32a90ac
Add small comment
2021-08-10 19:58:19 -04:00
TwinProduction
4ada6ee7c9
Remove unneeded constants
2021-08-07 11:54:22 -04:00
TwinProduction
9cd6355056
#126 : Add client configuration
2021-07-28 21:52:14 -04:00
TwinProduction
627173e64f
Refactor duplicate functions
2021-07-18 17:29:08 -04:00
TwinProduction
7126d36d85
Implement paging and refactor stores to match new store interface with paging
2021-07-18 17:29:08 -04:00
TwinProduction
8dedcf7c74
Refactor code
2021-07-18 17:29:08 -04:00
TwinProduction
943d0a19d1
Use time.Truncate instead of manually flooring the hour
2021-07-18 17:29:08 -04:00
TwinProduction
1498b6d8a2
Add Service.Key() method to generate the unique service key
2021-07-18 17:29:08 -04:00
TwinProduction
7aed826d65
Fix typo
2021-07-18 17:29:08 -04:00
TwinProduction
b904afb8b5
Replace - by _ in file names
2021-07-02 20:04:05 -04:00
TwinProduction
fc0c3499f4
Remove comment that no longer applies
2021-06-18 09:59:39 -04:00