Skip to content

Commit 66e1e7b

Browse files
docs about monitoring services, mostly logging
1 parent f3c804a commit 66e1e7b

File tree

1 file changed

+32
-8
lines changed

1 file changed

+32
-8
lines changed

docs/tutorials/monitoring-your-services.md

Lines changed: 32 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,43 @@ description: How to monitoring services deployed with Defang
66

77
# Monitoring Your Services
88

9-
Monitoring your services with Defang.
10-
By default, all the output (stdout and stderr) from your app is logged. You can view these logs in real-time. You can view logs for all your services, one service, or even one specific deployment of a service.
9+
## Status
1110

12-
- From the CLI:
11+
When deploying to Playground, you can monitor your service status from the [Defang Portal](https://portal.defang.dev).
1312

14-
```tsx
15-
defang tail --name service1
16-
```
13+
When deploying to your own cloud, the primary way to monitor your services is through your cloud provider's dashboard. Defang does, however, provide some tools for monitoring your service logs.
1714

18-
- From the Defang Portal:
15+
## Logs
1916

20-
[https://portal.defang.dev/](https://portal.defang.dev/)
17+
When deploying to Playground, your service's logs may be viewed in the [Defang Portal](https://portal.defang.dev).
2118

19+
By default, all the output (stdout and stderr) from your app is logged. You can view these logs in real-time or for a time in the past. You can view logs for all your services, one service, or even one specific deployment of a service.
20+
21+
### Tailing Live Logs For All Services
22+
23+
```bash
24+
$ defang tail
25+
```
26+
27+
### Tailing Logs Since a Specific Time
28+
29+
```bash
30+
$ defang tail --since 1h
31+
```
32+
33+
### Tailing Logs For a Service
34+
35+
```bash
36+
$ defang tail --name service-name
37+
```
38+
39+
### Build Time Logs
40+
41+
```bash
42+
$ defang logs --type=build
43+
```
44+
45+
All of the above flags can be combined to get the exact logs you need. See the CLI reference for [`defang tail`](/docs/cli/defang_tail) for more information.
2246

2347
:::info
2448
* To learn more about observability in Defang, check out the [observability page](../concepts/observability.md).

0 commit comments

Comments
 (0)