File: //snap/google-cloud-cli/current/help/man/man1/gcloud_alpha_monitoring_policies_migrate.1
.TH "GCLOUD_ALPHA_MONITORING_POLICIES_MIGRATE" 1
.SH "NAME"
.HP
gcloud alpha monitoring policies migrate \- migrate a Prometheus configuration file to Cloud Monitoring
.SH "SYNOPSIS"
.HP
\f5gcloud alpha monitoring policies migrate\fR [\fB\-\-channels\-from\-prometheus\-alertmanager\-yaml\fR=\fIPROMETHEUS_ALERT_MANAGER_FILE_PATH\fR\ \fB\-\-policies\-from\-prometheus\-alert\-rules\-yaml\fR=[\fIPROMETHEUS_ALERT_RULE_FILE_PATHS\fR,...]] [\fIGCLOUD_WIDE_FLAG\ ...\fR]
.SH "DESCRIPTION"
\fB(ALPHA)\fR 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
\f5\-\-policies\-from\-prometheus\-alert\-rules\-yaml\fR flag.
.SH "FLAGS"
.RS 2m
.TP 2m
\fB\-\-channels\-from\-prometheus\-alertmanager\-yaml\fR=\fIPROMETHEUS_ALERT_MANAGER_FILE_PATH\fR
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.
.TP 2m
\fB\-\-policies\-from\-prometheus\-alert\-rules\-yaml\fR=[\fIPROMETHEUS_ALERT_RULE_FILE_PATHS\fR,...]
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
.RE
.sp
.SH "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 \fB$ gcloud help\fR for details.
.SH "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.