普罗米修斯 grafana
普罗米修斯
Prometheus后台启动
dashboards
Grafana 图像渲染器
ntpdate同步时间
node_expoter后台启动
blackbox_expoter后台启动
Notification templates
prometheus 配置文件
alert 报警规则
multi_mysqld_exporter
Prometheus动态配置目标
pushgateway
超棒的 Prometheus 警报规则
本文档使用 MrDoc 发布
-
+
首页
prometheus 配置文件
```yaml # my global config global: scrape_interval: 5s # Set the scrape interval to every 15 seconds. Default is every 1 minute. evaluation_interval: 15s # 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: - job_name: "prometheus" static_configs: - targets: ["localhost:9090"] - job_name: "prometheus_local" static_configs: - targets: ["127.0.0.1:9100"] labels: group: "prometheus_self" - job_name: "鑫博服务器" static_configs: - targets: ["xinbo-bg-service:9100"] labels: group: "色站" - job_name: '鑫博javaserver_tcp_connect' # 检测某些端口是否在线 scrape_interval: 5s metrics_path: /probe params: module: [tcp_connect] static_configs: - targets: - xb-game:9900 #game - xb-eureka:8800 #eureka - xb-gateway:8811 #gateway - xb-backend:8822 #backend - xb-web:8833 #web - xb-xxl-job:2222 #xxl-job - xb-pay:8891 #pay - xb-jobs:9901 #jobs - xb-jobs:9998 #jobs relabel_configs: - source_labels: [__address__] target_label: __param_target - source_labels: [__param_target] target_label: instance - target_label: __address__ replacement: xinbo-bg-service:9115 # blackbox-exporter 服务所在的机器和端口 # ---------------------------------------------------------------------------------------------- - job_name: "葡京服务器" static_configs: - targets: ["pujing-bg-service:9100"] labels: group: "色站" - job_name: '葡京javaserver_tcp_connect' # 检测某些端口是否在线 scrape_interval: 5s metrics_path: /probe params: module: [tcp_connect] static_configs: - targets: - pj-game:9900 #game - pj-eureka:8800 #eureka - pj-gateway:8811 #gateway - pj-backend:8822 #backend - pj-web:8833 #web - pj-xxl-job:2222 #xxl-job - pj-pay:8891 #pay - pj-jobs:9901 #jobs - pj-jobs:9998 #jobs relabel_configs: - source_labels: [__address__] target_label: __param_target - source_labels: [__param_target] target_label: instance - target_label: __address__ replacement: pujing-bg-service:9115 # blackbox-exporter 服务所在的机器和端口 #---------------im---------------------------------------------------------------------------------- - job_name: "im-server" static_configs: - targets: - im-QianXun:9100 - im-YingJia:9100 - im-CaoLiu:9100 - im-LaiFuShi:9100 - im-RuXinJian:9100 - im-WeiLaiRiJi:9100 - im-ZhiZi:9100 - im-HouHuaYuan:9100 - im-YeHaiTang:9100 - im-LaiFuShi:9100 - im-ManTianXing:9100 labels: group: "im" ```
admin
2023年4月18日 19:11
转发文档
收藏文档
上一篇
下一篇
手机扫码
复制链接
手机扫一扫转发分享
复制链接
Markdown文件
分享
链接
类型
密码
更新密码