update docs and remove packaging
This commit is contained in:
parent
ef33d3e38b
commit
2ba10480b7
@ -1 +1,5 @@
|
||||
Various parts copied/adapted from https://github.com/prometheus/client_python (Apache License 2.0).
|
||||
# prometheus_rus
|
||||
|
||||
Library to build prometheus metric collection.
|
||||
|
||||
See `test.py` for a small example.
|
||||
|
5
debian/changelog
vendored
5
debian/changelog
vendored
@ -1,5 +0,0 @@
|
||||
python-prometheus-client-rus (0.1.0) stable; urgency=medium
|
||||
|
||||
* Initial release
|
||||
|
||||
-- Kilian Krause <krause@rus.uni-stuttgart.de> Thu, 10 Dec 2019 12:24:12 +0000
|
33
debian/control
vendored
33
debian/control
vendored
@ -1,33 +0,0 @@
|
||||
Source: python-prometheus-client-rus
|
||||
Maintainer: Kilian Krause <krause@rus.uni-stuttgart.de>
|
||||
Uploaders: Stefan Bühler <stefan.buehler@tik.uni-stuttgart.de>
|
||||
Section: python
|
||||
Priority: optional
|
||||
Build-Depends: debhelper-compat (= 12),
|
||||
Build-Depends-Indep: dh-python,
|
||||
python3-all,
|
||||
python3-decorator (>= 4.0.10),
|
||||
python3-pytest,
|
||||
python3-setuptools,
|
||||
Standards-Version: 4.4.1
|
||||
|
||||
Package: python3-prometheus-client-rus
|
||||
Architecture: all
|
||||
Depends: python3-decorator (>= 4.0.10-1),
|
||||
${misc:Depends},
|
||||
${python3:Depends},
|
||||
Description: Python 3 client for the Prometheus monitoring system
|
||||
This library provides an API for exporting metrics from a Python 3 application
|
||||
It provides classes for the metric types, and an HTTP server to expose the
|
||||
metrics to Prometheus.
|
||||
.
|
||||
When using Linux, the process CPU, RAM, file descriptor usage and start time
|
||||
will also be exported.
|
||||
.
|
||||
Along with the HTTP server to expose metrics, you can also write the metrics
|
||||
to a text file to be exported by the prometheus-node-exporter, or push them to
|
||||
the prometheus-pushgateway.
|
||||
.
|
||||
This library also includes support for re-exporting Graphite metrics to
|
||||
Prometheus, custom collectors to proxy metrics for other systems and a parser
|
||||
for the Prometheus text format.
|
27
debian/copyright
vendored
27
debian/copyright
vendored
@ -1,27 +0,0 @@
|
||||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||
Upstream-Name: Prometheus Python Client (Uni Stuttgart version)
|
||||
Source: https://github.tik.uni-stuttgart.de/NKS/python-prometheus
|
||||
|
||||
Files: *
|
||||
Copyright: 2019 Stefan Bühler <stefan.buehler@tik.uni-stuttgart.de
|
||||
License: Apache-2.0
|
||||
|
||||
Files: debian/*
|
||||
Copyright: 2019 Kilian Krause <krause@rus.uni-stuttgart.de>
|
||||
License: Apache-2.0
|
||||
|
||||
License: Apache-2.0
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
.
|
||||
https://www.apache.org/licenses/LICENSE-2.0
|
||||
.
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
.
|
||||
On Debian systems, the complete text of the Apache version 2.0 license
|
||||
can be found in "/usr/share/common-licenses/Apache-2.0".
|
6
debian/gbp.conf
vendored
6
debian/gbp.conf
vendored
@ -1,6 +0,0 @@
|
||||
[DEFAULT]
|
||||
debian-branch = master
|
||||
|
||||
[buildpackage]
|
||||
dist = DEP14
|
||||
upstream-tag = upstream/%(version)s
|
1
debian/python3-prometheus-client-rus.docs
vendored
1
debian/python3-prometheus-client-rus.docs
vendored
@ -1 +0,0 @@
|
||||
README.md
|
16
debian/rules
vendored
16
debian/rules
vendored
@ -1,16 +0,0 @@
|
||||
#!/usr/bin/make -f
|
||||
|
||||
export DH_VERBOSE=1
|
||||
export PYBUILD_NAME=prometheus-client-rus
|
||||
export PYBUILD_SYSTEM=distutils
|
||||
|
||||
# Set these, such that pybuild does not set them
|
||||
export http_proxy=
|
||||
export https_proxy=
|
||||
|
||||
%:
|
||||
dh $@ --with python3 --buildsystem=pybuild
|
||||
|
||||
override_dh_auto_test:
|
||||
# no test for now
|
||||
true
|
1
debian/source/format
vendored
1
debian/source/format
vendored
@ -1 +0,0 @@
|
||||
3.0 (native)
|
@ -8,12 +8,12 @@ version = "0.2.0"
|
||||
authors = [
|
||||
{name = "Stefan Bühler", email = "stefan.buehler@tik.uni-stuttgart.de"},
|
||||
]
|
||||
description = "Library to build prometheus metric collection."
|
||||
license = {file = "LICENSE"}
|
||||
classifiers = [
|
||||
"Private :: Do Not Upload",
|
||||
"License :: OSI Approved :: MIT License",
|
||||
]
|
||||
dynamic = ["version", "description"]
|
||||
|
||||
requires-python = "~=3.11"
|
||||
dependencies = []
|
||||
|
9
test.py
9
test.py
@ -1,4 +1,9 @@
|
||||
from prometheus_rus import CounterFamily, GaugeFamily, SummaryFamily, Registry
|
||||
from prometheus_rus import (
|
||||
CounterFamily,
|
||||
GaugeFamily,
|
||||
Registry,
|
||||
SummaryFamily,
|
||||
)
|
||||
|
||||
registry = Registry()
|
||||
|
||||
@ -24,4 +29,4 @@ s.observe(1, timestamp=None)
|
||||
s.observe(2, timestamp=None)
|
||||
s.observe(3)
|
||||
|
||||
print(registry.collect())
|
||||
print(registry.collect(), end="")
|
||||
|
Loading…
x
Reference in New Issue
Block a user