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

Fix manifests #573

Merged
merged 9 commits into from
Apr 9, 2024
26 changes: 13 additions & 13 deletions examples/manifests/boavizta-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ initialize:
plugins:
boavizta-cpu:
method: BoaviztaCpuOutput
path: '@grnsft/if-unofficial-plugins'
path: "@grnsft/if-unofficial-plugins"
global-config:
allocation: LINEAR
verbose: true
"sum":
path: "@grnsft/if-plugins"
method: Sum
global-config:
input-parameters:
input-parameters:
- cpu/energy
- network/energy
output-parameter: energy
output-parameter: energy
"sci-m":
path: "@grnsft/if-plugins"
method: SciM
Expand All @@ -27,8 +27,8 @@ initialize:
path: "@grnsft/if-plugins"
method: Sci
global-config:
functional-unit: ''
functional-unit-time: '1-day'
functional-unit: ""
functional-unit-time: "1-day"
"time-sync":
method: TimeSync
path: "builtin"
Expand Down Expand Up @@ -60,26 +60,26 @@ tree:
cpu/name: Intel® Core™ i7-1185G7
inputs:
- timestamp: "2023-12-12T00:00:00.000Z"
cloud/instance-type: A1
region: uk-west
cloud/instance-type: A1
cloud/region: uk-west
duration: 1
cpu/utilization: 50
network/energy: 0.000001
- timestamp: "2023-12-12T00:00:01.000Z"
duration: 5
cpu/utilization: 20
cloud/instance-type: A1
region: uk-west
cloud/instance-type: A1
cloud/region: uk-west
network/energy: 0.000001
- timestamp: "2023-12-12T00:00:06.000Z"
duration: 7
cpu/utilization: 15
cloud/instance-type: A1
region: uk-west
cloud/instance-type: A1
cloud/region: uk-west
network/energy: 0.000001
- timestamp: "2023-12-12T00:00:13.000Z"
duration: 30
cloud/instance-type: A1
region: uk-west
cloud/instance-type: A1
cloud/region: uk-west
cpu/utilization: 15
network/energy: 0.000001
20 changes: 0 additions & 20 deletions examples/manifests/cim.yml

This file was deleted.

41 changes: 41 additions & 0 deletions examples/manifests/cloud-metadata-teads.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: cloud-metadata-demo
description: null
tags: null
initialize:
plugins:
teads-curve:
path: "@grnsft/if-unofficial-plugins"
method: TeadsCurve
global-config:
interpolation: spline
cloud-metadata:
method: CloudMetadata
path: "@grnsft/if-plugins"
tree:
children:
child-0:
defaults:
cpu/thermal-design-power: 100
cloud/vendor: aws
cloud/instance-type: m5n.large
pipeline:
- teads-curve
- cloud-metadata
inputs:
- timestamp: 2023-07-06T00:00
duration: 10
cpu/utilization: 80
- timestamp: 2023-07-06T00:01
duration: 10
cpu/utilization: 80
outputs:
- timestamp: 2023-07-06T00:00
duration: 10
cpu/utilization: 80
cpu/thermal-design-power: 100
cpu/energy: 0.00025568089430894314
- timestamp: 2023-07-06T00:01
duration: 10
cpu/utilization: 80
cpu/thermal-design-power: 100
cpu/energy: 0.00025568089430894314
47 changes: 13 additions & 34 deletions examples/manifests/cloud-metadata.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,20 @@
name: coud-instanmce-metadata-demo
description: null
tags: null
name: cloud-metadata
description: example impl invoking Cloud Metadata plugin
tags:
initialize:
plugins:
teads-curve:
path: '@grnsft/if-unofficial-plugins'
method: TeadsCurve
global-config:
interpolation: spline
cloud-instance-metadata:
method: CloudInstanceMetadata
cloud-metadata:
method: CloudMetadata
path: "@grnsft/if-plugins"
tree:
children:
child-0:
defaults:
cpu/thermal-design-power: 100
cloud/vendor: aws
cloud/instance-type: m5n.large
child:
pipeline:
- teads-curve
- cloud-instance-metadata
- cloud-metadata
config:
inputs:
- timestamp: 2023-07-06T00:00
duration: 10
cpu/utilization: 80
- timestamp: 2023-07-06T00:01
duration: 10
cpu/utilization: 80
outputs:
- timestamp: 2023-07-06T00:00
duration: 10
cpu/utilization: 80
cpu/thermal-design-power: 100
cpu/energy: 0.00025568089430894314
- timestamp: 2023-07-06T00:01
duration: 10
cpu/utilization: 80
cpu/thermal-design-power: 100
cpu/energy: 0.00025568089430894314
- timestamp: 2023-07-06T00:00 # [KEYWORD] [NO-SUBFIELDS] time when measurement occurred
cloud/vendor: aws
cloud/instance-type: m5n.large
duration: 100
cpu/utilization: 10
2 changes: 1 addition & 1 deletion examples/manifests/e-net.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: sci-e-demo
name: e-net-demo
description:
tags:
initialize:
Expand Down
28 changes: 14 additions & 14 deletions examples/manifests/generics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@ tags:
initialize:
plugins:
teads-curve:
path: '@grnsft/if-unofficial-plugins'
path: "@grnsft/if-unofficial-plugins"
method: TeadsCurve
global-config:
interpolation: spline
"sum":
path: "@grnsft/if-plugins"
method: Sum
global-config:
input-parameters:
input-parameters:
- cpu/energy
- network/energy
output-parameter: energy-sum
output-parameter: energy-sum
"coefficient":
path: "@grnsft/if-plugins"
method: Coefficient
Expand All @@ -24,11 +24,11 @@ initialize:
coefficient: 2
output-parameter: energy-doubled
"multiply":
path: '@grnsft/if-plugins'
path: "@grnsft/if-plugins"
method: Multiply
global-config:
input-parameters: ['cpu/utilization', 'duration']
output-parameter: 'cpu-times-duration'
input-parameters: ["cpu/utilization", "duration"]
output-parameter: "cpu-times-duration"
tree:
children:
child-1:
Expand All @@ -42,30 +42,30 @@ tree:
cpu/thermal-design-power: 100
inputs:
- timestamp: "2023-12-12T00:00:00.000Z"
cloud/instance-type: A1
region: uk-west
cloud/instance-type: A1
cloud/region: uk-west
duration: 1
cpu/utilization: 50
network/energy: 10
energy: 5
- timestamp: "2023-12-12T00:00:01.000Z"
duration: 5
cpu/utilization: 20
cloud/instance-type: A1
region: uk-west
cloud/instance-type: A1
cloud/region: uk-west
network/energy: 10
energy: 5
- timestamp: "2023-12-12T00:00:06.000Z"
duration: 7
cpu/utilization: 15
cloud/instance-type: A1
region: uk-west
cloud/instance-type: A1
cloud/region: uk-west
network/energy: 10
energy: 5
- timestamp: "2023-12-12T00:00:13.000Z"
duration: 30
cloud/instance-type: A1
region: uk-west
cloud/instance-type: A1
cloud/region: uk-west
cpu/utilization: 15
network/energy: 10
energy: 5
42 changes: 21 additions & 21 deletions examples/manifests/group-by.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,47 +2,47 @@ name: groupby-demo
description: demo pipeline
initialize:
plugins:
group-by:
path: 'builtin'
group-by:
path: "builtin"
method: GroupBy
tree:
children:
my-app:
pipeline:
pipeline:
- group-by
config:
group-by:
group:
- region
- cloud/region
- cloud/instance-type
inputs:
- timestamp: 2023-07-06T00:00
duration: 300
cloud/instance-type: A1
region: uk-west
duration: 300
cloud/instance-type: A1
cloud/region: uk-west
cpu/utilization: 99
- timestamp: 2023-07-06T05:00
duration: 300
cloud/instance-type: A1
region: uk-west
cpu/utilization: 23
- timestamp: 2023-07-06T05:00
duration: 300
cloud/instance-type: A1
cloud/region: uk-west
cpu/utilization: 23
- timestamp: 2023-07-06T10:00
duration: 300
cloud/instance-type: A1
region: uk-west
cloud/instance-type: A1
cloud/region: uk-west
cpu/utilization: 12
- timestamp: 2023-07-06T00:00 # note this time restarts at the start timstamp
duration: 300
duration: 300
cloud/instance-type: B1
region: uk-west
cloud/region: uk-west
cpu/utilization: 11
- timestamp: 2023-07-06T05:00
duration: 300
- timestamp: 2023-07-06T05:00
duration: 300
cloud/instance-type: B1
region: uk-west
cloud/region: uk-west
cpu/utilization: 67
- timestamp: 2023-07-06T10:00
duration: 300
duration: 300
cloud/instance-type: B1
region: uk-west
cloud/region: uk-west
cpu/utilization: 1
Loading
Loading