GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - green-kernel/wordpress-plugin: A wordpress plugin that shows you the energy usage of your deployment

BranchesTags
Open more actions menu

Latest commit

 

History

7 Commits
7 Commits

Folders and files

NameName
Last commit message
Last commit date
plugins
plugins
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
Screenshot.png
Screenshot.png
 
 
docker-compose.yml
docker-compose.yml
 
 

Repository files navigation

WP Sustainability Monitor

A WordPress admin plugin that visualizes the energy consumption of your WordPress installation in real time. It reads data from the procpower kernel extension (/proc/energy/cgroup) and displays it in a live chart (1-second interval) directly in the WordPress dashboard.

Screenshot of WP Sustainability Monitor

✨ Features

  • Adds a Sustainability menu entry in the WordPress admin area
  • Reads energy usage per PID from /proc/energy/cgroup (via procpower)
  • Displays a real-time line chart using Chart.js
  • Shows tabular readings sorted by current energy use
  • Includes raw /proc/energy/cgroup output for debugging
  • Keeps data fully inside the Docker container — no sensitive host data is leaked

⚡ Requirements

  • Linux host with procpower installed and /proc/energy/cgroup available
  • Docker & Docker Compose
  • WordPress (containerized in this setup)

🔎 Limitations

Due to the way Linux and Docker work, we can only show the energy usage of the container the plugin is running in. It is technically not possible to display the resource consumption of other processes.

If you are running your database somewhere else, you will need to install a logger inside this container. This is straightforward, as you can simply read the cgroup file available within the container.

🚀 Quick Start (Docker Compose)

Clone this repository and run WordPress with the plugin:

git clone https://github.com/your-org/wp-sustainability-monitor.git
cd wp-sustainability-monitor

docker compose up

Then you can access the demo under http://localhost:8080/

About

A wordpress plugin that shows you the energy usage of your deployment

Resources

Readme
AGPL-3.0 license
Activity
Custom properties

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.