You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Prometheus pack has hardcoded paths to local/config that don't exist on the configured volume. Configured volume is not used correctly in the template.
The text was updated successfully, but these errors were encountered:
Took some time to figure this out. The way local/config should be better explained and documented.
Missing part is this pre-task that will make sure prometheus uid/gid will have access to the mounted volume.
# Prometheus running in its own uid:gid doesn't have access to mounted volume by default
# Running pre-task to change ownership
# https://github.com/hashicorp/nomad/issues/8892
# https://github.com/prometheus/prometheus/issues/5976
task "prep-disk" {
driver = "docker"
volume_mount {
volume = "prometheus"
destination = "/prometheus"
read_only = false
}
config {
image = "busybox:latest"
command = "sh"
args = ["-c", "chown -R 65534:65534 /prometheus"]
}
resources {
cpu = 200
memory = 128
}
lifecycle {
hook = "prestart"
sidecar = false
}
}
Prometheus pack has hardcoded paths to
local/config
that don't exist on the configured volume. Configured volume is not used correctly in the template.The text was updated successfully, but these errors were encountered: