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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM