galaxyproject / training-material

A collection of Galaxy-related training material
https://training.galaxyproject.org
MIT License
297 stars 868 forks source link

GAT: Grafana setup #4940

Open lldelisle opened 1 month ago

lldelisle commented 1 month ago

Hi, Just a bug report. Using

- src: cloudalchemy.grafana
  version: 0.14.2

I got an error message when I upgraded grafana:

logger=settings t=2024-05-14T14:05:03.631161731+02:00 level=error msg="Option '[alerting].enabled' cannot be true. Legacy Alerting is removed. It is no longer deployed, enhanced, or supported. Delete '[alerting].enabled' and use '[unified_alerting].enabled' to enable Grafana Alerting. For more information, refer to the documentation on upgrading to Grafana Alerting (https://grafana.com/docs/grafana/v10.4/alerting/set-up/migrating-alerts)"

Then I realized the role is archived: https://github.com/cloudalchemy/ansible-grafana The fix I am using now is to use in the group_vars/monitoring.yml:

grafana_alerting: {}

But maybe the GTN should use grafana.grafana.grafana role.

Sorry, no time to dig into this but this may be helpful to other admins.

hexylena commented 1 month ago

Thanks for the report. Also no time to update the tutorial currently but very good to know for our next GAT.

lldelisle commented 1 month ago

Possibly, there might be another change to be made in the ngnix config (add grafana to the proxy_pass):

    location /grafana/ {
        proxy_pass http://127.0.0.1:3000/grafana;
        proxy_set_header Host $http_host;
    }

But this one I am not sure.