2023-08-07 18:37:19 +00:00
|
|
|
module "loki" {
|
|
|
|
source = "../services/service"
|
|
|
|
|
2023-08-24 19:36:47 +00:00
|
|
|
name = "loki"
|
|
|
|
image = "grafana/loki:2.2.1"
|
|
|
|
args = ["--config.file=$${NOMAD_TASK_DIR}/loki-config.yml"]
|
|
|
|
|
2023-08-07 18:37:19 +00:00
|
|
|
service_port = 3100
|
|
|
|
ingress = true
|
2023-08-24 19:36:47 +00:00
|
|
|
use_wesher = var.use_wesher
|
|
|
|
|
|
|
|
sticky_disk = true
|
2023-08-07 18:37:19 +00:00
|
|
|
# healthcheck = "/ready"
|
|
|
|
templates = [
|
|
|
|
{
|
|
|
|
data = file("${path.module}/loki-config.yml")
|
|
|
|
dest = "loki-config.yml"
|
|
|
|
mount = false
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|