summaryrefslogtreecommitdiffhomepage
path: root/caddytest/integration/caddyfile_adapt/metrics_perhost.caddyfiletest
diff options
context:
space:
mode:
Diffstat (limited to 'caddytest/integration/caddyfile_adapt/metrics_perhost.caddyfiletest')
-rw-r--r--caddytest/integration/caddyfile_adapt/metrics_perhost.caddyfiletest37
1 files changed, 37 insertions, 0 deletions
diff --git a/caddytest/integration/caddyfile_adapt/metrics_perhost.caddyfiletest b/caddytest/integration/caddyfile_adapt/metrics_perhost.caddyfiletest
new file mode 100644
index 000000000..499215515
--- /dev/null
+++ b/caddytest/integration/caddyfile_adapt/metrics_perhost.caddyfiletest
@@ -0,0 +1,37 @@
+{
+ servers :80 {
+ metrics {
+ per_host
+ }
+ }
+}
+:80 {
+ respond "Hello"
+}
+----------
+{
+ "apps": {
+ "http": {
+ "servers": {
+ "srv0": {
+ "listen": [
+ ":80"
+ ],
+ "routes": [
+ {
+ "handle": [
+ {
+ "body": "Hello",
+ "handler": "static_response"
+ }
+ ]
+ }
+ ],
+ "metrics": {
+ "per_host": true
+ }
+ }
+ }
+ }
+ }
+}