Spring & JVM

SpringBoot 集成 Prometheus 实现立体监控之业务面

通过指标,我们特指允许您推断系统总体性能(跨单个应用程序的不同组件、集群中的实例、在不同环境或区域中运行的集群等)的信息类别。 )。
值得注意的是,这不包括旨在推理各种组件在单个请求通过一系列服务时对总延迟的贡献的信息;这是 Spring Cloud Sleuth、Zipkin 的 BraveelasticAPMskywalking 等分布式跟踪收集器的责任。

global:
  scrape_interval: 15s # 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.
alerting:
  alertmanagers:
    - static_configs:
        - targets:
            - emr-header-2:9093
rule_files:
  #- "memory_over_rules.yml"
  #- "node_down_rules.yml"
scrape_configs:
  - job_name: myorder-service
    metrics_path: /metrics/prometheus
    static_configs:
    - targets: ['n1.web.io:48081']
      labels:
        instance: n1.web.io:48081
    - targets: ['n2.web.io:48081']
      labels:
        instance: n2.web.io:48081

留言

您的电子邮箱地址不会被公开。