@grnsft/if 0.5.0-beta.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/check.js +14 -4
- package/build/config/strings.d.ts +4 -0
- package/build/config/strings.js +7 -3
- package/build/util/debug-logger.js +8 -7
- package/build/util/helpers.d.ts +1 -1
- package/build/util/helpers.js +3 -2
- package/manifests/examples/builtins/csv-lookup/cloud-metadata/failure-invalid-vendor.yaml +27 -0
- package/manifests/{plugins → examples/builtins}/csv-lookup/region-metadata/failure-missing-column.yml +1 -2
- package/manifests/{plugins → examples/builtins}/csv-lookup/region-metadata/failure-missing-output.yml +1 -2
- package/manifests/{plugins → examples/builtins}/csv-lookup/region-metadata/success-renaming.yml +1 -2
- package/manifests/{plugins → examples/builtins}/csv-lookup/region-metadata/success.yml +1 -2
- package/manifests/{plugins → examples/builtins}/exponent/success.yml +1 -2
- package/manifests/{plugins → examples/builtins}/groupby/success.yml +1 -1
- package/manifests/{plugins → examples/builtins}/interpolation/success.yml +0 -1
- package/manifests/{plugins → examples/builtins}/subtract/success.yml +1 -2
- package/manifests/examples/{generics.yml → pipelines/generics.yml} +1 -0
- package/manifests/examples/{instance-metadata.yml → pipelines/instance-metadata.yml} +4 -4
- package/manifests/examples/{pipeline-with-aggregate.yml → pipelines/pipeline-with-aggregate.yml} +1 -1
- package/manifests/outputs/bugs/aggregation-error-wrong-metric.yaml +243 -0
- package/manifests/outputs/bugs/initialize-error-no-config.yaml +78 -0
- package/manifests/outputs/bugs/initialize-error-no-path.yaml +91 -0
- package/manifests/outputs/bugs/initialize-error-no-plugins.yaml +74 -0
- package/manifests/outputs/bugs/input-error-missing-duration.yaml +84 -0
- package/manifests/outputs/bugs/mock-observations-failure-duration-is-zero.yaml +81 -0
- package/manifests/outputs/bugs/pipeline-error-naming-mismatch.yaml +91 -0
- package/manifests/outputs/bugs/pipeline-error-uninitialized-plugin.yaml +92 -0
- package/manifests/outputs/bugs/pipeline-ordering-error.yaml +155 -0
- package/manifests/outputs/bugs/sci-embodied-missing-resources-total.yaml +73 -0
- package/manifests/outputs/divide.yaml +93 -0
- package/manifests/outputs/features/aggregate-failure-invalid-metrics.yaml +101 -0
- package/manifests/outputs/features/aggregate-failure-missing-metric-in-inputs.yaml +100 -0
- package/manifests/outputs/features/aggregate-horizontal.yaml +128 -0
- package/manifests/outputs/features/aggregate-vertical.yaml +151 -0
- package/manifests/outputs/features/aggregate.yaml +155 -0
- package/manifests/outputs/pipelines/cloud-metadata-divide.yaml +95 -0
- package/manifests/outputs/pipelines/mock-obs-group-by-cloud-meta.yaml +645 -0
- package/manifests/outputs/pipelines/mock-obs-groupby.yaml +178 -0
- package/manifests/outputs/pipelines/mock-obs-time-sync.yaml +350 -0
- package/manifests/outputs/plugins/coefficient/failure-invalid-config-input-param.yaml +73 -0
- package/manifests/outputs/plugins/coefficient/failure-output-param-is-null.yaml +73 -0
- package/manifests/outputs/plugins/coefficient/success.yaml +75 -0
- package/manifests/outputs/plugins/csv-lookup/cloud-metadata/failure-invalid-instance-type.yaml +27 -0
- package/manifests/outputs/plugins/csv-lookup/cloud-metadata/failure-missing-cloud-vendor.yaml +77 -0
- package/manifests/outputs/plugins/csv-lookup/cloud-metadata/success.yaml +82 -0
- package/manifests/outputs/plugins/csv-lookup/region-metadata/failure-missing-column.yaml +76 -0
- package/manifests/outputs/plugins/csv-lookup/region-metadata/failure-missing-output.yaml +75 -0
- package/manifests/outputs/plugins/csv-lookup/region-metadata/success-renaming.yaml +80 -0
- package/manifests/outputs/plugins/csv-lookup/region-metadata/success.yaml +92 -0
- package/manifests/outputs/plugins/csv-lookup/tdp-finder/failure-missing-input-param.yaml +74 -0
- package/manifests/outputs/plugins/csv-lookup/tdp-finder/failure-unsupported-physical-processor.yaml +75 -0
- package/manifests/outputs/plugins/csv-lookup/tdp-finder/success.yaml +76 -0
- package/manifests/outputs/plugins/divide/failure-invalid-config-denominator.yaml +73 -0
- package/manifests/outputs/plugins/divide/failure-missing-numerator.yaml +77 -0
- package/manifests/outputs/plugins/divide/success-denominator-equal-zero.yaml +95 -0
- package/manifests/outputs/plugins/divide/success.yaml +95 -0
- package/manifests/outputs/plugins/exponent/success.yaml +77 -0
- package/manifests/outputs/plugins/groupby/failure-invalid-config-group.yaml +96 -0
- package/manifests/outputs/plugins/groupby/failure-missing-cloud-instance-type.yaml +95 -0
- package/manifests/outputs/plugins/groupby/success.yaml +101 -0
- package/manifests/outputs/plugins/interpolation/interpolation.yaml +83 -0
- package/manifests/outputs/plugins/interpolation/success.yaml +83 -0
- package/manifests/outputs/plugins/mock-observations/failure-invalid-config-cpu-range.yaml +86 -0
- package/manifests/outputs/plugins/mock-observations/failure-invalid-memory-utilization-range.yaml +84 -0
- package/manifests/outputs/plugins/mock-observations/failure-missing-timestamp-from-param.yaml +83 -0
- package/manifests/outputs/plugins/mock-observations/success.yaml +220 -0
- package/manifests/outputs/plugins/multiply/failure-input-parameter-is-missing.yaml +75 -0
- package/manifests/outputs/plugins/multiply/success-with-multiple-inputs.yaml +96 -0
- package/manifests/outputs/plugins/multiply/success.yaml +78 -0
- package/manifests/outputs/plugins/regex/failure-missing-input-param.yaml +75 -0
- package/manifests/outputs/plugins/regex/failure-not-matching-with-regex.yaml +76 -0
- package/manifests/outputs/plugins/regex/success.yaml +81 -0
- package/manifests/outputs/plugins/sci/failure-invalid-config-value.yaml +72 -0
- package/manifests/outputs/plugins/sci/failure-missing-input-param.yaml +72 -0
- package/manifests/outputs/plugins/sci/success.yml.yaml +80 -0
- package/manifests/outputs/plugins/sci-embodied/failure-invalid-default-emission-value.yaml +75 -0
- package/manifests/outputs/plugins/sci-embodied/failure-missing-expected-lifespan.yaml +71 -0
- package/manifests/outputs/plugins/sci-embodied/success.yaml +78 -0
- package/manifests/outputs/plugins/shell/failure-invalid-command.yaml +70 -0
- package/manifests/outputs/plugins/shell/success.yaml +68 -0
- package/manifests/outputs/plugins/subtract/success.yaml +78 -0
- package/manifests/outputs/plugins/sum/failure-missing-input-param.yaml +75 -0
- package/manifests/outputs/plugins/sum/failure-missing-output-param.yaml +78 -0
- package/manifests/outputs/plugins/sum/success.yaml +78 -0
- package/manifests/outputs/plugins/time-sync/failure-config-start-later-end.yaml +82 -0
- package/manifests/outputs/plugins/time-sync/failure-missing-global-config.yaml +78 -0
- package/manifests/outputs/plugins/time-sync/success.yaml +119 -0
- package/package.json +1 -1
- package/manifests/bugs/aggregation-error-wrong-metric.yml +0 -178
- package/manifests/bugs/azure-importer-ignoring-defaults.yml +0 -64
- package/manifests/bugs/azure-importer-incorrect-calculation.yml +0 -59
- package/manifests/bugs/initialize-error-no-config.yml +0 -26
- package/manifests/bugs/initialize-error-no-path.yml +0 -32
- package/manifests/bugs/initialize-error-no-plugins.yml +0 -23
- package/manifests/bugs/input-error-missing-duration.yml +0 -25
- package/manifests/bugs/mock-observations-failure-duration-is-zero.yml +0 -34
- package/manifests/bugs/pipeline-error-naming-mismatch.yml +0 -32
- package/manifests/bugs/pipeline-error-uninitialized-plugin.yml +0 -33
- package/manifests/bugs/pipeline-ordering-error.yml +0 -91
- package/manifests/bugs/sci-embodied-missing-resources-total.yml +0 -23
- package/manifests/examples/copy.yaml +0 -20
- package/manifests/examples/mock-cpu-util-to-carbon.yml +0 -76
- package/manifests/examples/region-metadata.yml +0 -26
- package/manifests/examples/tdp-finder.yml +0 -23
- package/manifests/features/aggregate-failure-invalid-metrics.yml +0 -49
- package/manifests/features/aggregate-failure-missing-metric-in-inputs.yml +0 -49
- package/manifests/features/aggregate-horizontal.yml +0 -50
- package/manifests/features/aggregate-vertical.yml +0 -50
- package/manifests/features/aggregate.yml +0 -50
- package/manifests/integrations/cloud-metadata-divide.yml +0 -37
- package/manifests/integrations/instance-metadata/failure-invalid-instance-type.yaml +0 -33
- package/manifests/integrations/instance-metadata/failure-invalid-provider.yaml +0 -33
- package/manifests/integrations/instance-metadata/failure-missing-queried-input.yml +0 -33
- package/manifests/integrations/instance-metadata/success.yml +0 -33
- package/manifests/integrations/mock-obs-group-by-cloud-meta.yml +0 -57
- package/manifests/integrations/mock-obs-groupby.yml +0 -39
- package/manifests/integrations/mock-obs-time-sync.yml +0 -110
- /package/manifests/{plugins → examples/builtins}/coefficient/failure-invalid-config-input-param.yml +0 -0
- /package/manifests/{plugins → examples/builtins}/coefficient/failure-output-param-is-null.yaml +0 -0
- /package/manifests/{plugins → examples/builtins}/coefficient/success.yml +0 -0
- /package/manifests/{plugins → examples/builtins}/csv-lookup/cloud-metadata/failure-invalid-instance-type.yaml +0 -0
- /package/manifests/{plugins → examples/builtins}/csv-lookup/cloud-metadata/failure-missing-cloud-vendor.yml +0 -0
- /package/manifests/{plugins → examples/builtins}/csv-lookup/cloud-metadata/success.yml +0 -0
- /package/manifests/{plugins → examples/builtins}/csv-lookup/tdp-finder/failure-missing-input-param.yml +0 -0
- /package/manifests/{plugins → examples/builtins}/csv-lookup/tdp-finder/failure-unsupported-physical-processor.yml +0 -0
- /package/manifests/{plugins → examples/builtins}/csv-lookup/tdp-finder/success.yml +0 -0
- /package/manifests/{plugins → examples/builtins}/divide/failure-denominator-equal-zero.yml +0 -0
- /package/manifests/{plugins → examples/builtins}/divide/failure-invalid-config-denominator.yml +0 -0
- /package/manifests/{plugins → examples/builtins}/divide/failure-missing-numerator.yml +0 -0
- /package/manifests/{plugins → examples/builtins}/divide/success.yml +0 -0
- /package/manifests/{plugins → examples/builtins}/groupby/failure-invalid-config-group.yml +0 -0
- /package/manifests/{plugins → examples/builtins}/groupby/failure-missing-cloud-instance-type.yml +0 -0
- /package/manifests/{plugins → examples/builtins}/interpolation/interpolation.yml +0 -0
- /package/manifests/{plugins → examples/builtins}/mock-observations/failure-invalid-config-cpu-range.yml +0 -0
- /package/manifests/{plugins → examples/builtins}/mock-observations/failure-invalid-memory-utilization-range.yml +0 -0
- /package/manifests/{plugins → examples/builtins}/mock-observations/failure-missing-timestamp-from-param.yml +0 -0
- /package/manifests/{plugins → examples/builtins}/mock-observations/success.yml +0 -0
- /package/manifests/{plugins → examples/builtins}/multiply/failure-input-parameter-is-missing.yml +0 -0
- /package/manifests/{plugins → examples/builtins}/multiply/success-with-multiple-inputs.yml +0 -0
- /package/manifests/{plugins → examples/builtins}/multiply/success.yml +0 -0
- /package/manifests/{plugins → examples/builtins}/regex/failure-missing-input-param.yml +0 -0
- /package/manifests/{plugins → examples/builtins}/regex/failure-not-matching-with-regex.yml +0 -0
- /package/manifests/{plugins → examples/builtins}/regex/success.yml +0 -0
- /package/manifests/{plugins → examples/builtins}/sci/failure-invalid-config-value.yml +0 -0
- /package/manifests/{plugins → examples/builtins}/sci/failure-missing-input-param.yml +0 -0
- /package/manifests/{plugins → examples/builtins}/sci/success.yml +0 -0
- /package/manifests/{plugins → examples/builtins}/sci-embodied/failure-invalid-default-emission-value.yml +0 -0
- /package/manifests/{plugins → examples/builtins}/sci-embodied/failure-missing-expected-lifespan.yml +0 -0
- /package/manifests/{plugins → examples/builtins}/sci-embodied/success.yml +0 -0
- /package/manifests/{plugins → examples/builtins}/shell/failure-invalid-command.yml +0 -0
- /package/manifests/{plugins → examples/builtins}/shell/success.yml +0 -0
- /package/manifests/{plugins → examples/builtins}/sum/failure-missing-input-param.yml +0 -0
- /package/manifests/{plugins → examples/builtins}/sum/failure-missing-output-param.yml +0 -0
- /package/manifests/{plugins → examples/builtins}/sum/success.yml +0 -0
- /package/manifests/{plugins → examples/builtins}/time-sync/failure-config-start-later-end.yml +0 -0
- /package/manifests/{plugins → examples/builtins}/time-sync/failure-missing-global-config.yml +0 -0
- /package/manifests/{plugins → examples/builtins}/time-sync/success.yml +0 -0
- /package/manifests/examples/{nesting.yml → pipelines/nesting.yml} +0 -0
- /package/manifests/examples/{pipeline-teads-sci.yml → pipelines/pipeline-teads-sci.yml} +0 -0
- /package/manifests/examples/{pipeline-with-mocks.yml → pipelines/pipeline-with-mocks.yml} +0 -0
- /package/manifests/examples/{sci.yml → pipelines/sci.yml} +0 -0
- /package/manifests/examples/{teads-curve.yml → pipelines/teads-curve.yml} +0 -0
- /package/manifests/examples/{zeros.yaml → pipelines/zeros.yml} +0 -0
- /package/manifests/{plugins → outputs/plugins}/csv-lookup/cloud-metadata/failure-invalid-vendor.yaml +0 -0
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
name: Aggregation
|
|
2
|
+
description: Apply `horizontal` aggregation
|
|
3
|
+
aggregation:
|
|
4
|
+
metrics:
|
|
5
|
+
- cpu/utilization
|
|
6
|
+
type: horizontal
|
|
7
|
+
initialize:
|
|
8
|
+
plugins:
|
|
9
|
+
cloud-metadata:
|
|
10
|
+
path: builtin
|
|
11
|
+
method: CSVLookup
|
|
12
|
+
global-config:
|
|
13
|
+
filepath: >-
|
|
14
|
+
https://raw.githubusercontent.com/Green-Software-Foundation/if-data/main/cloud-metdata-aws-instances.csv
|
|
15
|
+
query:
|
|
16
|
+
instance-class: cloud/instance-type
|
|
17
|
+
output:
|
|
18
|
+
- cpu-cores-utilized
|
|
19
|
+
- vcpus-allocated
|
|
20
|
+
outputs:
|
|
21
|
+
- yaml
|
|
22
|
+
execution:
|
|
23
|
+
command: >-
|
|
24
|
+
/Users/mariamkhalatova/.npm/_npx/1bf7c3c15bf47d04/node_modules/.bin/ts-node
|
|
25
|
+
/Users/mariamkhalatova/Projects/UK/if/src/index.ts -m
|
|
26
|
+
manifests/outputs/features/aggregate-horizontal.yml -o
|
|
27
|
+
manifests/outputs/features/aggregate-horizontal
|
|
28
|
+
environment:
|
|
29
|
+
if-version: 0.4.0
|
|
30
|
+
os: macOS
|
|
31
|
+
os-version: '13.2'
|
|
32
|
+
node-version: 18.14.2
|
|
33
|
+
date-time: 2024-07-01T20:28:27.168Z (UTC)
|
|
34
|
+
dependencies:
|
|
35
|
+
- '@babel/core@7.22.10'
|
|
36
|
+
- '@babel/preset-typescript@7.23.3'
|
|
37
|
+
- '@commitlint/cli@18.6.0'
|
|
38
|
+
- '@commitlint/config-conventional@18.6.0'
|
|
39
|
+
- '@grnsft/if-core@0.0.10'
|
|
40
|
+
|
|
41
|
+
- '@jest/globals@29.7.0'
|
|
42
|
+
- '@types/jest@29.5.8'
|
|
43
|
+
- '@types/js-yaml@4.0.9'
|
|
44
|
+
- '@types/luxon@3.4.2'
|
|
45
|
+
- '@types/node@20.9.0'
|
|
46
|
+
- axios-mock-adapter@1.22.0
|
|
47
|
+
- axios@1.7.2
|
|
48
|
+
- cross-env@7.0.3
|
|
49
|
+
- csv-parse@5.5.6
|
|
50
|
+
- csv-stringify@6.4.6
|
|
51
|
+
- fixpack@4.0.0
|
|
52
|
+
- gts@5.2.0
|
|
53
|
+
- husky@8.0.3
|
|
54
|
+
- jest@29.7.0
|
|
55
|
+
- js-yaml@4.1.0
|
|
56
|
+
- lint-staged@15.2.2
|
|
57
|
+
- luxon@3.4.4
|
|
58
|
+
- release-it@16.3.0
|
|
59
|
+
- rimraf@5.0.5
|
|
60
|
+
- ts-command-line-args@2.5.1
|
|
61
|
+
- ts-jest@29.1.1
|
|
62
|
+
- typescript-cubic-spline@1.0.1
|
|
63
|
+
- typescript@5.2.2
|
|
64
|
+
- winston@3.11.0
|
|
65
|
+
- zod@3.22.4
|
|
66
|
+
status: success
|
|
67
|
+
tree:
|
|
68
|
+
children:
|
|
69
|
+
application:
|
|
70
|
+
pipeline:
|
|
71
|
+
- cloud-metadata
|
|
72
|
+
children:
|
|
73
|
+
uk-west:
|
|
74
|
+
children:
|
|
75
|
+
server-1:
|
|
76
|
+
inputs:
|
|
77
|
+
- timestamp: '2024-02-26 00:00:00'
|
|
78
|
+
duration: 300
|
|
79
|
+
cloud/instance-type: m5n.large
|
|
80
|
+
cloud/vendor: aws
|
|
81
|
+
cpu/utilization: 89
|
|
82
|
+
- timestamp: '2024-02-26 00:05:00'
|
|
83
|
+
duration: 300
|
|
84
|
+
cloud/instance-type: m5n.large
|
|
85
|
+
cloud/vendor: aws
|
|
86
|
+
cpu/utilization: 59
|
|
87
|
+
outputs:
|
|
88
|
+
- timestamp: '2024-02-26 00:00:00'
|
|
89
|
+
duration: 300
|
|
90
|
+
cloud/instance-type: m5n.large
|
|
91
|
+
cloud/vendor: aws
|
|
92
|
+
cpu/utilization: 89
|
|
93
|
+
vcpus-allocated: 2
|
|
94
|
+
- timestamp: '2024-02-26 00:05:00'
|
|
95
|
+
duration: 300
|
|
96
|
+
cloud/instance-type: m5n.large
|
|
97
|
+
cloud/vendor: aws
|
|
98
|
+
cpu/utilization: 59
|
|
99
|
+
vcpus-allocated: 2
|
|
100
|
+
aggregated:
|
|
101
|
+
cpu/utilization: 74
|
|
102
|
+
server-2:
|
|
103
|
+
inputs:
|
|
104
|
+
- timestamp: '2024-02-26 00:00:00'
|
|
105
|
+
duration: 300
|
|
106
|
+
cloud/instance-type: m5n.large
|
|
107
|
+
cloud/vendor: aws
|
|
108
|
+
cpu/utilization: 24
|
|
109
|
+
- timestamp: '2024-02-26 00:05:00'
|
|
110
|
+
duration: 300
|
|
111
|
+
cloud/instance-type: m5n.large
|
|
112
|
+
cloud/vendor: aws
|
|
113
|
+
cpu/utilization: 27
|
|
114
|
+
outputs:
|
|
115
|
+
- timestamp: '2024-02-26 00:00:00'
|
|
116
|
+
duration: 300
|
|
117
|
+
cloud/instance-type: m5n.large
|
|
118
|
+
cloud/vendor: aws
|
|
119
|
+
cpu/utilization: 24
|
|
120
|
+
vcpus-allocated: 2
|
|
121
|
+
- timestamp: '2024-02-26 00:05:00'
|
|
122
|
+
duration: 300
|
|
123
|
+
cloud/instance-type: m5n.large
|
|
124
|
+
cloud/vendor: aws
|
|
125
|
+
cpu/utilization: 27
|
|
126
|
+
vcpus-allocated: 2
|
|
127
|
+
aggregated:
|
|
128
|
+
cpu/utilization: 25.5
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
name: Aggregation
|
|
2
|
+
description: Apply `vertical` aggregation
|
|
3
|
+
aggregation:
|
|
4
|
+
metrics:
|
|
5
|
+
- cpu/utilization
|
|
6
|
+
type: vertical
|
|
7
|
+
initialize:
|
|
8
|
+
plugins:
|
|
9
|
+
cloud-metadata:
|
|
10
|
+
path: builtin
|
|
11
|
+
method: CSVLookup
|
|
12
|
+
global-config:
|
|
13
|
+
filepath: >-
|
|
14
|
+
https://raw.githubusercontent.com/Green-Software-Foundation/if-data/main/cloud-metdata-aws-instances.csv
|
|
15
|
+
query:
|
|
16
|
+
instance-class: cloud/instance-type
|
|
17
|
+
output:
|
|
18
|
+
- cpu-cores-utilized
|
|
19
|
+
- vcpus-allocated
|
|
20
|
+
outputs:
|
|
21
|
+
- yaml
|
|
22
|
+
execution:
|
|
23
|
+
command: >-
|
|
24
|
+
/Users/mariamkhalatova/.npm/_npx/1bf7c3c15bf47d04/node_modules/.bin/ts-node
|
|
25
|
+
/Users/mariamkhalatova/Projects/UK/if/src/index.ts -m
|
|
26
|
+
manifests/outputs/features/aggregate-vertical.yml -o
|
|
27
|
+
manifests/outputs/features/aggregate-vertical
|
|
28
|
+
environment:
|
|
29
|
+
if-version: 0.4.0
|
|
30
|
+
os: macOS
|
|
31
|
+
os-version: '13.2'
|
|
32
|
+
node-version: 18.14.2
|
|
33
|
+
date-time: 2024-07-01T20:32:47.459Z (UTC)
|
|
34
|
+
dependencies:
|
|
35
|
+
- '@babel/core@7.22.10'
|
|
36
|
+
- '@babel/preset-typescript@7.23.3'
|
|
37
|
+
- '@commitlint/cli@18.6.0'
|
|
38
|
+
- '@commitlint/config-conventional@18.6.0'
|
|
39
|
+
- '@grnsft/if-core@0.0.10'
|
|
40
|
+
|
|
41
|
+
- '@jest/globals@29.7.0'
|
|
42
|
+
- '@types/jest@29.5.8'
|
|
43
|
+
- '@types/js-yaml@4.0.9'
|
|
44
|
+
- '@types/luxon@3.4.2'
|
|
45
|
+
- '@types/node@20.9.0'
|
|
46
|
+
- axios-mock-adapter@1.22.0
|
|
47
|
+
- axios@1.7.2
|
|
48
|
+
- cross-env@7.0.3
|
|
49
|
+
- csv-parse@5.5.6
|
|
50
|
+
- csv-stringify@6.4.6
|
|
51
|
+
- fixpack@4.0.0
|
|
52
|
+
- gts@5.2.0
|
|
53
|
+
- husky@8.0.3
|
|
54
|
+
- jest@29.7.0
|
|
55
|
+
- js-yaml@4.1.0
|
|
56
|
+
- lint-staged@15.2.2
|
|
57
|
+
- luxon@3.4.4
|
|
58
|
+
- release-it@16.3.0
|
|
59
|
+
- rimraf@5.0.5
|
|
60
|
+
- ts-command-line-args@2.5.1
|
|
61
|
+
- ts-jest@29.1.1
|
|
62
|
+
- typescript-cubic-spline@1.0.1
|
|
63
|
+
- typescript@5.2.2
|
|
64
|
+
- winston@3.11.0
|
|
65
|
+
- zod@3.22.4
|
|
66
|
+
status: success
|
|
67
|
+
tree:
|
|
68
|
+
children:
|
|
69
|
+
application:
|
|
70
|
+
pipeline:
|
|
71
|
+
- cloud-metadata
|
|
72
|
+
children:
|
|
73
|
+
uk-west:
|
|
74
|
+
children:
|
|
75
|
+
server-1:
|
|
76
|
+
inputs:
|
|
77
|
+
- timestamp: '2024-02-26 00:00:00'
|
|
78
|
+
duration: 300
|
|
79
|
+
cloud/instance-type: m5n.large
|
|
80
|
+
cloud/vendor: aws
|
|
81
|
+
cpu/utilization: 89
|
|
82
|
+
- timestamp: '2024-02-26 00:05:00'
|
|
83
|
+
duration: 300
|
|
84
|
+
cloud/instance-type: m5n.large
|
|
85
|
+
cloud/vendor: aws
|
|
86
|
+
cpu/utilization: 59
|
|
87
|
+
outputs:
|
|
88
|
+
- timestamp: '2024-02-26 00:00:00'
|
|
89
|
+
duration: 300
|
|
90
|
+
cloud/instance-type: m5n.large
|
|
91
|
+
cloud/vendor: aws
|
|
92
|
+
cpu/utilization: 89
|
|
93
|
+
vcpus-allocated: 2
|
|
94
|
+
- timestamp: '2024-02-26 00:05:00'
|
|
95
|
+
duration: 300
|
|
96
|
+
cloud/instance-type: m5n.large
|
|
97
|
+
cloud/vendor: aws
|
|
98
|
+
cpu/utilization: 59
|
|
99
|
+
vcpus-allocated: 2
|
|
100
|
+
server-2:
|
|
101
|
+
inputs:
|
|
102
|
+
- timestamp: '2024-02-26 00:00:00'
|
|
103
|
+
duration: 300
|
|
104
|
+
cloud/instance-type: m5n.large
|
|
105
|
+
cloud/vendor: aws
|
|
106
|
+
cpu/utilization: 24
|
|
107
|
+
- timestamp: '2024-02-26 00:05:00'
|
|
108
|
+
duration: 300
|
|
109
|
+
cloud/instance-type: m5n.large
|
|
110
|
+
cloud/vendor: aws
|
|
111
|
+
cpu/utilization: 27
|
|
112
|
+
outputs:
|
|
113
|
+
- timestamp: '2024-02-26 00:00:00'
|
|
114
|
+
duration: 300
|
|
115
|
+
cloud/instance-type: m5n.large
|
|
116
|
+
cloud/vendor: aws
|
|
117
|
+
cpu/utilization: 24
|
|
118
|
+
vcpus-allocated: 2
|
|
119
|
+
- timestamp: '2024-02-26 00:05:00'
|
|
120
|
+
duration: 300
|
|
121
|
+
cloud/instance-type: m5n.large
|
|
122
|
+
cloud/vendor: aws
|
|
123
|
+
cpu/utilization: 27
|
|
124
|
+
vcpus-allocated: 2
|
|
125
|
+
outputs:
|
|
126
|
+
- cpu/utilization: 56.5
|
|
127
|
+
timestamp: '2024-02-26 00:00:00'
|
|
128
|
+
duration: 300
|
|
129
|
+
- cpu/utilization: 43
|
|
130
|
+
timestamp: '2024-02-26 00:05:00'
|
|
131
|
+
duration: 300
|
|
132
|
+
aggregated:
|
|
133
|
+
cpu/utilization: 49.75
|
|
134
|
+
outputs:
|
|
135
|
+
- cpu/utilization: 56.5
|
|
136
|
+
timestamp: '2024-02-26 00:00:00'
|
|
137
|
+
duration: 300
|
|
138
|
+
- cpu/utilization: 43
|
|
139
|
+
timestamp: '2024-02-26 00:05:00'
|
|
140
|
+
duration: 300
|
|
141
|
+
aggregated:
|
|
142
|
+
cpu/utilization: 49.75
|
|
143
|
+
outputs:
|
|
144
|
+
- cpu/utilization: 56.5
|
|
145
|
+
timestamp: '2024-02-26 00:00:00'
|
|
146
|
+
duration: 300
|
|
147
|
+
- cpu/utilization: 43
|
|
148
|
+
timestamp: '2024-02-26 00:05:00'
|
|
149
|
+
duration: 300
|
|
150
|
+
aggregated:
|
|
151
|
+
cpu/utilization: 49.75
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
name: Aggregation
|
|
2
|
+
description: Apply both `horizontal` and `vertical` aggregations
|
|
3
|
+
aggregation:
|
|
4
|
+
metrics:
|
|
5
|
+
- cpu/utilization
|
|
6
|
+
type: both
|
|
7
|
+
initialize:
|
|
8
|
+
plugins:
|
|
9
|
+
cloud-metadata:
|
|
10
|
+
path: builtin
|
|
11
|
+
method: CSVLookup
|
|
12
|
+
global-config:
|
|
13
|
+
filepath: >-
|
|
14
|
+
https://raw.githubusercontent.com/Green-Software-Foundation/if-data/main/cloud-metdata-aws-instances.csv
|
|
15
|
+
query:
|
|
16
|
+
instance-class: cloud/instance-type
|
|
17
|
+
output:
|
|
18
|
+
- cpu-cores-utilized
|
|
19
|
+
- vcpus-allocated
|
|
20
|
+
outputs:
|
|
21
|
+
- yaml
|
|
22
|
+
execution:
|
|
23
|
+
command: >-
|
|
24
|
+
/Users/mariamkhalatova/.npm/_npx/1bf7c3c15bf47d04/node_modules/.bin/ts-node
|
|
25
|
+
/Users/mariamkhalatova/Projects/UK/if/src/index.ts -m
|
|
26
|
+
manifests/outputs/features/aggregate.yml -o
|
|
27
|
+
manifests/outputs/features/aggregate
|
|
28
|
+
environment:
|
|
29
|
+
if-version: 0.4.0
|
|
30
|
+
os: macOS
|
|
31
|
+
os-version: '13.2'
|
|
32
|
+
node-version: 18.14.2
|
|
33
|
+
date-time: 2024-07-01T20:34:35.981Z (UTC)
|
|
34
|
+
dependencies:
|
|
35
|
+
- '@babel/core@7.22.10'
|
|
36
|
+
- '@babel/preset-typescript@7.23.3'
|
|
37
|
+
- '@commitlint/cli@18.6.0'
|
|
38
|
+
- '@commitlint/config-conventional@18.6.0'
|
|
39
|
+
- '@grnsft/if-core@0.0.10'
|
|
40
|
+
|
|
41
|
+
- '@jest/globals@29.7.0'
|
|
42
|
+
- '@types/jest@29.5.8'
|
|
43
|
+
- '@types/js-yaml@4.0.9'
|
|
44
|
+
- '@types/luxon@3.4.2'
|
|
45
|
+
- '@types/node@20.9.0'
|
|
46
|
+
- axios-mock-adapter@1.22.0
|
|
47
|
+
- axios@1.7.2
|
|
48
|
+
- cross-env@7.0.3
|
|
49
|
+
- csv-parse@5.5.6
|
|
50
|
+
- csv-stringify@6.4.6
|
|
51
|
+
- fixpack@4.0.0
|
|
52
|
+
- gts@5.2.0
|
|
53
|
+
- husky@8.0.3
|
|
54
|
+
- jest@29.7.0
|
|
55
|
+
- js-yaml@4.1.0
|
|
56
|
+
- lint-staged@15.2.2
|
|
57
|
+
- luxon@3.4.4
|
|
58
|
+
- release-it@16.3.0
|
|
59
|
+
- rimraf@5.0.5
|
|
60
|
+
- ts-command-line-args@2.5.1
|
|
61
|
+
- ts-jest@29.1.1
|
|
62
|
+
- typescript-cubic-spline@1.0.1
|
|
63
|
+
- typescript@5.2.2
|
|
64
|
+
- winston@3.11.0
|
|
65
|
+
- zod@3.22.4
|
|
66
|
+
status: success
|
|
67
|
+
tree:
|
|
68
|
+
children:
|
|
69
|
+
application:
|
|
70
|
+
pipeline:
|
|
71
|
+
- cloud-metadata
|
|
72
|
+
children:
|
|
73
|
+
uk-west:
|
|
74
|
+
children:
|
|
75
|
+
server-1:
|
|
76
|
+
inputs:
|
|
77
|
+
- timestamp: '2024-02-26 00:00:00'
|
|
78
|
+
duration: 300
|
|
79
|
+
cloud/instance-type: m5n.large
|
|
80
|
+
cloud/vendor: aws
|
|
81
|
+
cpu/utilization: 89
|
|
82
|
+
- timestamp: '2024-02-26 00:05:00'
|
|
83
|
+
duration: 300
|
|
84
|
+
cloud/instance-type: m5n.large
|
|
85
|
+
cloud/vendor: aws
|
|
86
|
+
cpu/utilization: 59
|
|
87
|
+
outputs:
|
|
88
|
+
- timestamp: '2024-02-26 00:00:00'
|
|
89
|
+
duration: 300
|
|
90
|
+
cloud/instance-type: m5n.large
|
|
91
|
+
cloud/vendor: aws
|
|
92
|
+
cpu/utilization: 89
|
|
93
|
+
vcpus-allocated: 2
|
|
94
|
+
- timestamp: '2024-02-26 00:05:00'
|
|
95
|
+
duration: 300
|
|
96
|
+
cloud/instance-type: m5n.large
|
|
97
|
+
cloud/vendor: aws
|
|
98
|
+
cpu/utilization: 59
|
|
99
|
+
vcpus-allocated: 2
|
|
100
|
+
aggregated:
|
|
101
|
+
cpu/utilization: 74
|
|
102
|
+
server-2:
|
|
103
|
+
inputs:
|
|
104
|
+
- timestamp: '2024-02-26 00:00:00'
|
|
105
|
+
duration: 300
|
|
106
|
+
cloud/instance-type: m5n.large
|
|
107
|
+
cloud/vendor: aws
|
|
108
|
+
cpu/utilization: 24
|
|
109
|
+
- timestamp: '2024-02-26 00:05:00'
|
|
110
|
+
duration: 300
|
|
111
|
+
cloud/instance-type: m5n.large
|
|
112
|
+
cloud/vendor: aws
|
|
113
|
+
cpu/utilization: 27
|
|
114
|
+
outputs:
|
|
115
|
+
- timestamp: '2024-02-26 00:00:00'
|
|
116
|
+
duration: 300
|
|
117
|
+
cloud/instance-type: m5n.large
|
|
118
|
+
cloud/vendor: aws
|
|
119
|
+
cpu/utilization: 24
|
|
120
|
+
vcpus-allocated: 2
|
|
121
|
+
- timestamp: '2024-02-26 00:05:00'
|
|
122
|
+
duration: 300
|
|
123
|
+
cloud/instance-type: m5n.large
|
|
124
|
+
cloud/vendor: aws
|
|
125
|
+
cpu/utilization: 27
|
|
126
|
+
vcpus-allocated: 2
|
|
127
|
+
aggregated:
|
|
128
|
+
cpu/utilization: 25.5
|
|
129
|
+
outputs:
|
|
130
|
+
- cpu/utilization: 56.5
|
|
131
|
+
timestamp: '2024-02-26 00:00:00'
|
|
132
|
+
duration: 300
|
|
133
|
+
- cpu/utilization: 43
|
|
134
|
+
timestamp: '2024-02-26 00:05:00'
|
|
135
|
+
duration: 300
|
|
136
|
+
aggregated:
|
|
137
|
+
cpu/utilization: 49.75
|
|
138
|
+
outputs:
|
|
139
|
+
- cpu/utilization: 56.5
|
|
140
|
+
timestamp: '2024-02-26 00:00:00'
|
|
141
|
+
duration: 300
|
|
142
|
+
- cpu/utilization: 43
|
|
143
|
+
timestamp: '2024-02-26 00:05:00'
|
|
144
|
+
duration: 300
|
|
145
|
+
aggregated:
|
|
146
|
+
cpu/utilization: 49.75
|
|
147
|
+
outputs:
|
|
148
|
+
- cpu/utilization: 56.5
|
|
149
|
+
timestamp: '2024-02-26 00:00:00'
|
|
150
|
+
duration: 300
|
|
151
|
+
- cpu/utilization: 43
|
|
152
|
+
timestamp: '2024-02-26 00:05:00'
|
|
153
|
+
duration: 300
|
|
154
|
+
aggregated:
|
|
155
|
+
cpu/utilization: 49.75
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
name: divide-demo
|
|
2
|
+
description: null
|
|
3
|
+
tags: null
|
|
4
|
+
initialize:
|
|
5
|
+
plugins:
|
|
6
|
+
cloud-metadata:
|
|
7
|
+
path: builtin
|
|
8
|
+
method: CSVLookup
|
|
9
|
+
global-config:
|
|
10
|
+
filepath: >-
|
|
11
|
+
https://raw.githubusercontent.com/Green-Software-Foundation/if-data/main/cloud-metdata-aws-instances.csv
|
|
12
|
+
query:
|
|
13
|
+
instance-class: cloud/instance-type
|
|
14
|
+
output:
|
|
15
|
+
- cpu-cores-utilized
|
|
16
|
+
- vcpus-allocated
|
|
17
|
+
divide:
|
|
18
|
+
path: builtin
|
|
19
|
+
method: Divide
|
|
20
|
+
global-config:
|
|
21
|
+
numerator: vcpus-allocated
|
|
22
|
+
denominator: 2
|
|
23
|
+
output: cpu/number-cores
|
|
24
|
+
outputs:
|
|
25
|
+
- yaml
|
|
26
|
+
execution:
|
|
27
|
+
command: >-
|
|
28
|
+
/Users/mariamkhalatova/.npm/_npx/1bf7c3c15bf47d04/node_modules/.bin/ts-node
|
|
29
|
+
/Users/mariamkhalatova/Projects/UK/if/src/index.ts -m
|
|
30
|
+
manifests/outputs/pipelines/cloud-metadata-divide.yml -o
|
|
31
|
+
manifests/outputs/pipelines/cloud-metadata-divide
|
|
32
|
+
environment:
|
|
33
|
+
if-version: 0.4.0
|
|
34
|
+
os: macOS
|
|
35
|
+
os-version: '13.2'
|
|
36
|
+
node-version: 18.14.2
|
|
37
|
+
date-time: 2024-07-02T05:13:05.868Z (UTC)
|
|
38
|
+
dependencies:
|
|
39
|
+
- '@babel/core@7.22.10'
|
|
40
|
+
- '@babel/preset-typescript@7.23.3'
|
|
41
|
+
- '@commitlint/cli@18.6.0'
|
|
42
|
+
- '@commitlint/config-conventional@18.6.0'
|
|
43
|
+
- '@grnsft/if-core@0.0.10'
|
|
44
|
+
|
|
45
|
+
- '@jest/globals@29.7.0'
|
|
46
|
+
- '@types/jest@29.5.8'
|
|
47
|
+
- '@types/js-yaml@4.0.9'
|
|
48
|
+
- '@types/luxon@3.4.2'
|
|
49
|
+
- '@types/node@20.9.0'
|
|
50
|
+
- axios-mock-adapter@1.22.0
|
|
51
|
+
- axios@1.7.2
|
|
52
|
+
- cross-env@7.0.3
|
|
53
|
+
- csv-parse@5.5.6
|
|
54
|
+
- csv-stringify@6.4.6
|
|
55
|
+
- fixpack@4.0.0
|
|
56
|
+
- gts@5.2.0
|
|
57
|
+
- husky@8.0.3
|
|
58
|
+
- jest@29.7.0
|
|
59
|
+
- js-yaml@4.1.0
|
|
60
|
+
- lint-staged@15.2.2
|
|
61
|
+
- luxon@3.4.4
|
|
62
|
+
- release-it@16.3.0
|
|
63
|
+
- rimraf@5.0.5
|
|
64
|
+
- ts-command-line-args@2.5.1
|
|
65
|
+
- ts-jest@29.1.1
|
|
66
|
+
- typescript-cubic-spline@1.0.1
|
|
67
|
+
- typescript@5.2.2
|
|
68
|
+
- winston@3.11.0
|
|
69
|
+
- zod@3.22.4
|
|
70
|
+
status: success
|
|
71
|
+
tree:
|
|
72
|
+
children:
|
|
73
|
+
child:
|
|
74
|
+
pipeline:
|
|
75
|
+
- cloud-metadata
|
|
76
|
+
- divide
|
|
77
|
+
config:
|
|
78
|
+
divide: null
|
|
79
|
+
defaults:
|
|
80
|
+
cloud/vendor: aws
|
|
81
|
+
cloud/instance-type: m5n.large
|
|
82
|
+
cpu/name: Intel® Core™ i7-1185G7
|
|
83
|
+
inputs:
|
|
84
|
+
- timestamp: 2023-08-06T00:00
|
|
85
|
+
duration: 3600
|
|
86
|
+
cpu/utilization: 80
|
|
87
|
+
outputs:
|
|
88
|
+
- timestamp: 2023-08-06T00:00
|
|
89
|
+
duration: 3600
|
|
90
|
+
cpu/utilization: 80
|
|
91
|
+
cloud/vendor: aws
|
|
92
|
+
cloud/instance-type: m5n.large
|
|
93
|
+
cpu/name: Intel® Core™ i7-1185G7
|
|
94
|
+
vcpus-allocated: 2
|
|
95
|
+
cpu/number-cores: 1
|