-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Grafana to version 11 and provision dashboards from usegalaxy-eu/grafana-dashboards #1235
Conversation
Update Grafana to version 11 and switch from deprecated role `cloudalchemy.grafana` to the official Grafana role from the `grafana.grafana` collection. Update `usegalaxy_eu.grafana_matrix_forwarder`. Instead of disabling firewalld on the Grafana host, open the nginx ports.
33ddf43
to
acc9b9a
Compare
Add usegalaxy-eu/grafana-dashboards as a submodule so that the Ansible role `grafana.grafana.grafana` can provision the dashboards from this folder.
8de8a08
to
ec5391c
Compare
18c801b
to
514808d
Compare
Grafana dashboards will be imported to Grafana's database and loaded from it rather than provisioned from a folder.
Datasource uids must be provided so that the imported dashboards can reference them
514808d
to
bbe09a8
Compare
This reverts commit e2f4e87.
365c7b4
to
00e8fc1
Compare
@@ -1,3 +1,6 @@ | |||
[submodule "mounts"] | |||
path = mounts | |||
url = https://github.com/usegalaxy-eu/mounts | |||
[submodule "files/grafana"] | |||
path = files/grafana | |||
url = https://github.com/usegalaxy-eu/grafana-dashboards.git |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure if the .git
could lead to problems, but I am also not an expert, was just noticing, that mount doesn't have it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok :)
I just saw it at git handbook without and was not sure about this
grafana_matrix_forwarder_port: 6000 | ||
grafana_matrix_forwarder_username: "{{ vault_grafana_matrix_forwarder_username }}" | ||
grafana_matrix_forwarder_password: "{{ vault_grafana_matrix_forwarder_password }}" | ||
grafana_matrix_forwarder_resolve_mode: reaction |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for updating / improving this!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
Cool beans! Thanks a lot! I have a technical question, but please deploy. |
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! |
Workaround for certbot error below. ``` The server will not issue certificates for the identifier :: Invalid identifiers requested :: Cannot issue for "stats-galaxyproject-eu.novalocal": Domain name does not end with a valid public suffix (TLD)", "Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details. ```
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:
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? |
The list of hosts is populated by the InfluxQL query
Changing to 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 (grafana
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.