网创优客建站品牌官网
为成都网站建设公司企业提供高品质网站建设
热线:028-86922220
成都专业网站建设公司

定制建站费用3500元

符合中小企业对网站设计、功能常规化式的企业展示型网站建设

成都品牌网站建设

品牌网站建设费用6000元

本套餐主要针对企业品牌型网站、中高端设计、前端互动体验...

成都商城网站建设

商城网站建设费用8000元

商城网站建设因基本功能的需求不同费用上面也有很大的差别...

成都微信网站建设

手机微信网站建站3000元

手机微信网站开发、微信官网、微信商城网站...

建站知识

当前位置:首页 > 建站知识

prometheus01-Prometheus安装

下载prometheus
https://prometheus.io/download/
tar xvfz prometheus-*.tar.gz
cd prometheus-*
mv prometheus-* /usr/local/prometheus

成都创新互联公司咨询热线:18980820575,为您提供成都网站建设网页设计及定制高端网站建设服务,成都创新互联公司网页制作领域十载,包括成都混凝土搅拌机等多个领域拥有多年建站经验,选择成都创新互联公司,为网站锦上添花。

添加开机自启动
vim  /usr/lib/systemd/system/prometheus

[Unit]
Description=https://prometheus.io
 
[Service]
Restart=on-failure
ExecStart=/usr/local/prometheus/prometheus --config.file=/usr/local/prometheus/prometheus.yml
 
[Install]
WantedBy=multi-user.target


chmod +x  /usr/lib/systemd/system/prometheus
systemctl  start  prometheus
systemctl  enable  prometheus

浏览:

http://ip:9090

出现问题:时间不一致(如下类似)

Warning! Detected 457.83 seconds time difference between your browser and the server. Prometheus relies on accurate time and time drift might cause unexpected query results.

解决办法:

我自己吧服务器时间同步至  time1.aliyun.com

ntpdate time1.aliyun.com

然后把电脑的时间也同步至time1.aliyun.com  即可解决

prometheus01-Prometheus安装

l global:全局配置

l alerting:告警配置

l rule_files:告警规则

l scrape_configs:配置数据源,称为target,每个target用job_name命名。又分为静态配置和服务发现

prometheus01-Prometheus安装


当前标题:prometheus01-Prometheus安装
分享网址:http://bjjierui.cn/article/gioojh.html

其他资讯