datasource empty in telegraf dashboard

Bug #1976151 reported by Yoshi Kadokawa
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Telegraf Charm
Fix Released
Undecided
Tianqi Xiao

Bug Description

The telegraf dashboards in Grafana, both host and application, shows the following error as shown in the screenshot attached.

Templating
Failed to upgrade legacy queries Datasource - Juju generated source was not found
Templating [host|apps]
Error updating options: Datasource - Juju generated source was not found

This is reproduced with the following bundle.

series: focal
applications:
  prometheus:
    charm: prometheus2
    num_units: 1
  grafana:
    charm: grafana
    num_units: 1
  telegraf:
    charm: telegraf
relations:
  - [ "prometheus:grafana-source", "grafana:grafana-source" ]
  - [ "prometheus:target", "telegraf:prometheus-client" ]
  - [ "grafana:dashboards", "telegraf:dashboards" ]
  - [ "grafana:juju-info", "telegraf:juju-info" ]
  - [ "prometheus:juju-info", "telegraf:juju-info" ]

As the error state, it looks like the datasource is empty in the dashboard json configuration.
I could mitigate the issue by running the following

juju config telegraf prometheus_datasource="prometheus"

Tags: bseng-171

Related branches

Revision history for this message
Yoshi Kadokawa (yoshikadokawa) wrote :
Revision history for this message
Yoshi Kadokawa (yoshikadokawa) wrote :

Adding juju-crashdump

Eric Chen (eric-chen)
tags: added: bseng-171
Tianqi Xiao (txiao)
Changed in charm-telegraf:
assignee: nobody → Tianqi Xiao (txiao)
Revision history for this message
Tianqi Xiao (txiao) wrote :

MP#422773 [1] has fixed this issue. The revision (51) with this MP got published to the latest/edge channel in Charmhub.

[1]: https://code.launchpad.net/~txiao/charm-telegraf/+git/charm-telegraf/+merge/422773

Changed in charm-telegraf:
status: New → Fix Released
Revision history for this message
Nobuto Murata (nobuto) wrote :

Subscribing ~field-high. Since the fix is not released to the latest/stable channel yet. The bug status should be more of Fix Committed instead of Fix Released in this case.

$ juju info telegraf
name: telegraf

channels: |
  latest/stable: cc7fa21 2022-04-28 (49) 10MB
  latest/candidate: cc7fa21 2022-04-21 (49) 10MB
  latest/beta: ↑
  latest/edge: 1fa6420 2022-07-25 (52) 10MB

Tianqi Xiao (txiao)
Changed in charm-telegraf:
status: Fix Released → Fix Committed
Tianqi Xiao (txiao)
Changed in charm-telegraf:
status: Fix Committed → Fix Released
Tianqi Xiao (txiao)
Changed in charm-telegraf:
milestone: none → 22.08
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.