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=15
)
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
Close
Hashes for prometheus_http_sdk-0.0.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2389c737d1ff0ee9c98c409f2374cabbcf060b7d71f557d68b30a075238bb833 |
|
MD5 | 697266996ed652df65b3aada224b8cc1 |
|
BLAKE2b-256 | d23ea70b5dc9747c14a6b6dd7ff51c2bfa326b8a4c4986b50e9e66c0ce0a9f9e |