Minor updates
This commit is contained in:
parent
bc4380db19
commit
d206d63151
13
README.md
13
README.md
@ -58,7 +58,7 @@ The main features of Gatus are:
|
|||||||
- **Alerting**: While having a pretty visual dashboard is useful to keep track of the state of your application(s), you probably don't want to stare at it all day. Thus, notifications via Slack, Mattermost, Messagebird, PagerDuty and Twilio are supported out of the box with the ability to configure a custom alerting provider for any needs you might have, whether it be a different provider or a custom application that manages automated rollbacks.
|
- **Alerting**: While having a pretty visual dashboard is useful to keep track of the state of your application(s), you probably don't want to stare at it all day. Thus, notifications via Slack, Mattermost, Messagebird, PagerDuty and Twilio are supported out of the box with the ability to configure a custom alerting provider for any needs you might have, whether it be a different provider or a custom application that manages automated rollbacks.
|
||||||
- **Metrics**
|
- **Metrics**
|
||||||
- **Low resource consumption**: As with most Go applications, the resource footprint that this application requires is negligibly small.
|
- **Low resource consumption**: As with most Go applications, the resource footprint that this application requires is negligibly small.
|
||||||
- **GitHub uptime badges** (ALPHA)
|
- **GitHub uptime badges** (ALPHA):   
|
||||||
- **Service auto discovery in Kubernetes** (ALPHA)
|
- **Service auto discovery in Kubernetes** (ALPHA)
|
||||||
|
|
||||||
|
|
||||||
@ -705,10 +705,15 @@ web:
|
|||||||
```
|
```
|
||||||
|
|
||||||
### Uptime badges
|
### Uptime badges
|
||||||
|

|
||||||
|

|
||||||
|

|
||||||
|
|
||||||
> **NOTE**: This feature is currently in ALPHA
|
> **NOTE**: This feature is currently in ALPHA
|
||||||
|
|
||||||
Gatus can automatically generate a SVG badge for one of your monitored services.
|
Gatus can automatically generate a SVG badge for one of your monitored services.
|
||||||
|
This allows you to put badges in your individual services' README or even create your own status page, if you
|
||||||
|
desire.
|
||||||
|
|
||||||
The endpoint to generate a badge is the following:
|
The endpoint to generate a badge is the following:
|
||||||
```
|
```
|
||||||
@ -728,3 +733,9 @@ If you want to display a service that is not part of a group, you must leave the
|
|||||||
```
|
```
|
||||||
http://example.com/api/v1/badges/uptime/7d/group--service-frontend.svg
|
http://example.com/api/v1/badges/uptime/7d/group--service-frontend.svg
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Example: 
|
||||||
|
```
|
||||||
|

|
||||||
|
```
|
||||||
|
|
||||||
|
@ -35,7 +35,9 @@ func GetJSONEncodedServiceStatuses() ([]byte, error) {
|
|||||||
// GetUptimeByServiceGroupAndName returns the uptime of a service based on its group and name
|
// GetUptimeByServiceGroupAndName returns the uptime of a service based on its group and name
|
||||||
func GetUptimeByServiceGroupAndName(group, name string) *core.Uptime {
|
func GetUptimeByServiceGroupAndName(group, name string) *core.Uptime {
|
||||||
key := fmt.Sprintf("%s_%s", group, name)
|
key := fmt.Sprintf("%s_%s", group, name)
|
||||||
|
serviceStatusesMutex.RLock()
|
||||||
serviceStatus, exists := serviceStatuses[key]
|
serviceStatus, exists := serviceStatuses[key]
|
||||||
|
serviceStatusesMutex.RUnlock()
|
||||||
if !exists {
|
if !exists {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user