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:
Vivek Singh
2019-02-13 16:06:27 +05:30
committed by Alex Ellis
parent aeb4eb9993
commit 90ddd56985
9 changed files with 24 additions and 3 deletions

View File

@ -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

View File

@ -32,7 +32,7 @@ scrape_configs:
scrape_interval: 5s
dns_sd_configs:
- names: ['tasks.gateway']
port: 8080
port: 8082
type: A
refresh_interval: 5s