Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add nvitop-exporter. #28827

Merged
merged 2 commits into from
Jan 27, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions recipes/nvitop-exporter/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{% set name = "nvitop-exporter" %}
{% set version = "1.4.0" %}

package:
name: {{ name|lower }}
version: {{ version }}

source:
url: https://pypi.org/packages/source/{{ name[0] }}/{{ name|replace("-", "_") }}/{{ name|replace("-", "_") }}-{{ version }}.tar.gz
sha256: 70b1793f4c23b2c703216422816e1916a6162d78b8035ff9183301d5d098e86d

build:
# Package `windows-curses` is not available yet
noarch: python
entry_points:
- nvitop-exporter = nvitop_exporter.cli:main
script: {{ PYTHON }} -m pip install . -vv
number: 0

requirements:
host:
- pip
- setuptools
- python {{ python_min }}
run:
- nvitop =={{ version }}
- prometheus_client >=0.4.0
- python >={{ python_min }}

test:
imports:
- nvitop
- nvitop_exporter
commands:
- pip check
- nvitop-exporter --help
requires:
- pip
- python {{ python_min }}

about:
home: https://github.com/XuehaiPan/nvitop
summary: Prometheus exporter built on top of `nvitop`.
dev_url: https://github.com/XuehaiPan/nvitop
doc_url: https://nvitop.readthedocs.io
license: Apache-2.0
license_family: Apache
license_file:
- LICENSE

extra:
recipe-maintainers:
- XuehaiPan
Loading