Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

ITS-Luc started this conversation in Show and tell
Discussion options

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"]
You must be logged in to vote

Replies: 1 comment

Comment options

Moved to a discussion as it is not an issue with the library, but a good piece of information for those deploying into Kubernetes.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Converted from issue

This discussion was converted from issue #1073 on December 03, 2024 14:50.

AltStyle によって変換されたページ (->オリジナル) /