Hey folks. 
I am setting up multi-process mode for my application and wanted to if it 
is necessary to call mark_process_dead if my project does not use gauges. 
Based on the prometheus source code it looks like mark_process_dead only 
removes the files related to the live gauge metric.
```
def mark_process_dead(pid, path=None):
    """Do bookkeeping for when one process dies in a multi-process setup."""
    if path is None:
        path = os.environ.get('PROMETHEUS_MULTIPROC_DIR', 
os.environ.get('prometheus_multiproc_dir'))
    for mode in _LIVE_GAUGE_MULTIPROCESS_MODES:
        for f in glob.glob(os.path.join(path, f'gauge_{mode}_{pid}.db')):
            os.remove(f)
``` 

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/prometheus-users/832739e2-f3f9-4d73-a5e2-58c025eba54an%40googlegroups.com.

Reply via email to