An Alfred workflow to search your Grafana dashboards and select one to open in your default browser.
Requirements:
- Go (see
go.mod
for recommended minimum version)
Clone this repo and run:
make install
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
- optionalGRAFANA_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