prometheus http sdk
Project description
A simple prometheus http sdk
Example
- 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=15
)
print(data)
- cover to dict
data.coverDict()
- cover to json
data.coverJson()
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
Close
Hashes for prometheus_http_sdk-0.0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d6a6949dbda99c3d85da6d077aed2d52ca8b0fe62e4cfd4ea27024024e9e5cb |
|
MD5 | 081604a4bb34cc105fde3fbfb9a13881 |
|
BLAKE2b-256 | f31f229e38464b38f21e13c2c7abb923b86efe9e33204cdead255df28a4f8b1f |