Commit Graph

110 Commits

Author SHA1 Message Date
Aurélien Legrand 4d067fe2cd
Network Dashboard: CFv2 and performance improvements (#896)
* Improving Cloud Function v2 support for the Networking Dashboard.

* yapf formatting.

* Improving support for CFv2 and performance for asset inventory queries

* Update README.md

added v2 parameter do readme

* cleanip up main.py and improving performance by 20% in metrics.py by reusing the same client instance

* Making a condition clearer

* Update blueprints/cloud-operations/network-dashboard/cloud-function/metrics/subnets.py

Co-authored-by: David Gleich <gleichda@google.com>

* Update after PR from Maurizio on Firewall Policies and David's comments.

Co-authored-by: maunope <44614195+maunope@users.noreply.github.com>
Co-authored-by: David Gleich <gleichda@google.com>
2022-10-19 18:59:28 +02:00
Maurizio Noseda Pedraglio 3a687fd387 Merge branch 'master' of https://github.com/GoogleCloudPlatform/cloud-foundation-fabric into maunope/static_routes 2022-10-19 17:45:03 +02:00
Maurizio Noseda Pedraglio 94831780d5 Merge branch 'maunope/network-dashboards-updates' of https://github.com/maunope/cloud-foundation-fabric into maunope/network-dashboards-updates 2022-10-19 17:16:31 +02:00
Maurizio Noseda Pedraglio d2e38fb9d6 removed dependency 2022-10-19 17:15:54 +02:00
Aurélien Legrand 4d11251f17
Update README.md 2022-10-19 16:40:42 +02:00
Maurizio Noseda Pedraglio 2248639e8b fixed merge 2022-10-14 13:02:05 +02:00
Maurizio Noseda Pedraglio 801fe1c626 fixes to dashboard 2022-10-14 12:55:07 +02:00
Maurizio Noseda Pedraglio 658b34c9c0 Merge branch 'master' of https://github.com/GoogleCloudPlatform/cloud-foundation-fabric into maunope/network-dashboards-updates 2022-10-14 12:34:48 +02:00
Maurizio Noseda Pedraglio de5bad7f19 corrected default value for static routes 2022-10-14 12:05:17 +02:00
Ludovico Magnocavallo 4fa1dc431d
Refactor net-vpc module for Terraform 1.3 (#880)
* module tests pass

* doc examples

* refactor blueprints

* fast stages

* fix comment typo

* fix module factory test
2022-10-14 11:02:33 +02:00
Somnath Shukla a12da693a3
added support 2nd generation cloud function (#872)
* added support 2nd generation cloud function

* changed function_version to a simple boolean v2
removed memory_2ndGen

* will use the var.v2 to add the invoker role

* removed the list uisng compact and formated the code

* formated the code and added conditional feature

* formated the code

* added formating

* resolved the merge conflict

* Update readme

* Create local function object

* added secret_volumes
and secret_environment_variables for CF V2

Co-authored-by: Julio Castillo <jccb@google.com>
2022-10-13 08:09:00 +02:00
Maurizio Noseda Pedraglio 1fb93e1b64 aligned timestamps for ppg data 2022-10-12 15:05:58 +02:00
Maurizio Noseda Pedraglio 61917690e5 added support for ppg static routes 2022-10-12 14:51:03 +02:00
Ludovico Magnocavallo e8056577ce
Refactor GKE nodepool and blueprints (#875)
* first shot, untested

* example tests working

* module tests

* work on gke blueprints

* multitenant fleet doc examples

* fix gke hub doc examples

* blueprint tests

* move master range to vpc config

* fast stage 3 gke test

* tfdoc

* bump provider versions

* and bump provider again to latest
2022-10-12 12:59:36 +02:00
Julio Castillo 29b3d84b3f
Update README.md 2022-10-11 15:23:59 +02:00
Julio Castillo d8f0f7040f Revert "Fix cloud shell links"
This reverts commit 75a6dab413.
2022-10-11 15:16:38 +02:00
Julio Castillo 75a6dab413 Fix cloud shell links 2022-10-11 14:53:15 +02:00
Maurizio Noseda Pedraglio 311d50c183 added static routes per vpc tracking 2022-10-10 22:06:57 +02:00
Maurizio Noseda Pedraglio 3608b573fd updated dashbaord and readme 2022-10-10 17:45:08 +02:00
Maurizio Noseda Pedraglio 3b259a90bb Merge branch 'maunope/network-dashboards-updates' of https://github.com/maunope/cloud-foundation-fabric into maunope/network-dashboards-updates 2022-10-10 15:54:47 +02:00
Maurizio Noseda Pedraglio c52b623857 Added Firewall Policies Monitoring
Added buffering for writes (execution now 4x faster on my laptop)
Added aligned timestamps per monitored resource type
2022-10-10 15:53:14 +02:00
Maurizio Noseda Pedraglio 82f3daf917 Added Firewall Policies Monitoring, added buffered metric writes (CF now 4x faster on my laptop), switched to aligned timestamps (should avoid "sawtoothing") 2022-10-10 15:52:54 +02:00
Ludovico Magnocavallo f080794167
Merge branch 'master' into tmp_revert_to_1.3.1 2022-10-10 11:21:26 +02:00
Natalia Strelkova 5dbc61cb8c temporary revert to Terraform 1.3.1 to support Cloud Shell 2022-10-10 09:19:55 +00:00
maunope d5b42d5378
Maunope/network added firewall metrics (#856)
* support for project level VPC firewall metrics

* updated GCP networking dashboard (.json file)

Co-authored-by: Maurizio Noseda Pedraglio <mnoseda@google.com>, Aurélien Legrand <aurelien.legrand01@gmail.com>
2022-10-10 10:46:22 +02:00
maunope dffd5b4c3b
Merge branch 'master' into maunope/network-dashboards-updates 2022-10-10 09:25:09 +02:00
Maurizio Noseda Pedraglio ac82a8ce7b solved pul comments and fixed grouping on firewalls utilization chart 2022-10-07 17:24:04 +02:00
Maurizio Noseda Pedraglio 1f3cfe8e8e fixed dashboard comments 2022-10-07 15:18:13 +02:00
Ludovico Magnocavallo a0171b2c49
Bump terraform required version (#864)
* bump terraform required version

* fix test

* debug test

* debug test

* disable test

* fix CI file, bump terraform action version
2022-10-07 12:51:56 +02:00
maunope 6e128eeb4d
Merge branch 'master' into maunope/network-dashboards-updates 2022-10-07 12:23:55 +02:00
Maurizio Noseda Pedraglio c0573ce596 fixed PR #856 comments 2022-10-07 11:34:00 +02:00
Ludovico Magnocavallo e66340c4db
Refactor compute-vm for Terraform 1.3 (#860)
* refactor compute-vm for Terraform 1.3

* bump Terraform version in CI tests config

* fix optional null handling (ht jccb)

* tfdoc

* update blueprints

* align fast

* align README examples
2022-10-07 10:53:53 +02:00
Julio Castillo 894647ff9e Leverage new shared VPC project config defaults across the repo 2022-10-07 08:55:47 +02:00
Maurizio Noseda Pedraglio 14da0eec29 removed obsolete code - compute api firewalls list 2022-10-05 12:27:35 +02:00
Maurizio Noseda Pedraglio bebe9ed110 removed hardcoded debug value 2022-10-05 11:13:53 +02:00
Maurizio Noseda Pedraglio 7f2399bd70 Added charts to dashboard, fixed a merge glitch, updated readme, removed hardcoded parameters 2022-10-04 10:11:09 +02:00
Maurizio Noseda Pedraglio cdf53552d7 support for project level VPC firewall metrics 2022-10-03 15:48:46 +02:00
Maurizio Noseda Pedraglio ec54165a89 reverted stuff pushed by mistake 2022-09-30 11:55:11 +02:00
Maurizio Noseda Pedraglio 10e1a5e48a Merge branch 'updates-quota-monitoring-function' of https://github.com/maunope/cloud-foundation-fabric into updates-quota-monitoring-function 2022-09-30 11:15:53 +02:00
Maurizio Noseda Pedraglio 1c134a735b tracking of vpc firewalls, initial commit 2022-09-30 11:10:48 +02:00
maunope 9a67546cb9
Merge branch 'GoogleCloudPlatform:master' into updates-quota-monitoring-function 2022-09-30 11:08:49 +02:00
Maurizio Noseda Pedraglio eea4642cf2 applied tfdoc 2022-09-30 11:07:44 +02:00
Aurélien Legrand a709febfdb
Network dashboard: Subnet IP utilization update (#837)
* Adding IP utilization per subnet metrics and folder level support.

* Update README.md

* Removing unused imports

* yapf formatting

* removing unused imports

* removing hard coded prefix

* Update README.md

* Variable renaming

* variable renaming

* formatting

* Comments and yapf formatting

* in the proper blueprints folder this time

* Updated after comments from David.

Co-authored-by: Aurélien Legrand <legranda@google.com>
2022-09-30 10:51:16 +02:00
Maurizio Noseda Pedraglio 10811b3d31 fixed conditional creation and updated readme 2022-09-30 10:27:31 +02:00
Maurizio Noseda Pedraglio 8b7bf698d2 made alert creation optional 2022-09-30 09:55:38 +02:00
Maurizio Noseda Pedraglio 5e2763835f Main.py: removed some commented Lines
main.tf updated sample alert, no "catch all" alerts are possible since we use multiple metrics, switched to a single metric alert (cpus quota)
2022-09-29 19:38:42 +02:00
Maurizio Noseda Pedraglio 06d02c248a fixed typo as per ludo review 2022-09-29 19:37:08 +02:00
Maurizio Noseda Pedraglio 75972de1b6 fixed bulleted list 2022-09-29 19:29:12 +02:00
Maurizio Noseda Pedraglio a7c2de1d8f update readme for quota monitoring CF 2022-09-29 19:25:54 +02:00
Maurizio Noseda Pedraglio b15193f75f Merge branch 'updates-quota-monitoring-function' of https://github.com/maunope/cloud-foundation-fabric into updates-quota-monitoring-function 2022-09-29 17:55:23 +02:00
Maurizio Noseda Pedraglio 3781c077e5 address ludo review comments 2022-09-29 17:53:35 +02:00
maunope a2651f46f8
Merge branch 'master' into updates-quota-monitoring-function 2022-09-29 17:39:22 +02:00
Maurizio Noseda Pedraglio cebe08d1be Changed time series format: split time series for limit, usage and utilization. 2022-09-29 17:28:47 +02:00
Julio Castillo ac835b6d50 Update terraform version 2022-09-28 11:28:05 +02:00
Julio Castillo 96edc4b58f Move gke multi cluster mesh example to gke folder 2022-09-12 10:26:33 +02:00
Julio Castillo 96257871a2 Move binautz to gke folder 2022-09-12 10:21:56 +02:00
Julio Castillo 0ee32be2fa More updates 2 2022-09-09 16:40:37 +02:00
Julio Castillo da2f601c9a More updates 2022-09-09 16:39:01 +02:00
Julio Castillo 269894e92b Update all internal links examples -> blueprints 2022-09-09 16:39:01 +02:00
Julio Castillo a248602827 Rename examples folder to blueprints 2022-09-09 16:38:43 +02:00