search_dashboards
Search Grafana dashboards using a query string to find relevant monitoring dashboards with details like title, UID, folder, tags, and URL.
Instructions
Search for Grafana dashboards by a query string. Returns a list of matching dashboards with details like title, UID, folder, tags, and URL.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | The query to search for |
Implementation Reference
- src/clients/grafana-client.ts:54-63 (helper)GrafanaClient helper method that calls the Grafana API /api/search endpoint to search for dashboards by query, filtering by dashboard type.
async searchDashboards(query: string): Promise<any[]> { try { const response = await this.client.get('/api/search', { params: { query, type: 'dash-db' }, }); return response.data; } catch (error) { this.handleError(error); } }