grafana / loki

Like Prometheus, but for logs.
https://grafana.com/loki
GNU Affero General Public License v3.0
23.81k stars 3.43k forks source link

Loki ruler remote write for separate tenants individual tenents. #13454

Open snyaik opened 3 months ago

snyaik commented 3 months ago

We have multiple mimir tenants and we want to use the recording rule capability of loki to send only relevant metrics to mimir tenants.

My matching the tenant labels of the loki recording, forwarding the data to specific mimir tenat using ruler remote write. Our loki is running on simple scalable mode.

We thought of considering loki alertmanager but not having any leads on adding loki alertmanager as datasource to grafana.

JStickler commented 3 months ago

Are you asking how to add Alertmanager as a datasource? That's well documented.

https://grafana.com/grafana/plugins/alertmanager/?tab=installation

https://grafana.com/docs/grafana/latest/datasources/alertmanager/

snyaik commented 3 months ago

This is related to loki. We added the loki ruler endpoint after selecting the prometheus as implementation in the alertmanager. It did not work.

This is for Loki.