mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-19 07:15:23 +00:00
gcloud: Wed Dec 10 10:54:29 UTC 2025
This commit is contained in:
parent
7b14250313
commit
6d07e70b12
313 changed files with 11521 additions and 1088 deletions
44
gcloud/monitoring/policies/migrate
Normal file
44
gcloud/monitoring/policies/migrate
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
NAME
|
||||
gcloud monitoring policies migrate - migrate a Prometheus configuration
|
||||
file to Cloud Monitoring
|
||||
|
||||
SYNOPSIS
|
||||
gcloud monitoring policies migrate
|
||||
[--channels-from-prometheus-alertmanager-yaml=PROMETHEUS_ALERT_MANAGER_FILE_PATH --policies-from-prometheus-alert-rules-yaml=[PROMETHEUS_ALERT_RULE_FILE_PATHS,
|
||||
...]] [GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
Creates new alerting policies and/or notification channels based on
|
||||
provided Prometheus files. The rules YAML file, which holds the alert
|
||||
rules, must be specified as a file through the
|
||||
--policies-from-prometheus-alert-rules-yaml flag.
|
||||
|
||||
FLAGS
|
||||
--channels-from-prometheus-alertmanager-yaml=PROMETHEUS_ALERT_MANAGER_FILE_PATH
|
||||
Prometheus alert manager YAML file to be converted to Cloud Monitoring
|
||||
notification channels. Specifying this flag with the
|
||||
--policies-from-prometheus-alert-rules-yaml flag puts the newly created
|
||||
notification channels into the translated Alert Policies' definition.
|
||||
Use a full or relative path to a local file containing the value of
|
||||
channels_from_prometheus_alertmanager_yaml.
|
||||
|
||||
--policies-from-prometheus-alert-rules-yaml=[PROMETHEUS_ALERT_RULE_FILE_PATHS,...]
|
||||
One or more Prometheus alert rule YAML files (separated by commas if
|
||||
multiple) to be converted to Cloud Alerting Policies. Example:
|
||||
--policies-from-prometheus-alert-rules-yaml=rules_1.yaml,rules_2.yaml
|
||||
|
||||
GCLOUD WIDE FLAGS
|
||||
These flags are available to all commands: --access-token-file, --account,
|
||||
--billing-project, --configuration, --flags-file, --flatten, --format,
|
||||
--help, --impersonate-service-account, --log-http, --project, --quiet,
|
||||
--trace-token, --user-output-enabled, --verbosity.
|
||||
|
||||
Run $ gcloud help for details.
|
||||
|
||||
NOTES
|
||||
These variants are also available:
|
||||
|
||||
$ gcloud alpha monitoring policies migrate
|
||||
|
||||
$ gcloud beta monitoring policies migrate
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue