Page MenuHomePhabricator

Grafana no longer includes many datasources but adds them as plugins
Closed, ResolvedPublic

Description

As of version 13.1.1 the Debian Grafana package no longer includes Prometheus as built-in data source but adds it as a separate plugin [1] [2], this means that it requires to be installed as part of the grafana-plugins repository.

Logs:

Aug 26 03:48:27 grafana2001 grafana[1211199]: logger=context userId=709 orgId=1 uname=denisse t=2026-08-26T03:48:27.842393423Z level=error msg="Could not find plugin definition for data source" datasource_type=prometheus

Looking deeper at error logs it seems to be affecting other datasources that are now installed as plugins:

The plugins that we don't need and are not installed should be added to the disable_plugins section so Grafana doesn't try to load them to prevent it from generating useless logs.

[1] https://github.com/grafana/grafana/pull/123035
[2] https://grafana.com/grafana/plugins/prometheus/changelog/
[3] https://grafana.com/docs/grafana/latest/setup-grafana/configure-grafana/#disable_plugins

Event Timeline

andrea.denisse changed the task status from Open to In Progress.Aug 26 2026, 4:08 AM
andrea.denisse triaged this task as Unbreak Now! priority.
andrea.denisse renamed this task from Grafana no longer includes the Prometheus datasource but adds it as a plugin to Grafana no longer includes many datasources but adds them as plugins.Aug 26 2026, 4:17 AM
andrea.denisse updated the task description. (Show Details)

Change #1329416 had a related patch set uploaded (by Andrea Denisse; author: Andrea Denisse):

[operations/puppet@production] grafana: Disable automatic updates for plugins

https://gerrit.wikimedia.org/r/1329416

Wow, that's a breaking change they make from 13.1.0 to 13.1.1? What's even the purpose of their release branches, I have to wonder..

Change #1329426 had a related patch set uploaded (by Andrea Denisse; author: Andrea Denisse):

[operations/debs/grafana-plugins@master] Add grafana-prometheus-datasource

https://gerrit.wikimedia.org/r/1329426

Change #1329426 merged by Andrea Denisse:

[operations/debs/grafana-plugins@master] Add grafana-prometheus-datasource

https://gerrit.wikimedia.org/r/1329426

We currently have the following data sources enabled on Grafana: Prometheus, Elastic, Graphite, Jaeger, JSON API, Loki, Simple JSON. Among these, the Elastic one is broken as it was also moved to a plugin [1] but it doesn't seem like we're using it anyway so we might disable it. There's an OpenSearch datasource plugin [2] that we might use for T422499.

[1] https://grafana.com/grafana/plugins/elasticsearch/
[2] https://grafana.com/grafana/plugins/grafana-opensearch-datasource/

Change #1329517 had a related patch set uploaded (by Andrea Denisse; author: Andrea Denisse):

[operations/puppet@production] grafana: Disable loading of not installed core plugins

https://gerrit.wikimedia.org/r/1329517

andrea.denisse lowered the priority of this task from Unbreak Now! to Low.Aug 26 2026, 5:34 PM

Changing priority to low as the critical datasource is already in the grafana-plugins package.

andrea.denisse changed the task status from In Progress to Open.Aug 26 2026, 5:34 PM

Among the listed plugins the only ones that we need to add to the grafana-plugins package are loki and grafana-metricsdrilldown-app. I'll add them once T436056 is complete as that would also allow us to test the GitLab CI pipeline to build the Debian package.

Change #1329416 merged by Andrea Denisse:

[operations/puppet@production] grafana: Disable automatic updates for plugins

https://gerrit.wikimedia.org/r/1329416

Change #1329517 merged by Andrea Denisse:

[operations/puppet@production] grafana: Disable loading of not installed core plugins

https://gerrit.wikimedia.org/r/1329517

The Network Weathermap NG [1] plugin was suggested on IRC as a potentially useful plugin.

[1] https://github.com/allamiro/grafana-network-weathermap-ng

hnowlan raised the priority of this task from Low to Medium.Mon, Sep 7, 5:22 PM

Increasing the priority as the loki plugin's removal has broken annotations on Grafana.

Increasing the priority as the loki plugin's removal has broken annotations on Grafana.

I'll add it.

andrea.denisse lowered the priority of this task from Medium to Low.Tue, Sep 8, 5:32 AM

Added loki, had to build it manually as it's not yet part of the trusted runners repo [1].
Will add grafana-metricsdrilldown-app through the GitLab CI pipeline to test building the package from it as part of T436056.

[1] https://gitlab.wikimedia.org/repos/releng/gitlab-trusted-runner/-/merge_requests/185

andrea.denisse closed this task as Resolved.EditedTue, Sep 8, 8:03 AM

Added loki, had to build it manually as it's not yet part of the trusted runners repo [1].
Will add grafana-metricsdrilldown-app through the GitLab CI pipeline to test building the package from it as part of T436056.

[1] https://gitlab.wikimedia.org/repos/releng/gitlab-trusted-runner/-/merge_requests/185

Couldn't wait for the CI pipeline, added it and packaged the regular way.
I'll try the pipeline with tamirsuliman-weathermap-panel 1.6.12 [1] as part of T436075.

Task is complete now.

[1] https://gitlab.wikimedia.org/repos/sre/grafana-plugins/-/merge_requests/11