You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Monitoring project where the dashboard will be created and the solution deployed, a project named "mon-network-dahshboard" will be created if left blank
# Monitoring project name prefix, monitoring project name is <YOUR-PREFIX>-network-dashboard, ignored if monitoring_project_id variable is provided
29
+
cf_version = V1|V2
30
+
# Set to V2 to use V2 Cloud Functions environment
31
+
```
26
32
- `terraform init`
27
33
- `terraform apply`
28
34
29
35
Note: Org level viewing permission is required for some metrics such as firewall policies.
30
36
31
-
Once the resources are deployed, go to the following page to see the dashboard: https://console.cloud.google.com/monitoring/dashboards?project=<YOUR-MONITORING-PROJECT>.
32
-
A dashboard called "quotas-utilization" should be created.
37
+
Once the resources are deployed, go to the following page to see the dashboard: https://console.cloud.google.com/monitoring/dashboards?project=<YOUR-MONITORING-PROJECT> a dashboard called "quotas-utilization" should be created.
33
38
34
39
The Cloud Function runs every 10 minutes by default so you should start getting some data points after a few minutes.
35
40
You can use the metric explorer to view the data points for the different custom metrics created: https://console.cloud.google.com/monitoring/metrics-explorer?project=<YOUR-MONITORING-PROJECT>.
@@ -69,7 +74,6 @@ Note that metrics are created in the cloud-function/metrics.yaml file. You can a
69
74
- The CF assumes custom routes importing/exporting is ON, this impacts static and dynamic routes usage calculation
70
75
- The CF assumes all networks in peering groups have the same global routing and custom routes sharing configuration
71
76
72
-
73
77
## Next steps and ideas
74
78
In a future release, we could support:
75
79
- Google managed VPCs that are peered with PSA (such as Cloud SQL or Memorystore)
@@ -87,13 +91,13 @@ If you are interested in this and/or would like to contribute, please contact le
87
91
|---|---|:---:|:---:|:---:|
88
92
| [billing_account](variables.tf#L17) | The ID of the billing account to associate this project with | <code></code> | ✓ | |
89
93
| [monitored_projects_list](variables.tf#L36) | ID of the projects to be monitored (where limits and quotas data will be pulled) | <code>list(string)</code> | ✓ | |
90
-
|[organization_id](variables.tf#L47)| The organization id for the associated services | <code></code> | ✓ ||
91
-
|[prefix](variables.tf#L51)| Customer name to use as prefix for monitoring project | <code></code> | ✓ ||
94
+
| [organization_id](variables.tf#L46) | The organization id for the associated services | <code></code> | ✓ | |
95
+
| [prefix](variables.tf#L50) | Customer name to use as prefix for monitoring project | <code></code> | ✓ | |
92
96
| [cf_version](variables.tf#L21) | Cloud Function version 2nd Gen or 1st Gen. Possible options: 'V1' or 'V2'.Use CFv2 if your Cloud Function timeouts after 9 minutes. By default it is using CFv1. | <code></code> | | <code>V1</code> |
93
97
| [monitored_folders_list](variables.tf#L30) | ID of the projects to be monitored (where limits and quotas data will be pulled) | <code>list(string)</code> | | <code>[]</code> |
94
98
| [monitoring_project_id](variables.tf#L41) | Monitoring project where the dashboard will be created and the solution deployed; a project will be created if set to empty string | <code></code> | | |
95
-
|[project_monitoring_services](variables.tf#L55)| Service APIs enabled in the monitoring project if it will be created. | <code></code> || <codetitle="[ "artifactregistry.googleapis.com", "cloudasset.googleapis.com", "cloudbilling.googleapis.com", "cloudbuild.googleapis.com", "cloudresourcemanager.googleapis.com", "cloudscheduler.googleapis.com", "compute.googleapis.com", "cloudfunctions.googleapis.com", "iam.googleapis.com", "iamcredentials.googleapis.com", "logging.googleapis.com", "monitoring.googleapis.com", "run.googleapis.com", "serviceusage.googleapis.com" ]">[…]</code> |
96
-
|[region](variables.tf#L75)| Region used to deploy the cloud functions and scheduler | <code></code> || <code>europe-west1</code> |
97
-
|[schedule_cron](variables.tf#L80)| Cron format schedule to run the Cloud Function. Default is every 10 minutes. | <code></code> || <code>*/10 ****</code> |
99
+
| [project_monitoring_services](variables.tf#L54) | Service APIs enabled in the monitoring project if it will be created. | <code></code> | | <code title="[ "artifactregistry.googleapis.com", "cloudasset.googleapis.com", "cloudbilling.googleapis.com", "cloudbuild.googleapis.com", "cloudfunctions.googleapis.com", "cloudresourcemanager.googleapis.com", "cloudscheduler.googleapis.com", "compute.googleapis.com", "iam.googleapis.com", "iamcredentials.googleapis.com", "logging.googleapis.com", "monitoring.googleapis.com", "pubsub.googleapis.com", "run.googleapis.com", "servicenetworking.googleapis.com", "serviceusage.googleapis.com", "storage-component.googleapis.com" ]">[…]</code> |
100
+
| [region](variables.tf#L76) | Region used to deploy the cloud functions and scheduler | <code></code> | | <code>europe-west1</code> |
101
+
| [schedule_cron](variables.tf#L81) | Cron format schedule to run the Cloud Function. Default is every 10 minutes. | <code></code> | | <code>*/10 * * * *</code> |
0 commit comments