prometheus http sdk
Project description
A simple prometheus http sdk
Example
- import
from prometheus_http_sdk.prometheus_http import PrometheusApi
- get data
data = PrometheusApi("http://prometheus").query_range(
query=":node_cpu_saturation_load1:",
range_time="6h",
)
print(data)
- get all data
data = PrometheusApi("http://prometheus").query_all(
query=":node_cpu_saturation_load1:",
step=60,
end=time.time()-600
)
print(data)
- convert to dict
data.convertDict()
- convert to dict with tensorflow type
data.convertDict(tfType=True)
- convert to json
data.convertJson()
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
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 prometheus_http_sdk-0.0.4-py2.py3-none-any.whl.
File metadata
- Download URL: prometheus_http_sdk-0.0.4-py2.py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
51c0f629e53f9e1ad41c398517fb7b7b79bc8bd50eb68445eadc9ea48edcb016
|
|
| MD5 |
0855715ae6a967dd516c7c84a101f9ff
|
|
| BLAKE2b-256 |
1e3f2ae576f3eda0c4dfe6886cacbef052462125b6406d4b208f9a8363c49706
|