leejones / alfred-grafana-dashboards-workflow

An Alfred workflow to search your Grafana dashboards and open one

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

alfred-grafana-dashboards-workflow

An Alfred workflow to search your Grafana dashboards and select one to open in your default browser.

Installation

Requirements:

  • Go (see go.mod for recommended minimum version)

Clone this repo and run:

make install

Configuration

During installation, set the following required variables:

  • GRAFANA_HOST - required (e.g. https://example.com/)

If your Grafana instance is protected by HTTP basic auth, set the following variables:

  • GRAFANA_BASIC_AUTH_USER - optional
  • GRAFANA_BASIC_AUTH_PASSWORD - optional

Alternatively, you can define your Grafana basic auth username and password in your ~/.netrc file:

machine example.com
login my-username
password my-password

If you don't have a ~/.netrc, you can create one with:

# create the file
touch ~/.netrc
# set the file permissions so that other users cannot read it
chmod 600 ~/.netrc

About

An Alfred workflow to search your Grafana dashboards and open one


Languages

Language:Go 89.6%Language:Makefile 10.4%