首页 > 其他分享 >快速启动Prometheus

快速启动Prometheus

时间:2022-10-25 20:25:58浏览次数:96  
标签:15s 启动 9090 prometheus scrape Prometheus 快速 yml

文档说明:只记录关键地方;
试验环境: linux debian 11

Prometheus

version: "3"
services:
  prometheus:
    image: prom/prometheus
    ports:
      - "9090:9090"
    volumes:
      - ./prometheus.yml:/etc/prometheus/prometheus.yml
    restart: always

    # 容器内运行用户id 65534


prometheus 简单配置 (prometheus.yml文件)


global:
  scrape_interval:     15s
  evaluation_interval: 15s

rule_files:
  # - "first.rules"
  # - "second.rules"

scrape_configs:
  - job_name: prometheus
    static_configs:
      - targets: ['localhost:9090']

参考文档

  1. prometheus Architecture
  2. prometheus getting_started
  3. github prometheus
  4. prometheus exporters
  5. What’s the difference between Graphite and Prometheus?

标签:15s,启动,9090,prometheus,scrape,Prometheus,快速,yml
From: https://www.cnblogs.com/jingjingxyk/p/16826059.html

相关文章