Skip to content

Commit c5783ce

Browse files
authored
Fix small error in README.rst (#176)
* Fix error in README.rst There was a typo in the README where the example to find a dashboards by data source name was trying to match against the "type" field, not the "name" field. * Fix typo in second duplicated location.
1 parent 8c82149 commit c5783ce

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ How to find dashboards using specific data sources?
208208
::
209209

210210
# Display all dashboards which use a specific data source, filtered by data source name.
211-
grafana-wtf explore dashboards --format=json | jq '.[] | select(.datasources | .[].type=="<datasource_name>")'
211+
grafana-wtf explore dashboards --format=json | jq '.[] | select(.datasources | .[].name=="<datasource_name>")'
212212

213213
# Display all dashboards using data sources with a specific type. Here: InfluxDB.
214214
grafana-wtf explore dashboards --format=json | jq '.[] | select(.datasources | .[].type=="influxdb")'

grafana_wtf/commands.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def run():
9595
grafana-wtf explore dashboards --format=json | jq '.[] | select(.datasources_missing) | .dashboard + {ds_missing: .datasources_missing[] | [.name]}'
9696
9797
# Display all dashboards which use a specific data source, filtered by data source name.
98-
grafana-wtf explore dashboards --format=json | jq '.[] | select(.datasources | .[].type=="<datasource_name>")'
98+
grafana-wtf explore dashboards --format=json | jq '.[] | select(.datasources | .[].name=="<datasource_name>")'
9999
100100
# Display all dashboards using data sources with a specific type. Here: InfluxDB.
101101
grafana-wtf explore dashboards --format=json | jq '.[] | select(.datasources | .[].type=="influxdb")'

0 commit comments

Comments
 (0)