prometheus / prometheus/client_python

No file is created in the assigned multiprocess directory

Open
#1,058 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
4.4k
Forks
876
Avg merge
8d 4h
Merged PRs (30d)
1

Description

I've been trying to use multiprocessing mode but I'm struggling to make it work properly.
Even though I set the multiprocess directory, no metric writes any files. I've checked for permissions for writing in the directory and they exist.
I'm currently trying to work with a Gauge in the livesum mode. The metric is incrementing properly within the application but no updates are made available to Prometheus. Is anything else other than setting the directory and a multiprocess mode for the Gauge needed that I might be missing?
I'm using Prometheus inside a Docker container with the port forwarding.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported Gauge in livesum mode with the configured multiprocess directory, then inspect the multiprocessing setup and Docker-to-Prometheus connection described in the issue. Done means identifying why no metric files or Prometheus updates appear and documenting a reproducible fix or the missing configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, prometheus, python
Domain
observability-sre
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.