Add rsyslog / promtail log relay
This commit is contained in:
parent
07498474ed
commit
311d03d3c3
1 changed files with 1 additions and 14 deletions
|
@ -184,26 +184,13 @@ in
|
|||
url = "http://127.0.0.1:3100/loki/api/v1/push";
|
||||
}];
|
||||
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";
|
||||
syslog = {
|
||||
listen_address = "0.0.0.0:1514";
|
||||
labels = {
|
||||
job = "syslog";
|
||||
host = "localhost";
|
||||
};
|
||||
};
|
||||
relabel_configs = [
|
||||
|
|
Loading…
Reference in a new issue