diff --git a/manifests/examples/instance-metadata.yml b/manifests/examples/instance-metadata.yml new file mode 100644 index 000000000..4ed443985 --- /dev/null +++ b/manifests/examples/instance-metadata.yml @@ -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