vm集群学习

一. 集群建设

 

https://www.cnblogs.com/rongfengliang/p/12793136.html

 

 
 
 
 
 
 
 
 
 
 
二、 接口
 
vm集群查询数据使用vmselect,默认是:http://vmselect:8481/select/0/prometheus/<suffix>
 
党替换prometheus时,可用http://vmselect:8481/select/0/prometheus替换http://prometheus:9090,后边的接口url不变
 
如:查询disk_free数据:
 
http://10.192.196.8:8481/select/0/prometheus/api/v1/query?query=disk_free
 
 
其他兼容接口:
 
复制代码
<suffix> may have the following values:

    1.api/v1/query - performs PromQL instant query
    2.api/v1/query_range - performs PromQL range query
    3.api/v1/series - performs series query
    4.api/v1/labels - returns a list of label names
    5.api/v1/label/<label_name>/values - returns values for the given <label_name> according to API
    6.federate - returns federated metrics
    7.api/v1/export - exports raw data. See this article for details
复制代码

 

三、vmui查询页面

http://vmselect:8481/select/0/vmui/

posted @   明天OoO你好  阅读(289)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?
点击右上角即可分享
微信分享提示