项目介绍

sustainable-computing-io/kepler 是一个托管在 GitHub 上的开源项目,主要使用 Go 编写,目前获得 1.6k 个 Star、285 次 Fork。

仓库全名
sustainable-computing-io/kepler
Star 数
1.6k
Fork 数
285
未关闭 Issue
44

README 摘要

Kepler Kepler (Kubernetes-based Efficient Power Level Exporter) is a Prometheus exporter that measures energy consumption metrics at the container, pod, and node level in Kubernetes clusters. 🌟 Star the Kepler repository to help others find it! 🚀 Getting Started 📖 For comprehensive installation instructions, troubleshooting, and advanced deployment options, see our Installation Guide ⚡ Quick Start (Kubernetes…

完整内容见 GitHub 原始 README 或本页 。

常见问题

kepler 用什么语言开发?

主要使用 Go 编写,目前有 1.6k 个 Star。

如何获取 kepler 的源码?

可以直接克隆仓库:git clone https://github.com/sustainable-computing-io/kepler.git,默认分支为 main;安装与运行步骤见仓库 README。

kepler 最近还在维护吗?

仓库最近一次更新为 17 小时前,当前有 44 个未关闭 Issue;Star 数为 1.6k,可作为社区活跃度的参考。

README

Kepler

GitHub license codecov CI Status Releases zread OpenSSF Best Practices OpenSSF ScorecardCLOMonitor LFX Health Score LFX Contributors LFX Active Contributors FOSSA Status FOSSA Status

Kepler (Kubernetes-based Efficient Power Level Exporter) is a Prometheus exporter that measures energy consumption metrics at the container, pod, and node level in Kubernetes clusters.

🌟 Star the Kepler repository to help others find it!

🚀 Getting Started

📖 For comprehensive installation instructions, troubleshooting, and advanced deployment options, see our Installation Guide

⚡ Quick Start (Kubernetes with Helm)

# 1. Install Kepler using Helm from OCI registry
helm install kepler oci://quay.io/sustainable_computing_io/charts/kepler \
  --namespace kepler \
  --create-namespace

# Wait for Kepler pods to be running
kubectl wait --for=condition=ready --timeout=120s pod -n kepler --all

# 2. Verify installation
kubectl get pods -n kepler

# 3. Access metrics (port-forward)
kubectl port-forward -n kepler svc/kepler 28282:28282

# Test metrics endpoint
curl http://localhost:28282/metrics | grep kepler_node_cpu_watts

📋 For Production Deployments: Consider using the Kepler Operator for advanced lifecycle management and operational capabilities.

Next Steps:

To ensure Kepler is working correctly and to visualize the metrics:

Need Help?

🔧 Other Installation Methods

Choose your preferred method:

# 💻 Local Development
make build && sudo ./bin/kepler

# ✨ Docker Compose (with Prometheus & Grafana)
cd compose/dev && docker compose up -d

# 🐳 Kubernetes with Kustomize
git clone https://github.com/sustainable-computing-io/kepler.git
cd kepler && git checkout v0.12.0 # pin to a release tag, see note below
kubectl kustomize manifests/k8s | \
  sed -e "s|<KEPLER_IMAGE>|quay.io/sustainable_computing_io/kepler:v0.12.0|g" | \
  kubectl apply --server-side --force-conflicts -f -

⚠️ Important: Always check out a matching release tag (rather than main) before applying manifests from manifests/k8s, and set <KEPLER_IMAGE> to that same version. Manifests on main can reference features not yet present in the last published image (for example, the /probe/livez and /probe/readyz endpoints added for liveness/readiness probes) — mixing a main manifest with an older image can make the container fail its liveness probe and crash-loop. See the Releases page for available tags.

📖 Documentation

User Documentation

Developer Documentation

For more detailed documentation, please visit the official Kepler documentation.

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request. For more detailed information about contributing to this project, please refer to our CONTRIBUTING.md file.

Community Meetings

Everyone is welcome, no invitation needed. For details, see the Community Meetings link on the GitHub organization page.

Roadmap

See the Kepler Roadmap for planned and in-progress work.

Code of Conduct

Kepler follows the CNCF Code of Conduct.

Gen AI policy

Our project adheres to the Linux Foundation’s Generative AI Policy, which can be viewed at https://www.linuxfoundation.org/legal/generative-ai.

⭐ Star History

Star History Chart

📝 License

This project is licensed under the Apache License 2.0 - see the LICENSES for details.

评论

暂无评论