Skip to content

Commit

Permalink
feat(lib): add manifest for instance-metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcook1186 committed Jun 10, 2024
1 parent 49dd74d commit 3dd1758
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions manifests/examples/instance-metadata.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: csv-demo
description: null
tags: null
initialize:
plugins:
cloud-instance-metadata:
path: builtin
method: CSVLookup
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:
path: builtin
method: Regex
global-config:
parameter: cpu-model-name
match: /^([^,])+/g
output: cpu/name
outputs:
- yaml
tree:
children:
child:
pipeline:
- cloud-instance-metadata
- extract-processor-name
inputs:
- timestamp: 2023-08-06T00:00
duration: 3600
cpu/energy: 0.001
cloud/provider: gcp
cloud/region: asia-east
cloud/instance-type: Standard_A1_v2

0 comments on commit 3dd1758

Please sign in to comment.