Skip to main content
Glama
discovered_endpoint_metrics.feature1.78 kB
@legacy Feature: Lunar Proxy - Discovered Endpoint Metrics Scenario: Discovered Endpoint Metrics are written Given API Provider is up And Lunar Proxy is up When mox is set to return status code 201 on GET /status And 3 requests to GET http:// mox :8888 /status are made through Lunar Proxy with headers {"x-lunar-interceptor": "lunar-aiohttp-interceptor/2.1.2", "x-lunar-consumer-tag": "tagA"} And mox is set to return status code 402 on GET /status # The next line will cause the value of lunar-direct type to be added as this is the default interceptor type. And 1 requests to GET http:// mox :8888 /status are made through Lunar Proxy with headers {"lunar-interceptor": "lunar-aiohttp-interceptor/2.1.3", "x-lunar-consumer-tag": "tagB"} And mox is set to return status code 200 on POST /status And 5 requests to POST http:// mox :8888 /status are made through Lunar Proxy with headers {"x-lunar-interceptor": "lunar-aiohttp-interceptor:2.1.2", "x-lunar-consumer-tag": "tagA"} Then Discovered endpoint metrics for GET mox:8888 /status has 4 requests ({"201": 3, "402": 1}) And Discovered endpoint metrics for POST mox:8888 /status has 5 requests ({"200": 5}) And Discovered interceptor metrics has 3 interceptors ({"lunar-aiohttp-interceptor": "2.1.2", "unknown": "unknown", "lunar-direct": "0"}) And Discovered consumer metrics for GET mox:8888 /status has consumer tagA with requests ({"201": 3}) And Discovered consumer metrics for POST mox:8888 /status has consumer tagA with requests ({"200": 5}) And Discovered consumer metrics for GET mox:8888 /status has consumer tagB with requests ({"402": 1})

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/TheLunarCompany/lunar'

If you have feedback or need assistance with the MCP directory API, please join our Discord server