🎉 项目开源 : Golang编写的sentry-exporter
- 使用 Golang 编写了一个 sentry-prometheus-exporter-go 项目 已经开源,现在分享给大家。
Github : https://github.com/Dz6666/sentry-prometheus-exporter-go
Gitee : https://gitee.com/dz6666/sentry-prometheus-exporter-go
- 相信大家在工作中一定有想通过 Grafana 面板来展示 Sentry 中工程项目的一些事件指标,可以让我们快速定位工程调用链事件的一些问题。
- 当然我也没有那么笨 一上来就自己去 code,我也是去github 找了一圈,发现一些老旧项目尝试去本地运行测试,但是大多数都是API版本不兼容、采集指标不满足、Prometheus SDK 不兼容等等一些问题,所以只能借鉴前辈的一些思想、经验再结合自身需求来造轮子了,希望有需要的小伙伴自取 (PS : 小伙伴别忘记点个 Star 😄) 。
- 支持的指标如下 (详细使用文档可以详阅项目README)
- 支持指定检索项目、指标开关、抓取时间维度等
sentry_open_issue_events : A Number of open issues (aka is:unresolved) per project in the past 1h
sentry_open_issues_histogram : Gauge Histogram of open issues split into 3 buckets: 1h, 24h, and 14d
sentry_events : Total events counts per project
sentry_rate_limit_events_sec : Rate limit of errors per second accepted for a project.