Skip to content
This repository has been archived by the owner on May 10, 2023. It is now read-only.

make create error #40

Open
rcruz63 opened this issue Nov 2, 2020 · 0 comments
Open

make create error #40

rcruz63 opened this issue Nov 2, 2020 · 0 comments

Comments

@rcruz63
Copy link

rcruz63 commented Nov 2, 2020

Hello,
I'm using this tutorial from qwiklabs platform.
When I tried to run the "make create" command I've obtained the following error:

google_container_cluster.primary: Still creating... [5m10s elapsed]

google_container_cluster.primary: Creation complete after 5m16s [id=projects/qwiklabs-gcp-03-4849dd831a97/locations/us-central1-a/clusters/stackdriver-monitoring-tutorial]

google_monitoring_alert_policy.prometheus_mem_alloc: Creating...

Error: Error creating AlertPolicy: googleapi: Error 404: The metric referenced by the provided filter is unknown. Check the metric name and labels.

make: *** [Makefile:26: create] Error 1`

I've run the "make create' command again, without changes and it finished correctly:

student_03_9c8787cab370@cloudshell:~/gke-monitoring-tutorial (qwiklabs-gcp-03-4849dd831a97)$ make create
Your active configuration is: [cloudshell-13235]
Your active configuration is: [cloudshell-13235]
Your active configuration is: [cloudshell-13235]
Your active configuration is: [cloudshell-13235]
Operation "operations/acf.d3a994d1-82d7-4e08-a87f-c1eefd0ef5d2" finished successfully.

Initializing the backend...

Initializing provider plugins...

The following providers do not have any version constraints in configuration,
so the latest version was installed.

To prevent automatic upgrades to new major versions that may contain breaking
changes, it is recommended to add version = "..." constraints to the
corresponding provider blocks in configuration, with the constraint strings
suggested below.

  • provider.google: version = "~> 3.45"

Terraform has been successfully initialized!

You may now begin working with Terraform. Try running "terraform plan" to see
any changes that are required for your infrastructure. All Terraform commands
should now work.

If you ever set or change modules or backend configuration for Terraform,
rerun this command to reinitialize your working directory. If you forget, other
commands will detect it and remind you to do so if necessary.
data.google_container_engine_versions.gke_versions: Refreshing state...
google_project_service.container: Refreshing state... [id=qwiklabs-gcp-03-4849dd831a97/container.googleapis.com]
google_project_service.logging: Refreshing state... [id=qwiklabs-gcp-03-4849dd831a97/logging.googleapis.com]
google_project_service.monitoring: Refreshing state... [id=qwiklabs-gcp-03-4849dd831a97/monitoring.googleapis.com]
google_container_cluster.primary: Refreshing state... [id=projects/qwiklabs-gcp-03-4849dd831a97/locations/us-central1-a/clusters/stackdriver-monitoring-tutorial]
google_monitoring_alert_policy.prometheus_mem_alloc: Creating...
google_monitoring_alert_policy.prometheus_mem_alloc: Creation complete after 2s [id=projects/qwiklabs-gcp-03-4849dd831a97/alertPolicies/4660661680130321969]

Apply complete! Resources: 1 added, 0 changed, 0 destroyed.

Outputs:

cluster_name = stackdriver-monitoring-tutorial
primary_location = us-central1-a

For your information
Regards,
Raul

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant