2020-03-07 03:15:22 +00:00
|
|
|
job "group_service_proxy_expose" {
|
|
|
|
group "group" {
|
|
|
|
service {
|
|
|
|
name = "example"
|
2020-04-01 14:48:28 +00:00
|
|
|
|
2020-03-07 03:15:22 +00:00
|
|
|
connect {
|
|
|
|
sidecar_service {
|
|
|
|
proxy {
|
|
|
|
expose {
|
2020-10-21 14:17:27 +00:00
|
|
|
path {
|
2020-04-01 14:48:28 +00:00
|
|
|
path = "/health"
|
|
|
|
protocol = "http"
|
2020-03-07 03:15:22 +00:00
|
|
|
local_path_port = 2222
|
2020-04-01 14:48:28 +00:00
|
|
|
listener_port = "healthcheck"
|
2020-03-12 14:37:31 +00:00
|
|
|
}
|
|
|
|
|
2020-10-21 14:17:27 +00:00
|
|
|
path {
|
2020-04-01 14:48:28 +00:00
|
|
|
path = "/metrics"
|
|
|
|
protocol = "grpc"
|
2020-03-12 14:37:31 +00:00
|
|
|
local_path_port = 3000
|
2020-04-01 14:48:28 +00:00
|
|
|
listener_port = "metrics"
|
2020-03-12 14:37:31 +00:00
|
|
|
}
|
2020-03-07 03:15:22 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|