Add rsyslog / promtail log relay

This commit is contained in:
Théo Barnouin 2024-10-07 16:31:57 +02:00
parent 07498474ed
commit 311d03d3c3

View file

@ -184,26 +184,13 @@ in
url = "http://127.0.0.1:3100/loki/api/v1/push"; url = "http://127.0.0.1:3100/loki/api/v1/push";
}]; }];
scrape_configs = [ scrape_configs = [
{
job_name = "journal";
journal = {
max_age = "12h";
labels = {
job = "systemd-journal";
host = "localhost";
};
};
relabel_configs = [{
source_labels = [ "__journal__systemd_unit" ];
target_label = "unit";
}];
}
{ {
job_name = "syslog"; job_name = "syslog";
syslog = { syslog = {
listen_address = "0.0.0.0:1514"; listen_address = "0.0.0.0:1514";
labels = { labels = {
job = "syslog"; job = "syslog";
host = "localhost";
}; };
}; };
relabel_configs = [ relabel_configs = [