zoukankan      html  css  js  c++  java
  • prometheus远程连接m3db实现存储

    如果是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

  • 相关阅读:
    vm扩容
    手算二维离散傅里叶变换
    取消vim模式匹配的高亮
    DS DI ES SI等等
    int and Integer
    为什么超类能引用子类的对象
    voltile解析
    java集合
    疑问:无限定通配符
    layui table 导出
  • 原文地址:https://www.cnblogs.com/kevincaptain/p/10251419.html
Copyright © 2011-2022 走看看