-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathplugins.json
428 lines (427 loc) · 15.2 KB
/
plugins.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
{
"plugins": {
"cloud-metadata": {
"name": "Cloud Metadata",
"description": "determine an instance's physical processor and thermal design power based on its instance",
"code-url": "https://github.com/Green-Software-Foundation/if-plugins/blob/main/src/lib/cloud-metadata",
"website-url": "https://github.com/Green-Software-Foundation/if-plugins/blob/main/src/lib/cloud-metadata/README.md",
"config": null,
"inputs": [
{
"name": "cloud/vendor",
"type": "string",
"units": "",
"description": "The cloud platform provider",
"example": "aws, azure, gcp",
"required": true
},
{
"name": "cloud/instance_type",
"type": "string",
"units": "",
"description": "the name of the specific instance being used",
"example": "m5n.large",
"required": true
},
{
"name": "timestamp",
"type": "string",
"units": "ISO 8061 timestamp",
"description": "when the observation occurred",
"example": "2023-07-06T00:01",
"required": true
},
{
"name": "duration",
"type": "integer",
"units": "seconds",
"description": "number of seconds the observation spans",
"example": 10,
"required": true
}
],
"outputs": [
{
"name": "timestamp",
"type": "string",
"units": "ISO 8061 timestamp",
"description": "when the observation occurred",
"example": "2023-07-06T00:01"
},
{
"name": "duration",
"type": "integer",
"units": "seconds",
"description": "number of seconds the observation spans",
"example": 10
},
{
"name": "cloud/vendor",
"type": "string",
"units": "",
"description": "The cloud platform provider",
"example": "aws, azure, gcp"
},
{
"name": "cloud/instance_type",
"type": "string",
"units": "",
"description": "the name of the specific instance being used",
"example": "m5n.large"
},
{
"name": "vcpus-allocated",
"type": "integer",
"units": "",
"description": "number of vCPUs allocated to this instance",
"example": 64
},
{
"name": "vcpus-total",
"type": "integer",
"units": "",
"description": "total number of vCPUs available to this instance",
"example": 64
},
{
"name": "memory-available",
"type": "integer",
"units": "GB",
"description": "total memory available on this instance, in GB",
"example": 64
},
{
"name": "physical-processor",
"type": "string",
"units": "",
"description": "name of the physical processor used by this instance",
"example": "Intel Xeon Platinum 8175M"
},
{
"name": "cpu/thermal-design-power",
"type": "integer",
"units": "Watts",
"description": "the thermal design power of the processor",
"example": 150
}
],
"data-sources": [
{
"name": "AWS",
"description": "AWS instance types",
"url": "https://aws.amazon.com/ec2/instance-types/"
},
{
"name": "Azure",
"description": "Azure instance types",
"url": "https://docs.microsoft.com/en-us/azure/virtual-machines/sizes"
},
{
"name": "GCP",
"description": "GCP instance types",
"url": "https://cloud.google.com/compute/docs/machine-types"
},
{
"name": "Cloud Carbon Footprint",
"description": "allows determination of cpu for type of instance in a cloud and can be invoked as part of a plugin pipeline defined in a manifest.",
"url": "https://www.cloudcarbonfootprint.org/"
}
]
},
"coefficient": {
"name": "Coefficient",
"description": "a generic plugin for multiplying a value in an input array by a given coefficient. You provide the name of the value you want to multiply, a coefficient value, and a name to use to append the product to the output array.",
"code-url": "https://github.com/Green-Software-Foundation/if-plugins/tree/main/src/lib/coefficient",
"website-url": "https://github.com/Green-Software-Foundation/if-plugins/tree/main/src/lib/coefficient/README.md",
"config": {
"input-parameter": {
"type": "string",
"units": "",
"description": "a string matching an existing key in the inputs array from the manifest tree",
"example": "carbon",
"required": true
},
"coefficient": {
"type": "float",
"units": "",
"description": "a value to multiply the input parameter by",
"example": 10,
"required": true
},
"output-parameter": {
"type": "string",
"units": "",
"description": "the product of all input-parameters with the parameter name defined by output-parameter in global config",
"example": "carbon-product",
"required": true
}
},
"inputs": [
{
"carbon": 30
}
],
"outputs": [
{
"name": "[output-parameter]",
"type": "float",
"units": "",
"description": "product of input and coefficient",
"example": 90
}
],
"data-sources": []
},
"csv-export": {
"name": "CSV Export",
"description": "exports your data to a CSV file. Takes any stanard IF imports.",
"code-url": "https://github.com/Green-Software-Foundation/if-plugins/blob/main/src/lib/csv-export",
"website-url": "https://github.com/Green-Software-Foundation/if-plugins/blob/main/src/lib/csv-export/README.md",
"config": {
"output-path": {
"type": "string",
"units": "",
"description": "the path to the output file",
"example": "/path/to/output.csv",
"required": true
},
"headers": {
"type": "array",
"units": "",
"description": "A list of headers to extract from the inputs to write as columns in the csv file. An empty list of headers will write all fields provided as inputs to the pluginParams. The default list of headers is empty therefore all input data will be written to the csv file.",
"example": "- timestamp\n- duration\n- carbon\n- energy",
"required": false
}
},
"inputs": [],
"outputs": "--output /path/to/output.csv",
"data-sources": [
{
"name": "AWS",
"description": "AWS instance types",
"url": "https://aws.amazon.com/ec2/instance-types/"
},
{
"name": "Azure",
"description": "Azure instance types",
"url": "https://docs.microsoft.com/en-us/azure/virtual-machines/sizes"
},
{
"name": "GCP",
"description": "GCP instance types",
"url": "https://cloud.google.com/compute/docs/machine-types"
},
{
"name": "Cloud Carbon Footprint",
"description": "allows determination of cpu for type of instance in a cloud and can be invoked as part of a plugin pipeline defined in a manifest.",
"url": "https://www.cloudcarbonfootprint.org/"
}
]
},
"divide": {
"name": "Divide",
"description": "divide is a generic plugin for doing arithmetic division of two values in an input array. You provide the names of the values you want to divide, and a name to use to add the divide to the output array. For example, boavizta-cpu need cpu/number-cores to work, however cloud-metadata returns vcpus-allocated, to get number of cores you divide vcpus-allocated by 2.",
"code-url": "https://github.com/Green-Software-Foundation/if-plugins/tree/main/src/lib/divide",
"website-url": "https://github.com/Green-Software-Foundation/if-plugins/tree/main/src/lib/divide/README.md",
"config": {
"numerator": {
"name": "Numerator",
"type": "string",
"description": "a parameter by a specific configured number",
"example": "vcpus-allocated"
},
"denominator": {
"name": "Denominator",
"type": "float",
"description": "a parameter by a specific configured number or the number by which numerator is divided",
"example": 2
},
"output": {
"name": "Output",
"type": "string",
"description": "the number to a configured output parameter",
"example": "cpu/number-cores"
}
},
"inputs": [{ "vcpus-allocated": 24 }],
"outputs": [
{
"name": "divide",
"type": "float",
"units": "",
"description": "input divided by denominator",
"example": 12
}
],
"data-sources": []
},
"e-mem": {
"name": "E-MEM (energy due to memory)",
"description": "e-mem simply multiples the amount of memory being used by a energy-per-gb (0.000392 kWh/GB) to yield memory/energy.",
"code-url": "https://github.com/Green-Software-Foundation/if-plugins/tree/main/src/lib/e-mem",
"website-url": "https://github.com/Green-Software-Foundation/if-plugins/tree/main/src/lib/e-mem/README.md",
"config": {
"energy-per-gb": {
"type": "float",
"units": "kWh/GB",
"description": "the amount of energy used by memory per GB",
"example": 0.000392,
"required": true
}
},
"inputs": [
{
"name": "memory/utilization",
"type": "integer",
"units": "%",
"description": "percentage of the total available memory being used in the input period",
"example": 80,
"required": true
},
{
"name": "memory/capacity",
"type": "integer",
"units": "GB",
"description": "the total amount of memory available, in GB",
"example": 16,
"required": true
}
],
"outputs": [
{
"name": "memory/energy",
"type": "float",
"units": "kWh",
"description": "energy used by memory, in kWh",
"example": 0.0008
}
],
"data-sources": [
{
"name": "Cloud Carbon Footprint",
"description": "rationale for the energy per GB coefficient",
"url": "https://www.cloudcarbonfootprint.org/docs/methodology/#memory"
}
]
},
"e-net": {
"name": "E-MEM (energy due to networking)",
"description": "e-net simply multiplies the amount of data transferred (GB) by a coefficient (kWh/GB) to yield network/energy.",
"code-url": "https://github.com/Green-Software-Foundation/if-plugins/blob/main/src/lib/e-net/",
"website-url": "https://github.com/Green-Software-Foundation/if-plugins/blob/main/src/lib/e-net/README.md",
"config": {
"energy-per-gb": {
"type": "float",
"units": "kWh/GB",
"description": "coefficient for converting data transferred to energy, in kWh/GB. coefficient for converting data transferred to energy, in kWh/GB",
"example": 0.02,
"required": false
}
},
"inputs": [
{
"name": "network/data-in",
"type": "float",
"units": "GB",
"description": "inbound data in GB",
"example": 1,
"required": true
},
{
"name": "network/data-out",
"type": "float",
"units": "GB",
"description": "outbound data in GB",
"example": 2,
"required": true
}
],
"outputs": [
{
"name": "network/energy",
"type": "float",
"units": "kWh",
"description": "energy used by networking, in kWh",
"example": 0.06
}
],
"data-sources": [
{
"name": "Cloud Carbon Footprint",
"description": "rationale for the energy per GB coefficient",
"url": "https://www.cloudcarbonfootprint.org/docs/methodology/#chosen-coefficient"
},
{
"name": "Cloud Carbon Footprint Networking Studies",
"description": "rationale for the energy per GB coefficient",
"url": "https://www.cloudcarbonfootprint.org/docs/methodology/#appendix-iv-recent-networking-studies"
}
]
},
"mock-observations": {
"name": "Mock Observations",
"description": "A plugin for mocking observations (inputs) for testing and demo purposes",
"code-url": "https://github.com/Green-Software-Foundation/if-plugins/blob/main/src/lib/mock-observations/",
"website-url": "https://github.com/Green-Software-Foundation/if-plugins/blob/main/src/lib/mock-observations/README.md",
"config": {
"timestamp-from": {
"type": "string",
"units": "ISO 8061 timestamp",
"description": "when to start the mock observations",
"example": "2023-07-06T00:00",
"required": true
},
"timestamp-to": {
"type": "string",
"units": "ISO 8061 timestamp",
"description": "when to end the mock observations",
"example": "2023-07-06T00:10",
"required": true
},
"duration": {
"type": "integer",
"units": "seconds",
"description": "the duration of each observation",
"example": 60,
"required": true
},
"components": {
"type": "object",
"units": "key/value pair",
"description": "A tree of each component you want to measure and its mock values",
"example": "components:\n - instance-type: A1\n - instance-type: B1",
"required": true
},
"generators": {
"type": "object",
"units": "key/value pair",
"description": "A tree of each generator of the observations for your components",
"example": "generators:\n common:\n region: uk-west\n common-key: common-val\n randint:\n cpu/utilization:\n min: 1\n max: 99",
"required": true
}
},
"inputs": [],
"outputs": [
{
"name": "network/energy",
"type": "float",
"units": "kWh",
"description": "energy used by networking, in kWh",
"example": 0.06
}
],
"data-sources": [
{
"name": "Cloud Carbon Footprint",
"description": "rationale for the energy per GB coefficient",
"url": "https://www.cloudcarbonfootprint.org/docs/methodology/#chosen-coefficient"
},
{
"name": "Cloud Carbon Footprint Networking Studies",
"description": "rationale for the energy per GB coefficient",
"url": "https://www.cloudcarbonfootprint.org/docs/methodology/#appendix-iv-recent-networking-studies"
}
]
}
}
}