galaxy.job_metrics package
This module defines the job metrics collection framework for Galaxy jobs.
The framework consists of two parts - the JobMetrics
class and
individual JobInstrumenter
plugins.
A JobMetrics
object reads any number of plugins from a configuration
source such as an XML file, a YAML file, or a dictionary.
Each JobInstrumenter
plugin object describes how to inject a bits
of shell code into a job scripts (before and after tool commands run) and then
collect the output of these from a job directory.
- class galaxy.job_metrics.JobInstrumenter(plugin_classes, plugins_source, **kwargs)[source]
Bases:
JobInstrumenterI
- class galaxy.job_metrics.Safety(value)[source]
Bases:
Enum
An enumeration.
- UNSAFE = 2
- POTENTIALLY_SENSITVE = 4
- SAFE = 6
Subpackages
- galaxy.job_metrics.instrumenters package
InstrumentPlugin
- Submodules
- galaxy.job_metrics.instrumenters.cgroup module
- galaxy.job_metrics.instrumenters.core module
- galaxy.job_metrics.instrumenters.cpuinfo module
- galaxy.job_metrics.instrumenters.env module
- galaxy.job_metrics.instrumenters.hostname module
- galaxy.job_metrics.instrumenters.meminfo module
- galaxy.job_metrics.instrumenters.uname module
Submodules
galaxy.job_metrics.formatting module
Utilities related to formatting job metrics for human consumption.