我在Ubuntu16.04的新安装上安装了Prometheus的最新版本有困难。我能找到的所有指南都是14.04的,从systemV到systemd的移动使得这些指南在16.04设置时不兼容(或者至少不完整)。
我可以从apt安装Prometheus,但是它安装了0.16.2版本,当前版本是1.0.2。
我一直在使用官方的prometheus.io安装指南和数字海洋指南。
有人能帮我建立系统吗?我对Ubuntu比较有经验,但是系统的改变给我投了一个曲线球。
发布于 2018-05-03 14:07:31
在版本2.x中更改的服务器存储参数名称,工作语法:
[Unit]
Description=Prometheus Server
After=network-online.target
[Service]
User=root
Restart=on-failure
ExecStart=/usr/local/bin/prometheus-2.2.1.linux-amd64/prometheus \
--config.file=/etc/prometheus/prometheus.yml \
--storage.tsdb.path=/var/lib/prometheus/data
[Install]
WantedBy=multi-user.target发布于 2019-01-19 15:54:07
如果还有人回到这个问题上,我已经为基于node_exporter的prometheus、apache_exporter和本数字海洋教程的安装编写了脚本。
您可以在这里找到我的脚本:https://github.com/icolwell/install_脚本
以下脚本可能会引起人们的兴趣:
prometheus_install.bash
prometheus_node_exporter_install.bash
prometheus_apache_exporter_install.bash您可以使用以下方法下载并运行脚本:
wget https://raw.githubusercontent.com/icolwell/install_scripts/master/prometheus_install.bash
bash prometheus_install.bash注意,任何现有的prometheus配置都将被覆盖。
https://askubuntu.com/questions/818514
复制相似问题