Drow HTTP
Prometheus http query client of Python.
Implemented prometheus http api: https://prometheus.io/docs/prometheus/latest/querying/api/
install
pip install drow-http
usage
get client:
from drow_http import get_client
client = get_client("http://127.0.0.1:9090")
query as vector:
result = client.query_as_vector("http_requests_total")
for s in result.series:
print(s.metric, s.value.timestamp, s.value.value)
query range:
import time
end = time.time()
start = end - 60 * 60
result = client.query_range("http_requests_total", start=start, end=end)
for s in result.series:
print(s.metric)
for p in s.values:
print(p.timestamp, p.value)
Release files for drow-http 0.0.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 | |
|---|---|---|---|
| drow_http-0.0.2.tar.gz | 2.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| drow_http-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.0 kB
Release files / drow_http-0.0.2.tar.gz
| Download URL | drow_http-0.0.2.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9d241d4041ac43bf2ce890525394e21e590b2db533072032cec42f6ab0af0a08
|
|
BLAKE2b-256 checksum How to use checksums |
4a50070aa948fc2295ecb73622813e85b8aa3462916ccae4f9352c5bf6ae538a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / drow_http-0.0.2-py3-none-any.whl
| Download URL | drow_http-0.0.2-py3-none-any.whl |
|---|---|
| Size | 3.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
07ccfcffe583530b1d609c54c23bf0deb83df2328059208417b897decf155890
|
|
BLAKE2b-256 checksum How to use checksums |
5a87c9499f17dca7e17dbb5c5eeed734c8e1428a5b50fa5d366aaee55361d340
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|