Billing by tag in Google Compute Engine -
google compute engine allows daily export of project's itemized bill storage bucket (.csv or .json). in daily file can see x-number of seconds of n1-highmem-8 vm usage. there mechanism further identifying costs, such per tag or instance group, when project has many of same resource type deployed different functional operations?
as example, qty:10 n1-highmem-8 vm's deployed region in project. in daily bill display x-seconds of n1-highmem-8.
functionally:
- 2 vm's might run database 24x7
- 3 vm's might run batch analytics operation averaging 2-5 hrs each night
- 5 vm's might perform batch operation runs in sporadic 10 minute intervals through day
- final operation writes data specific gs buckets, other operations read/write different buckets.
how might costs broken out across these 4 operations each day?
the usage logs not provide 'per-tag' granularity @ time , can little tricky work usage logs here recommend.
to further break down usage logs , better information out of em, i'd recommend trying work this:
your usage logs provide following fields:
- report date
- measurementid
- quantity
- unit
- resource uri
- resourceid
- location
if @ measurementid, can choose filter type of image want verify. example vmimagen1standard_1
used represent n1-standard-1 machine type.
you can use measurementid in combination resource uri find out usage on more granular (per instance) scale. example, resource uri test machine be:
https://www.googleapis.com/compute/v1/projects/my_project/zones/zone/instances/boyan-test-instance
*note: i've replaced "my_project" , "zone" here, that's specific output along name of instance.
if @ end of uri, can see instance for. use specific instance you're checking.
if better skilled excel or other spreadsheet/analysis software, may able better idea on how use logs. @ point becomes question of creativity. sure find ways work data gain export.
Comments
Post a Comment