Skip to main content

Grep through all Grafana entities in the spirit of git-wtf

Project description

https://img.shields.io/badge/Python-2.7,%203.6-green.svg https://img.shields.io/pypi/v/grafana-wtf.svg https://img.shields.io/github/tag/daq-tools/grafana-wtf.svg

grafana-wtf

About

grafana-wtf - grep through all Grafana entities in the spirit of git-wtf.

Synopsis

Search Grafana API for string “weatherbase”.

grafana-wtf find weatherbase

Screenshots

https://user-images.githubusercontent.com/453543/51694547-5c78fd80-2001-11e9-96ea-3fcc2e0fb016.png

Setup

Install grafana-wtf

pip install grafana-wtf

Configure Grafana

Please take these steps to create an API key with your Grafana instance:

  • Go to https://daq.example.org/grafana/org/apikeys.

  • Choose “New API Key”.

    • Key name: grafana-wtf

    • Role: Admin

  • From the output curl -H "Authorization: Bearer eyJrIjoiWHg...dGJpZCI6MX0=" ..., please take note of the Bearer token. This is your Grafana API key.

Running

Before running grafana-wtf, define URL and access token of your Grafana instance:

export GRAFANA_URL=https://daq.example.org/grafana/
export GRAFANA_TOKEN=eyJrIjoiWHg...dGJpZCI6MX0=

Then:

grafana-wtf find weatherbase

Examples

See grafana-wtf examples.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

grafana-wtf-0.3.0.tar.gz (19.8 kB view details)

Uploaded Source

File details

Details for the file grafana-wtf-0.3.0.tar.gz.

File metadata

  • Download URL: grafana-wtf-0.3.0.tar.gz
  • Upload date:
  • Size: 19.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for grafana-wtf-0.3.0.tar.gz
Algorithm Hash digest
SHA256 d44724eef79524fd426536b7766bb1e6232ddb4e0db2316cc8637bc48369bd1f
MD5 ed610d3ebf0559788d81a218f001fe41
BLAKE2b-256 d9f8b5dbae696d7b0d9be854f72a13462725aaee2b08155b3fa6193bb0929e22

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page