Skip to content

Commit

Permalink
docs: add example of docker pull image size
Browse files Browse the repository at this point in the history
  • Loading branch information
moonrailgun committed May 3, 2024
1 parent 7b95c55 commit 4761c2d
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion website/docs/monitor/custom-script.md
Expand Up @@ -10,7 +10,7 @@ Here is some example

## Examples

### get available service number from health endpoint
### get tailchat available service number from health endpoint

```js
const res = await request({
Expand All @@ -34,6 +34,20 @@ const res = await request({
return res.data.stargazers_count ?? -1
```
replace `msgbyte/tianji` to your own repo name
### get docker pull count
```js
const res = await request({
url: "https://hub.docker.com/v2/repositories/moonrailgun/tianji/"
});

return res.data.pull_count;
```
replace `moonrailgun/tianji` to your own image name
### or more
Expand Down

0 comments on commit 4761c2d

Please sign in to comment.