Andreas Christou
51d3624bf9
Graphite: Migrate query endpoint entirely to backend ( #111138 )
...
* Update query type
* Support metric tank queries
- Update tests
- Appropriately set URL parameter
* Support queries via the backend
- Add the filterQuery and applyTemplateVariables methods
- Separate the frontend query path into its own function
- Ensure format is always json
- Add method for building backend query objects (maintain the existing template replacement logic)
- Fix a bug in metric find queries
* Update tests
* Fix lint
* Update types
2025-09-18 11:14:24 +01:00
Andreas Christou
3e0f57a407
Graphite: Backend metrics expand endpoint ( #110678 )
...
* Add lint rules
* Backend decoupling
- Add standalone files
- Add graphite query type
- Add logger to Service
- Create logger in the ProvideService method
- Use a pointer for the HTTP client provider
- Update logger usage everywhere
- Update tracer type
- Replace simplejson with json
- Add dummy CallResource and CheckHealth methods
- Update tests
* Update ConfigEditor imports
* Update types imports
* Update datasource
- Switch to using semver package
- Update imports
* Update store imports
* Update helper imports and notification creation
* Update context import
* Update version numbers and logic
* Copy array_move from core
* Test updates
* Add required files and update plugin.json
* Update core references and packages
* Remove commented code
* Update wire
* Lint
* Fix import
* Copy null type
* More lint
* Update snapshot
* Refactor backend
- Split query logic into separate file
- Move utils to separate file
* Add health-check logic
- Support backend healthcheck if the FF is enabled
* Remove query import support as unneeded
* Add test
* Add util function for decoding responses
* Add events types
* Add resource handler
* Add events handler and generic resource req handler
* Tests
* Update frontend
- Add types
- Update events function to support backend requests
* Lint and typing
* Lint
* Add metrics find endpoint
- Add types
- Add generic response parser
- Add endpoint
- Tests
* Update FE functoin to use backend endpoint
* Lint
* Simplify request
* Update test
* Metrics expand type
* Extract shared logic and add metric expand endpoint
* Update tests
* Call metric expand from backend
* Add tests
* Review
* Review
* Fix packages
* Format
* Fix merge issues
* Review
* Fix undefined values
* Extract request creation
- Add method for create requests generically with tests
- Replace usage in query method
- Update usages in resource handlers
- Update tests
- Update types
2025-09-12 22:35:10 +01:00
Andreas Christou
6f83a6b2fd
Graphite: Backend health-check ( #110518 )
...
* Add lint rules
* Backend decoupling
- Add standalone files
- Add graphite query type
- Add logger to Service
- Create logger in the ProvideService method
- Use a pointer for the HTTP client provider
- Update logger usage everywhere
- Update tracer type
- Replace simplejson with json
- Add dummy CallResource and CheckHealth methods
- Update tests
* Update ConfigEditor imports
* Update types imports
* Update datasource
- Switch to using semver package
- Update imports
* Update store imports
* Update helper imports and notification creation
* Update context import
* Update version numbers and logic
* Copy array_move from core
* Test updates
* Add required files and update plugin.json
* Update core references and packages
* Remove commented code
* Update wire
* Lint
* Fix import
* Copy null type
* More lint
* Update snapshot
* Refactor backend
- Split query logic into separate file
- Move utils to separate file
* Add health-check logic
- Support backend healthcheck if the FF is enabled
* Remove query import support as unneeded
* Add test
* Add tests
* Review
* Review
* Fix packages
* Fix merge issues
2025-09-11 12:31:11 +01:00