迁移到 Chronograf HA 配置
使用 chronoctl 将您的 Chronograf 配置存储从 BoltDB 迁移到用于 Chronograf 高可用性 (HA) 集群的共享 etcd 数据存储。
更新资源 ID
将Chronograf迁移到共享数据源为每个资源创建新的源ID。
更新指向Chronograf仪表板的外部链接以反映新的源ID。
通过终止
chronograf进程来停止 Chronograf 服务器。为了防止数据丢失,我们强烈建议您在迁移到Chronograf集群之前备份您的Chronograf数据存储。
运行以下命令,指定本地的 BoltDB 文件和以
etcd://开头的etcd端点。 (我们建议在绝对路径前添加前缀bolt://。 请勿使用前缀来指定相对路径到 BoltDB 文件。)chronoctl migrate \ --from bolt:///path/to/chronograf-v1.db \ --to etcd://localhost:2379提供etcd认证凭据
如果在
etcd上启用了身份验证,请使用标准的 URI 基本身份验证格式来定义用户名和密码。例如:etcd://username:password@localhost:2379提供etcd TLS凭证
如果在
etcd上启用了 TLS,请在您的 etcd URL 中使用以下查询参数提供您的 TLS 证书凭据:- cert: 客户端证书文件或PEM文件的路径
- key: 客户端密钥文件的路径
- ca: 经过验证的CA证书的路径
etcd://127.0.0.1:2379?cert=/tmp/client.crt&key=/tst/client.key&ca=/tst/ca.crt更新指向Chronograf的链接(例如,来自外部源)以反映您的新URL:
- 来自BoltDB: http://localhost:8888/sources/1/status
- 到etcd: http://localhost:8888/sources/373921399246786560/status
为Chronograf设置负载均衡器。