ubuntu下docker安装prometheus

发布时间:2020-07-17 02:13:15 作者:viphyy
来源:网络 阅读:262

Prometheus是由SoundCloud开发的开源监控报警系统和时序列数据库(TSDB)。Prometheus使用Go语言开发,是Google BorgMon监控系统的开源版本。
2016年由Google发起Linux基金会旗下的原生云基金会(Cloud Native Computing Foundation), 将Prometheus纳入其下第二大开源项目。
Prometheus和Heapster(Heapster是K8S的一个子项目,用于获取集群的性能数据。)相比功能更完善、更全面。Prometheus性能也足够支撑上万台规模的集群。

Prometheus的特点


查看是否有镜像

sudo docker search prometheus

ubuntu下docker安装prometheus


编写配置文件

vim prometheus.yml


内容 

global:

  scrape_interval:     60s

  evaluation_interval: 60s

 

scrape_configs:

  - job_name: prometheus

    static_configs:

      - targets: ['localhost:9191']

        labels:

          instance: prometheus

 

  - job_name: linux

    static_configs:

      - targets: ['10.0.14.135:9191']

        labels:

          instance: localhost


启动

sudo docker run --name prometheus -d -p 9090:9090 -v ~/soft/prometheus.yml:/etc/prometheus/prometheus.yml   prom/prometheus


浏览器访问

ubuntu下docker安装prometheus

推荐阅读:
  1. ubuntu下使用docker安装grafana
  2. Docker监控——Prometheus

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

监控 prometheus dock eu

上一篇:mysql设置复杂密码中含$特殊符号导致无法命令登录

下一篇:iptables规则学习举一反三

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》