Improving README.md and adding a picture

This commit is contained in:
Aurélien Legrand 2022-03-18 10:43:16 +01:00 committed by Julio Castillo
parent b4c1b16217
commit 0fe548ee80
3 changed files with 8 additions and 2 deletions

View File

@ -3,6 +3,10 @@
This repository provides an end-to-end solution to gather some GCP Networking quotas and limits (that cannot be seen in the GCP console today) and display them in a dashboard. This repository provides an end-to-end solution to gather some GCP Networking quotas and limits (that cannot be seen in the GCP console today) and display them in a dashboard.
The goal is to allow for better visibility of these limits, facilitating capacity planning and avoiding hitting these limits. The goal is to allow for better visibility of these limits, facilitating capacity planning and avoiding hitting these limits.
Here is an example of dashboard you can get with this solution:
<img src="metric.png" width="640px">
## Usage ## Usage
Clone this repository, then go through the following steps to create resources: Clone this repository, then go through the following steps to create resources:
@ -17,8 +21,9 @@ Clone this repository, then go through the following steps to create resources:
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>. 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. A dashboard called "quotas-utilization" should be created.
The Cloud Function runs every 5 minutes by default so you should start getting some data points after a few minutes. The Cloud Function runs every 5 minutes by default so you should start getting some data points after a few minutes.
You can change this frequency by modifying the "schedule_cron" variable in variables.tf. You can change this frequency by modifying the "schedule_cron" variable in variables.tf.
Note that we are using Google defined metrics that are populated only once a day so you might need to wait up to one day for some metrics.
Once done testing, you can clean up resources by running `terraform destroy`. Once done testing, you can clean up resources by running `terraform destroy`.

Binary file not shown.

After

Width:  |  Height:  |  Size: 141 KiB

View File

@ -272,7 +272,8 @@ resource "google_compute_instance" "test-vm-hub1" {
# Forwarding Rules # Forwarding Rules
resource "google_compute_forwarding_rule" "forwarding-rule-dev" { resource "google_compute_forwarding_rule" "forwarding-rule-dev" {
name = "forwarding-rule-dev" count = 10
name = "forwarding-rule-dev${count.index}"
project = module.project-svc-dev.project_id project = module.project-svc-dev.project_id
network = module.vpc-dev.self_link network = module.vpc-dev.self_link
subnetwork = module.vpc-dev.subnet_self_links["${var.region}/subnet-dev-1"] subnetwork = module.vpc-dev.subnet_self_links["${var.region}/subnet-dev-1"]