ismail simsek
0367f61bb3
Share azureauth between prometheus clients ( #58122 )
...
* Move azureauth to upper package
* Refactor http transport options
2022-11-03 19:44:37 +01:00
Jo
062d255124
Handle ioutil deprecations ( #53526 )
...
* replace ioutil.ReadFile -> os.ReadFile
* replace ioutil.ReadAll -> io.ReadAll
* replace ioutil.TempFile -> os.CreateTemp
* replace ioutil.NopCloser -> io.NopCloser
* replace ioutil.WriteFile -> os.WriteFile
* replace ioutil.TempDir -> os.MkdirTemp
* replace ioutil.Discard -> io.Discard
2022-08-10 15:37:51 +02:00
Andrej Ocenas
bf334ab777
Prometheus: Small improvements to the custom client ( #51709 )
...
* Add suggestions
* Fix tests
2022-07-04 22:55:07 +02:00
Andrej Ocenas
3df34fe064
Prometheus: Remove cache, pass headers in request, simplify client creation for resource calls and custom client ( #51436 )
...
* Remove cache, pass headers in request, simplify client creation
* Add test for http options creation
2022-07-04 11:18:45 +02:00
Andrej Ocenas
07be95a001
Prometheus: Fix body not being included in resource calls if they are POST ( #50833 )
...
* Pass on request body
* Fix GETs and add tests
* Fix err handling
* Add comments
* Close response body
* Fix lint maybe
* Fix test
2022-06-15 16:46:21 +02:00
Sergey Kostrukov
2d3cc26aa8
Prometheus: Remove Azure code from datasource service ( #50737 )
...
Ref #35857
2022-06-14 10:47:06 +02:00
Stephanie Closson
53ee72d15d
Prometheus: Migrate metadata queries to use resource calls ( #49921 )
...
* Sent resource calls for metadata to the backend
* moved resource calls to the backend
* code review feedback
* fixed post with body
* statuscode >= 300
* cleanup
* fixed tests
* fixed datasource tests
* code review feedback
* force some other endpoints to only GET
* fix linting errors
* fixed tests
* was able to remove section of redundant code
* cleanup and code review feedback
* moved query_exemplars to get request
* fixed return on error
* went back to resource calls, but using the backendsrv directly
* moved to a resource call with fallback
* fixed tests
* check for proper messages
* proper check for invalid calls
* code review changes
2022-06-03 15:56:13 -03:00
Todd Treece
0101c19374
Prometheus: Predefined scopes for Azure authentication ( #49861 )
2022-05-31 05:20:26 -04:00
Todd Treece
859cc92da7
Prometheus: Set default method to POST in new HTTP client ( #49198 )
2022-05-18 15:44:41 -04:00
Todd Treece
87e8521591
Prometheus: Implement Streaming JSON Parser ( #48477 )
...
use `prometheusStreamingJSONParser` feature toggle to enable
2022-05-13 20:28:54 +02:00
Travis Patterson
20b3b2a448
Forward oauth tokens after prometheus datasource migration ( #43686 )
...
* create the prom client
* implement lru cache of prometheus clients based on auth headers
* linter
2022-01-05 13:55:55 -07:00
Travis Patterson
c4c05a5b71
refactor promethueus package into sub packages ( #43634 )
2022-01-04 07:22:33 -07:00