上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 34 下一页

【分享】thanos receiver的grafana报表配置

摘要: 具体的部署是:用prometheus抓取thanos receiver的10909端口,然后grafana再请求这个prometheus 具体的JSON配置请见最后 本文的一些监控配置,参考了这篇文章:Prometheus 内置的一些 Metrics 在grafana中导入报表配置,请看这里 1.r 阅读全文
posted @ 2021-09-03 17:12 ahfuzhang 阅读(287) 评论(0) 推荐(0)

【采坑小计】thanos receiver的官方文档中,并未说明tsdb落盘的配置方式

摘要: 官方文档的地址在:https://thanos.io/tip/components/receive.md/ 一开始以为落盘的时间间隔是:--tsdb.retention=15d 实际测试中发现,thanos receiver的落盘时间是2小时,上面的配置看起来只是tsdb文件在本地磁盘保留的时间。 阅读全文
posted @ 2021-09-03 10:27 ahfuzhang 阅读(252) 评论(0) 推荐(0)

【记录一个问题】thanos receiver在tsdb切换期间,导致remote write接口失败增加

摘要: 如图:配置了thanos receiver落盘的时间周期为10分钟,结果导致在切换tsdb期间,remote write接口的失败率增高。 目前看来,解决办法就是上游增加重试。 阅读全文
posted @ 2021-09-03 10:15 ahfuzhang 阅读(83) 评论(0) 推荐(0)

【采坑小计】prometheus的remote write协议遇到的问题

摘要: 没有读懂源码以前,无脑试错总是效率很低的! 1.thanos receiver报store locally for endpoint : conflict 接口返回的日志: store locally for endpoint : conflict code=409 thanos receiver上 阅读全文
posted @ 2021-08-20 21:06 ahfuzhang 阅读(1491) 评论(0) 推荐(0)

【解决了一个小问题】golang的go.mod中出现版本错误

摘要: 代码中的这一句使用prometheus2.28.0版本的代码: import "github.com/prometheus/prometheus/prompb" 我把require github.com/prometheus/prometheus v2.5.0+incompatible修改为gith 阅读全文
posted @ 2021-08-18 14:26 ahfuzhang 阅读(1636) 评论(0) 推荐(0)

【笔记】macos上部署thanos_receiver + thanos_query

摘要: 为了方便起见,在mac笔记本上进行了测试 1.写一个发送数据的客户端 package main import ( "fmt" "io/ioutil" "log" "math/rand" "net/http" "os" "strconv" "strings" "time" "github.com/go 阅读全文
posted @ 2021-08-16 21:37 ahfuzhang 阅读(152) 评论(0) 推荐(0)

【记录一个问题】thanos receiver的日志中出现错误:conflict

摘要: 完整的错误如下: level=debug ts=2021-08-16T09:07:43.412451Z caller=handler.go:355 component=receive component=receive-handler msg="failed to handle request" e 阅读全文
posted @ 2021-08-16 17:46 ahfuzhang 阅读(234) 评论(0) 推荐(0)

神坑!为什么prometheus的pushgateway不能对上报的counter进行累加?

摘要: 部署了一个prometheus的pushgateway,然后两次对其发送counter类型的数据: #第一次发送 curl -X POST -d '# TYPE my_first_metric_ahfu counter my_first_metric_ahfu{container="xx1",IP= 阅读全文
posted @ 2021-08-10 18:55 ahfuzhang 阅读(352) 评论(0) 推荐(0)

prometheus+exporter小测试:

摘要: 1.golang中使用expoter import ( "github.com/prometheus/client_golang/prometheus/promhttp" ) func main(){ http.Handle("/metrics", promhttp.Handler()) } 2.访 阅读全文
posted @ 2021-08-09 20:33 ahfuzhang 阅读(249) 评论(0) 推荐(0)

prometheus基本概念(思维导图)

摘要: 参考文章: prometheus词汇表 prometheus的summary和histogram指标的简单理解 阅读全文
posted @ 2021-07-15 21:31 ahfuzhang 阅读(208) 评论(0) 推荐(0)
上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 34 下一页