You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/tutorials/monitoring-your-services.md
+32-8Lines changed: 32 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,19 +6,43 @@ description: How to monitoring services deployed with Defang
6
6
7
7
# Monitoring Your Services
8
8
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
11
10
12
-
- From the CLI:
11
+
When deploying to Playground, you can monitor your service status from the [Defang Portal](https://portal.defang.dev).
13
12
14
-
```tsx
15
-
defangtail--nameservice1
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.
When deploying to Playground, your service's logs may be viewed in the [Defang Portal](https://portal.defang.dev).
21
18
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.
22
46
23
47
:::info
24
48
* To learn more about observability in Defang, check out the [observability page](../concepts/observability.md).
0 commit comments