12、Grafan 4.3升级到Grafana 5.0

时间:2023-03-09 19:13:32
12、Grafan 4.3升级到Grafana 5.0
Upgrading Grafana
升级Grafana
We recommend everyone to upgrade Grafana often to stay up to date with the latest fixes and enhancements. In order make this a reality Grafana upgrades are backward compatible and the upgrade process is simple & quick.
我们建议每个人都经常升级Grafana以了解最新的修补程序和增强功能。 为了实现这一目标,Grafana升级是向后兼容的,升级过程简单快捷。
Upgrading is generally always safe (between many minor and one major version) and dashboards and graphs will look the same. There can be minor breaking changes in some edge cases which are usually outlined in the Release Notes and Changelog
升级通常是安全的(在许多次要版本和主要版本之间),仪表板和图表看起来是一样的。 在发行说明和更新日志中通常列出的某些边缘情况中可能会发生轻微的中断更改
Database Backup
数据库备份
Before upgrading it can be a good idea to backup your Grafana database. This will ensure that you can always rollback to your previous version. During startup, Grafana will automatically migrate the database schema (if there are changes or new tables). Sometimes this can cause issues if you later want to downgrade.
在升级之前,最好备份Grafana数据库。 这将确保可以回滚到以前的版本。 在启动过程中,Grafana会自动迁移数据库模式(如果有更改或新表格)。 如果您稍后想要降级,有时会导致问题。
mysql
backup: > mysqldump -u root -p[root_password] [grafana] > grafana_backup.sql restore: > mysql -u root -p grafana < grafana_backup.sql
在Centos上升级
Centos / RHEL
If you installed grafana by downloading a rpm package you can just follow the same installation guide and execute the same yum install or rpm -i command but with the new package. It will upgrade your Grafana install.
如果您通过下载rpm软件包来安装grafana,则可以按照相同的安装指南执行相同的yum install或rpm -i命令,但使用新软件包。 它会升级你的Grafana安装。在线上操作系统中,我们是使用下载rpm包的安装方式进行安装。
$ wget https://s3-us-west-2.amazonaws.com/grafana-releases/release/grafana-5.0.1-1.x86_64.rpm
$ sudo yum install initscripts fontconfig
$ sudo rpm -Uvh grafana-5.0.1-1.x86_64.rpm
If you used our YUM repository:
如果您使用我们的YUM存储库:
sudo yum update grafana

搜索

复制