Skip to content

Commit 90ce88e

Browse files
docs about monitoring services, mostly logging
1 parent 6b68a69 commit 90ce88e

File tree

1 file changed

+32
-7
lines changed

1 file changed

+32
-7
lines changed

docs/tutorials/monitoring-your-services.md

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

77
# How To Monitor Your Services With Defang
88

9-
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
1010

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

13-
```tsx
14-
defang tail --name service1
15-
```
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.
1614

17-
- From the Defang Portal:
15+
## Logs
1816

19-
[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).
2018

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.
2146

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

0 commit comments

Comments
 (0)