All Projects → weaveworks → Grafanalib

weaveworks / Grafanalib

Licence: apache-2.0
Python library for building Grafana dashboards

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Grafanalib

Sdk
Library for using Grafana' structures in Go programs and client for Grafana REST API.
Stars: ✭ 193 (-83.56%)
Mutual labels:  monitoring, grafana, dashboards
Grafana Flowcharting
Flowcharting, plugin for Grafana to create complexe visio's draws style like technical architectures, floorplan, diagrams, hierarchical schema based on draw.io
Stars: ✭ 463 (-60.56%)
Mutual labels:  monitoring, grafana
Wizzy
Manage & automate Grafana with easy wizzy
Stars: ✭ 461 (-60.73%)
Mutual labels:  grafana, dashboards
Prometheus
Kubernetes Setup for Prometheus and Grafana
Stars: ✭ 824 (-29.81%)
Mutual labels:  monitoring, grafana
Awesome Monitoring
INFRASTRUCTURE、OPERATION SYSTEM and APPLICATION monitoring tools for Operations.
Stars: ✭ 356 (-69.68%)
Mutual labels:  monitoring, grafana
Dockprom
Docker hosts and containers monitoring with Prometheus, Grafana, cAdvisor, NodeExporter and AlertManager
Stars: ✭ 4,489 (+282.37%)
Mutual labels:  monitoring, grafana
Falcon Plus
An open-source and enterprise-level monitoring system.
Stars: ✭ 6,770 (+476.66%)
Mutual labels:  monitoring, grafana
Grabana
User-friendly Go library for building Grafana dashboards
Stars: ✭ 313 (-73.34%)
Mutual labels:  grafana, dashboards
Azure Grafana Dashboard Templates
Grafana dashboard templates for Azure
Stars: ✭ 31 (-97.36%)
Mutual labels:  monitoring, grafana
Pgwatch2
PostgreSQL metrics monitor/dashboard
Stars: ✭ 960 (-18.23%)
Mutual labels:  monitoring, grafana
Ecs Monitor
A simple monitoring solution for Amazon's Elastic Container Service (ECS)
Stars: ✭ 40 (-96.59%)
Mutual labels:  monitoring, dashboards
Kubegraf
Grafana-plugin for k8s' monitoring
Stars: ✭ 345 (-70.61%)
Mutual labels:  monitoring, grafana
Ansible Grafana
Platform for analytics and monitoring
Stars: ✭ 340 (-71.04%)
Mutual labels:  monitoring, grafana
Cluster Monitoring
Cluster monitoring stack for clusters based on Prometheus Operator
Stars: ✭ 453 (-61.41%)
Mutual labels:  monitoring, grafana
Grafana On Raspberry
Grafana packages for raspberry pi (armv6/armv7) and aarch64/arm64
Stars: ✭ 318 (-72.91%)
Mutual labels:  monitoring, grafana
Swagger Stats
API Observability. Trace API calls and Monitor API performance, health and usage statistics in Node.js Microservices.
Stars: ✭ 559 (-52.39%)
Mutual labels:  monitoring, grafana
Grafana Zabbix Dashboards
Grafana dashboards for Zabbix
Stars: ✭ 50 (-95.74%)
Mutual labels:  monitoring, grafana
Questdb
An open source SQL database designed to process time series data, faster
Stars: ✭ 7,544 (+542.59%)
Mutual labels:  monitoring, grafana
Hastic Server
Hastic data management server for analyzing patterns and anomalies from Grafana
Stars: ✭ 292 (-75.13%)
Mutual labels:  monitoring, grafana
Hana sql exporter
SAP Hana SQL Exporter for Prometheus
Stars: ✭ 18 (-98.47%)
Mutual labels:  monitoring, grafana

=============================== Getting Started with grafanalib

.. image:: https://readthedocs.org/projects/grafanalib/badge/?version=latest :alt: Documentation Status :scale: 100% :target: https://grafanalib.readthedocs.io/en/latest/?badge=latest

Do you like Grafana <http://grafana.org/>_ but wish you could version your dashboard configuration? Do you find yourself repeating common patterns? If so, grafanalib is for you.

grafanalib lets you generate Grafana dashboards from simple Python scripts.

How it works

Take a look at the examples directory <https://github.com/weaveworks/grafanalib/blob/master/grafanalib/tests/examples/>, e.g. this dashboard <https://github.com/weaveworks/grafanalib/blob/master/grafanalib/tests/examples/example.dashboard.py> will configure a dashboard with a single row, with one QPS graph broken down by status code and another latency graph showing median and 99th percentile latency.

In the code is a fair bit of repetition here, but once you figure out what works for your needs, you can factor that out. See our Weave-specific customizations <https://github.com/weaveworks/grafanalib/blob/master/grafanalib/weave.py>_ for inspiration.

You can read the entire grafanlib documentation on readthedocs.io <https://grafanalib.readthedocs.io/>_.

Getting started

grafanalib is just a Python package, so:

.. code-block:: console

$ pip install grafanalib

Generate the JSON dashboard like so:

.. code-block:: console

$ curl -o example.dashboard.py https://raw.githubusercontent.com/weaveworks/grafanalib/master/grafanalib/tests/examples/example.dashboard.py $ generate-dashboard -o frontend.json example.dashboard.py

Support

This library is in its very early stages. We'll probably make changes that break backwards compatibility, although we'll try hard not to.

grafanalib works with Python 3.6 through 3.9.

Developing

If you're working on the project, and need to build from source, it's done as follows:

.. code-block:: console

$ virtualenv .env $ . ./.env/bin/activate $ pip install -e .

Configuring Grafana Datasources

This repo used to contain a program gfdatasource for configuring Grafana data sources, but it has been retired since Grafana now has a built-in way to do it. See https://grafana.com/docs/administration/provisioning/#datasources

Community

We'd like you to join the grafanalib community! Talk to us on Slack (see the links), or join us for one of our next meetings):

  • Meetings take place monthly: third Friday of the month 15:00 UTC
  • https://weaveworks.zoom.us/j/96824669060
  • Meeting minutes and agenda <https://docs.google.com/document/d/1JxrSszyPHYhNbJDWYZehRKv6AO4U-zIBhuNmYQVOIHo/edit>_ (includes links to meeting recordings)

We follow the CNCF Code of Conduct </docs/CODE_OF_CONDUCT.rst>_.

Getting Help

If you have any questions about, feedback for or problems with grafanalib:

  • Read the documentation at https://grafanalib.readthedocs.io
  • Invite yourself to the Weave Users Slack <https://slack.weave.works/>_.
  • Ask a question on the #grafanalib <https://weave-community.slack.com/messages/grafanalib/>_ slack channel.
  • File an issue <https://github.com/weaveworks/grafanalib/issues/new>_.

Your feedback is always welcome!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].