Skip to content

Commit 745b3d9

Browse files
committed
docs: add metrics
1 parent a6dd97c commit 745b3d9

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

docs/06-commands.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,46 @@ Copy the production endpoint to the clipboard.
414414
$ up url -c production
415415
```
416416

417+
## Metrics
418+
419+
Show project metrics and estimated cost breakdown for requests, invocation count and the time spent for Lambda invocations.
420+
421+
```
422+
Usage:
423+
424+
up metrics [<flags>] [<stage>]
425+
426+
Flags:
427+
428+
-h, --help Output usage information.
429+
-r, --region=REGION Override the region.
430+
-C, --chdir="." Change working directory.
431+
-v, --verbose Enable verbose log output.
432+
--version Show application version.
433+
-s, --since="1M" Show logs since duration (30s, 5m, 2h, 1h30m, 3d, 1M).
434+
435+
Args:
436+
437+
[<stage>] Name of the stage.
438+
```
439+
440+
For example:
441+
442+
```
443+
$ up metrics production -s 15d
444+
445+
Requests: 13,653 ($0.01)
446+
Duration min: 0ms
447+
Duration avg: 48ms
448+
Duration max: 15329ms
449+
Duration sum: 3m6.611s ($0.00)
450+
Errors 4xx: 1,203
451+
Errors 5xx: 2
452+
Invocations: 12,787 ($0.00)
453+
Errors: 0
454+
Throttles: 0
455+
```
456+
417457
## Start
418458

419459
Start development server. The development server runs the same proxy that is used in production for serving, so you can test a static site or application locally with the same feature-set.

0 commit comments

Comments
 (0)