prometheus / prometheus/client_python
No file is created in the assigned multiprocess directory
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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