若是是prometheus server配置文件添加以下:api
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資源添加以下url
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_remotespa