sustainable-computing-io / kepler-operator

Kepler Operator
Apache License 2.0
25 stars 26 forks source link

feat(dashboard): use prometheus recording rules faster queries #266

Closed sthaha closed 11 months ago

sthaha commented 11 months ago

This commit improves the rendering of dashboards by taking advantage of Prometheus recording rules to pre-compute queries which may otherwise take too much memory (resulting in Prometheus OOM crash) or time for the query to execute.

The Operator deploy a PrometheusRule resource which pre-computes queries used in openshift dashboards.

image image
sthaha commented 11 months ago

@vimalk78 @vprashar2929 to make the validation easier, I have pushed a bundle created from this PR to quay.io/sthaha/kepler-operator-bundle:0.0.0-dev

sthaha commented 11 months ago
./tmp/bin/operator-sdk run bundle quay.io/sthaha/kepler-operator-bundle:0.0.0-dev --install-mode AllNamespaces --namespace openshift-operators --skip-tls