Add subcription feature
This commit is contained in:
@@ -24,6 +24,11 @@ router = APIRouter()
|
||||
service_discovery = ServiceDiscovery()
|
||||
metrics = MetricsCollector("gateway")
|
||||
|
||||
# Register custom metrics for auth routes
|
||||
metrics.register_counter("gateway_auth_requests_total", "Total authentication requests through gateway")
|
||||
metrics.register_counter("gateway_auth_responses_total", "Total authentication responses from gateway")
|
||||
metrics.register_counter("gateway_auth_errors_total", "Total authentication errors in gateway")
|
||||
|
||||
# Auth service configuration
|
||||
AUTH_SERVICE_URL = settings.AUTH_SERVICE_URL or "http://auth-service:8000"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user