Sign inSign up

qiuchenjun/highgo_exporter

By qiuchenjun

Updated almost 2 years ago

适用于普罗米修斯的瀚高数据库采集器,支持sm3

Image
0

968

qiuchenjun/highgo_exporter repository overview

1.运行 docker 镜像:

docker run -p 9187:9187 \
           -e DATA_SOURCE_NAME="postgresql://sysdba:Hello%[email protected]:5866/highgo?sslmode=disable" \
           qiuchenjun/highgo_exporter

💡 说明: 密码中的符号@需要使用%40表示。

2.使用浏览器访问宿主机映射后的服务

浏览器访问:http://192.168.56.22:9187/metrics

3.运行示例:

[root@S01 mydocker]# docker run -p 9187:9187 \
>   -e DATA_SOURCE_NAME="postgresql://sysdba:Hello%[email protected]:5866/highgo?sslmode=disable" \
>   highgo_exporter:v1.1
level=info ts=2022-08-29T17:24:52.234Z caller=postgres_exporter.go:1857 msg="Listening on address" address=:9187
level=info ts=2022-08-29T17:24:52.235Z caller=tls_config.go:191 msg="TLS is disabled." http2=false
level=info ts=2022-08-29T17:25:33.365Z caller=postgres_exporter.go:977 msg="Established new database connection" fingerprint=192.168.70.169:5866
level=info ts=2022-08-29T17:25:33.370Z caller=postgres_exporter.go:1554 msg="Semantic version changed" server=192.168.70.169:5866 from=0.0.0 to=13.1.0

Tag summary

Content type

Image

Digest

sha256:937590540

Size

9.1 MB

Last updated

almost 2 years ago

docker pull qiuchenjun/highgo_exporter