project-koku / nise

A tool for generating sample cost usage data for testing purposes
GNU Affero General Public License v3.0
9 stars 15 forks source link

Add fields for AWS node network costs #497

Closed samdoran closed 5 months ago

samdoran commented 6 months ago

Update AWS DataTransferGenerator to specificy ingress and egress network flows. An optional direction field will only generate flows in that direction, otherwise random in and out values will be chosen.

Example YAML file ``` yaml generators: - EC2Generator: start_date: 2024-04-01 # end_date: {{end_date}} processor_arch: 64-bit resource_id: 55555555 product_sku: VEAJHRNKTJZQ region: us-east-1a tags: resourceTags/user:version: prod resourceTags/user:dashed-key-on-aws: dashed-value resourceTags/user:Mapping: a1 resourceTags/user:Map: a2 cost_category: costCategory/env: prod instance_type: inst_type: m5.large physical_cores: 1 vcpu: 2 memory: '8 GiB' storage: 'EBS Only' family: 'General Purpose' cost: 0.096 rate: 0.096 - DataTransferGenerator: # data_direction: out # If this is undefined, random in/out values are used for the direction product_sku: VEAJHRNKTJZQ resource_id: i-55555555 tags: resourceTags/user:app: analytics resourceTags/user:Mapping: d1 resourceTags/user:Map: d2 cost_category: costCategory/env: prod ```
codecov[bot] commented 6 months ago

Codecov Report

Attention: Patch coverage is 89.47368% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 93.4%. Comparing base (73c8bed) to head (d71c1cd).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #497 +/- ## ======================================= - Coverage 93.5% 93.4% -0.1% ======================================= Files 61 61 Lines 4657 4649 -8 Branches 663 655 -8 ======================================= - Hits 4355 4344 -11 - Misses 157 160 +3 Partials 145 145 ```