CLI-LLM is an open-source project that brings Large Language Model (LLM) capabilities directly into Grafana dashboards. It consists of a Grafana panel plugin and a backend service, enabling interactive AI-powered analytics, chat, and closed-loop decision making with support for multiple LLM providers.
This repository contains:
- /src: The source code for the Grafana panel plugin..
See/src/README.mdfor plugin features, configuration, and usage. - /backend: The backend service for connecting to LLM providers (OpenAI, Google, Ollama, etc.), handling requests, and forwarding responses.
See/backend/README.mdfor backend setup and API details. - /provisioning: Example Grafana dashboard provisoning. Contains example dockerfile.
See
/provisioning/README.mdfor more information.
- Multi-Provider Support: Compatible with various LLM providers including Google, OpenAPI, Glama and others, plus support for local LLM deployment
- Interactive Interface: Chat-like interface for natural language interactions with LLM models
- Data Source Integration: Automatically reads data from different Grafana data sources over various time periods with automatic updates
- Closed-Loop Decision Making: Forward LLM responses to external endpoints for automated actions and decision implementation
- Set up the backend
See/backend/README.mdfor instructions. - Install dependencies
npm install
- Build plugin
npm run build
- Install the plugin Copy the contents of dist folder to plugins folder (/var/lib/grafana/plugins/cli-llm/)
- Enable unauthorized plugins
Modify the /etc/grafana/grafana.ini file and add the following line:
allow_loading_unsigned_plugins = navidan-llm-panel
- Fetch models from the API provider for other providers
- Improve backend security
- Improve the screenshot feature make use of multi-modal data
- Feature to upload PDF as part of system prompt