Skip to content

Commit

Permalink
enable logging to grafana
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeiklimuk committed Jul 9, 2024
1 parent dd839ff commit 5f2f8f8
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions operations/deploy-dev.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ job "api-service-dev" {
read_only = false
}

service {
name = "api-service-dev"
tags = [ "logging" ]
}

config {
image = "svforte/api-service:latest-dev"
force_pull = true
Expand Down Expand Up @@ -85,6 +90,7 @@ job "api-service-dev" {
name = "api-service-dev"
port = "http-port"
tags = [
"logging",
"traefik.enable=true",
"traefik.http.routers.api-dev.rule=Host(`api-dev.dmz.ator.dev`)",
"traefik.http.routers.api-dev.entrypoints=https",
Expand Down
6 changes: 6 additions & 0 deletions operations/deploy-live.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ job "api-service-live" {
force_pull = true
}

service {
name = "api-service-live"
tags = [ "logging" ]
}

resources {
cpu = 256
memory = 256
Expand Down Expand Up @@ -85,6 +90,7 @@ job "api-service-live" {
name = "api-service-live"
port = "http-port"
tags = [
"logging",
"traefik.enable=true",
"traefik.http.routers.api-live.rule=Host(`api-live.dmz.ator.dev`)",
"traefik.http.routers.api-live.entrypoints=https",
Expand Down
6 changes: 6 additions & 0 deletions operations/deploy-stage.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ job "api-service-stage" {
force_pull = true
}

service {
name = "api-service-stage"
tags = [ "logging" ]
}

resources {
cpu = 256
memory = 256
Expand Down Expand Up @@ -85,6 +90,7 @@ job "api-service-stage" {
name = "api-service-stage"
port = "http-port"
tags = [
"logging",
"traefik.enable=true",
"traefik.http.routers.api-stage.rule=Host(`api-stage.dmz.ator.dev`)",
"traefik.http.routers.api-stage.entrypoints=https",
Expand Down

0 comments on commit 5f2f8f8

Please sign in to comment.