dinger1986 / TRMM-Grafana

Grafana Dashboards setup and preconfigured to work with Tactical RMM
30 stars 17 forks source link

Datasource not found #14

Closed Shamutik closed 2 years ago

Shamutik commented 2 years ago

Hello! I installed everything according to the instructions and successfully get into the grafana interface. But when I switch to any of the dashboard tactical rmm I get pop-ups with an error "Templating Failed to upgrade legacy queries Datasource was not found"

DataSource did not change. default PostgreSQL. When you click Save and test button writes that Database Connection OK error

ninjamonkey198206 commented 2 years ago

That's probably my fault. In the middle of updating these and the instructions. Let me check something.

ninjamonkey198206 commented 2 years ago

Assuming everything else was done per the current instructions (that I forgot to include this in when I updated them, sorry), you should just need to edit your datasource settings. The current versions use a variable that requires a certain datasource name. The T-RMM postgresql datasource needs to be named TacticalRMM.

The idea was to eliminate the datasource UID from the equation in the panels, and the requirement for it to be the default datasource. Screenshot 2022-04-06 114312

ninjamonkey198206 commented 2 years ago

@Shamutik Instructions have been updated, as has the install script. Please see the above and the readme, and let me know if that resolves your issue.

Shamutik commented 2 years ago

@ninjamonkey198206 changing the name PostgreSQL to TacticalRMM really helped. now everything is displayed correctly. thank you