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 Jun 28, 2024
1 parent 6dd3e51 commit a881eeb
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 6 deletions.
10 changes: 8 additions & 2 deletions operations/deploy-dev.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ ORPort {{ env `NOMAD_PORT_orport` }}
service {
name = "sbws-relay-dev"
provider = "nomad"
tags = ["sbws"]
tags = ["sbws", "logging"]
port = "control-port"
}
}
Expand All @@ -127,6 +127,12 @@ ORPort {{ env `NOMAD_PORT_orport` }}
]
}

service {
name = "sbws-scanner-dev-task"
provider = "nomad"
tags = ["logging"]
}

resources {
cpu = 1000
memory = 1000
Expand Down Expand Up @@ -189,7 +195,7 @@ external_control_port = {{ env `NOMAD_PORT_control_port` }}
service {
name = "sbws-destination-dev"
provider = "nomad"
tags = ["sbws"]
tags = ["sbws", "logging"]
port = "http-port"
check {
name = "sbws destination nginx http server alive"
Expand Down
10 changes: 8 additions & 2 deletions operations/deploy-live.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ ORPort {{ env `NOMAD_PORT_orport` }}
service {
name = "sbws-relay-live"
provider = "nomad"
tags = ["sbws"]
tags = ["sbws", "logging"]
port = "control-port"
}
}
Expand All @@ -127,6 +127,12 @@ ORPort {{ env `NOMAD_PORT_orport` }}
]
}

service {
name = "sbws-scanner-live-task"
provider = "nomad"
tags = ["logging"]
}

resources {
cpu = 1000
memory = 1500
Expand Down Expand Up @@ -189,7 +195,7 @@ external_control_port = {{ env `NOMAD_PORT_control_port` }}
service {
name = "sbws-destination-live"
provider = "nomad"
tags = ["sbws"]
tags = ["sbws", "logging"]
port = "http-port"
check {
name = "sbws destination nginx http server alive"
Expand Down
10 changes: 8 additions & 2 deletions operations/deploy-stage.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ ORPort {{ env `NOMAD_PORT_orport` }}
service {
name = "sbws-relay-stage"
provider = "nomad"
tags = ["sbws"]
tags = ["sbws", "logging"]
port = "control-port"
}
}
Expand All @@ -127,6 +127,12 @@ ORPort {{ env `NOMAD_PORT_orport` }}
]
}

service {
name = "sbws-scanner-stage-task"
provider = "nomad"
tags = ["logging"]
}

resources {
cpu = 1000
memory = 1500
Expand Down Expand Up @@ -189,7 +195,7 @@ external_control_port = {{ env `NOMAD_PORT_control_port` }}
service {
name = "sbws-destination-stage"
provider = "nomad"
tags = ["sbws"]
tags = ["sbws", "logging"]
port = "http-port"
check {
name = "sbws destination nginx http server alive"
Expand Down

0 comments on commit a881eeb

Please sign in to comment.