如果是prometheus server配置文件添加如下:

remote_read:
  - url: "http://m3coordinator.m3db.svc.cluster.local:7201/api/v1/prom/remote/read"
    # To test reading even when local Prometheus has the data
    read_recent: true

remote_write:
  - url: "http://m3coordinator.m3db.svc.cluster.local:7201/api/v1/prom/remote/write"
    # To differentiate between local and remote storage we will add a storage label
    write_relabel_configs:
      - target_label: metrics_storage
        replacement: m3db_remote

 

如果是prometheus-operator里的prometheus资源添加如下

remoteRead:
  - url: "http://m3coordinator.m3db.svc.cluster.local:7201/api/v1/prom/remote/read"
    readRecent: true
remoteWrite:
  - url: "http://m3coordinator.m3db.svc.cluster.local:7201/api/v1/prom/remote/write"
    writeRelabelConfigs:
      - targetLabel: metrics_storage
        replacement: m3db_remote

 

相关文章:

  • 2021-11-21
  • 2022-12-23
  • 2021-09-04
  • 2022-01-23
  • 2022-12-23
  • 2021-08-29
猜你喜欢
  • 2022-12-23
  • 2021-11-25
  • 2022-01-06
  • 2021-12-19
  • 2021-11-27
  • 2022-02-08
相关资源
相似解决方案