-
Notifications
You must be signed in to change notification settings - Fork 44
Enable Hyperpod telemetry #116
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
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
0dedc06
Enable Hyperpod telemetry
6e1ac1b
Enable Hyperpod telemetry
bbe5e25
Enable Hyperpod telemetry
4bc6c69
Merge branch 'aws:main' into main-enable-telemetry
rsareddy0329 a0d5daf
Enable Hyperpod telemetry
df2b257
Enable Hyperpod telemetry
c7e8167
Enable Hyperpod telemetry
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
from __future__ import absolute_import | ||
from enum import Enum | ||
|
||
|
||
class Feature(Enum): | ||
"""Enumeration of feature names used in telemetry.""" | ||
|
||
HYPERPOD = 6 # Added to support telemetry in sagemaker-hyperpod-cli | ||
|
||
def __str__(self): # pylint: disable=E0307 | ||
"""Return the feature name.""" | ||
return self.name | ||
|
||
|
||
class Status(Enum): | ||
"""Enumeration of status values used in telemetry.""" | ||
|
||
SUCCESS = 1 | ||
FAILURE = 0 | ||
|
||
def __str__(self): # pylint: disable=E0307 | ||
"""Return the status name.""" | ||
return self.name | ||
|
||
|
||
class Region(str, Enum): | ||
"""Telemetry: List of all supported AWS regions.""" | ||
|
||
# Classic | ||
US_EAST_1 = "us-east-1" # IAD | ||
US_EAST_2 = "us-east-2" # CMH | ||
US_WEST_1 = "us-west-1" # SFO | ||
US_WEST_2 = "us-west-2" # PDX | ||
AP_NORTHEAST_1 = "ap-northeast-1" # NRT | ||
AP_NORTHEAST_2 = "ap-northeast-2" # ICN | ||
AP_NORTHEAST_3 = "ap-northeast-3" # KIX | ||
AP_SOUTH_1 = "ap-south-1" # BOM | ||
AP_SOUTHEAST_1 = "ap-southeast-1" # SIN | ||
AP_SOUTHEAST_2 = "ap-southeast-2" # SYD | ||
CA_CENTRAL_1 = "ca-central-1" # YUL | ||
EU_CENTRAL_1 = "eu-central-1" # FRA | ||
EU_NORTH_1 = "eu-north-1" # ARN | ||
EU_WEST_1 = "eu-west-1" # DUB | ||
EU_WEST_2 = "eu-west-2" # LHR | ||
EU_WEST_3 = "eu-west-3" # CDG | ||
SA_EAST_1 = "sa-east-1" # GRU | ||
# Opt-in | ||
AP_EAST_1 = "ap-east-1" # HKG | ||
AP_SOUTHEAST_3 = "ap-southeast-3" # CGK | ||
AF_SOUTH_1 = "af-south-1" # CPT | ||
EU_SOUTH_1 = "eu-south-1" # MXP | ||
ME_SOUTH_1 = "me-south-1" # BAH | ||
MX_CENTRAL_1 = "mx-central-1" # QRO | ||
AP_SOUTHEAST_7 = "ap-southeast-7" # BKK | ||
AP_SOUTH_2 = "ap-south-2" # HYD | ||
AP_SOUTHEAST_4 = "ap-southeast-4" # MEL | ||
EU_CENTRAL_2 = "eu-central-2" # ZRH | ||
EU_SOUTH_2 = "eu-south-2" # ZAZ | ||
IL_CENTRAL_1 = "il-central-1" # TLV | ||
ME_CENTRAL_1 = "me-central-1" # DXB |
Oops, something went wrong.
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.
We also need to add telemetry for the functions like list_cluster
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.
added for
list_cluster