prometheus_sql_exporter:在Prometheus指标终结点上公开用户指定SQL查询的服务

时间:2021-05-23 05:40:27
【文件属性】:
文件名称:prometheus_sql_exporter:在Prometheus指标终结点上公开用户指定SQL查询的服务
文件大小:24KB
文件格式:ZIP
更新时间:2021-05-23 05:40:27
Go prometheus_sql_exporter 临metheus小号QLëxporter(PROSE)是一种将用户指定SQL查询到普罗米修斯度量的工具。 具有以下特点 创建任意数量的普罗米修斯量规 将任意数量的原始SQL查询附加到Prometheus量规 支持PostgreSQL和MySQL 注意事项: 仅支持量规 所有SQL查询都必须返回一个整数指标(例如count() ) 入门 打算将此工具用作Docker容器。 要与Kubernetes一起使用,请使用的清单 CLI参数 $ docker run -it quay.io/weaveworks/prometheus_sql_exporter --help This service will monitor a database for specified queries and expose them to prometheu
【文件预览】:
prometheus_sql_exporter-master
----mocks()
--------Dockerfile.integration-db(72B)
--------mock-data.sql(187B)
----querying()
--------service_test.go(931B)
--------service.go(864B)
----config()
--------config.go(2KB)
----cmd()
--------integration_test.go(2KB)
--------version.go(317B)
--------root.go(3KB)
----deploy()
--------k8s()
----db()
--------int_query.go(476B)
--------int_query_test.go(470B)
--------repository.go(1KB)
--------repository_test.go(2KB)
----monitoring()
--------named_gauge.go(495B)
--------named_gauge_test.go(421B)
--------gauge.go(898B)
--------gauge_test.go(756B)
----LICENSE(11KB)
----glide.lock(4KB)
----main.go(110B)
----docker()
--------Dockerfile.prometheus_sql_exporter(88B)
--------image-tag(549B)
----glide.yaml(535B)
----.gitignore(281B)
----circle.yml(2KB)
----Makefile(2KB)
----README.md(4KB)

网友评论