ansible-taler-exchange

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

log-format-apm.conf (1064B)


      1 # Define log format where we also log latencies.
      2 log_format apm '”$time_local” client=$remote_addr '
      3                'method=$request_method request=”$request” '
      4                'request_length=$request_length '
      5                'status=$status bytes_sent=$bytes_sent '
      6                'body_bytes_sent=$body_bytes_sent '
      7                'upstream_addr=$upstream_addr '
      8                'upstream_status=$upstream_status '
      9                'request_time=$request_time';
     10 
     11 # This format is expected by alloy (see monitoring role)
     12 log_format taler 'm=$request_method uri=$uri s=$status '
     13                  'uct=$upstream_connect_time '
     14                  'urt=$upstream_response_time '
     15                  'rt=$request_time '
     16                  'rl=$request_length '
     17                  'bs=$bytes_sent';
     18 
     19 # Determines which HTTP methods we log performance data for.
     20 # Specifically, we exclude HEAD (don't care) and GET (often long-polling)
     21 # and anything non-canonical for GNU Taler (like OPTIONS).
     22 map $request_method $log_perf {
     23   default 0;
     24   POST 1;
     25   PATCH 1;
     26   DELETE 1;
     27 }