all: caddy - dump logs on stderr
This commit is contained in:
parent
f88b9c41a9
commit
63f58c427e
2 changed files with 2 additions and 29 deletions
|
@ -1,11 +1,7 @@
|
||||||
{
|
{
|
||||||
logFormat = fileName: ''
|
logFormat = fileName: ''
|
||||||
output file /var/log/caddy/${fileName}.log {
|
output stderr
|
||||||
roll_size 100MiB
|
|
||||||
roll_keep 5
|
|
||||||
roll_keep_for 100d
|
|
||||||
}
|
|
||||||
format json
|
format json
|
||||||
level INFO
|
level DEBUG
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,29 +15,6 @@
|
||||||
];
|
];
|
||||||
positions = { filename = "/tmp/promtail-positions.yaml"; };
|
positions = { filename = "/tmp/promtail-positions.yaml"; };
|
||||||
scrape_configs = [
|
scrape_configs = [
|
||||||
{
|
|
||||||
job_name = "caddy";
|
|
||||||
static_configs = [
|
|
||||||
{
|
|
||||||
targets = [ "localhost" ];
|
|
||||||
labels = {
|
|
||||||
job = "caddy";
|
|
||||||
"__path__" = "/var/log/caddy/*log";
|
|
||||||
agent = "caddy-promtail";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
];
|
|
||||||
pipeline_stages = [
|
|
||||||
{
|
|
||||||
json = {
|
|
||||||
expressions = { duration = "duration"; status = "status"; };
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
labels = { duration = ""; status = ""; };
|
|
||||||
}
|
|
||||||
];
|
|
||||||
}
|
|
||||||
{
|
{
|
||||||
job_name = "journal";
|
job_name = "journal";
|
||||||
journal = {
|
journal = {
|
||||||
|
|
Loading…
Reference in a new issue