mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-18 23:08:48 +00:00
gcloud: Wed Sep 13 10:32:10 UTC 2023
This commit is contained in:
parent
6c8d2eb024
commit
39a8a4f491
111 changed files with 1798 additions and 302 deletions
|
|
@ -3,8 +3,8 @@ NAME
|
|||
in a metrics scope
|
||||
|
||||
SYNOPSIS
|
||||
gcloud beta monitoring metrics-scopes create MONITORED_PROJECT_ID_OR_NUMBER
|
||||
[GCLOUD_WIDE_FLAG ...]
|
||||
gcloud beta monitoring metrics-scopes create
|
||||
MONITORED_RESOURCE_CONTAINER_NAME [GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
(BETA) This command can fail for the following reasons:
|
||||
|
|
@ -21,20 +21,22 @@ EXAMPLES
|
|||
monitored-project-1 to a metrics scope with project id metrics-scope-1
|
||||
assuming the metrics-scope-1 is the default project:
|
||||
|
||||
$ gcloud beta monitoring metrics-scopes create monitored-project-1
|
||||
$ gcloud beta monitoring metrics-scopes create \
|
||||
projects/monitored-project-1
|
||||
|
||||
The following command adds a monitored project with the ID
|
||||
monitored-project-1 to a metrics scope with project id metrics-scope-1:
|
||||
|
||||
$ gcloud beta monitoring metrics-scopes create monitored-project-1 \
|
||||
--project=metrics-scope-1
|
||||
$ gcloud beta monitoring metrics-scopes create \
|
||||
projects/monitored-project-1 --project=metrics-scope-1
|
||||
$ gcloud beta monitoring metrics-scopes create \
|
||||
locations/global/metricsScopes/metrics-scope-1/projects/\
|
||||
monitored-project-1
|
||||
|
||||
POSITIONAL ARGUMENTS
|
||||
MONITORED_PROJECT_ID_OR_NUMBER
|
||||
Monitored project ID or number for the project you want to create.
|
||||
MONITORED_RESOURCE_CONTAINER_NAME
|
||||
Monitored resource container (example - projects/PROJECT_ID) project
|
||||
you want to create.
|
||||
|
||||
GCLOUD WIDE FLAGS
|
||||
These flags are available to all commands: --access-token-file, --account,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue