Customs: Inspect and Report Python Imports (customs) v1.0.0
R. C. Thomas, Laurie A. Stephey · OSTI OAI (U.S. Department of Energy Office of Scientific and Technical Information) · 2021
We have developed a simple, minimally invasive monitoring framework that enables us to capture key metrics from Python user processes. This is part of a larger effort to collect data across our entire data-intensive science workload at NERSC. The approach for Python is inspired by a similar framework developed for Blue Waters at NCSA. Both frameworks leverage standard Python features, sitecustomize and atexit, to capture Python imports of interest and other job data. The customs package decomposes the information capture into separate inspection and reporting interfaces.