mirror of
https://github.com/tuna/mirror-web.git
synced 2025-12-25 20:32:46 +00:00
help: grafana: migrate to new upstream
Ref to https://github.com/tuna/issues/issues/1637
This commit is contained in:
parent
056d9d170e
commit
89da8ee010
|
|
@ -8,10 +8,10 @@ mirrorid: grafana
|
|||
|
||||
### Debian / Ubuntu 用户
|
||||
|
||||
首先信任 https://packages.grafana.com/ 的 GPG 公钥:
|
||||
首先信任 https://apt.grafana.com/ 的 GPG 公钥:
|
||||
|
||||
```bash
|
||||
curl https://packages.grafana.com/gpg.key | sudo apt-key add -
|
||||
sudo wget -q -O /usr/share/keyrings/grafana.key https://apt.grafana.com/gpg.key
|
||||
```
|
||||
|
||||
确保你的 apt 支持 HTTPS:
|
||||
|
|
@ -47,7 +47,7 @@ sudo apt-get install grafana
|
|||
|
||||
{% raw %}
|
||||
<script id="apt-template" type="x-tmpl-markup">
|
||||
deb https://{%endraw%}{{ site.hostname }}{%raw%}/grafana/apt/ {{release_name}} main
|
||||
deb [signed-by=/usr/share/keyrings/grafana.key] https://{%endraw%}{{ site.hostname }}{%raw%}/grafana/apt/ {{release_name}} main
|
||||
</script>
|
||||
{%endraw%}
|
||||
|
||||
|
|
@ -55,22 +55,20 @@ deb https://{%endraw%}{{ site.hostname }}{%raw%}/grafana/apt/ {{release_name}} m
|
|||
### Centos / Redhat 用户
|
||||
新建 `/etc/yum.repos.d/grafana.repo`,内容为
|
||||
|
||||
<form class="form-inline">
|
||||
<div class="form-group">
|
||||
<label>你的 Grafana 版本: </label>
|
||||
<select class="form-control release-select" data-template="#yum-template" data-target="#yum-content">
|
||||
<option data-release="rpm">Grafana Stable Repository</option>
|
||||
<option data-release="rpm-beta">Grafana Beta Repository</option>
|
||||
</select>
|
||||
</div>
|
||||
</form>
|
||||
```
|
||||
[grafana]
|
||||
name=grafana
|
||||
baseurl=https://{{ site.hostname }}/grafana/yum/rpm
|
||||
repo_gpgcheck=0
|
||||
enabled=1
|
||||
gpgcheck=0
|
||||
```
|
||||
|
||||
<p></p>
|
||||
<pre>
|
||||
<code id="yum-content">
|
||||
</code>
|
||||
</pre>
|
||||
如果要避免安装 beta 版本,需要新增一行
|
||||
|
||||
```
|
||||
exclude=*beta*
|
||||
```
|
||||
|
||||
再执行
|
||||
|
||||
|
|
@ -78,14 +76,3 @@ deb https://{%endraw%}{{ site.hostname }}{%raw%}/grafana/apt/ {{release_name}} m
|
|||
sudo yum makecache
|
||||
sudo yum install grafana
|
||||
```
|
||||
|
||||
{% raw %}
|
||||
<script id="yum-template" type="x-tmpl-markup">
|
||||
[grafana]
|
||||
name=grafana
|
||||
baseurl=https://{%endraw%}{{ site.hostname }}{%raw%}/grafana/yum/{{release_name}}
|
||||
repo_gpgcheck=0
|
||||
enabled=1
|
||||
gpgcheck=0
|
||||
</script>
|
||||
{% endraw %}
|
||||
|
|
|
|||
Loading…
Reference in New Issue