mirror of
https://github.com/openfaas/faas.git
synced 2025-06-18 03:56:37 +00:00
Add new HTTPServer to serve /metrics on port 8082
This commit runs a new HTTPServer on port 8082 in a goroutine to serve /metrics endpoint on a different port. This also update the configurations and compose files. Fixes: #1081 Signed-off-by: Vivek Singh <vivekkmr45@yahoo.in>
This commit is contained in:
@ -32,6 +32,6 @@ scrape_configs:
|
||||
scrape_interval: 5s
|
||||
dns_sd_configs:
|
||||
- names: ['gateway.default.svc.cluster.local']
|
||||
port: 8080
|
||||
port: 8082
|
||||
type: A
|
||||
refresh_interval: 5s
|
||||
|
@ -32,7 +32,7 @@ scrape_configs:
|
||||
scrape_interval: 5s
|
||||
dns_sd_configs:
|
||||
- names: ['tasks.gateway']
|
||||
port: 8080
|
||||
port: 8082
|
||||
type: A
|
||||
refresh_interval: 5s
|
||||
|
||||
|
Reference in New Issue
Block a user