ansible-taler-exchange

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

commit 3df889f66f3c83346f34c9834deb2852c8e35331
parent 002e191b984bf5bf1d89768f729c8f7ac4e8b3bb
Author: Christian Grothoff <christian@grothoff.org>
Date:   Mon, 21 Apr 2025 16:54:24 +0200

-fix perms

Diffstat:
Mroles/challenger/tasks/pre-exchange.yml | 2+-
Mroles/monitoring/templates/etc/alloy/config.alloy | 21+++++++++++++++++++++
2 files changed, 22 insertions(+), 1 deletion(-)

diff --git a/roles/challenger/tasks/pre-exchange.yml b/roles/challenger/tasks/pre-exchange.yml @@ -275,7 +275,7 @@ state: touch owner: challenger-sms group: root - mode: "0760" + mode: "0664" modification_time: preserve access_time: preserve diff --git a/roles/monitoring/templates/etc/alloy/config.alloy b/roles/monitoring/templates/etc/alloy/config.alloy @@ -37,6 +37,27 @@ loki.source.file "log_scrape" { tail_from_end = true } +// Which log files to monitor: all postgres logs +local.file_match "postgres_log_files" { + path_targets = [ + { + "__path__" = "/var/log/postgresql/*.log", + "job" = "postgres logs", + "hostname" = "{{ TARGET_HOST_NAME }}", + }, + ] + sync_period = "5s" +} + + +// Connect postgres_log_files as source to filter_generic_logs +// See: https://grafana.com/docs/alloy/latest/tutorials/send-logs-to-loki/ +loki.source.file "postgres_log_scrape" { + targets = local.file_match.postgres_log_files.targets + forward_to = [loki.process.filter_generic_logs.receiver] + tail_from_end = true +} + // Which log files to monitor: all regular log files with errors local.file_match "nginx_errors" { path_targets = [