-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from Lissy93/feature_status-indicators
Feature: Status Indicators (optional feature)
- Loading branch information
Showing
23 changed files
with
455 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Status Indicators | ||
|
||
Dashy has an optional feature that can display a small icon next to each of your running services, indicating it's current status. This is useful if you are using Dashy as your homelab's start page, as it gives you an overview of the health of each of your running services. | ||
|
||
<p align="center"> | ||
<img width="800" src="/docs/assets/status-check-demo.gif" /> | ||
</p> | ||
|
||
## Enabling Status Indicators | ||
By default, this feature is off. If you do not want this feature, just don't add the `statusCheck` to your conf.yml file, then no requests will be made. | ||
|
||
To enable status checks, you can either turn it on for all items, by setting `appConfig.statusCheck: true`, like: | ||
```yaml | ||
appConfig: | ||
statusCheck: true | ||
``` | ||
Or you can enable/ disable it on a per-item basis, with the `item[n].statusCheck` attribute | ||
```yaml | ||
sections: | ||
- name: Firewall | ||
items: | ||
- title: OPNsense | ||
description: Firewall Central Management | ||
icon: networking/opnsense.png | ||
url: https://192.168.1.1 | ||
statusCheck: false | ||
- title: MalTrail | ||
description: Malicious traffic detection system | ||
icon: networking/maltrail.png | ||
url: http://192.168.1.1:8338 | ||
statusCheck: true | ||
- title: Ntopng | ||
description: Network traffic probe and network use monitor | ||
icon: networking/ntop.png | ||
url: http://192.168.1.1:3001 | ||
statusCheck: true | ||
``` | ||
|
||
## How it Works | ||
|
||
When Dashy is loaded, items with `statusCheck` enabled will make a request, to `https://[your-host-name]/ping?url=[address-or-servce]`, which in turn will ping that running service, and respond with a status code. Response time is calculated from the difference between start and end time of the request. | ||
|
||
An indicator will display next to each item, and will be yellow while waiting for the response to return, green if request was successful, red if it failed, and grey if it was unable to make the request all together. | ||
|
||
All requests are made straight from your server, there is no intermediary. So providing you are hosting Dashy yourself, and are checking the status of other self-hosted services, there shouldn't be any privacy concerns. |
Oops, something went wrong.
f03b6c4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: