Closed kysrpex closed 1 month ago
Cool beans! Thanks a lot!
I have a technical question, but please deploy. Old links to dashboards will probably not work anymore, I assume, is there a way in grafana to keep stable links? Or should we use bitly or even better gx.io to create stable links dashboards?
Cool beans! Thanks a lot!
I have a technical question, but please deploy. Old links to dashboards will probably not work anymore, I assume, is there a way in grafana to keep stable links? Or should we use bitly or even better gx.io to create stable links dashboards?
With this migration path all dashboards keep the same uids, and Grafana has not changed how it forms the urls, so links do not break (see screenshots below).
Oh nice!!!
Can you please also sum that all up in a nice blog post and in addition in a operations update.
Thanks a lot!
oh I guess my github was stuck
@sanjaysrikakulam @mira-miracoli Important detail. You may find that some panels do not work. You can very easily fix them like this:
Find a panel that does not work.
Click "Edit".
Click the pencil on the bottom right (raw query mode). The preview will start working instantly.
Save the dashboard (the screenshot is wrong, use "Save", not "Apply").
Don't ask me why this works. Actually if you switch the panel back to visual editor mode it breaks again.
This one https://stats.galaxyproject.eu/d/000000004/galaxy?orgId=1&refresh=10s&viewPanel=7 does not seem to work. Maybe wrong host?
This one https://stats.galaxyproject.eu/d/000000004/galaxy?orgId=1&refresh=10s&viewPanel=7 does not seem to work. Maybe wrong host?
The list of hosts is populated by the InfluxQL query SHOW TAG VALUES FROM "cluster.queue" WITH KEY = "host"
, but the only possible outcome of that query right now is "maintenance.galaxyproject.eu", see the InfluxDB measurement query below.
> SELECT * FROM "cluster.queue" ORDER BY time desc LIMIT 10
name: cluster.queue
time count engine host schedd state
---- ----- ------ ---- ------ -----
2024-07-24T12:38:00Z 0 condor maintenance.galaxyproject.eu sn06.galaxyproject.eu suspended
2024-07-24T12:38:00Z 539 condor maintenance.galaxyproject.eu sn06.galaxyproject.eu running
2024-07-24T12:38:00Z 426 condor maintenance.galaxyproject.eu sn06.galaxyproject.eu idle
2024-07-24T12:38:00Z 2 condor maintenance.galaxyproject.eu sn06.galaxyproject.eu held
2024-07-24T12:38:00Z 0 condor maintenance.galaxyproject.eu sn06.galaxyproject.eu removed
2024-07-24T12:38:00Z 0 condor maintenance.galaxyproject.eu sn06.galaxyproject.eu completed
2024-07-24T12:37:00Z 0 condor maintenance.galaxyproject.eu sn06.galaxyproject.eu removed
2024-07-24T12:37:00Z 0 condor maintenance.galaxyproject.eu sn06.galaxyproject.eu completed
2024-07-24T12:37:00Z 0 condor maintenance.galaxyproject.eu sn06.galaxyproject.eu suspended
2024-07-24T12:37:00Z 543 condor maintenance.galaxyproject.eu sn06.galaxyproject.eu running
Changing to SHOW TAG VALUES FROM "cluster.queue" WITH KEY = "schedd"
allows choosing sn06.galaxyproject.eu
too, and then the route timings work.
This more likely has to do with the setup of the maintenance node and the HTCondor migration than with the Grafana update.
Note to all: if you see fixable problems like these on the dashboards go ahead and fix them.
Update Grafana to version 11 and switch from deprecated role
cloudalchemy.grafana
to the official Grafana role from thegrafana.grafana
collection. Updateusegalaxy_eu.grafana_matrix_forwarder
. Instead of disabling firewalld on the Grafana host, open the nginx ports.Before merging this PR, the Grafana database must be migrated from SQLite to PostgresSQL. This is rather simple using pgloader and following this guide from Jamie Ly. The postgres database information can be found here. It can be accessed from stats, sn06 and maintenance (see usegalaxy-eu/infrastructure-playbook#1235).
Migration in a nutshell:
grafana
database exists in Postgres and thegrafana
user has all privileges on it. You may run reset.sql aspostgres
to do this ( :warning: this drops thegrafana
database).grafana
to create all tables Grafana v9.2.10 (c37dcaf0da) needs. Grafana v11 will run database migrations on top of it./data/monitoring/grafana_data/grafana.db
(if running the migration steps on stats.galaxyproject.eu) and the PostgreSQL connection string if needed.pgloader grafana.load
. Warnings and even errors are expected, not an issue.Closes usegalaxy-eu/issues#558.