prometheus / prometheus/client_python
Does GCCollector work in multiprocess mode?
Ninguém assumiu esta issue ainda.
- Linguagem predominante
- Python
- Estrelas
- 4.4k
- Forks
- 876
- Merge médio
- 8d 4h
- PRs com merge (30d)
- 1
Descrição
Hi all,
First of all sorry if the question is kinda stupid, I would not ask if the answer was evident somewhere to me, but I'm interested to find out does GC reporting works in multiprocess (gunicorn) mode of work. As when I have used this client in multiprocess mode with gunicorn I did not get any metrics about GC at all out of the box, I needed to write my own metric.
I took a look through old issues at this project and managed to find some related to this problem:
And I saw that implementation of GCCollector uses get_stats() from Python module, there is no custom callback in this code (lock is still there to manage files) so I'm somewhat confused does this work or not, because, it seems to me that this gc.get_stats can be used as any other metric where you would report GC metrics per PID (this is little too much of data but still) and just for example set gauge to some value when reporting.
AM I missing something here or?
Thank you :)
Guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Direção de pesquisa
Comece inspecionando a implementação de GCCollector e o comportamento de gc.get_stats() do Python no modo multiprocess do gunicorn. Compare os resultados com a issue relacionada #322 e determine se é esperado que GC metrics funcionem; documente o comportamento suportado ou identifique a alteração específica necessária.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- python
- Domínio
- observability-sre
- Tipo de issue
- Bug
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Status de atividade
- Estagnada
- Clareza
- Precisa de esclarecimento
- Facilidade para iniciantes
- 25/100