Python client for kibana. Provide ORM & vega rendering of visualizations
🚧 CAREFUL! WORK IN PROGRESS 🚧
What is this?
This is a kibana client written in python. It provides two kind of utilities
- An ORM layer. The goal is to ease the manipulation of kibana objects such as
dashboard. This ORM provides:
- Modeling using elasticsearch_dsl.
- helpers to extract useful information from kibana objects (ex: the index pattern associated to a visualization).
- reverse relationships between index-pattern & visualizations, visualizations & dashboards.
- A translation layer. The goal is to mimic kibana behaviour in terms of data fetching and visualization rendering. Thus, there are two types of translators:
- elastic. It transforms a kibana
visualizationdefinition into an elasticsearch query.
- vega. It transforms a kibana
visualizationand data fetched into a vega spec.
- elastic. It transforms a kibana
The ORM was implemented to ease the automatic creation/update of kibana objects. For instance:
- If you've added an access-control layer on top of kibana to handle multi-tenancy, you may want to automate the creation of kibana indexes and the default index-pattern.
- If an
index-patterncorrespond to a table defined somewhere else (like a sql table), you may want to automate the creation of
- If a
dashboardis defined in another database (like a sql db), you may want to delete the kibana object if the sql object is deleted.
The translation layer was implemented to progressively get rid of kibana. Even if kibana is a fantastic tool, it's more meant for internal use than for an integration in another application.
The elastic translator aims to generate almost identical queries to elasticsearch as kibana.
The vega translator tries to provide an equivalent in vega of kibana visualisation. Currently, it supports a limited set of options. Vega was chosen as it provide a complex but almost exhaustive visualization grammar. Vega'sapi allows the rendering of visualizations both on the backend and frontend and has bridges with the main js frameworks (react, vue…).
- Automatic creation of index pattern
- Elastic translator:
- Handle more bucket type: ipv4, significatn terms etc
- Handle more metrics: top hit, sibling etc
- Vega translator:
- Handle more visualization types (gauge, metric, map etc)
- For now, only elk stack 6.7.1 is handled.
Licensed under MIT license.
- Add support for duration formating for axes that represent a duration serie.
- Fix packaging
- Clip line when y-axis extent is set
- Support vega viz without data.url attribute
- Fix none type handling on datasweet eval
- Fix terms custom metric
- Fix nan values in bucket due to datasweet formula
- Fix case when a datasweet formula depends on other datasweet formula
- Add support for vega visualizations
- Fix Add support for terms sorting by custom metric
format_from_intervalfor week intervals
- Handle Category axe rotation
- Handle ZeroDivisionError in datasweet
BaseDocument.json_attrsto simplify parsing of some fields (ex: Dashboard.panelsJSON)
- Add datasweet support
- Add support for
- First version
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size pybana-0.6.0-py3-none-any.whl (32.0 kB)||File type Wheel||Python version py3||Upload date||Hashes View|
|Filename, size pybana-0.6.0.tar.gz (29.0 kB)||File type Source||Python version None||Upload date||Hashes View|