gnunet-svn
[Top][All Lists]
Advanced

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

[taler-grid5k] 77/189: test custom metrics


From: gnunet
Subject: [taler-grid5k] 77/189: test custom metrics
Date: Thu, 28 Apr 2022 10:47:27 +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 e43015aa9154768159fc896e0620d5846aba2ae5
Author: Boss Marco <bossm8@bfh.ch>
AuthorDate: Sat Mar 12 21:00:20 2022 +0100

    test custom metrics
---
 configs/etc/monitor/prometheus.yaml |  5 +++++
 configs/etc/monitor/promtail.yaml   | 10 ++++++++++
 2 files changed, 15 insertions(+)

diff --git a/configs/etc/monitor/prometheus.yaml 
b/configs/etc/monitor/prometheus.yaml
index 37f9773..c972b1a 100644
--- a/configs/etc/monitor/prometheus.yaml
+++ b/configs/etc/monitor/prometheus.yaml
@@ -20,4 +20,9 @@ scrape_configs:
   - job_name: 'exchange-proxy'
     static_configs:
     - targets: ['127.0.0.1:9113']
+
+  # Promtail with custom metrics
+  - job_name: 'promtail'
+    static_configs:
+    - targets: ['127.0.0.1:9080']
   
diff --git a/configs/etc/monitor/promtail.yaml 
b/configs/etc/monitor/promtail.yaml
index a660a30..3aefff3 100644
--- a/configs/etc/monitor/promtail.yaml
+++ b/configs/etc/monitor/promtail.yaml
@@ -39,6 +39,16 @@ scrape_configs:
        - labels:
            endpoint:
            status:
+    - match:
+       selector: '{job="proxy"} | s=200 |~ "(/withdraw|/deposit)"'
+       stages:
+       - metrics:
+           tps:
+             type: Counter
+             description: "Transactions per Second (successful requests to 
/withdraw and /deposit)"
+             config:
+               match_all: true
+               action: increment
 - job_name: wallet
   syslog:
     listen_address: 0.0.0.0:1516

-- 
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]