Create Grid layouts for Grafana dashboards.
Project description
Grafana Gridder
The Grafana Gridder is a grafanalib wrapper designed to simplify the organization and layout of panels within Grafana dashboards. It provides an intuitive way to define and position groups of panels in a grid layout, making it easier to create visually appealing and organized dashboards.
Features
- Panel Grouping: Define groups of panels that can be positioned together within a dashboard.
- Flexible Layout: Supports flexible grid layouts, allowing panels to be arranged in rows with customizable widths and heights.
- Vertical Positioning: Easily position panel groups vertically within a dashboard.
- Intuitive API: Simple and easy-to-use API for defining panel layouts and positioning.
Example
from grafanalib.core import Dashboard, TimeSeries, BarGauge, RowPanel
from grafana_gridder import PanelGroup, PanelPositioning, PanelSize
# Define panel groups
panel_group1 = PanelGroup(
layout=[[PanelSize.LARGE, PanelSize.MEDIUM], [PanelSize.SMALL, PanelSize.SMALL]],
panels=[TimeSeries(), TimeSeries(), BarGauge(), BarGauge()])
panel_group2 = PanelGroup(
layout=[PanelSize.SMALL, PanelSize.MEDIUM, PanelSize.MEDIUM],
panels=[TimeSeries(), TimeSeries(), TimeSeries()],
row=RowPanel(title="RowTitle"))
# Create panel positioning
positioning = PanelPositioning(panel_groups=[panel_group1, panel_group2])
# Generate dashboard
dashboard = Dashboard(
title='My Dashboard',
panels=positioning.panels
)
Installation
You can install the Grafana Panel Layout Wrapper using pip:
pip install grafana_gridder
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 grafana_gridder-0.1.0.tar.gz.
File metadata
- Download URL: grafana_gridder-0.1.0.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0f9c8cb06094c2bb81db707ba8db50472dc8954229ece719bbe05caf16573137
|
|
| MD5 |
f20f7720f2b3c892a43b64f15160ce93
|
|
| BLAKE2b-256 |
84444176d2609cfc3a505d3edc880f78fc60625b3b6c1cf4bdf022f0130ca10d
|
File details
Details for the file grafana_gridder-0.1.0-py3-none-any.whl.
File metadata
- Download URL: grafana_gridder-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d159d37ec5228960c394b598e4271fe0bb6d1aae500c641d86d9a8e594556e5d
|
|
| MD5 |
4d1f86fb530a07041af5953fafa01dd3
|
|
| BLAKE2b-256 |
307178eb34b8dc5a59139f29c7a6574f199b4817996fb26685eb2dd422d8c56e
|