Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new GCE VM Lifecycle Events dashboard #577

Merged
merged 1 commit into from
Jun 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions dashboards/google-compute-engine/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,10 @@
|:-------------------------|
|Filename: [gce-vm-instance-monitoring.json](gce-vm-instance-monitoring.json)|
|This dashboard has 10 charts for the related [GCE VM metrics](https://cloud.google.com/monitoring/api/metrics_gcp#gcp-compute), including metrics for CPU, disk read/write, and network.|

 

|GCE VM Lifecycle Events Monitoring|
|:-------------------------|
|Filename: [vm-lifecycle-dashboard.json](vm-lifecycle-dashboard.json)|
|This dashboard enables you to visualize [system events and admin activities](https://cloud.google.com/logging/docs/audit#types) to monitor VM lifecycle events (including shutdowns, reboots, and host errors). For more information on how to use this dashboard see [Monitor VM Lifecycle Events](https://cloud.google.com/compute/docs/troubleshooting/troubleshooting-reboots#monitor-events).|
8 changes: 8 additions & 0 deletions dashboards/google-compute-engine/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,11 @@ sample_dashboards:
related_integrations:
- id: gce
platform: GCP
-
category: Google Compute Engine
id: gce-vm-lifecycle-events
display_name: GCE VM Lifecycle Events Monitoring
description: "This dashboard enables you to visualize [system events and admin activities](https://cloud.google.com/logging/docs/audit#types) to monitor VM lifecycle events (including shutdowns, reboots, and host errors). For more information on how to use this dashboard see [Monitor VM Lifecycle Events](https://cloud.google.com/compute/docs/troubleshooting/troubleshooting-reboots#monitor-events)."
related_integrations:
- id: gce
platform: GCP
111 changes: 111 additions & 0 deletions dashboards/google-compute-engine/vm-lifecycle-dashboard.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
{
"dashboardFilters": [
{
"filterType": "SYSTEM_METADATA_LABEL",
"labelKey": "name",
"stringValue": "",
"templateVariable": ""
}
],
"displayName": "VM Lifecycle Events",
"labels": {},
"mosaicLayout": {
"columns": 12,
"tiles": [
{
"height": 3,
"widget": {
"title": "VM Lifecycle Timeline",
"xyChart": {
"chartOptions": {
"mode": "COLOR"
},
"dataSets": [
{
"legendTemplate": "${metric.labels.instance_name} availability",
"minAlignmentPeriod": "60s",
"plotType": "LINE",
"targetAxis": "Y1",
"timeSeriesQuery": {
"timeSeriesFilter": {
"aggregation": {
"alignmentPeriod": "60s",
"perSeriesAligner": "ALIGN_RATE"
},
"filter": "metric.type=\"compute.googleapis.com/instance/uptime\" resource.type=\"gce_instance\"",
"secondaryAggregation": {
"alignmentPeriod": "60s",
"perSeriesAligner": "ALIGN_MEAN"
}
}
}
},
{
"legendTemplate": "${metric.labels.method} ",
"minAlignmentPeriod": "60s",
"plotType": "LINE",
"targetAxis": "Y1",
"timeSeriesQuery": {
"timeSeriesFilter": {
"aggregation": {
"alignmentPeriod": "60s",
"perSeriesAligner": "ALIGN_MEAN"
},
"filter": "metric.type=\"logging.googleapis.com/user/vm-lifecycle-events\" resource.type=\"gce_instance\"",
"secondaryAggregation": {
"alignmentPeriod": "60s",
"perSeriesAligner": "ALIGN_NONE"
}
}
}
}
],
"thresholds": [],
"timeshiftDuration": "0s",
"yAxis": {
"label": "",
"scale": "LOG10"
}
}
},
"width": 9
},
{
"height": 4,
"widget": {
"title": "VM Lifecycle Events",
"xyChart": {
"chartOptions": {
"mode": "COLOR"
},
"dataSets": [
{
"legendTemplate": "${metric.labels.method}",
"minAlignmentPeriod": "60s",
"plotType": "STACKED_BAR",
"targetAxis": "Y1",
"timeSeriesQuery": {
"timeSeriesFilter": {
"aggregation": {
"alignmentPeriod": "60s",
"perSeriesAligner": "ALIGN_SUM"
},
"filter": "metric.type=\"logging.googleapis.com/user/vm-lifecycle-events\" resource.type=\"gce_instance\""
}
}
}
],
"thresholds": [],
"timeshiftDuration": "0s",
"yAxis": {
"label": "y1Axis",
"scale": "LOG10"
}
}
},
"width": 9,
"yPos": 3
}
]
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading