diff --git a/tdrs-backend/plg/promtail/config.yml b/tdrs-backend/plg/promtail/config.yml index 371ebee07..298323fb7 100644 --- a/tdrs-backend/plg/promtail/config.yml +++ b/tdrs-backend/plg/promtail/config.yml @@ -32,3 +32,17 @@ scrape_configs: logger: message: time: + - job_name: {{ frontend_env_name }} + static_configs: + - targets: + - localhost + labels: + job: {{ frontend_env_name }} + __path__: /var/log/nginx/access_log.log + level: DEBUG + - targets: + - localhost + labels: + job: {{ frontend_env_name }} + __path__: /var/log/nginx/error_log.log + level: ERROR