Skip to content

Commit

Permalink
feat: add embodied carbon emissions into panel and calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
raymundovr committed Mar 13, 2024
1 parent dca1a77 commit d395e05
Showing 1 changed file with 41 additions and 45 deletions.
86 changes: 41 additions & 45 deletions clusters/base/falco-sci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -329,42 +329,11 @@ data:
"type": "prometheus",
"uid": "prometheus"
},
"description": "Embodied Carbon Emissions per 15 minutes",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
Expand All @@ -391,19 +360,37 @@ data:
},
"id": 5,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"tooltip": {
"mode": "single",
"sort": "none"
}
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "10.2.3",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"editorMode": "code",
"expr": "$embodied_carbon_m3",
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A"
}
],
"title": "Embodied (M) - Falco",
"type": "timeseries"
"type": "stat"
},
{
"datasource": {
Expand Down Expand Up @@ -489,7 +476,7 @@ data:
"uid": "prometheus"
},
"editorMode": "code",
"expr": "sum(increase(\n (kepler_container_joules_total{container_name=\"falco\"}[15m:1m])\n )\n ) * $watt_per_second_to_kWh * $emissions_france\n# add M factor when available",
"expr": "(sum(increase(\n (kepler_container_joules_total{container_name=\"falco\"}[15m:1m])\n )\n ) * $watt_per_second_to_kWh * $emissions_france\n) + $embodied_carbon_m3",
"instant": false,
"legendFormat": "__auto",
"range": true,
Expand Down Expand Up @@ -520,6 +507,15 @@ data:
"query": "0.000000277777777777778",
"skipUrlSync": false,
"type": "constant"
},
{
"description": "Embodied Carbon Emissions generated by a m3.small.x86 instance on Equinix",
"hide": 2,
"label": "Embodied Carbon Emissions",
"name": "embodied_carbon_m3",
"query": "3.92",
"skipUrlSync": false,
"type": "constant"
}
]
},
Expand All @@ -531,6 +527,6 @@ data:
"timezone": "",
"title": "Falco Software Carbon Intensity (SCI) index",
"uid": "fb32062b-eb1c-414a-965a-c529d39ef2be",
"version": 22,
"version": 23,
"weekStart": ""
}

0 comments on commit d395e05

Please sign in to comment.