ansible-taler-exchange

Ansible playbook to deploy a production Taler Exchange
Log | Files | Refs | Submodules | README | LICENSE

commit 002e191b984bf5bf1d89768f729c8f7ac4e8b3bb
parent 9dade3041740ec694b1fe11766c128b0f4c2bdf2
Author: Christian Grothoff <christian@grothoff.org>
Date:   Mon, 21 Apr 2025 10:23:35 +0200

typo

Diffstat:
Mroles/monitoring/templates/etc/alloy/config.alloy | 29++++++++++++++++++++++-------
1 file changed, 22 insertions(+), 7 deletions(-)

diff --git a/roles/monitoring/templates/etc/alloy/config.alloy b/roles/monitoring/templates/etc/alloy/config.alloy @@ -19,7 +19,11 @@ loki.write "grafana_loki" { // Which log files to monitor: all regular log files with errors local.file_match "local_files" { path_targets = [ - {"__path__" = "/var/log/*.log"}, + { + "__path__" = "/var/log/*.log", + "job" = "system logs", + "hostname" = "{{ TARGET_HOST_NAME }}", + }, ] sync_period = "5s" } @@ -36,7 +40,11 @@ loki.source.file "log_scrape" { // Which log files to monitor: all regular log files with errors local.file_match "nginx_errors" { path_targets = [ - {"__path__" = "/var/log/nginx/*.err"}, + { + "__path__" = "/var/log/nginx/*.err", + "job" = "nginx errors", + "hostname" = "{{ TARGET_HOST_NAME }}", + }, ] sync_period = "5s" } @@ -53,7 +61,11 @@ loki.source.file "nginx_error_scrape" { // Which log files to monitor: nginx regular logs local.file_match "http_logs" { path_targets = [ - {"__path__" = "/var/log/nginx/*.log"}, + { + "__path__" = "/var/log/nginx/*.log", + "job" = "nginx logs", + "hostname" = "{{ TARGET_HOST_NAME }}", + }, ] sync_period = "5s" } @@ -107,10 +119,13 @@ loki.process "filter_http" { // Monitor the logs with the latency statistics local.file_match "nginx_taler_performance_logs" { - path_targets = [{ - __path__ = "/var/log/nginx/*.tal", - job = "nginx/performance", - }] + path_targets = [ + { + "__path__" = "/var/log/nginx/*.tal", + "job" = "nginx/performance", + "hostname" = "{{ TARGET_HOST_NAME }}", + }, + ] sync_period = "5s" }