Add GCE recommended alerts for GPU VMs - #774
Open
LujieDuan wants to merge 1 commit into
Open
Conversation
LujieDuan
marked this pull request as ready for review
June 26, 2024 18:29
LujieDuan
force-pushed
the
lujieduan-gce-gpu-recommended-alerts
branch
from
June 27, 2024 14:44
a5b648d to
d33b8b0
Compare
LujieDuan
marked this pull request as draft
June 27, 2024 14:48
LujieDuan
marked this pull request as ready for review
June 27, 2024 14:48
yqlu
requested changes
Jun 27, 2024
| 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." |
Collaborator
There was a problem hiding this comment.
gpu -> GPU (update for all descriptions please)
| "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.%'" |
Collaborator
There was a problem hiding this comment.
Mild preference to express these new recommended alerts as equivalent PromQL instead of MQL going forward
cc @lyanco
Collaborator
There was a problem hiding this comment.
Strong preference. We're announcing MQL Deprecation on July 17th.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
b/343920635
This PR adds 4 new alert templates covering:
agent.googleapis.com/gpu/memory/bytes_used, and the queries are implemented using MQL.Screenshots of alert notifications: