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.06k stars 169 forks source link

Integrate Kepler with Graphite ? #1283

Open annis-souames opened 4 months ago

annis-souames commented 4 months ago

Hello

I have been using Kepler for some time and it has worked fine, however, due to some external reasons, I had to move from Prometheus + Grafana stack into Grafana Cloud + Graphite for storing metrics, I was wondering what would be the easiest way to get Kepler data into graphite (even if I have to write a small script for this).

Thanks

rootfs commented 4 months ago

I am not familiar with Graphite, is there any conversion (I cannot find any on google either)? Alternatively, you can use the Kepler dashboard builder that doesn't need Grafana or Prometheus.

annis-souames commented 4 months ago

The suggested poject seems to require prom_url, I assume it needs Prometheus right ?

rootfs commented 4 months ago

It doesn't need prometheus, @jesuino can you help? thanks

jesuino commented 4 months ago

Hello @rootfs I didn't send the metrics dashboards at the time because I was not able to enable CORS on Kepler. However, here's the dashboard that reads directly from Kepler metrics (no Prometheus):

https://github.com/jesuino/dashbuilder-yaml-samples/blob/main/kepler/kepler_metrics.dash.yaml

You can see it running with an unreleased Dashbuilder version here:

https://jesuino.github.io/dashboards?import=https://raw.githubusercontent.com/jesuino/dashbuilder-yaml-samples/main/kepler/kepler_metrics.dash.yaml

Or you can edit with the latest released dashbuilder version here:

https://start.kubesmarts.org/#/import?url=https://github.com/jesuino/dashbuilder-yaml-samples/blob/main/kepler/kepler_metrics.dash.yaml

rootfs commented 4 months ago

@jesuino thank you for the info

@annis-souames if dashboard builder works for your use case, please let's know.