1

我的 Prometheus 配置包含以下内容:

- job_name: "spring-actuator-health"
  metrics_path: /probe
  params:
    module: [http_2xx]
  dns_sd_configs:
    - names:
      - 'tasks.notification-service'
      type: 'A'
      port: 8200
  relabel_configs:
    - source_labels: [__address__]
      target_label: __param_target
    - source_labels: [__param_target]
      target_label: instance

这可能是一个非常简单的问题,但我无法理解它:如何将静态字符串添加/actuator/healthtarget来自的参数__address__

所以生成的目标看起来像10.4.23.56:8200/actuator/health

4

0 回答 0