Commit Graph

27 Commits

Author SHA1 Message Date
Aurélien Legrand e8e26f6866
Update metrics.yaml (#641)
Good news: Limits for L4 Internal Forwarding Rules was raised to 300 per network and per network peering group in GCP (source: https://cloud.google.com/vpc/docs/quota#vpc-peering).
2022-05-03 11:18:36 +02:00
David Gleich 74b507a9cb
Refactor network dashboard to use multiple files (#639)
* Refactor cloud function into multiple files part 1

* Refactor cloud function into multiple files part 2 - networks.py

* Refactor cloud function into multiple files part 3 - peerings

* Refactor cloud function into multiple files part 4 - peerings

* Refactor cloud function into multiple files part 5 - routes

* Refactor cloud function into multiple files part 6 - move monitoring metrics client out of separate function

* Refactor cloud function into multiple files part 6 - routers.py

* Refactor cloud function into multiple files part 7 - the rest

* Cleanup after refactoring
2022-04-28 11:48:48 +02:00
David Gleich 6c82aa04b5 Reformatting with yapf 2022-04-13 13:10:15 +02:00
David Gleich ea6f31e024 Findings from code review 2022-04-12 17:55:40 +02:00
David Gleich 8743d6101b Add metrics for L7 forwarding groups 2022-04-12 14:21:14 +02:00
David Gleich 2a6a890058 Catch errors due to permission denied for Peering Groups 2022-04-12 14:13:05 +02:00
David Gleich 44693fb6dc Allow to use an existing monitoring project and remove some unused TF variables 2022-04-12 14:10:14 +02:00
Aurélien Legrand cde0b5d051
Network dashboard: Adding dynamic routes per VPC peering group. (#617)
* Adding Dynamic Routes per VPC peering

* Python formatting.

Co-authored-by: Aurélien Legrand <legranda@google.com>
Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
2022-04-12 09:58:12 +02:00
Aurélien Legrand 63a4d81de7 Documentation fix. 2022-03-30 17:46:01 +02:00
Aurélien Legrand db37e43a99 Adding Dynamic Routes per Network as a new metric. 2022-03-30 17:03:31 +02:00
Aurélien Legrand 0344e7df8c formatting 2022-03-28 18:47:11 +02:00
Aurélien Legrand 02dc53d0d4 Refactored how limits are managed, now you can edit the metrics.yaml file to set specific metrics per network. 2022-03-28 18:44:16 +02:00
Aurélien Legrand 291470b8c4 Refactoring to use Cloud Asset Inventory, reducing latency for metrics data, reduced execution time by 50%. 2022-03-24 10:07:58 +01:00
Aurélien Legrand 344a489a27 Improving README 2022-03-18 10:46:30 +01:00
Aurélien Legrand 76f8f4b19d Improving README 2022-03-18 10:45:54 +01:00
Aurélien Legrand 5d7e25484d Improving README.md and adding a picture 2022-03-18 10:43:16 +01:00
Aurélien Legrand 44b32400e6 formatting test.tf 2022-03-18 10:10:08 +01:00
Aurélien Legrand 73269eeed5 Removing unless variables, using local modules. 2022-03-18 10:05:51 +01:00
Aurélien Legrand 18a59285d2 Sorting imports and constant variables 2022-03-17 20:35:33 +01:00
Aurélien Legrand 65172031f0 refactoring main.py 2022-03-17 20:08:58 +01:00
Aurélien Legrand 6f6b0796da Variables to uppercase. 2022-03-17 17:28:17 +01:00
Aurélien Legrand 13244d8904 Removing global variables. 2022-03-17 17:04:31 +01:00
Aurélien Legrand a1fdb73a96 formatting 2022-03-17 16:38:24 +01:00
Aurélien Legrand 5a085f4147 Using Cloud Function Fabric Terraform module 2022-03-17 16:36:56 +01:00
Aurélien Legrand 9a076553a5 Refactoring Cloud Function code: added metrics.yaml file to create all metrics. 2022-03-17 16:36:36 +01:00
Aurélien Legrand 221557d066 Pinning version for libs and terraform modules, adding docstrings, improving documentation of the code, tabs 2 spaces. 2022-03-09 19:02:59 +01:00
Aurélien Legrand 9f3ee4dc22 Networking dashboard to display per VPC and per VPC peering group limits that are not shown in the console 2022-03-08 18:36:02 +01:00