Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adds example manifests for tdp-finder, region/instance metadata #788

Merged
merged 5 commits into from
Jun 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"