Coder Social home page Coder Social logo

Comments (4)

geobeau avatar geobeau commented on June 12, 2024

Not sure if it's what you are asking but I made a PR about updating doc for multiprocess run: aeb891b

It's for uwsgi but some of it can still be used for Apache.

from django-prometheus.

korfuri avatar korfuri commented on June 12, 2024

I completely missed that PR, sorry! I just merged it.
@uriklagnes I assume that @geobeau's doc answers your question, please reopen this issue if it doesn't.

from django-prometheus.

uriklagnes avatar uriklagnes commented on June 12, 2024

@geobeau , Will everything simply work seamlessly on multi-process setups?

i.e., if we have > 1 worker processes, will the counters returned by django-prometheus be aggregate across all workers?

I found some documentation: https://github.com/korfuri/django-prometheus/blob/master/documentation/exports.md

It's quite well documented for situations with multiple processes (that change a lot) under uWSGI, but not under Apache or Nginx. Is there any way we can add thos?

from django-prometheus.

geobeau avatar geobeau commented on June 12, 2024

Well I only used multiprocesses for uWSGI so I'm not sure about Apache/Nginx. If you set the env prometheus_multiproc_dir=/path/to/django_metrics in your django process it should work out of the box. So I would recommend that first you try just with that, then address the scalability issues if you have some.

from django-prometheus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.