Code Repositories xandikos / wip/prometheus
Mark process as dead on exit. Jelmer Vernooń≥ 4 years ago
1 changed file(s) with 2 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
4242 registry = CollectorRegistry()
4343 multiprocess.MultiProcessCollector(registry)
4444 app_with_metrics = PrometheusRedirector(app, registry)
45 import atexit
46 atexit.register(lambda: multiprocess.mark_process_dead(os.getpid()))