github.com/avenga/couper@v1.12.2/server/testdata/integration/telemetry/01_couper.hcl (about)

     1  server "metrics" {
     2    endpoint "/" {
     3      proxy {
     4        backend = "anything"
     5      }
     6    }
     7  
     8    endpoint "/down" {
     9      proxy {
    10        backend = "not_healthy"
    11      }
    12    }
    13  }
    14  
    15  
    16  definitions {
    17    # backend origin within a definition block gets replaced with the integration test "anything" server.
    18    backend "anything" {
    19      path = "/anything"
    20      origin = env.COUPER_TEST_BACKEND_ADDR
    21    }
    22  
    23    backend "not_healthy" {
    24      origin = "http://1.2.3.4"
    25      timeout = "2s"
    26      beta_health {
    27        timeout = "250ms"
    28      }
    29    }
    30  }
    31  
    32  settings {
    33    beta_metrics = true
    34    beta_service_name = "my-service"
    35    no_proxy_from_env = true
    36  }