Skip to content

fix(monitoring): use custom provider for grafana-llm-app litellm gateway #5716

Closed

Description

@dan-petty

Problem

The provisioning ConfigMap for grafana-llm-app in k8s/monitoring/grafana-values.yaml sets provider: openai and url: http://llm-gateway.llm.svc.cluster.local:4000/v1.
This causes Grafana to treat the connection as an official OpenAI account rather than a Custom API:

  1. In the Grafana web console, the plugin shows the OpenAI provider selected with the URL field disabled and pinned to https://api.openai.com.
  2. The grafana-llm-app Go backend appends defaultOpenAIAPIPath (/v1) using url.JoinPath(settings.URL, *settings.APIPath), which causes requests to be routed to /v1/v1 when /v1 is present in the base URL.

Solution

  1. Change provider from openai to custom in the grafana-llm-plugin ConfigMap in k8s/monitoring/grafana-values.yaml.
  2. Change url from http://llm-gateway.llm.svc.cluster.local:4000/v1 to http://llm-gateway.llm.svc.cluster.local:4000 so the plugin's default /v1 path joins correctly.
  3. Update tests and documentation.

Activity

  1. added
    type/bug
    scope/monitoring
    status/new
    value/high
    effort/low
    on Nov 14, 2026
  2. dan-petty commented on Nov 14, 2026

    @dan-petty
    OwnerAuthor
    • Priority: P1-High. The plugin is non-functional: the URL is pinned and the path is doubled, breaking all LLM features in Grafana.
    • Related: feat(monitoring): provision grafana-llm-app for litellm and qwen3.8:27b #5710, which asks for a different change. Both target the grafana-llm-app ConfigMap in grafana-values.yaml, but #5710 created the provisioning and the candidate corrects its provider and URL values.
  3. added
    priority/p1-high
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Nov 14, 2026
  4. removed
    status/in-review
    on Nov 14, 2026
  5. devops-cli-service commented on Nov 14, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-14 21:08 UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/lowpriority/p1-highscope/monitoringtype/bugvalue/high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions