Generative AI for Dashboards

How do I set up generative AI for dashboard titles and description as per the new version of Grafana (10.2)?

  • What Grafana version and what operating system are you using?

  • What are you trying to achieve?

  • How are you trying to achieve it?

  • What happened?

  • What did you expect to happen?

  • Can you copy/paste the configuration(s) that you are having problems with?

  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.

  • Did you follow any online instructions? If so, what is the URL?

It’s not clear what you are asking, but I would recommended to ask Grot:

I just went through the blog by Grafana about the latest updates in the version 10.2. There was a mentioning about a new AI feature that enables us to generate Title and Description of panels and dashboards. I wanted to know how to enable that feature.

Hi @aftabs

You need to enable the feature toggle dashgpt

More here:

To enable these features, you must first enable the dashgpt feature toggle. Then install and configure Grafana’s LLM app plugin. For more information, refer to the Grafana LLM app plugin documentation.

When enabled, look for the :sparkles: Auto generate option next to the Title and Description fields in your panels and dashboards, or when you press the Save button.

Is v10.2 a minor update compared to v10.1?

Based on this, I would say it’s NOT a minor update compared to v10.1.

1 Like

What is required for the plugin?

  • updated grafana to 10.2.2
  • added in the grafana ini file
    dashgpt = true
  • in this file, added the folowwing line
    app_mode = development
  • installed the plugin,
  • test is ok:

OpenAI health check succeeded!
Models

  • gpt-3.5-turbo: OK
  • gpt-4: OK
  • activated the plugin…

But I cannot see any change on grafana, no IA help. What did I miss?

Ok, seen. In the grafana.ini I need:

[feature_toggles]
# there are currently two ways to enable feature toggles in the `grafana.ini`.
# you can either pass an array of feature you want to enable to the `enable` field or
# configure each toggle by setting the name of the toggle to true/false. Toggles set to true/false
# will take presidence over toggles in the `enable` list.

enable = dashgpt

dashgpt = true

Now I can click on Description auto-generate or Titel auto-generate, I got this

An unexpected error happened

Error: Minified React error #301; visit https://reactjs.org/docs/error-decoder.html?invariant=301 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
at K (http://clovis.atlog.io:29110/public/build/4019.8e650672867c3e4c40ad.js:1250:12743) at Oe (http://clovis.atlog.io:29110/public/build/4019.8e650672867c3e4c40ad.js:1344:19) at div at div at g (http://clovis.atlog.io:29110/public/build/958.b63f864e3aa7eee86718.js:22:25705) at form at r (http://clovis.atlog.io:29110/public/build/4019.8e650672867c3e4c40ad.js:223:943) at at (http://clovis.atlog.io:29110/public/build/4019.8e650672867c3e4c40ad.js:1347:49) at div at div at div at q (http://clovis.atlog.io:29110/public/build/958.b63f864e3aa7eee86718.js:120:79486) at i (http://clovis.atlog.io:29110/public/build/4019.8e650672867c3e4c40ad.js:204:30032) at div at p (http://clovis.atlog.io:29110/public/build/958.b63f864e3aa7eee86718.js:629:78947) at div at P (http://clovis.atlog.io:29110/public/build/958.b63f864e3aa7eee86718.js:39:39990) at div at Be (http://clovis.atlog.io:29110/public/build/958.b63f864e3aa7eee86718.js:39:51057) at http://clovis.atlog.io:29110/public/build/958.b63f864e3aa7eee86718.js:39:51368 at div at H (http://clovis.atlog.io:29110/public/build/958.b63f864e3aa7eee86718.js:39:41050) at http://clovis.atlog.io:29110/public/build/958.b63f864e3aa7eee86718.js:26:296 at B (http://clovis.atlog.io:29110/public/build/958.b63f864e3aa7eee86718.js:39:44617) at c (http://clovis.atlog.io:29110/public/build/4019.8e650672867c3e4c40ad.js:204:112170) at je (http://clovis.atlog.io:29110/public/build/4019.8e650672867c3e4c40ad.js:1358:21) at r at l (http://clovis.atlog.io:29110/public/build/4019.8e650672867c3e4c40ad.js:224:13290) at v (http://clovis.atlog.io:29110/public/build/958.b63f864e3aa7eee86718.js:37:13858) at d (http://clovis.atlog.io:29110/public/build/958.b63f864e3aa7eee86718.js:629:177403) at d (http://clovis.atlog.io:29110/public/build/4019.8e650672867c3e4c40ad.js:823:19916) at o (http://clovis.atlog.io:29110/public/build/4019.8e650672867c3e4c40ad.js:204:119128) at g (http://clovis.atlog.io:29110/public/build/4019.8e650672867c3e4c40ad.js:204:119637) at y (http://clovis.atlog.io:29110/public/build/958.b63f864e3aa7eee86718.js:181:94091) at zf (http://clovis.atlog.io:29110/public/build/4019.8e650672867c3e4c40ad.js:4954:122)