基于容器的Prometheus安装及基础配置(一)

本文档详细介绍了如何使用Docker进行Prometheus的安装,包括全局配置文件的设置,通过Docker启动Prometheus的步骤,以及如何访问其Web界面。读者将学习到如何配置prometheus.yml文件,手动下载镜像以及访问9090端口上的监控平台。
摘要由CSDN通过智能技术生成

本文档主要说明容器化安装步骤,具体可参照官网,官网地址:prometheus官网地址

一:全局配置文件

1:新增配置文件
/opt/prometheus/prometheus.yml

global:
  scrape_interval:     15s # By default, scrape targets every 15 seconds.

  # Attach these labels to any time series or alerts when communicating with
  # external systems (federation, remote storage, Alertmanager).
  external_labels:
    monitor: 'codelab-monitor'

# A scrape configuration containing exactly one endpoint to scrape:
# Here it's Prometheus itself.
scrape_configs:
  # The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
  - job_name: 'prometheus'

    # Override the global default and scrape targets from this job every 5 seconds.
    sc
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值