kairosdb - Python library to interface the KairosDB REST API (kairosdb.github.io)
Author: Denis ‘jawa’ Pompilio <denis.pompilio@gmail.com>
Contact: Denis ‘jawa’ Pompilio <denis.pompilio@gmail.com>
This package provides a simple python library to interface the KairosDB REST API. Please read also: https://kairosdb.github.io/docs/build/html/restapi/index.html.
Installation
Install python-kairosdb module from https://pypi.python.org:
pip install python-kairosdb
Install python-kairosdb module from sources:
python setup.py install
Debian binary packages are also available. See the packaging directory for more information.
Documentation
Documentation is available online: http://python-kairosdb.readthedocs.io/en/latest/index.html
Examples
import kairosdb
if __name__ == "__main__":
KDB_CLIENT = kairosdb.client.KairosDBAPIClient(
api_endpoint="https://kdb.domain.tld:4443/api/v1")
KDB_API = kairosdb.KairosDBAPI(KDB_CLIENT)
print(KDB_API.version)
print(KDB_API.health_status)
print(KDB_API.health_check)
print(KDB_API.metricnames)
print(KDB_API.tagnames)
print(KDB_API.query_metrics({
"metrics": [{
"name": "my_metric",
"group_by": [{"name": "tag", "tags": ['host']}],
"aggregators": [{
"name": "avg",
"align_sampling": True,
"sampling": {"value": 30, "unit": "seconds"}
}]
}],
"cache_time": 0,
"start_relative": {"value": "2", "unit": "hours"}
})
License
MIT LICENSE (see LICENSE file)
Metadata
Release files for python-kairosdb 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| python-kairosdb-0.2.1.tar.gz | 5.6 kB | Without provenance | Details |
Release files / python-kairosdb-0.2.1.tar.gz
| Download URL | python-kairosdb-0.2.1.tar.gz |
|---|---|
| Size | 5.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
54733982d5b9f3d13ff4ba7fb6059fc665741c7ed534ebda2a9baa9f26245221
|
|
BLAKE2b-256 checksum How to use checksums |
9a5892843c1f2d2a7136acb2493d9ec0e5d56d1409ec8e1b678a6b1be299aa08
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for python-kairosdb 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.