2022-06-17 08:39:35 +00:00
|
|
|
# Grafana Find
|
|
|
|
Search for a string both in the grafana queries and in the variables.
|
|
|
|
|
|
|
|
## Requirements
|
|
|
|
|
|
|
|
* Git
|
|
|
|
* Grafana
|
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
|
|
|
It's recommended to install the package globally.
|
|
|
|
|
|
|
|
```text
|
|
|
|
# npm i grafana-find
|
|
|
|
$ gafana-find <command>
|
|
|
|
```
|
|
|
|
|
|
|
|
You can also install locally and use the *npx* command to execute it.
|
|
|
|
|
|
|
|
```text
|
|
|
|
$ npm install grafana-find
|
|
|
|
$ npx grafana-find <command>
|
|
|
|
```
|
|
|
|
|
2022-06-17 12:45:02 +00:00
|
|
|
Create a file ".grafana-find.json" with this content:
|
|
|
|
|
|
|
|
```text
|
|
|
|
{
|
|
|
|
"grafanaUrl": "<server>"
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
2022-06-17 08:39:35 +00:00
|
|
|
## How to use
|
|
|
|
|
|
|
|
Execute *grafana-find* with the desired command.
|
|
|
|
|
|
|
|
```text
|
|
|
|
$ [npx] grafana-find [-u|--user <string>] [-s|--string <string>]
|
|
|
|
[-h|--help] <command> [<args>]
|
|
|
|
```
|