API service
Access to b2c microservices through this service
Config file
Create config file with services addresses. Services:
- vdc - get camera information
Config example:
servers:
vdc: 127.0.0.1:8001
If use
docker-compose
orswarm
user service name instead of IP address
Usage
api [OPTIONS]
Options:
-config string
API server configuration file (default "apiserver.yml")
-host string
Bind addres by API server (default "0.0.0.0")
-port string
Bind port by API server (default "8000")
Docs
User /docs
to access to Redoc page.
Metrics
User Prometheus to collect metrics. Metrics URL is /metrics
Metrics
- api_http_requests_total - total amount of http requests. Type counter.
- api_http_request_duration - requests duration. Type Histogram