Prometheus http query client
Project description
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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
drow_http-0.0.1.tar.gz
(2.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file drow_http-0.0.1.tar.gz.
File metadata
- Download URL: drow_http-0.0.1.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6241051737203c475da652a8b60525a801004c5a7dd5bb4dd14bc7b909301693
|
|
| MD5 |
deb3cc7ab18977e60b66e9e62035a259
|
|
| BLAKE2b-256 |
e0ca184e77fcdcac4ffa6dcf40e24cebd2de52a7fadec0b958a08808d2e26de9
|
File details
Details for the file drow_http-0.0.1-py3-none-any.whl.
File metadata
- Download URL: drow_http-0.0.1-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0f14e7d611b5b37855207b9fad5f745fd76217c34badaf037bb6e39941a32afd
|
|
| MD5 |
ff93267e621f5b1e3efbb19d2ee9f8d8
|
|
| BLAKE2b-256 |
bd16a10b41e7f746b3a813245de2bf147eab512bf45a97981401ae9c24bb49f4
|