{"id":27,"date":"2019-10-29T01:00:40","date_gmt":"2019-10-29T00:00:40","guid":{"rendered":"http:\/\/linuxboxen2.dk\/?p=27"},"modified":"2019-10-29T01:00:40","modified_gmt":"2019-10-29T00:00:40","slug":"how-to-upgrade-from-grafana-5-to-grafana-6-on-ubuntu-debian-centos-rhel-and-docker","status":"publish","type":"post","link":"https:\/\/www.linuxboxen.dk\/?p=27","title":{"rendered":"Hvordan opgradere jeg Grafana 5 til Grafana 6 p\u00e5 Ubuntu\/Debian\/Docker."},"content":{"rendered":"<p><a href=\"https:\/\/www.linuxboxen.dk\/wp-content\/uploads\/2019\/10\/grafana.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2555\" src=\"https:\/\/www.linuxboxen.dk\/wp-content\/uploads\/2019\/10\/grafana-1024x527.png\" alt=\"\" width=\"189\" height=\"97\" \/><\/a><\/p>\n<p>Vi er n\u00f8dt til at opgradere for at holde os ajour med de nyeste rettelser og forbedringer. Lad os se p\u00e5 listen med procedure for opgradering.<br \/>\nHer er flere l\u00f8sninger.<\/p>\n<ol>\n<li>Tag backup f\u00f8rst. N\u00e5r vi opgradere noget er det altid en god ide med en backup f\u00f8rst. S\u00e5 kan vi altid roll back. Grafana vil automatisk opdatere databasen. og det kan godt give problemer, hvis du vil down grade senere s\u00e5 altid backup f\u00f8rst.<br \/>\nHvordan du tager backup kan godt variere lidt om du bruger sqlite eller mysql. hvis det er sqlite skal du tage backup af \/var\/lib\/grafana\/grafana.db og \/etc\/grafana\/* filerne.<\/li>\n<li>Hvis det er mysql skal du bruge<br \/>\n$ mysqldump -u root -p[root_password] [grafana] &gt; grafana_backup.sql for backup.<br \/>\nFor at opgradere grafana<br \/>\n$ apt update &amp;&amp; apt install grafana<\/li>\n<li>Hvis du bruger docker.<br \/>\nF\u00f8rst stop grafana<br \/>\n$ docker stop my-grafana-container<br \/>\nFor at fjerne den gamle grafana.<br \/>\n$ docker rm my-grafana-container<br \/>\nNu kan du starte den nye grafana med<br \/>\n$ docker run &#8211;name=my-grafana-container &#8211;restart=always -v \/var\/lib\/grafana:\/var\/lib\/grafana<\/li>\n<\/ol>\n<p>Du kan ogs\u00e5 downloade filerne fra Grafana Website.<\/p>\n<p>&nbsp;<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_27\" class=\"pvc_stats all  \" data-element-id=\"27\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/www.linuxboxen.dk\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Vi er n\u00f8dt til at opgradere for at holde os ajour med de nyeste rettelser og forbedringer. Lad os se p\u00e5 listen med procedure for opgradering. Her er flere l\u00f8sninger. Tag backup f\u00f8rst. N\u00e5r vi opgradere noget er det altid en god ide med en backup f\u00f8rst. S\u00e5 kan vi altid roll back. Grafana vil [&hellip;]<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_27\" class=\"pvc_stats all  \" data-element-id=\"27\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/www.linuxboxen.dk\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_sitemap_exclude":false,"_sitemap_priority":"","_sitemap_frequency":"","footnotes":""},"categories":[2],"tags":[],"class_list":["post-27","post","type-post","status-publish","format-standard","hentry","category-tips"],"a3_pvc":{"activated":true,"total_views":25,"today_views":0},"_links":{"self":[{"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/posts\/27","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=27"}],"version-history":[{"count":0,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/posts\/27\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=27"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=27"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=27"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}