Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

env PROMETHEUS_MULTIPROC_DIR is not set or not a directory with Kubernetes #1073

Open
ITS-Luc opened this issue Nov 21, 2024 · 0 comments
Open

Comments

@ITS-Luc
Copy link

ITS-Luc commented Nov 21, 2024

Setting the PROMETHEUS_MULTIPROC_DIR and creating this directory through a Dockerfile does not make the client work, getting the error env PROMETHEUS_MULTIPROC_DIR is not set or not a directory, but only with Kubernetes.

FYI, it works when setting through the ENTRYPOINT of the Dockerfile.

So, this does not work :

ENV PROMETHEUS_MULTIPROC_DIR="/tmp/proc_dir"
RUN mkdir -p "$PROMETHEUS_MULTIPROC_DIR"

But this works :

ENV PROMETHEUS_MULTIPROC_DIR="/tmp/proc_dir"
ENTRYPOINT ["/bin/sh", "-c", "mkdir -p $PROMETHEUS_MULTIPROC_DIR"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant