@@ -93,16 +93,20 @@ Please take these steps to create an API key with your Grafana instance:
93
93
please take note of the Bearer token. This is your Grafana API key.
94
94
95
95
96
- *******
97
- Running
98
- *******
96
+ *****
97
+ Usage
98
+ *****
99
99
100
100
Before running ``grafana-wtf ``, define URL and access token of your Grafana instance::
101
101
102
102
export GRAFANA_URL=https://daq.example.org/grafana/
103
103
export GRAFANA_TOKEN=eyJrIjoiWHg...dGJpZCI6MX0=
104
104
105
- Then::
105
+
106
+ Searching for strings
107
+ =====================
108
+
109
+ Find the string ``weatherbase `` throughout all dashboards and data sources::
106
110
107
111
grafana-wtf find weatherbase
108
112
@@ -112,10 +116,31 @@ Then::
112
116
When running it with the ``--drop-cache `` option, it will drop its cache upfront.
113
117
114
118
119
+ Replacing strings
120
+ =================
121
+
122
+ Replace all occurrences of ``ldi_v2 `` with ``ldi_v3 `` within dashboard with
123
+ UID ``_JJ22OZZk ``::
124
+
125
+ grafana-wtf --select-dashboard=_JJ22OZZk replace ldi_v2 ldi_v3
126
+
127
+
128
+ Displaying changes / revision logs
129
+ ==================================
130
+
131
+ Watching out for recent editing activity on any dashboards?::
132
+
133
+ # Display 50 most recent changes across all dashboards.
134
+ grafana-wtf log --number=50
135
+
136
+
115
137
********
116
138
Examples
117
139
********
118
- See `grafana-wtf examples <https://github.com/panodata/grafana-wtf/blob/master/doc/examples.rst >`_.
140
+
141
+ For discovering more command line parameters and their arguments, please invoke
142
+ ``grafana-wtf --help `` and have a look at `grafana-wtf examples `_.
143
+
119
144
120
145
121
146
***********
@@ -126,3 +151,6 @@ Development
126
151
git clone https://github.com/panodata/grafana-wtf
127
152
cd grafana-wtf
128
153
make test
154
+
155
+
156
+ .. _grafana-wtf examples : https://github.com/panodata/grafana-wtf/blob/master/doc/examples.rst
0 commit comments