Skip to content

feat: add unified observability endpoint with SLS/DB routing#193

Merged
lexburner merged 1 commit intohigress-group:mainfrom
githuuuuub:log-source-bugfix
Mar 20, 2026
Merged

feat: add unified observability endpoint with SLS/DB routing#193
lexburner merged 1 commit intohigress-group:mainfrom
githuuuuub:log-source-bugfix

Conversation

@githuuuuub
Copy link
Contributor

📝 Description

  • Add ObservabilityConfig to switch log source via OBSERVABILITY_LOG_SOURCE env var (default: SLS)
  • Add ObservabilityController as unified entry at /observability/statistics
  • Route requests to SlsController or DBCollectorController based on config
  • Update frontend slsApi.ts to call /observability/statistics
  • Log data source details on startup (SLS config or DB URL + table)

🔗 Related Issues

✅ Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Code refactoring (no functional changes)
  • Performance improvement
  • Build/CI configuration change
  • Other (please describe):

🧪 Testing

  • Unit tests added/updated
  • Integration tests added/updated
  • Manual testing completed
  • All tests pass locally

📋 Checklist

  • Code has been formatted (mvn spotless:apply for backend, npm run lint:fix for frontend)
  • Code is self-reviewed
  • Comments added for complex code
  • Documentation updated (if applicable)
  • No breaking changes (or migration guide provided)
  • All CI checks pass

📊 Test Coverage

📚 Additional Notes

- Add ObservabilityConfig to switch log source via OBSERVABILITY_LOG_SOURCE env var (default: SLS)
- Add ObservabilityController as unified entry at /observability/statistics
- Route requests to SlsController or DBCollectorController based on config
- Update frontend slsApi.ts to call /observability/statistics
- Log data source details on startup (SLS config or DB URL + table)
@lexburner lexburner merged commit 3560bb2 into higress-group:main Mar 20, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants