Hello Mayank! When I run prometheus with docker the way you showed it at 4:42 I get this error message: caller=query_logger.go:93 level=error component=activeQueryTracker msg="Error opening query log file" file=/prometheus/queries.active err="open /prometheus/queries.active: permission denied" panic: Unable to create mmap-ed active query log Any idea why?
@mayanksoni1219 ай бұрын
This looks like the folder you are mounting has permission issues and the user inside the container is unable to read/write from that. You can try two ways to resolve it. First, try to give complete read/write permission to the Prometheus folder, and then try the mount. The command for this in Linux is "chmod 777 -R folder_name". Second, try to achieve persistence using docker volume. Something like "docker run -v prometheus-data:/prometheus ... prom/prometheus".