-
Notifications
You must be signed in to change notification settings - Fork 311
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 GCE recommended alerts for GPU VMs #774
Open
LujieDuan
wants to merge
1
commit into
GoogleCloudPlatform:master
Choose a base branch
from
LujieDuan:lujieduan-gce-gpu-recommended-alerts
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
alerts/google-gce/gpu-memory-utilization-too-high-within-vm.v1.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,25 @@ | ||
{ | ||
"displayName": "VM Instance - High GPU Memory Utilization (${INSTANCE_NAME})", | ||
"documentation": { | ||
"content": "This alert fires when the GPU memory utilization on the VM instance ${INSTANCE_NAME} rises above 90% for 5 minutes or more.", | ||
"mimeType": "text/markdown" | ||
}, | ||
"userLabels": {}, | ||
"conditions": [ | ||
{ | ||
"displayName": "VM Instance - High GPU memory utilization (${INSTANCE_NAME})", | ||
"conditionMonitoringQueryLanguage": { | ||
"duration": "0s", | ||
"trigger": { | ||
"count": 1 | ||
}, | ||
"query": "{ fetch gce_instance\n | metric 'agent.googleapis.com/gpu/memory/bytes_used'\n | filter (metadata.system_labels.name == '${INSTANCE_NAME}')\n | filter metric.memory_state == 'used'\n | group_by 5m, [value_bytes_used_mean: mean(value.bytes_used)]\n | every 5m\n | group_by [metric.gpu_number, metric.model, metric.uuid, resource.instance_id, resource.project_id, resource.zone, metadata.system_labels.name], [value_bytes_used_mean_aggregate: aggregate(value_bytes_used_mean)]\n; fetch gce_instance\n | metric 'agent.googleapis.com/gpu/memory/bytes_used' \n | filter (metadata.system_labels.name == '${INSTANCE_NAME}')\n | group_by 5m, [value_bytes_used_mean: mean(value.bytes_used)]\n | every 5m\n | group_by [metric.gpu_number, metric.model, metric.uuid, resource.instance_id, resource.project_id, resource.zone, metadata.system_labels.name], [value_bytes_used_mean_aggregate: aggregate(value_bytes_used_mean)] }\n| ratio\n| mul (100)\n| cast_units ('%')\n| every 5m\n| condition val() > 0.9 '10^2.%'" | ||
} | ||
} | ||
], | ||
"alertStrategy": { | ||
"autoClose": "604800s" | ||
}, | ||
"combiner": "OR", | ||
"enabled": true | ||
} |
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,25 @@ | ||
{ | ||
"displayName": "VM Instance - High GPU Memory Utilization", | ||
"documentation": { | ||
"content": "This alert fires when the GPU memory utilization on any VM instance in the project rises above 90% for 5 minutes or more.", | ||
"mimeType": "text/markdown" | ||
}, | ||
"userLabels": {}, | ||
"conditions": [ | ||
{ | ||
"displayName": "VM Instance - High GPU memory utilization", | ||
"conditionMonitoringQueryLanguage": { | ||
"duration": "0s", | ||
"trigger": { | ||
"count": 1 | ||
}, | ||
"query": "{ fetch gce_instance\n | metric 'agent.googleapis.com/gpu/memory/bytes_used'\n | filter metric.memory_state == 'used'\n | group_by 5m, [value_bytes_used_mean: mean(value.bytes_used)]\n | every 5m\n | group_by [metric.gpu_number, metric.model, metric.uuid, resource.instance_id, resource.project_id, resource.zone, metadata.system_labels.name], [value_bytes_used_mean_aggregate: aggregate(value_bytes_used_mean)]\n; fetch gce_instance\n | metric 'agent.googleapis.com/gpu/memory/bytes_used' \n | group_by 5m, [value_bytes_used_mean: mean(value.bytes_used)]\n | every 5m\n | group_by [metric.gpu_number, metric.model, metric.uuid, resource.instance_id, resource.project_id, resource.zone, metadata.system_labels.name], [value_bytes_used_mean_aggregate: aggregate(value_bytes_used_mean)] }\n| ratio\n| mul (100)\n| cast_units ('%')\n| every 5m\n| condition val() > 0.9 '10^2.%'" | ||
} | ||
} | ||
], | ||
"alertStrategy": { | ||
"autoClose": "604800s" | ||
}, | ||
"combiner": "OR", | ||
"enabled": true | ||
} |
34 changes: 34 additions & 0 deletions
34
alerts/google-gce/gpu-utilization-too-high-within-vm.v1.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,34 @@ | ||
{ | ||
"displayName": "VM Instance - High GPU Utilization (${INSTANCE_NAME})", | ||
"documentation": { | ||
"content": "This alert fires when the GPU utilization on the VM instance (${INSTANCE_NAME}) rises above 90% for 5 minutes or more.", | ||
"mimeType": "text/markdown" | ||
}, | ||
"userLabels": {}, | ||
"conditions": [ | ||
{ | ||
"displayName": "VM Instance - High GPU utilization (${INSTANCE_NAME})", | ||
"conditionThreshold": { | ||
"filter": "resource.type = \"gce_instance\" AND metric.type = \"agent.googleapis.com/gpu/utilization\" AND metadata.system_labels.name = \"${INSTANCE_NAME}\"", | ||
"aggregations": [ | ||
{ | ||
"alignmentPeriod": "300s", | ||
"crossSeriesReducer": "REDUCE_NONE", | ||
"perSeriesAligner": "ALIGN_MEAN" | ||
} | ||
], | ||
"comparison": "COMPARISON_GT", | ||
"duration": "0s", | ||
"trigger": { | ||
"count": 1 | ||
}, | ||
"thresholdValue": 90 | ||
} | ||
} | ||
], | ||
"alertStrategy": { | ||
"autoClose": "604800s" | ||
}, | ||
"combiner": "OR", | ||
"enabled": true | ||
} |
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,34 @@ | ||
{ | ||
"displayName": "VM Instance - High GPU Utilization", | ||
"documentation": { | ||
"content": "This alert fires when the GPU utilization on any VM instance in the project rises above 90% for 5 minutes or more.", | ||
"mimeType": "text/markdown" | ||
}, | ||
"userLabels": {}, | ||
"conditions": [ | ||
{ | ||
"displayName": "VM Instance - High GPU utilization", | ||
"conditionThreshold": { | ||
"filter": "resource.type = \"gce_instance\" AND metric.type = \"agent.googleapis.com/gpu/utilization\"", | ||
"aggregations": [ | ||
{ | ||
"alignmentPeriod": "300s", | ||
"crossSeriesReducer": "REDUCE_NONE", | ||
"perSeriesAligner": "ALIGN_MEAN" | ||
} | ||
], | ||
"comparison": "COMPARISON_GT", | ||
"duration": "0s", | ||
"trigger": { | ||
"count": 1 | ||
}, | ||
"thresholdValue": 90 | ||
} | ||
} | ||
], | ||
"alertStrategy": { | ||
"autoClose": "604800s" | ||
}, | ||
"combiner": "OR", | ||
"enabled": true | ||
} |
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 |
---|---|---|
|
@@ -69,3 +69,31 @@ alert_policy_templates: | |
related_integrations: | ||
- id: gce | ||
platform: GCP | ||
- | ||
id: gpu-utilization-too-high | ||
description: "Monitors GPU utilization across all GCE VMs in the current project and will notify you if the GPU utilization on any VM instance rises above 90% for 5 minutes or more. This requires the Ops Agent to be installed on VMs to collect the gpu utilization metric." | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. gpu -> GPU (update for all descriptions please) |
||
version: 1 | ||
related_integrations: | ||
- id: gce | ||
platform: GCP | ||
- | ||
id: gpu-utilization-too-high-within-vm | ||
description: "Monitors GPU utilization in the specified GCE VM and will notify you if the GPU utilization rises above 90% for 5 minutes or more. This requires the Ops Agent to be installed on VMs to collect the gpu utilization metric." | ||
version: 1 | ||
related_integrations: | ||
- id: gce | ||
platform: GCP | ||
- | ||
id: gpu-memory-utilization-too-high | ||
description: "Monitors gpu memory utilization across all GCE VMs in the current project and will notify you if the gpu memory utilization on any VM instance rises above 90% for 5 minutes or more. This requires the Ops Agent to be installed on VMs to collect the gpu memory utilization metric." | ||
version: 1 | ||
related_integrations: | ||
- id: gce | ||
platform: GCP | ||
- | ||
id: gpu-memory-utilization-too-high-within-vm | ||
description: "Monitors gpu memory utilization in the specified GCE VM and will notify you if the gpu memory utilization rises above 90% for 5 minutes or more. This requires the Ops Agent to be installed on the VM to collect the gpu memory utilization metric." | ||
version: 1 | ||
related_integrations: | ||
- id: gce | ||
platform: GCP |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mild preference to express these new recommended alerts as equivalent PromQL instead of MQL going forward
cc @lyanco
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Strong preference. We're announcing MQL Deprecation on July 17th.