mirror of
https://github.com/makayabou/asg-server.git
synced 2026-05-02 17:43:36 +02:00
[deploy] fix container labels for prometheus
This commit is contained in:
parent
e9eb289098
commit
f9920e1de7
@ -38,6 +38,21 @@ resource "docker_service" "app" {
|
||||
file_uid = 405
|
||||
file_gid = 100
|
||||
}
|
||||
|
||||
#region Prometheus support
|
||||
labels {
|
||||
label = "prometheus.io/scrape"
|
||||
value = "true"
|
||||
}
|
||||
labels {
|
||||
label = "prometheus.io/port"
|
||||
value = "3000"
|
||||
}
|
||||
labels {
|
||||
label = "prometheus.io/job"
|
||||
value = "backend"
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
||||
networks_advanced {
|
||||
@ -190,7 +205,7 @@ resource "docker_service" "app" {
|
||||
value = 3000
|
||||
}
|
||||
|
||||
# Prometheus support
|
||||
#region Prometheus support
|
||||
labels {
|
||||
label = "prometheus.enabled"
|
||||
value = true
|
||||
@ -208,6 +223,7 @@ resource "docker_service" "app" {
|
||||
label = "prometheus.io/job"
|
||||
value = "backend"
|
||||
}
|
||||
#endregion
|
||||
|
||||
rollback_config {
|
||||
order = "start-first"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user