1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-17 06:11:59 +00:00
gcloud-help/gcloud/alpha/monitoring/policies/migrate

44 lines
2 KiB
Text
Raw Normal View History

2023-07-20 11:47:25 +00:00
NAME
2023-09-07 10:42:28 +00:00
gcloud alpha monitoring policies migrate - migrate a Prometheus
configuration file to Cloud Monitoring
2023-07-20 11:47:25 +00:00
SYNOPSIS
gcloud alpha 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
2023-09-07 10:42:28 +00:00
(ALPHA) Creates new alerting policies and/or notification channels based on
provided Prometheus files. The rules YAML file, which holds the alert
2023-07-20 11:47:25 +00:00
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.
2024-07-31 09:35:16 +00:00
Use a full or relative path to a local file containing the value of
channels_from_prometheus_alertmanager_yaml.
2023-07-20 11:47:25 +00:00
--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
This command is currently in alpha and might change without notice. If this
command fails with API permission errors despite specifying the correct
project, you might be trying to access an API with an invitation-only early
access allowlist.