mirror of
https://github.com/sourcebot-dev/sourcebot.git
synced 2025-12-14 21:35:25 +00:00
logs wip
This commit is contained in:
parent
8b9a469324
commit
a5fdcb3eeb
2 changed files with 11 additions and 7 deletions
|
|
@ -8,10 +8,19 @@ local.file_match "local_files" {
|
||||||
|
|
||||||
loki.source.file "log_scrape" {
|
loki.source.file "log_scrape" {
|
||||||
targets = local.file_match.local_files.targets
|
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
|
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" {
|
loki.write "grafana_loki" {
|
||||||
endpoint {
|
endpoint {
|
||||||
url = sys.env("GRAFANA_ENDPOINT")
|
url = sys.env("GRAFANA_ENDPOINT")
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
[supervisord]
|
[supervisord]
|
||||||
nodaemon=true
|
nodaemon=true
|
||||||
logfile=/var/log/sourcebot/supervisord.log
|
logfile=supervisord.log
|
||||||
pidfile=/var/run/supervisord.pid
|
pidfile=/var/run/supervisord.pid
|
||||||
logfile_maxbytes=0
|
logfile_maxbytes=0
|
||||||
|
|
||||||
|
|
@ -10,7 +10,6 @@ autostart=true
|
||||||
autorestart=true
|
autorestart=true
|
||||||
startretries=3
|
startretries=3
|
||||||
stdout_logfile=/var/log/sourcebot/zoekt.log
|
stdout_logfile=/var/log/sourcebot/zoekt.log
|
||||||
stderr_logfile=/var/log/sourcebot/zoekt-error.log
|
|
||||||
redirect_stderr=true
|
redirect_stderr=true
|
||||||
|
|
||||||
[program:web]
|
[program:web]
|
||||||
|
|
@ -19,7 +18,6 @@ autostart=true
|
||||||
autorestart=true
|
autorestart=true
|
||||||
startretries=3
|
startretries=3
|
||||||
stdout_logfile=/var/log/sourcebot/web.log
|
stdout_logfile=/var/log/sourcebot/web.log
|
||||||
stderr_logfile=/var/log/sourcebot/web-error.log
|
|
||||||
stdout_logfile_maxbytes=0
|
stdout_logfile_maxbytes=0
|
||||||
stderr_logfile_maxbytes=0
|
stderr_logfile_maxbytes=0
|
||||||
stdout_logfile_backups=0
|
stdout_logfile_backups=0
|
||||||
|
|
@ -32,7 +30,6 @@ autostart=true
|
||||||
autorestart=true
|
autorestart=true
|
||||||
startretries=3
|
startretries=3
|
||||||
stdout_logfile=/var/log/sourcebot/backend.log
|
stdout_logfile=/var/log/sourcebot/backend.log
|
||||||
stderr_logfile=/var/log/sourcebot/backend-error.log
|
|
||||||
stdout_logfile_maxbytes=0
|
stdout_logfile_maxbytes=0
|
||||||
stderr_logfile_maxbytes=0
|
stderr_logfile_maxbytes=0
|
||||||
stdout_logfile_backups=0
|
stdout_logfile_backups=0
|
||||||
|
|
@ -45,7 +42,6 @@ autostart=true
|
||||||
autorestart=true
|
autorestart=true
|
||||||
startretries=3
|
startretries=3
|
||||||
stdout_logfile=/var/log/sourcebot/redis.log
|
stdout_logfile=/var/log/sourcebot/redis.log
|
||||||
stderr_logfile=/var/log/sourcebot/redis-error.log
|
|
||||||
stdout_logfile_maxbytes=0
|
stdout_logfile_maxbytes=0
|
||||||
stderr_logfile_maxbytes=0
|
stderr_logfile_maxbytes=0
|
||||||
stdout_logfile_backups=0
|
stdout_logfile_backups=0
|
||||||
|
|
@ -58,7 +54,6 @@ autostart=true
|
||||||
autorestart=true
|
autorestart=true
|
||||||
startretries=3
|
startretries=3
|
||||||
stdout_logfile=/var/log/sourcebot/alloy.log
|
stdout_logfile=/var/log/sourcebot/alloy.log
|
||||||
stderr_logfile=/var/log/sourcebot/alloy-error.log
|
|
||||||
stdout_logfile_maxbytes=0
|
stdout_logfile_maxbytes=0
|
||||||
stderr_logfile_maxbytes=0
|
stderr_logfile_maxbytes=0
|
||||||
stdout_logfile_backups=0
|
stdout_logfile_backups=0
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue