feat(azure): add idle Cosmos DB for Gremlin API check (#20) - #22
Merged
Merged
Conversation
raphgm
approved these changes
Sep 21, 2026
raphgm
left a comment
Owner
There was a problem hiding this comment.
Verified: pulled the branch, ran all 50 tests locally (matches the PR's claimed count), all pass. Source file follows the established Cosmos-API pattern exactly (same structure as cosmosdb_mongo_idle_ru.py / cosmosdb_cassandra_idle_ru.py from earlier), correctly uses its own CLI surface (az cosmosdb gremlin ...) and resource scope. Real, well-scoped PR closing #20. Author has solid trust signals (3-year-old account, 159 repos). Approving.
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.
Resolves #20
Description
This PR implements the idle Cosmos DB provisioned throughput check for the Gremlin (Graph) API, following the project's standard 4-file check pattern:
src/cloudcost/sources/azure/cosmosdb_gremlin_idle_ru.py(AzureCosmosDbGremlinIdleRuSource)EnableGremlincapability).az cosmosdb gremlin database throughput show) and graph-level (az cosmosdb gremlin graph throughput show) scopes.TotalRequestUnitsoverlookback_days).policies/cosmosdb_gremlin_idle_ru.sql(provisioned_ru / 100.0) * 0.008 * 730).cloudcost.cosmosdb-gremlin-idle-real.ymlsrc/cloudcost/engine/runner.py.tests/policies/test_cosmosdb_gremlin_idle_ru.py(5 tests covering idle accounts, active accounts, zero provisioned RU, mixed tables, and empty tables).README.mdunder Databases & messaging to include Gremlin API.Verification