-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0eedd7d
commit 0076a3b
Showing
24 changed files
with
178 additions
and
577 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 was deleted.
Oops, something went wrong.
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,13 @@ | ||
--- | ||
sidebar_position: 2 | ||
--- | ||
|
||
# Environment | ||
|
||
Here is enviroment which you can config in docker | ||
|
||
| Name | Default Value | Description | | ||
| ---- | ---- | ----- | | ||
| ALLOW_REGISTER | false | whether allow user can register account | | ||
| ALLOW_OPENAPI | false | whether allow openapi which can fetch or post data just like you with ui | | ||
| SANDBOX_MEMORY_LIMIT | 16 | custom script monitor sandbox memory limit, which can control which monitor script not use too many memory (unit MB, the minimum value is 8) | |
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,4 @@ | ||
{ | ||
"label": "Monitor", | ||
"position": 3 | ||
} |
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,40 @@ | ||
--- | ||
sidebar_position: 1 | ||
--- | ||
|
||
# Custom Script | ||
|
||
Compared with traditional monitoring services, **Tianji** supports custom scripts to support more customized scenarios. | ||
|
||
Here is some example | ||
|
||
## Examples | ||
|
||
### get available service number from health endpoint | ||
|
||
```js | ||
const res = await request({ | ||
url: 'https://<tailchat-server-api>/health' | ||
}) | ||
|
||
if(!res || !res.data || !res.data.services) { | ||
return -1 | ||
} | ||
|
||
return res.data.services.length | ||
``` | ||
|
||
### get github star count | ||
|
||
```js | ||
const res = await request({ | ||
url: 'https://api.github.com/repos/msgbyte/tianji' | ||
}) | ||
|
||
return res.data.stargazers_count ?? -1 | ||
``` | ||
### or more | ||
Very very welcome to submit your script in this page. Tianji is driven by open source community. |
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,4 @@ | ||
{ | ||
"label": "Server Status", | ||
"position": 4 | ||
} |
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,31 @@ | ||
--- | ||
sidebar_position: 1 | ||
--- | ||
|
||
# Server Status Reporter | ||
|
||
you can report your server status easily with tianji reporter | ||
|
||
you can download from [https://github.com/msgbyte/tianji/releases](https://github.com/msgbyte/tianji/releases) | ||
|
||
## Usage | ||
|
||
``` | ||
Usage of tianji-reporter: | ||
--interval int | ||
Input the INTERVAL, seconed (default 5) | ||
--mode http | ||
The send mode of report data, you can select: `http` or `udp`, default is `http` (default "http") | ||
--name string | ||
The identification name for this machine | ||
--url string | ||
The http url of tianji, for example: https://tianji.msgbyte.com | ||
--vnstat | ||
Use vnstat for traffic statistics, linux only | ||
--workspace string | ||
The workspace id for tianji, this should be a uuid | ||
``` | ||
|
||
the **url** and **workspace** is required, its means you will report your service to which host and which workspace. | ||
|
||
default a server node name will be same with hostname, so you can custom your name with `--name` which can help you identify server. |
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,14 @@ | ||
--- | ||
sidebar_position: 99 | ||
--- | ||
|
||
# Special thanks | ||
|
||
## Open source project | ||
|
||
Tianji is very inspired by those project, thanks for your contributions to the open source community. | ||
|
||
I also loves those project. Salute to these excellent projects! | ||
|
||
- [umami](https://github.com/umami-software/umami) | ||
- [uptime kuma](https://github.com/louislam/uptime-kuma) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.