This commit is contained in:
bkellam 2025-02-28 16:49:09 -08:00
parent 8b9a469324
commit a5fdcb3eeb
2 changed files with 11 additions and 7 deletions

View file

@ -8,10 +8,19 @@ local.file_match "local_files" {
loki.source.file "log_scrape" {
targets = local.file_match.local_files.targets
forward_to = [loki.write.grafana_loki.receiver]
forward_to = [loki.process.filter_logs.receiver]
tail_from_end = true
}
loki.process "filter_logs" {
stage.drop {
source = ""
expression = ""
drop_counter_reason = "noisy"
}
forward_to = [loki.write.grafana_loki.receiver]
}
loki.write "grafana_loki" {
endpoint {
url = sys.env("GRAFANA_ENDPOINT")

View file

@ -1,6 +1,6 @@
[supervisord]
nodaemon=true
logfile=/var/log/sourcebot/supervisord.log
logfile=supervisord.log
pidfile=/var/run/supervisord.pid
logfile_maxbytes=0
@ -10,7 +10,6 @@ autostart=true
autorestart=true
startretries=3
stdout_logfile=/var/log/sourcebot/zoekt.log
stderr_logfile=/var/log/sourcebot/zoekt-error.log
redirect_stderr=true
[program:web]
@ -19,7 +18,6 @@ autostart=true
autorestart=true
startretries=3
stdout_logfile=/var/log/sourcebot/web.log
stderr_logfile=/var/log/sourcebot/web-error.log
stdout_logfile_maxbytes=0
stderr_logfile_maxbytes=0
stdout_logfile_backups=0
@ -32,7 +30,6 @@ autostart=true
autorestart=true
startretries=3
stdout_logfile=/var/log/sourcebot/backend.log
stderr_logfile=/var/log/sourcebot/backend-error.log
stdout_logfile_maxbytes=0
stderr_logfile_maxbytes=0
stdout_logfile_backups=0
@ -45,7 +42,6 @@ autostart=true
autorestart=true
startretries=3
stdout_logfile=/var/log/sourcebot/redis.log
stderr_logfile=/var/log/sourcebot/redis-error.log
stdout_logfile_maxbytes=0
stderr_logfile_maxbytes=0
stdout_logfile_backups=0
@ -58,7 +54,6 @@ autostart=true
autorestart=true
startretries=3
stdout_logfile=/var/log/sourcebot/alloy.log
stderr_logfile=/var/log/sourcebot/alloy-error.log
stdout_logfile_maxbytes=0
stderr_logfile_maxbytes=0
stdout_logfile_backups=0