LambdaHJ
LambdaHJ
将指标使用tsdb存储,一些业务字段需要以label的方式存储到tsdb,如下: ``` func (ts *tsstorage) InsertPodResourceMetric(n *podResourceMetric) error { rows := []tstorage.Row{ { Metric: "pod_resource_cpu", Labels: []tstorage.Label{ {"name", n.PodUID}, }, DataPoint: tstorage.DataPoint{ Value: n.CPUUsedCores, Timestamp: int64(n.Timestamp.Second()), }, }, { Metric:...
prometheus的tsdb必须要写磁盘。  可能需要挂载hostpath.
影响模块:metriccache 主要变更代码: storage.go storage_tables.go 副作用:可能会影响使用metriccache 方案: 使用prometheus tsdb模块存储数据。 由于tsdb一定需要写磁盘,规划挂载emptydir解决磁盘读写问题。
公司:趣丸科技 阶段:评估 关注:懒加载 建议:懒加载需要对每个服务配置对应端口使用起来不方便 联系方式:[email protected]