Upgrade package to version 0.15.0
This commit is contained in:
parent
9f8c644e14
commit
ffff979ce3
Binary file not shown.
BIN
prometheus_client-0.15.0.tar.gz
Normal file
BIN
prometheus_client-0.15.0.tar.gz
Normal file
Binary file not shown.
@ -1,22 +1,14 @@
|
|||||||
%global _empty_manifest_terminate_build 0
|
%global _empty_manifest_terminate_build 0
|
||||||
Name: python-prometheus-client
|
Name: python-prometheus-client
|
||||||
Version: 0.13.1
|
Version: 0.15.0
|
||||||
Release: 1
|
Release: 1
|
||||||
Summary: Python client for the Prometheus monitoring system.
|
Summary: Python client for the Prometheus monitoring system.
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
URL: https://github.com/prometheus/client_python
|
URL: https://github.com/prometheus/client_python
|
||||||
Source0: https://files.pythonhosted.org/packages/a0/e4/af0c31d69c985e83774f5b3ee1b0e28f129a7606e3cfeb3e08b6a1fe8a12/prometheus_client-0.13.1.tar.gz
|
Source0: https://files.pythonhosted.org/packages/ae/ae/04b27ea04f67f91f10b1379d8fd6729c41ac0bcefbb0af603850b3fa32e0/prometheus_client-0.15.0.tar.gz
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%description
|
%description
|
||||||
Prometheus Python ClientThe official Python client for [Prometheus](). Three
|
The official Python client for Prometheus.
|
||||||
Step Demo**One**: Install the client:pip install prometheus-client **Two**:
|
|
||||||
Paste the following into a Python interpreter: python from prometheus-client
|
|
||||||
import start_http_server, Summary import random import time Create a metric to
|
|
||||||
track time spent and requests made. REQUEST_TIME
|
|
||||||
Summary('request_processing_seconds', 'Time spent processing request') Decorate
|
|
||||||
function with metric. @REQUEST_TIME.time() def process_request(t): """A dummy
|
|
||||||
function that takes some time.""" time.sleep(t)if __name__ '__main__': Start up
|
|
||||||
the server to expose the metrics.
|
|
||||||
|
|
||||||
%package -n python3-prometheus-client
|
%package -n python3-prometheus-client
|
||||||
Summary: Python client for the Prometheus monitoring system.
|
Summary: Python client for the Prometheus monitoring system.
|
||||||
@ -33,39 +25,13 @@ BuildRequires: python3-twisted
|
|||||||
# General requires
|
# General requires
|
||||||
Requires: python3-twisted
|
Requires: python3-twisted
|
||||||
%description -n python3-prometheus-client
|
%description -n python3-prometheus-client
|
||||||
Prometheus Python ClientThe official Python client for [Prometheus](). Three
|
The official Python client for Prometheus.
|
||||||
Step Demo**One**: Install the client:pip install prometheus-client **Two**:
|
|
||||||
Paste the following into a Python interpreter: python from prometheus-client
|
|
||||||
import start_http_server, Summary import random import time Create a metric to
|
|
||||||
track time spent and requests made. REQUEST_TIME
|
|
||||||
# General requires
|
|
||||||
BuildRequires: python3-twisted
|
|
||||||
# General requires
|
|
||||||
Requires: python3-twisted
|
|
||||||
%description -n python3-prometheus-client
|
|
||||||
Prometheus Python ClientThe official Python client for [Prometheus](). Three
|
|
||||||
Step Demo**One**: Install the client:pip install prometheus-client **Two**:
|
|
||||||
Paste the following into a Python interpreter: python from prometheus-client
|
|
||||||
import start_http_server, Summary import random import time Create a metric to
|
|
||||||
track time spent and requests made. REQUEST_TIME
|
|
||||||
Summary('request_processing_seconds', 'Time spent processing request') Decorate
|
|
||||||
function with metric. @REQUEST_TIME.time() def process_request(t): """A dummy
|
|
||||||
function that takes some time.""" time.sleep(t)if __name__ '__main__': Start up
|
|
||||||
the server to expose the metrics.
|
|
||||||
|
|
||||||
%package help
|
%package help
|
||||||
Summary: Python client for the Prometheus monitoring system.
|
Summary: Python client for the Prometheus monitoring system.
|
||||||
Provides: python3-prometheus-client-doc
|
Provides: python3-prometheus-client-doc
|
||||||
%description help
|
%description help
|
||||||
Prometheus Python ClientThe official Python client for [Prometheus](). Three
|
The official Python client for Prometheus.
|
||||||
Step Demo**One**: Install the client:pip install prometheus-client **Two**:
|
|
||||||
Paste the following into a Python interpreter: python from prometheus-client
|
|
||||||
import start_http_server, Summary import random import time Create a metric to
|
|
||||||
track time spent and requests made. REQUEST_TIME
|
|
||||||
Summary('request_processing_seconds', 'Time spent processing request') Decorate
|
|
||||||
function with metric. @REQUEST_TIME.time() def process_request(t): """A dummy
|
|
||||||
function that takes some time.""" time.sleep(t)if __name__ '__main__': Start up
|
|
||||||
the server to expose the metrics.
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n prometheus_client-%{version}
|
%autosetup -n prometheus_client-%{version}
|
||||||
@ -112,6 +78,9 @@ mv %{buildroot}/doclist.lst .
|
|||||||
%{_docdir}/*
|
%{_docdir}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Nov 08 2022 jiangxinyu <jiangxinyu@kylinos.cn> - 0.15.0-1
|
||||||
|
- Upgrade package to version 0.15.0
|
||||||
|
|
||||||
* Mon Jun 06 2022 renliang <renliang@uniontech.com> - 0.13.1-1
|
* Mon Jun 06 2022 renliang <renliang@uniontech.com> - 0.13.1-1
|
||||||
- Update package python3-prometheus-client to version 0.13.1
|
- Update package python3-prometheus-client to version 0.13.1
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user