promethues 远程写入VictoriaMetrics 配置

配置Prometheus使用vminsert
修改Prometheus配置,添加remote_write配置

global:
..........

remote_write:
- url: http://192.168.122.19:8480/insert/0/prometheus

配置修改完成后重启Prometheus

systemctl restart prometheus

 

复制代码
# 配置副本
replication:
  replicas:
    - name: node1
      address: localhost:8400
      role: master
    - name: node2
      address: localhost:8401
      role: replica
    - name: node3
      address: localhost:8402
      role: replica

# 配置分片
sharding:
  shardSize: 1000
  shards:
    - name: shard1
      nodes:
        - localhost:8500
        - localhost:8501
    - name: shard2
      nodes:
        - localhost:8600
        - localhost:8601
复制代码

 

 

posted @   滴滴滴  阅读(167)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 【自荐】一款简洁、开源的在线白板工具 Drawnix
· 园子的第一款AI主题卫衣上架——"HELLO! HOW CAN I ASSIST YOU TODAY
· Docker 太简单,K8s 太复杂?w7panel 让容器管理更轻松!
历史上的今天:
2023-03-14 [kubernetes]Calico运行异常:dial tcp 10.96.0.1:443: connect: connection refused
2018-03-14 linux 参数内核
2018-03-14 linux 进程线程
2018-03-14 NPTL LinuxThreads
2018-03-14 linux 线程
2018-03-14 ulimit的坑
点击右上角即可分享
微信分享提示