sustainable-computing-io / kepler

Kepler (Kubernetes-based Efficient Power Level Exporter) uses eBPF to probe performance counters and other system stats, use ML models to estimate workload energy consumption based on these stats, and exports them as Prometheus metrics
https://sustainable-computing.io
Apache License 2.0
1.19k stars 184 forks source link

Use github.com/VictoriaMetrics/metrics instead of github.com/prometheus/client_golang #619

Closed valyala closed 1 year ago

valyala commented 1 year ago

Is your feature request related to a problem? Please describe.

Kepler uses github.com/prometheus/client_golang library for metrics' exposition. This library provides non-trivial to use bAPI with many features, which aren't used by Kepler.

Describe the solution you'd like

To use github.com/VictoriaMetrics/metrics library instead. It provides much easier to use API. It also supports the ability to push metrics additionally to exporting the metrics for pulling. The metrics' push may be useful when metrics are collected from secure environments without external access.

rootfs commented 1 year ago

@valyala thanks for sharing your work. Please follow our prometheus client discussion here.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.