From a881eebc85cae38b858647103b89158702828654 Mon Sep 17 00:00:00 2001 From: Sergey Klimuk Date: Fri, 28 Jun 2024 14:25:03 +0300 Subject: [PATCH] Enable logging to grafana --- operations/deploy-dev.hcl | 10 ++++++++-- operations/deploy-live.hcl | 10 ++++++++-- operations/deploy-stage.hcl | 10 ++++++++-- 3 files changed, 24 insertions(+), 6 deletions(-) diff --git a/operations/deploy-dev.hcl b/operations/deploy-dev.hcl index 838e4f9..c62c420 100644 --- a/operations/deploy-dev.hcl +++ b/operations/deploy-dev.hcl @@ -101,7 +101,7 @@ ORPort {{ env `NOMAD_PORT_orport` }} service { name = "sbws-relay-dev" provider = "nomad" - tags = ["sbws"] + tags = ["sbws", "logging"] port = "control-port" } } @@ -127,6 +127,12 @@ ORPort {{ env `NOMAD_PORT_orport` }} ] } + service { + name = "sbws-scanner-dev-task" + provider = "nomad" + tags = ["logging"] + } + resources { cpu = 1000 memory = 1000 @@ -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" diff --git a/operations/deploy-live.hcl b/operations/deploy-live.hcl index 5c28248..eb4209a 100644 --- a/operations/deploy-live.hcl +++ b/operations/deploy-live.hcl @@ -101,7 +101,7 @@ ORPort {{ env `NOMAD_PORT_orport` }} service { name = "sbws-relay-live" provider = "nomad" - tags = ["sbws"] + tags = ["sbws", "logging"] port = "control-port" } } @@ -127,6 +127,12 @@ ORPort {{ env `NOMAD_PORT_orport` }} ] } + service { + name = "sbws-scanner-live-task" + provider = "nomad" + tags = ["logging"] + } + resources { cpu = 1000 memory = 1500 @@ -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" diff --git a/operations/deploy-stage.hcl b/operations/deploy-stage.hcl index 904de6a..a0ed0d5 100644 --- a/operations/deploy-stage.hcl +++ b/operations/deploy-stage.hcl @@ -101,7 +101,7 @@ ORPort {{ env `NOMAD_PORT_orport` }} service { name = "sbws-relay-stage" provider = "nomad" - tags = ["sbws"] + tags = ["sbws", "logging"] port = "control-port" } } @@ -127,6 +127,12 @@ ORPort {{ env `NOMAD_PORT_orport` }} ] } + service { + name = "sbws-scanner-stage-task" + provider = "nomad" + tags = ["logging"] + } + resources { cpu = 1000 memory = 1500 @@ -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"