loki: add ruler configuration

This commit is contained in:
Tigor Hutasuhut 2024-09-12 11:47:15 +07:00
parent 8cd7a8eb2a
commit 7a90a985d5

View file

@ -78,6 +78,17 @@ in
]; ];
}; };
ruler = {
external_url = "https://grafana.tigor.web.id";
storage = {
type = "local";
local = {
directory = "${dataDir}/rules";
};
};
rule_path = "/tmp/loki/rules"; # Temporary rule_path
};
compactor = { compactor = {
working_directory = "${dataDir}/retention"; working_directory = "${dataDir}/retention";
retention_enabled = true; retention_enabled = true;