Promethues配置
2024-08-31 10:18:32
# my global config
global:
scrape_interval: 10s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
evaluation_interval: 10s # Evaluate rules every 15 seconds. The default is every 1 minute.
# scrape_timeout is set to the global default (10s). # Alertmanager configuration
alerting:
alertmanagers:
- static_configs:
- targets:
# - alertmanager:9093 # Load rules once and periodically evaluate them according to the global 'evaluation_interval'.
rule_files:
# - "first_rules.yml"
# - "second_rules.yml" # 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: 'es-0'
metrics_path: "/_prometheus/metrics"
static_configs:
- targets:
- 192.168.1.10:9200 basic_auth:
username: 'elastic'
password: 'XXXXXX' - job_name: 'es-1'
metrics_path: "/_prometheus/metrics"
static_configs:
- targets:
- 192.168.1.10:9200 - job_name: 'elk-kafka'
metrics_path: "/metrics"
static_configs:
- targets: ['192.168.1.10:9308'] - job_name: 'es-common'
metrics_path: "/_prometheus/metrics"
static_configs:
- targets:
- 192.168.1.10:9200
- targets:
- 192.168.1.10:9200 basic_auth:
username: 'elastic'
password: 'CygYJf7lpAaUuwGgZy5T' - job_name: 'es-cdo-log'
metrics_path: "/metrics"
static_configs:
- targets:
- 192.168.101.10:9109
最新文章
- SQL Server Reporting Services:无法检索应用程序文件。部署中的文件已损坏
- 手机淘宝UWP
- Python基础之【第一篇】
- 前向后瞻正则表达式及其JS例子
- IT的灵魂是流程,流程的灵魂是业务,业务的灵魂是战略
- 【C#】WM 消息大全
- 前端开发与Seo基础
- 安装office2013时弹出microsoft setup bootstrapper已停止工作,接着就不能安装了
- NOIP算法总结
- c指针点滴4-指针的值
- 转: 深入理解 AngularJS 的 Scope
- rapidPHP 下载并安装
- webpack的四个核心概念介绍
- 用户管理-linux基础
- SSH私用私钥登陆
- mysql那些事
- python接口自动化-post请求4
- Less or Equal CodeForces - 977C (sort+细节)
- 认识程序的执行:从高级语言到二进制,以java为例
- java中关于File类的细说
热门文章
- [LC] 82. Remove Adjacent Repeated Characters IV
- Ansible部署rsync、nfs及sersync
- [SDOI2010]魔法猪学院(k短路)
- mysql,主键与索引的区别和联系
- Linux基础篇二:Bash shell(壳,命令解释器)介绍
- RDS的xb文件恢复到本地mysql5.6版本数据库
- Simple Random Sampling|representative sample|probability sampling|simple random sampling with replacement| simple random sampling without replacement|Random-Number Tables
- 让Spring不再难懂-ioc篇
- wait操作接口
- Python与用户相交互