green-coding-solutions / green-metrics-tool

Measure energy and carbon consumption of software
https://metrics.green-coding.io
GNU Affero General Public License v3.0
168 stars 22 forks source link

Added more sanity checks for duplicate and wrong container names; Add… #762

Closed ArneTR closed 5 months ago

ArneTR commented 5 months ago

…ed also better error display if docker container boot failed

Thanks to @tantive-nessi for making us aware of that QoL deficiency

github-actions[bot] commented 5 months ago
Eco-CI Output: Label 🖥 avg. CPU utilization [%] 🔋 Total Energy [Joules] 🔌 avg. Power [Watts] Duration [Seconds]
Total Run 22.4064 1335.16 3.51357 388
Measurement #1 22.6969 1335.16 3.51357 380

📈 Energy graph:


 8.18 ┤                                                                                                                     ╭──╮
 7.54 ┤                                                                                                                     │  │
 6.90 ┤                                                                                                                     │  │
 6.26 ┤                                                                                                 ╭╮           ╭╮    ╭╯  │
 5.62 ┤                                                                                                 │╰╮         ╭╯│  ╭─╯   ╰╮
 4.97 ┤                                      ╭╮                                                         │ │       ╭─╯ ╰─╮│      │
 4.33 ┤      ╭╮              ╭╮              │╰╮ ╭╮                                          ╭╮         │ ╰─────╮ │     ││      │     ╭╮    ╭╮╭╮                                                                                                                                                                                                                                                ╭╮
 3.69 ┤     ╭╯╰───╮╭─────────╯╰───────────╮╭╮│ │ │╰────╮╭────╮                 ╭─────────────╯╰─────────╯       ╰╮│     ╰╯      │    ╭╯╰────╯││╰─╮        ╭─╮         ╭╮ ╭─────╮╭─────────────────────────────────╮╭──────────────╮╭╮                   ╭──────────╮╭──────────────────────────────────────────────────────────────────╮  ╭─────────────╮ ╭───╮╭─────╮╭───╮╭─╮╭─────────────────╯╰
 3.05 ┤     │     ╰╯                      ╰╯││ ╰╮│     ╰╯    │                ╭╯                                 ││             │    │       ││  │        │ │         │╰╮│     ╰╯                                 ││              ╰╯│                   │          ││                                                                  │ ╭╯             ╰─╯   ╰╯     ╰╯   ╰╯ ╰╯
 2.41 ┤    ╭╯                               ││  ╰╯           │                │                                  ╰╯             │    │       ││  │        │ │╭╮       │ ││                                        ╰╯                │                   │          ╰╯                                                                  │ │
 1.77 ┼────╯                                ╰╯               ╰────────────────╯                                                 ╰────╯       ╰╯  ╰────────╯ ╰╯╰───────╯ ╰╯                                                          ╰───────────────────╯                                                                              ╰─╯
                                                                                                                                                                                             Watts over time

🌳 CO2 Data: City: Chicago, Lat: 41.8819, Lon: -87.6278 Carbon Intensity for this location: 409 gCO₂eq/kWh SCI: 0.546080 gCO₂eq / pipeline run emitted