gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-grid5k] 06/12: fix template


From: gnunet
Subject: [taler-grid5k] 06/12: fix template
Date: Fri, 10 Jun 2022 11:54:37 +0200

This is an automated email from the git hooks/post-receive script.

marco-boss pushed a commit to branch master
in repository grid5k.

commit 964dcdd46192a18823b1a7d927a58c5aad7e110e
Author: Boss Marco <bossm8@bfh.ch>
AuthorDate: Wed Jun 8 13:58:35 2022 +0200

    fix template
---
 configs/etc/monitor/promtail.yaml | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/configs/etc/monitor/promtail.yaml 
b/configs/etc/monitor/promtail.yaml
index f87698d..9187129 100644
--- a/configs/etc/monitor/promtail.yaml
+++ b/configs/etc/monitor/promtail.yaml
@@ -77,10 +77,13 @@ scrape_configs:
         selector: '{job="proxy"}'
         stages:
         - regex:
-            expression: 
'uri=/(?P<ep>[a-zA-Z]+)(?:/\w+)?(?:/(?P<act>[a-zA-Z-]+))? 
s=(?P<status>\d{3}).*urt=(?P<upstream_response_time>\d+\.\d+) 
rt=(?P<response_time>\d+\.\d+) rl=(?P<request_length>\d+) 
bs=(?P<bytes_sent>\d+)'
+            expression: 
'uri=/(?P<ep>[a-zA-Z]+)(?:/\w+)?(?:/(?P<act>[a-zA-Z-]+))? 
s=(?P<status>\d{3}).*urt=(?P<urt>\d+\.\d+|-) rt=(?P<response_time>\d+\.\d+) 
rl=(?P<request_length>\d+) bs=(?P<bytes_sent>\d+)'
         - template:
             source: endpoint
             template: '{{ printf "%s-%s" .ep .act | trimSuffix "-" }}'
+        - template:
+            source: upstream_response_time
+            template: '{{ .urt | replace "-" "0" }}'
         - labels:
             endpoint:
             status:

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]