Skip to content

Commit

Permalink
Merge pull request #788 from Green-Software-Foundation/add-tdp-manifest
Browse files Browse the repository at this point in the history
adds example manifests for tdp-finder, region/instance metadata
  • Loading branch information
MariamKhalatova committed Jun 19, 2024
2 parents 89f9095 + 3b264cc commit 069ea88
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 0 deletions.
21 changes: 21 additions & 0 deletions manifests/examples/instance-metadata.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
name: csv-demo
<<<<<<< add-tdp-manifest
description:
tags:
initialize:
plugins:
cloud-instance-metadata:
method: CSVLookup
path: "builtin"
global-config:
filepath: https://raw.githubusercontent.com/Green-Software-Foundation/if-data/main/cloud-metdata-azure-instances.csv
query:
instance-class: "cloud/instance-type"
output: "*"
extract-processor-name:
method: Regex
path: "builtin"
=======
description: null
tags: null
initialize:
Expand All @@ -15,12 +32,16 @@ initialize:
extract-processor-name:
path: builtin
method: Regex
>>>>>>> main
global-config:
parameter: cpu-model-name
match: /^([^,])+/g
output: cpu/name
<<<<<<< add-tdp-manifest
=======
outputs:
- yaml
>>>>>>> main
tree:
children:
child:
Expand Down
26 changes: 26 additions & 0 deletions manifests/examples/region-metadata.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: csv-demo
description:
tags:
initialize:
plugins:
cloud-region-metadata:
method: CSVLookup
path: "builtin"
global-config:
filepath: https://raw.githubusercontent.com/Green-Software-Foundation/if-data/main/region-metadata.csv
query:
cloud-provider: cloud-provider
cloud-region: cloud-region
output: "*"
tree:
children:
child:
pipeline:
- cloud-region-metadata
inputs:
- timestamp: 2023-08-06T00:00
duration: 3600
cpu/energy: 0.001
instance-id: AMD A10-9700
cloud-provider: "Google Cloud"
cloud-region: "asia-east1"
23 changes: 23 additions & 0 deletions manifests/examples/tdp-finder.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: csv-demo
description:
tags:
initialize:
plugins:
tdp-finder:
method: CSVLookup
path: "builtin"
global-config:
filepath: https://raw.githubusercontent.com/Green-Software-Foundation/if-data/main/tdp-data-1.csv
query:
name: instance-id
output: "tdp"
tree:
children:
child:
pipeline:
- tdp-finder
inputs:
- timestamp: 2023-08-06T00:00
duration: 3600
cpu/energy: 0.001
instance-id: "AMD A10-9700"

0 comments on commit 069ea88

Please sign in to comment.