-
Notifications
You must be signed in to change notification settings - Fork 769
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Adding dashboard to monitor VPC and VPC peering group quotas * Adding 1 ressource to the tests (dashboard) * Adding dashboard and tests for other networking architecture * Update test
- Loading branch information
1 parent
0bc6dff
commit 623c886
Showing
10 changed files
with
1,270 additions
and
5 deletions.
There are no files selected for viewing
253 changes: 253 additions & 0 deletions
253
fast/stages/2-networking-a-peering/data/dashboards/vpc_and_vpc_peering_group_quotas.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,253 @@ | ||
{ | ||
"dashboardFilters": [], | ||
"displayName": "VPC & VPC Peering Group Quotas", | ||
"labels": {}, | ||
"mosaicLayout": { | ||
"columns": 12, | ||
"tiles": [ | ||
{ | ||
"height": 4, | ||
"widget": { | ||
"title": "Internal network (L4) Load Balancers per VPC Peering Group", | ||
"xyChart": { | ||
"chartOptions": { | ||
"mode": "COLOR" | ||
}, | ||
"dataSets": [ | ||
{ | ||
"breakdowns": [], | ||
"dimensions": [], | ||
"measures": [], | ||
"plotType": "LINE", | ||
"targetAxis": "Y1", | ||
"timeSeriesQuery": { | ||
"timeSeriesQueryLanguage": "fetch compute.googleapis.com/VpcNetwork\n|{ metric\n compute.googleapis.com/quota/internal_lb_forwarding_rules_per_peering_group/usage\n | align next_older(1d)\n | group_by [resource.resource_container, metric.limit_name], .max()\n ; metric\n compute.googleapis.com/quota/internal_lb_forwarding_rules_per_peering_group/limit\n | align next_older(1d)\n | group_by [resource.resource_container, metric.limit_name], .min() }\n| ratio\n| value cast_units(val()*100, \"%\")", | ||
"unitOverride": "" | ||
} | ||
} | ||
], | ||
"thresholds": [], | ||
"timeshiftDuration": "0s", | ||
"yAxis": { | ||
"label": "", | ||
"scale": "LINEAR" | ||
} | ||
} | ||
}, | ||
"width": 6, | ||
"xPos": 6 | ||
}, | ||
{ | ||
"height": 4, | ||
"widget": { | ||
"title": "Internal network (L4) Load Balancers per VPC", | ||
"xyChart": { | ||
"chartOptions": { | ||
"mode": "COLOR" | ||
}, | ||
"dataSets": [ | ||
{ | ||
"plotType": "LINE", | ||
"targetAxis": "Y1", | ||
"timeSeriesQuery": { | ||
"timeSeriesQueryLanguage": "fetch compute.googleapis.com/VpcNetwork\n|{ metric\n compute.googleapis.com/quota/internal_lb_forwarding_rules_per_vpc_network/usage\n | align next_older(1d)\n | group_by [resource.resource_container, metric.limit_name], .max()\n ; metric\n compute.googleapis.com/quota/internal_lb_forwarding_rules_per_vpc_network/limit\n | align next_older(1d)\n | group_by [resource.resource_container, metric.limit_name], .min() }\n| ratio\n| value cast_units(val()*100, \"%\")", | ||
"unitOverride": "" | ||
} | ||
} | ||
], | ||
"thresholds": [], | ||
"timeshiftDuration": "0s", | ||
"yAxis": { | ||
"label": "", | ||
"scale": "LINEAR" | ||
} | ||
} | ||
}, | ||
"width": 6 | ||
}, | ||
{ | ||
"height": 4, | ||
"widget": { | ||
"title": "Internal application (L7) Load Balancers per VPC", | ||
"xyChart": { | ||
"chartOptions": { | ||
"mode": "COLOR" | ||
}, | ||
"dataSets": [ | ||
{ | ||
"breakdowns": [], | ||
"dimensions": [], | ||
"measures": [], | ||
"plotType": "LINE", | ||
"targetAxis": "Y1", | ||
"timeSeriesQuery": { | ||
"timeSeriesQueryLanguage": "fetch compute.googleapis.com/VpcNetwork\n|{ metric\n compute.googleapis.com/quota/internal_managed_forwarding_rules_per_vpc_network/usage\n | align next_older(1d)\n | group_by [resource.resource_container, metric.limit_name], .max()\n ; metric\n compute.googleapis.com/quota/internal_managed_forwarding_rules_per_vpc_network/limit\n | align next_older(1d)\n | group_by [resource.resource_container, metric.limit_name], .min() }\n| ratio\n| value cast_units(val()*100, \"%\")", | ||
"unitOverride": "" | ||
} | ||
} | ||
], | ||
"thresholds": [], | ||
"timeshiftDuration": "0s", | ||
"yAxis": { | ||
"label": "", | ||
"scale": "LINEAR" | ||
} | ||
} | ||
}, | ||
"width": 6, | ||
"yPos": 4 | ||
}, | ||
{ | ||
"height": 4, | ||
"widget": { | ||
"title": "Internal application (L7) Load Balancers per VPC Peering Group", | ||
"xyChart": { | ||
"chartOptions": { | ||
"mode": "COLOR" | ||
}, | ||
"dataSets": [ | ||
{ | ||
"breakdowns": [], | ||
"dimensions": [], | ||
"measures": [], | ||
"plotType": "LINE", | ||
"targetAxis": "Y1", | ||
"timeSeriesQuery": { | ||
"timeSeriesQueryLanguage": "fetch compute.googleapis.com/VpcNetwork\n|{ metric\n compute.googleapis.com/quota/internal_managed_forwarding_rules_per_peering_group/usage\n | align next_older(1d)\n | group_by [resource.resource_container, metric.limit_name], .max()\n ; metric\n compute.googleapis.com/quota/internal_managed_forwarding_rules_per_peering_group/limit\n | align next_older(1d)\n | group_by [resource.resource_container, metric.limit_name], .min() }\n| ratio\n| value cast_units(val()*100, \"%\")", | ||
"unitOverride": "" | ||
} | ||
} | ||
], | ||
"thresholds": [], | ||
"timeshiftDuration": "0s", | ||
"yAxis": { | ||
"label": "", | ||
"scale": "LINEAR" | ||
} | ||
} | ||
}, | ||
"width": 6, | ||
"xPos": 6, | ||
"yPos": 4 | ||
}, | ||
{ | ||
"height": 4, | ||
"widget": { | ||
"title": "Instances per VPC", | ||
"xyChart": { | ||
"chartOptions": { | ||
"mode": "COLOR" | ||
}, | ||
"dataSets": [ | ||
{ | ||
"plotType": "LINE", | ||
"targetAxis": "Y1", | ||
"timeSeriesQuery": { | ||
"timeSeriesQueryLanguage": "fetch compute.googleapis.com/VpcNetwork\n|{ metric\n compute.googleapis.com/quota/instances_per_vpc_network/usage\n | align next_older(1d)\n | group_by [resource.resource_container, metric.limit_name], .max()\n ; metric\n compute.googleapis.com/quota/instances_per_vpc_network/limit\n | align next_older(1d)\n | group_by [resource.resource_container, metric.limit_name], .min() }\n| ratio\n| value cast_units(val()*100, \"%\") ", | ||
"unitOverride": "" | ||
} | ||
} | ||
], | ||
"thresholds": [], | ||
"timeshiftDuration": "0s", | ||
"yAxis": { | ||
"label": "", | ||
"scale": "LINEAR" | ||
} | ||
} | ||
}, | ||
"width": 6, | ||
"yPos": 8 | ||
}, | ||
{ | ||
"height": 4, | ||
"widget": { | ||
"title": "Instances per VPC Peering Group", | ||
"xyChart": { | ||
"chartOptions": { | ||
"mode": "COLOR" | ||
}, | ||
"dataSets": [ | ||
{ | ||
"plotType": "LINE", | ||
"targetAxis": "Y1", | ||
"timeSeriesQuery": { | ||
"timeSeriesQueryLanguage": "fetch compute.googleapis.com/VpcNetwork\n|{ metric\n compute.googleapis.com/quota/instances_per_peering_group/usage\n | align next_older(1d)\n | group_by [resource.resource_container, metric.limit_name], .max()\n ; metric\n compute.googleapis.com/quota/instances_per_peering_group/limit\n | align next_older(1d)\n | group_by [resource.resource_container, metric.limit_name], .min() }\n| ratio\n| value cast_units(val()*100, \"%\")", | ||
"unitOverride": "" | ||
} | ||
} | ||
], | ||
"thresholds": [], | ||
"timeshiftDuration": "0s", | ||
"yAxis": { | ||
"label": "", | ||
"scale": "LINEAR" | ||
} | ||
} | ||
}, | ||
"width": 6, | ||
"xPos": 6, | ||
"yPos": 8 | ||
}, | ||
{ | ||
"height": 4, | ||
"widget": { | ||
"title": "Subnet ranges per VPC", | ||
"xyChart": { | ||
"chartOptions": { | ||
"mode": "COLOR" | ||
}, | ||
"dataSets": [ | ||
{ | ||
"plotType": "LINE", | ||
"targetAxis": "Y1", | ||
"timeSeriesQuery": { | ||
"timeSeriesQueryLanguage": "fetch compute.googleapis.com/VpcNetwork\n|{ metric\n compute.googleapis.com/quota/subnet_ranges_per_vpc_network/usage\n | align next_older(1d)\n | group_by [resource.resource_container, metric.limit_name], .max()\n ; metric\n compute.googleapis.com/quota/subnet_ranges_per_vpc_network/limit\n | align next_older(1d)\n | group_by [resource.resource_container, metric.limit_name], .min() }\n| ratio\n| value cast_units(val()*100, \"%\")", | ||
"unitOverride": "" | ||
} | ||
} | ||
], | ||
"thresholds": [], | ||
"timeshiftDuration": "0s", | ||
"yAxis": { | ||
"label": "", | ||
"scale": "LINEAR" | ||
} | ||
} | ||
}, | ||
"width": 6, | ||
"yPos": 12 | ||
}, | ||
{ | ||
"height": 4, | ||
"widget": { | ||
"title": "Subnet ranges per VPC Peering Group", | ||
"xyChart": { | ||
"chartOptions": { | ||
"mode": "COLOR" | ||
}, | ||
"dataSets": [ | ||
{ | ||
"plotType": "LINE", | ||
"targetAxis": "Y1", | ||
"timeSeriesQuery": { | ||
"timeSeriesQueryLanguage": "fetch compute.googleapis.com/VpcNetwork\n|{ metric\n compute.googleapis.com/quota/subnet_ranges_per_peering_group/usage\n | align next_older(1d)\n | group_by [resource.resource_container, metric.limit_name], .max()\n ; metric\n compute.googleapis.com/quota/subnet_ranges_per_peering_group/limit\n | align next_older(1d)\n | group_by [resource.resource_container, metric.limit_name], .min() }\n| ratio\n| value cast_units(val()*100, \"%\") ", | ||
"unitOverride": "" | ||
} | ||
} | ||
], | ||
"thresholds": [], | ||
"timeshiftDuration": "0s", | ||
"yAxis": { | ||
"label": "", | ||
"scale": "LINEAR" | ||
} | ||
} | ||
}, | ||
"width": 6, | ||
"xPos": 6, | ||
"yPos": 12 | ||
} | ||
] | ||
} | ||
} |
Oops, something went wrong.