Commit Graph

18 Commits

Author SHA1 Message Date
hazelzhu
d48f72544d add request metric queries 2025-10-23 12:54:03 +08:00
icecheng
8ee447a9fb feat: update prometheus query logic, use utc timezone and update promql 2025-09-25 22:12:32 +08:00
icecheng
eae0255766 feat: add starrock connect pool 2025-09-25 18:25:51 +08:00
bae09037a3 Merge pull request '1d and 1m' (#68) from feature/wc into dev
Reviewed-on: freeleaps/freeleaps-service-hub#68
2025-09-23 13:55:45 +00:00
weicao
5b521c4ec4 1d and 1m 2025-09-23 16:23:59 +08:00
icecheng
afb90e55e6 feat: enable metrics 2025-09-22 16:48:07 +08:00
icecheng
459e56c7bf feat: enable metrics 2025-09-22 15:38:34 +08:00
weicao
83b9fdbf9e fixed the date format issue and add monthly registered users metric 2025-09-21 15:04:40 +08:00
weicao
81628407df fixed: code standard and env file 2025-09-19 16:03:29 +08:00
weicao
b7858c193e fixed some code standard 2025-09-19 15:32:00 +08:00
weicao
98405934ce feat(change code structure) 2025-09-19 10:29:10 +08:00
icecheng
ddbf509713 Merge branch 'feature/icecheng/metrics' into feature/wc
# Conflicts:
#	apps/metrics/common/config/app_settings.py
#	apps/metrics/webapi/main.py
#	apps/metrics/webapi/routes/metrics/__init__.py
#	apps/metrics/webapi/routes/metrics/registration_metrics.py
2025-09-18 17:46:12 +08:00
weicao
3a05ec5001 metrics: restructure starrocks routes, move database client, align APIs, Docker updates 2025-09-18 17:19:27 +08:00
icecheng
d008c1a8bc feat: add support for Prometheus-related metrics 2025-09-16 17:07:24 +08:00
icecheng
7027e8c3f7 refactor: refactor the metric project structure 2025-09-16 15:17:23 +08:00
weicao
35fbda6954 Refactor metrics service: rename files for better readability
- Rename starrocks_client.py -> database_client.py
- Rename daily_registered_users.py -> user_registration_models.py
- Rename daily_registration_service.py -> registration_analytics_service.py
- Rename daily_registration.py -> registration_metrics.py
- Rename site_settings.py -> app_settings.py
- Rename application.py -> app_factory.py
- Update all import statements and references
- Update README.md with new file structure
2025-09-15 16:31:20 +08:00
weicao
b490ced2f0 Clean up metrics service: remove unnecessary files, update Dockerfile, and add README 2025-09-15 15:22:52 +08:00
weicao
44f08eee68 Add metrics service with user registration API endpoints
- Add complete metrics microservice structure
- Implement StarRocks database integration
- Add user registration data query APIs:
  - Daily registered users by date range
  - Recent N days registration data
  - Registration data by start date and days
  - Registration summary statistics
- Add comprehensive error handling and logging
- Include test scripts and documentation
2025-09-11 17:35:20 +08:00