Custom chat bot on Grafana UI

Grafana version: 11.5.0

We are trying to add a custom chatbot to the Grafana UI to assist users with LogQL queries. I created an npm package and included it in the package.json of the official Grafana UI source code. The chatbot works as an overlay and is available on all pages.

We tried using a panel and app plugin, but:

  • As a panel plugin, it’s restricted to specific dashboards.
  • As an app plugin, it appears in the Nav Menu and disappears when navigating to other pages.

To improve the UX, I modified the source code to include the chatbot in AppWrapper.tsx. This solution works, but I want to ensure it’s the right approach. Please suggest if there any better alternatives.

3 Likes

This is something i am interested in doing as well. Are you able to share the plugin or source code?

Hi @sanjayghanagiri am also interested in it if it’s not possible to share the plugin or source code can you guide us with some pseudo codes or any articles

The way we did it was using ollama’s api with infinity plugin.

Does anyone have a working example or a bit of source they can share on how to do this?

Hey yosiasz,

I’d like to understand what it would take to do something similar on my end. I am running Grafana OSS and InfluxDB locally on Docker, and would like to use an agent panel on the dashboard to query data, provide insights, and generate summary of root cause investigation. The data comes from a CAN bus and is available on InfluxDB as messages/events.