DM nightly打包后离线安装找不到prometheus、grafana

为提高效率,请提供以下信息,问题描述清晰能够更快得到解决:

【TiDB 版本】

[tidb@localhost ~]$ tiup --version
v1.3.2 tiup
Go Version: go1.13
Git Branch: release-1.3
GitHash: 2d88460
[tidb@localhost ~]$

【问题描述】
tiup打包最新版本的dm后 离线机器安装报找不到指定版本prometheus、grafana
解压的版本与需要的版本不一致

#连网机器
export version=nightly #
tiup mirror clone tidb-dm-${version}-linux-amd64 --os=linux --arch=amd64
–dm-master=${version} --dm-worker=${version} --dmctl=${version}
–alertmanager=${version} --grafana=${version} --prometheus=${version}
–tiup=$(tiup --version|grep ‘tiup’|awk -F ’ ’ ‘{print $1}’) --dm=$(tiup --version|grep ‘tiup’|awk -F ’ ’ ‘{print $1}’)
tar czvf tidb-dm-${version}-linux-amd64.tar.gz tidb-dm-${version}-linux-amd64

#离线机
[tidb@localhost ~]$ export version=nightly
[tidb@localhost ~]$ tiup dm deploy dm-test ${version} topology.yaml
Starting component dm: /home/tidb/.tiup/components/dm/v1.3.2/tiup-dm deploy dm-test nightly topology.yaml
Please confirm your topology:
Cluster type: dm
Cluster name: dm-test
Cluster version: nightly
Type Host Ports OS/Arch Directories


dm-master 192.168.58.128 8261/8291 linux/x86_64 /home/tidb/dm/deploy/dm-master-8261,/home/tidb/dm/data/dm-master-8261
dm-worker 192.168.58.128 8262 linux/x86_64 /home/tidb/dm/deploy/dm-worker-8262,/home/tidb/dm/data/dm-worker-8262
prometheus 192.168.58.128 9090 linux/x86_64 /home/tidb/dm/deploy/prometheus-9090,/home/tidb/dm/data/prometheus-9090
grafana 192.168.58.128 3000 linux/x86_64 /home/tidb/dm/deploy/grafana-3000
alertmanager 192.168.58.128 9093/9094 linux/x86_64 /home/tidb/dm/deploy/alertmanager-9093,/home/tidb/dm/data/alertmanager-9093
Attention:
1. If the topology is not what you expected, check your yaml file.
2. Please confirm there is no port/directory conflicts in same host.
Do you want to continue? [y/N]: y

  • Generate SSH keys … Done
  • Download TiDB components
    • Download dm-master:nightly (linux/amd64) … Done
    • Download dm-worker:nightly (linux/amd64) … Done
    • Download prometheus:v4.0.3 (linux/amd64) … Error
    • Download grafana:v4.0.3 (linux/amd64) … Error
    • Download alertmanager:v0.17.0 (linux/amd64) … Done

Error: version v4.0.3 on linux/amd64 for component grafana not found

Verbose debug logs has been written to /home/tidb/.tiup/logs/tiup-dm-debug-2021-02-03-10-23-26.log.
Error: run /home/tidb/.tiup/components/dm/v1.3.2/tiup-dm (wd:/home/tidb/.tiup/data/SNuwEIG) failed: exit status 1

#解压文件


这几个组件 指定下版本操作下呢?

其实未指定版本 最新的版本都是v5.0.0 想咨询一下大师看看在离线机上改哪个文件能指定prometheus、grafana的版本

dm 部署暂时不推荐 nightly 版本。建议先按照官网操作,指定 grafana、prometheus、alertmanager 版本后重新下载最新 2.0.1 的包。

上述遇到的问题我们内部先确认下。

谢谢 我稍后指定版本在测试一下

离线部署DM遇到同样的问题:

现在DM最新的是V2.0.1, tidb最新的是4.0.10, 已部署TiDB 4.0.10, 然后想DM和Tidb共用一套监控系统, 指定4.0.10, 就先下载时指定了4.0.10, 下载成功了:

export version=v2.0.1
tiup mirror clone tidb-dm-${version}-linux-amd64 --os=linux --arch=amd64 \
    --dm-master=${version} --dm-worker=${version} --dmctl=${version} \
    --alertmanager=v0.17.0 --grafana=v4.0.10 --prometheus=v4.0.10 \
    --tiup=$(tiup --version|grep 'tiup'|awk -F ' ' '{print $1}') --dm=$(tiup --version|grep 'tiup'|awk -F ' ' '{print $1}')

download https://tiup-mirrors.pingcap.com/grafana-v4.0.10-linux-amd64.tar.gz 54.25 MiB / 54.25 MiB 100.00% 7.89 MiB p/s
download https://tiup-mirrors.pingcap.com/prometheus-v4.0.10-linux-amd64.tar.gz 39.84 MiB / 39.84 MiB 100.00% 7.98 MiB p/s

但是部署的时候就出问题了, 只获和文档一样取默认的4.0.3:

  • Download TiDB components
    • Download dm-master:v2.0.1 (linux/amd64) … Done
    • Download dm-worker:v2.0.1 (linux/amd64) … Done
    • Download prometheus:v4.0.3 (linux/amd64) … Error
    • Download grafana:v4.0.3 (linux/amd64) … Error
    • Download alertmanager:v0.17.0 (linux/amd64) … Done

想知道部署的时候, 哪里指定的prometheus:v4.0.3 和 grafana:v4.0.3 , 谢谢.

目前 DM 部署时,内部绑定了 grafana、prometheus、alertmanager 版本,建议按照官网操作指定 grafana、prometheus、alertmanager 三个组件的版本。感谢配合。

感谢支持.

此话题已在最后回复的 1 分钟后被自动关闭。不再允许新回复。