summaryrefslogtreecommitdiff
path: root/tests/plugins/metrics/configs
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-04-20 14:20:05 +0300
committerValery Piashchynski <[email protected]>2021-04-20 14:20:05 +0300
commitc24f86e6eb1be40d71b8e15099dbc88cc7fad97f (patch)
tree7204e7a1b14cb1b316a958731494e67c8fcfe7f2 /tests/plugins/metrics/configs
parent027ab253d7d4280132c89d8694f3d0c65ccddf79 (diff)
- Add test cases for the issue 571
Diffstat (limited to 'tests/plugins/metrics/configs')
-rw-r--r--tests/plugins/metrics/configs/.rr-issue-571.yaml13
-rw-r--r--tests/plugins/metrics/configs/.rr-test.yaml18
2 files changed, 31 insertions, 0 deletions
diff --git a/tests/plugins/metrics/configs/.rr-issue-571.yaml b/tests/plugins/metrics/configs/.rr-issue-571.yaml
new file mode 100644
index 00000000..872f777a
--- /dev/null
+++ b/tests/plugins/metrics/configs/.rr-issue-571.yaml
@@ -0,0 +1,13 @@
+rpc:
+ listen: tcp://127.0.0.1:6001
+
+server:
+ command: "php ../../metrics-issue-571.php"
+
+http:
+ address: "0.0.0.0:56444"
+ pool:
+ num_workers: 5
+
+metrics:
+ address: "0.0.0.0:23557"
diff --git a/tests/plugins/metrics/configs/.rr-test.yaml b/tests/plugins/metrics/configs/.rr-test.yaml
new file mode 100644
index 00000000..4890076f
--- /dev/null
+++ b/tests/plugins/metrics/configs/.rr-test.yaml
@@ -0,0 +1,18 @@
+rpc:
+ listen: tcp://127.0.0.1:6001
+
+metrics:
+ # prometheus client address (path /metrics added automatically)
+ address: localhost:2112
+ collect:
+ app_metric:
+ type: histogram
+ help: "Custom application metric"
+ labels: [ "type" ]
+ buckets: [ 0.1, 0.2, 0.3, 1.0 ]
+ app_metric_counter:
+ type: counter
+ help: "Custom application counter."
+logs:
+ mode: development
+ level: error \ No newline at end of file