-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding Time-Series Info to GCE usage logs (#339)
* Upload of audio solution * mp3 not supported in solution * formatting * Update README.md * Update tools/ml-audio-content-moderation/README.md Co-Authored-By: Jacob Ferriero <[email protected]> * Update tools/ml-audio-content-moderation/README.md Co-Authored-By: Jacob Ferriero <[email protected]> * Update tools/ml-audio-content-moderation/README.md Co-Authored-By: Jacob Ferriero <[email protected]> * Update tools/ml-audio-content-moderation/README.md Co-Authored-By: Jacob Ferriero <[email protected]> * Update tools/ml-audio-content-moderation/README.md Co-Authored-By: Jacob Ferriero <[email protected]> * Updated fstring * Started to incorporate some changes requested from PR * Move from tool to example * pypi versioning of packages; some typehinting * type hinting * Formatting/fixing tests * fixed bugs on deploying to gcf * updated to use five buckets * updates for five buckets missing full upload * updates to UI that were requested * Update #2 to UI code * Two class descriptions * Updated docs to use Cloud Shell as an option * Updating changes for terraform * Change exception to be NotFound * Terraform edits and added license * Readded compiled angular folders * Updating README with new wording * Fixed ordering of logs to capture errrs from JSON * Removed blank line * python 3 comment * Initial upload * Notes on BQ scheduler * Updated with more documentation on new view * Added screenshot * Updating gce-usage-log image * Added in more instructions; interval view contains all historical VM info; scheduled query updated to daily instead of hourly * Added sample query to interval description * removing angular source * Update tools/gce-usage-log/README.md Co-Authored-By: Jacob Ferriero <[email protected]> * Update tools/gce-usage-log/README.md Co-Authored-By: Jacob Ferriero <[email protected]> * Update tools/gce-usage-log/gce_interval_view.sql Co-Authored-By: Jacob Ferriero <[email protected]> * Update tools/gce-usage-log/README.md Co-Authored-By: Jacob Ferriero <[email protected]> * Update tools/gce-usage-log/README.md Co-Authored-By: Jacob Ferriero <[email protected]> * Updating nits and datastudio copy ability
- Loading branch information
Showing
14 changed files
with
154 additions
and
41 deletions.
There are no files selected for viewing
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
This file was deleted.
Oops, something went wrong.
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
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,31 @@ | ||
WITH | ||
timestamp_interval_table AS ( | ||
SELECT | ||
instance_id, | ||
GENERATE_TIMESTAMP_ARRAY(TIMESTAMP_TRUNC(inserted, _TIME_INTERVAL_UNIT_), | ||
TIMESTAMP_TRUNC(IFNULL(deleted, | ||
CURRENT_TIMESTAMP()), _TIME_INTERVAL_UNIT_), | ||
INTERVAL _TIME_INTERVAL_AMOUNT_ _TIME_INTERVAL_UNIT_) AS custom_interval_array | ||
FROM | ||
`_PROJECT_.gce_usage_log._gce_usage_log`) | ||
SELECT | ||
timestamp_interval_table.instance_id, | ||
custom_interval, | ||
preemptible, | ||
project_id, | ||
zone, | ||
machine_type, | ||
cores, | ||
memory_mb, | ||
pd_standard_size_gb, | ||
pd_ssd_size_gb, | ||
tags, | ||
labels | ||
FROM | ||
timestamp_interval_table, | ||
UNNEST(custom_interval_array) AS custom_interval | ||
JOIN | ||
`_PROJECT_.gce_usage_log._gce_usage_log` usage_view | ||
ON | ||
usage_view.instance_id = timestamp_interval_table.instance_id | ||
ORDER BY custom_interval ASC |
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
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.