pyslurm-prometheus-exporter
基于 PySlurm 的 Prometheus Exporter SDK,可快速暴露 Slurm 作业、节点、分区等核心指标。
安装
pip install pyslurm-prometheus-exporter
(如需本地构建,可在项目目录执行 python -m build 后安装 dist/ 下生成的 wheel。)
快速开始
pyslurm-exporter --port 9808 --addr 0.0.0.0
访问 http://<host>:9808/metrics 获取指标;若需单节点维度可追加 --node-detail。
若希望以库的方式集成,可在代码中调用:
from slurm_prometheus_exporter import SlurmCollector, start_http_exporter
collector = SlurmCollector(include_node_detail=False)
start_http_exporter(port=9808, collector=collector)
更多示例与说明可参考仓库根目录 docs/prometheus_exporter.md 与 examples/prometheus_exporter.py。
Metadata
Release files for pyslurm-prometheus-exporter 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyslurm_prometheus_exporter-0.1.2.tar.gz | 6.6 kB | Without provenance | Details for pyslurm_prometheus_exporter-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyslurm_prometheus_exporter-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for pyslurm_prometheus_exporter-0.1.2-py3-none-any.whl |
Total release size: 14.3 kB
Release files / pyslurm_prometheus_exporter-0.1.2.tar.gz
| Download URL | pyslurm_prometheus_exporter-0.1.2.tar.gz |
|---|---|
| Size | 6.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d46b4a3c1763ab4643473197f25a04ad7b53464e84974032df2862293b906d5b
|
|
BLAKE2b-256 checksum How to use checksums |
b7da31bf98f8ecff7a3012cd8a39a5e9c91d1f59359c445304ed3118f7766291
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.1
|
Release files / pyslurm_prometheus_exporter-0.1.2-py3-none-any.whl
| Download URL | pyslurm_prometheus_exporter-0.1.2-py3-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1dfae1030342de6c74f29c00c20279a1194cb352d57f2edf34adabcff268b1c5
|
|
BLAKE2b-256 checksum How to use checksums |
a980350ad23bb77f7921749f4850ac5b7557358486d2ce1ad02cd1509240856c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.1
|
Security for pyslurm-prometheus-exporter 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.