Prometheus
Q_X_Q 慶
这个作者很懒,什么都没留下…
展开
-
prometheus------PromQL学习笔记(1)
1 时间序列 在 …(主机号)/metrics 里面是监控的各项指标 # HELP postgresql_backends_total Number of backends currently connected to database # TYPE postgresql_backends_total gauge postgresql_backends_total{database_name="...原创 2020-03-13 11:25:56 · 303 阅读 · 0 评论 -
下载postgres_exporter ,并编译添加在prometheus的targets下
我下载的postgres_exporter https://github.com/rnaveiras/postgres_exporter#start-of-content 这个postgres_exporter 是用go写的,我看到的其他几个也是go写的。在目录下,使用go mod 添加依赖(当然要有go语言的环境,如果目录里没有go.mod文件还需要 go mod init ) 然后编译go文...原创 2020-03-10 10:10:46 · 1140 阅读 · 0 评论