Add protocol = http for loki and prometheus services in the mesh
This commit is contained in:
parent
ae2058fdc5
commit
3ae75ce54f
|
@ -63,6 +63,9 @@ job "monitoring-agent" {
|
|||
local_bind_port = 3100
|
||||
# Work arround, see https://github.com/hashicorp/nomad/issues/18538
|
||||
destination_type = "service"
|
||||
config {
|
||||
protocol = "http"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2189,6 +2189,9 @@ _EOT
|
|||
local_bind_port = 3100
|
||||
# Work arround, see https://github.com/hashicorp/nomad/issues/18538
|
||||
destination_type = "service"
|
||||
config {
|
||||
protocol = "http"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2412,12 +2415,18 @@ _EOT
|
|||
local_bind_port = 3100
|
||||
# Work arround, see https://github.com/hashicorp/nomad/issues/18538
|
||||
destination_type = "service"
|
||||
config {
|
||||
protocol = "http"
|
||||
}
|
||||
}
|
||||
upstreams {
|
||||
destination_name = "prometheus"
|
||||
local_bind_port = 9090
|
||||
# Work arround, see https://github.com/hashicorp/nomad/issues/18538
|
||||
destination_type = "service"
|
||||
config {
|
||||
protocol = "http"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -301,6 +301,8 @@ monitoring:
|
|||
# Connect to loki through the service mesh
|
||||
- destination_name: 'loki[[ .consul.suffix ]]'
|
||||
local_bind_port: 3100
|
||||
config:
|
||||
protocol: http
|
||||
vault:
|
||||
# Vault policies to attach to the task.
|
||||
# Note : vector can expose its metrics with mTLS natively, so we do not add a metrics_proxy task
|
||||
|
@ -386,8 +388,12 @@ monitoring:
|
|||
local_bind_port: 5432
|
||||
- destination_name: loki[[ .consul.suffix ]]
|
||||
local_bind_port: 3100
|
||||
config:
|
||||
protocol: http
|
||||
- destination_name: prometheus[[ .consul.suffix ]]
|
||||
local_bind_port: 9090
|
||||
config:
|
||||
protocol: http
|
||||
# Volumes for data persistence
|
||||
volumes:
|
||||
data:
|
||||
|
@ -466,6 +472,8 @@ monitoring:
|
|||
# Connect to loki with the service mesh
|
||||
- destination_name: loki[[ .consul.suffix ]]
|
||||
local_bind_port: 3100
|
||||
config:
|
||||
protocol: http
|
||||
# Volumes for data persistence
|
||||
volumes:
|
||||
# The nomad volume should expose the Nomad alloc dir (eg /opt/nomad/data/alloc) where vector will be able
|
||||
|
|
Loading…
Reference in New Issue