canonical / loki-k8s-operator

https://charmhub.io/loki-k8s
Apache License 2.0
10 stars 16 forks source link

Support for Loki Recording Rules #340

Open cbartz opened 8 months ago

cbartz commented 8 months ago

Enhancement Proposal

Providing alert rules via the logging | loki_push_api integration is possible, but it does not seem to be possible to pass recording rules (although cos-lib seems to support it https://github.com/canonical/cos-lib/blob/main/src/cosl/rules.py#L396).

It would be nice if the charm supported this as well. The charm may also need to be adapted to allow integration with the receive-remote-write | prometheus_remote_write integration, as the metrics generated are written to Prometheus using the remote-write endpoint.

lucabello commented 6 months ago

It looks like we should use cos-lib in the Loki charm.

lucabello commented 3 months ago

This should be fixed in #354.