快速启动Prometheus
文档说明:只记录关键地方;
试验环境: linux debian 11
备注: node_exporter+Prometheus+Grafana
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']
启动、关闭、查看日志
# 启动 docker-compose -f docker-compose.yaml up -d # 关闭 docker-compose -f docker-compose.yaml down --remove-orphans # 查看日志 docker-compose -f docker-compose.yaml logs -f
参考文档
- prometheus Architecture
- prometheus getting_started
- github prometheus
- prometheus exporters
- What’s the difference between Graphite and Prometheus?
- docker-graphite
- 自建拉取registry.k8s.io、k8s.gcr.io、gcr.io、quay.io、ghcr.io 容器镜像的服务
- 快速启动grafana
- 快速启动prometheus node-exporter
- 快速启动Prometheus pushgateway
- 快速启动Prometheus alertmanager
- node-exporter-full
分类:
Cloud Native
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 地球OL攻略 —— 某应届生求职总结
· 周边上新:园子的第一款马克杯温暖上架
· Open-Sora 2.0 重磅开源!
· 提示词工程——AI应用必不可少的技术