Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

支持将指标数据存储到时序数据库 #13

Open
legendecas opened this issue Apr 18, 2022 · 2 comments
Open

支持将指标数据存储到时序数据库 #13

legendecas opened this issue Apr 18, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@legendecas
Copy link
Member

目前时序数据库如 Prometheus、TSDB 等是业界成熟的用于存储时间序列数据(写多读少、高并发写入、无事务要求、海量数据)的专业化数据库。对于 xprofiler 的指标数据,也是符合这个特征的数据,可以使用时序数据库存储来优化存储、查询性能。

@legendecas legendecas changed the title 支持将指标数据存储到时许数据库 支持将指标数据存储到时序数据库 Apr 18, 2022
@hyj1991 hyj1991 added the enhancement New feature or request label Apr 18, 2022
@hyj1991
Copy link
Member

hyj1991 commented Apr 18, 2022

有没有时序数据库的 API 样例,目前所有监控日志的存储都定义在:https://github.com/X-Profiler/xtransit-manager/blob/master/app/service/mysql.js

理论上需要抽象一下存储逻辑原语,适配不同的下游数据库,之前想在这一层更改为 ORM,不过不知道已有的 ORM 是否支持时序数据库。

@legendecas
Copy link
Member Author

API 样例可以参考 Prometheus 的 https://prometheus.io/docs/prometheus/latest/querying/basics/ ,像 SLS MetricStore 提供的也是 Prometheus 的查询前端。其他的时序数据库比如 TSDB 提供的概念也是类似的,就是支持的查询操作会有些许差异。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants