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

sql log loki #8

Open
Jack-laoniu opened this issue Oct 8, 2022 · 0 comments
Open

sql log loki #8

Jack-laoniu opened this issue Oct 8, 2022 · 0 comments

Comments

@Jack-laoniu
Copy link
Owner

数据库冷备

  • 数据库存量数据不使用,但是大量占用数据库存储资源的业务场景
  • 将存量数据按insert日志通过loki保存在oss中,节省资源,同时支持非高并发的查询
  1. 定时采集增量数据
  2. 存量数据分批采集

关于数据库存量数据入库时间与loki抓取时间不一致问题,可以参考自定义时间格式

https://grafana.com/docs/loki/latest/clients/promtail/stages/timestamp/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant