George MacRorie
b274e15eac
fix(telegraf): support pagination parameters when listing
2020-11-04 15:53:02 +00:00
Johnny Steenbergen
86894d4337
feat(influx): add telegraf resource support to influx CLI
...
closes : #17654
2020-07-20 15:37:43 -07:00
Jonathan A. Sternberg
5aeca082c8
chore: update staticcheck and fix newly identified lint checks ( #18737 )
2020-06-26 18:54:09 -05:00
Alirie Gray
2c0916addf
refactor: create new token package ( #17874 )
2020-04-30 07:52:21 -07:00
Johnny Steenbergen
af0fc05f5e
fix(http): provide support for telegraf update in http client
2020-04-24 17:05:55 -07:00
Jonathan A. Sternberg
0ae8bebd75
refactor: rewrite imports to include the /v2 suffix for version 2
2020-04-03 12:39:20 -05:00
Alirie Gray
991002d83b
fix(labels): add check for write permissions to create label ( #17174 )
2020-03-12 10:51:50 -07:00
kun
8e6ce60cf5
fix(http): fix /telegrafs panics when using org=org_name parameter
2020-01-27 11:04:11 +08:00
Greg
abd8ce0089
feat(http): add functionality to retrieve/store telegraf config as toml ( #16132 )
2019-12-20 14:20:13 -07:00
Greg
41e771a464
feat(http): expose list of available telegraf plugins ( #16233 )
2019-12-17 16:53:19 -07:00
Johnny Steenbergen
bf86cce1f1
feat(httpc): extend httpc Client with JSON shorthand methods
...
making most common API calls super easy to get up and running
2019-12-12 07:44:31 -08:00
Johnny Steenbergen
8729cd0959
chore(http): refactor api handler take advantage of route tree instead of switch statement
...
is very much WIP at this point
2019-12-11 09:53:29 -08:00
Johnny Steenbergen
417d25537f
chore(http): refactor org service to use httpc client
2019-12-10 10:49:22 -08:00
Johnny Steenbergen
5cc02de988
feat(httpc): add httpc pkg to resuse code for http client type
2019-12-09 12:17:22 -08:00
Johnny Steenbergen
ad841608ca
chore(http): refactor bucket|dashboard|label|umr|var http clients to use reusable HTTP client
...
this is a step towards providing a shared http client that manages pooling connections,
timeouts, and reducing GC for by not creating/GCing a client each req. Bring on the red!
2019-12-09 09:44:41 -08:00
Johnny Steenbergen
0225160814
fix(http): provides a reusable http client instead of creating/GCing one each time
2019-12-06 18:15:35 -08:00
Johnny Steenbergen
c76babdce6
feat(pkger): add support for exporting telegraf
2019-12-05 09:58:44 -08:00
Jacob Marble
5f19c6cace
chore: Remove several instances of WithLogger ( #15996 )
...
* chore: Remove several instances of WithLogger
* chore: unexport Logger fields
* chore: unexport some more Logger fields
* chore: go fmt
chore: fix test
chore: s/logger/log
chore: fix test
chore: revert http.Handler.Handler constructor initialization
* refactor: integrate review feedback, fix all test nop loggers
* refactor: capitalize all log messages
* refactor: rename two logger to log
2019-12-04 15:10:23 -08:00
Johnny Steenbergen
695211aeda
feat(pkger): add dry run and apply functionality for telegraf resources
2019-12-04 13:50:42 -08:00
George
3dbb9c0fd2
feat(tracing): dont trace spans with full request paths as operation name in ExtractFromHTTPRequest ( #15971 )
...
* feat(tracing): dont trace spans with full URL path names in ExtractFromHTTPRequest
* chore(multiple): replace all occurrences of julienschmidt/httprouter with influxdata/httprouter
2019-11-25 15:22:19 +01:00
Johnny Steenbergen
fc955c5abe
chore(http): remove logging of senstive data
...
after discussion with team, dropping the request logging was decided on.
2019-09-25 09:49:09 -07:00
Kelvin Wang
dcda49d1d0
feat(http): add notification rule handler
2019-07-25 15:15:35 -04:00
Kelvin Wang
f55cf4c8b3
feat(http): add auth debug log
2019-07-15 12:09:59 -04:00
Kelvin Wang
9ecada4dce
feat(http): convert errorEncode to use interface
2019-06-26 21:41:01 -04:00
zhulongcheng
5f1e070a73
fix(http): rename OrgID to orgID
2019-06-06 22:12:32 +08:00
Kelvin Wang
18a0f3f542
fix(influxdb): rename telegraf orgID
2019-06-03 16:20:53 -04:00
Jade McGough
7bcff2e973
fix(http): remove newPatchLabelHandler, it should not exist
...
This was removed in the labels 2.0 rewrite, and looks like it was added back as a regression
2019-03-27 14:31:04 -07:00
Kelvin Wang
052510f3ee
fix(http): fix telegraf delete
2019-03-15 11:31:22 -04:00
Chris Goller
2011ef7252
Merge pull request #12177 from zhulongcheng/rm-owner-schema
...
docs(http): add members/owners links
2019-03-10 22:39:53 -05:00
Chris Goller
27e98a3e41
fix(http/telegraf): JSON marshaling using pointer receiver
2019-03-08 15:12:46 -06:00
Andrew Watkins
7725c79c45
hack: make server return labels and links
2019-03-08 10:14:22 -08:00
zhulongcheng
111ed7767d
docs(http): add members/owners links
2019-03-07 10:56:36 +08:00
Michael Desa
23f6c4b3fe
fix(http): pass resource type through to label handlers
...
Co-authored-by: Iris Scholten <ischolten.is@gmail.com>
2019-02-07 19:08:56 -05:00
zhulongcheng
2d48b85f0a
feat(http): construct label handler by LabelBackend
2019-02-06 19:18:23 +01:00
zhulongcheng
be37e07bea
feat(http): construct member handler by MemberBackend
2019-02-06 19:18:23 +01:00
zhulongcheng
df93adce9a
feat(http): construct telegraf handler by TelegrafBackend
2019-02-06 19:18:23 +01:00
Kelvin Wang
79ce30691e
update(http): remove kerrors, change the default to be influxdb error
2019-01-25 10:29:26 -08:00
Jade McGough
8a1d7ba1ba
Labels v2 ( #11198 )
...
* WIP first-class endpoint for labels
* WIP
* WIP
* add all the boilerplate
* fix boltdb
* fix http label test
* fix test
* WIP
* fix test failures
* reenable all tests
* add failing test for label mappings
* add label mapping bolt bucket
* implement resource -> label mapping fn
* add inmem label mapping
* delete label mappings
* remove unused stuff
* add missing functions
* add POST endpoint for labels
* add GET route for label
* delete label endpoint
* add label patch endpoint
* remove commented code
* add label service to api handler
* update comment
* add FindLabelByID test
* use platform.Error
* change path name
* formatting
* remove label patch from swagger
* avoid potential orphaned mapping bug
* guard against creating label mappings from nonexistent labels
* update swagger
* update swagger
* update swagger
* fix swagger indentation
* update swagger
2019-01-18 11:03:36 -08:00
Michael Desa
c60031a6b7
fix(influxdb): change resource to resource type
2019-01-15 12:57:57 -05:00
Kelvin Wang
390f553416
fix(http): fix the user resouce mapping filter
2019-01-14 12:07:51 -05:00
Mark Rushakoff
d73d73c0d4
chore: rename imports from platform to influxdb
...
I did this with a dumb editor macro, so some comments changed too.
Also rename root package from platform to influxdb.
In interest of minimizing risk, anyone importing the root package has
now aliased it to "platform" so that no changes beyond imports were
necessary in those files.
Lastly, replace the old platform module to local path /dev/null so that
nobody can accidentally reintroduce a platform dependency while
migrating platform code to influxdb.
2019-01-09 20:51:47 -08:00
Leonardo Di Donato
3d0a42cbbc
fix(http): filtering telegraf configs only by organization ID
...
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
2019-01-09 22:17:19 +01:00
Leonardo Di Donato
77574c559d
feat(http): decode telegraf config filters and tests
2019-01-09 22:17:19 +01:00
Jade McGough
815795261d
feat(http): add labels to bucket responses
2019-01-03 16:02:02 -08:00
Jade McGough
910d310c20
feat(http): add labels to telegraf GET responses
2019-01-03 16:02:02 -08:00
Andrew Watkins
3429e8d0c6
feat(auth): rewrite authorization service ( #2157 )
...
* feat(view-token-overlay): add view token overlay
* test(tokens): update tests
* chore(auths): rename mock data file
* feat(token-view): clicking on description opens token view modal
* feat(token-view): add ability to close overlay
* feat(token-view): display token permissions with updated permissions shape
* feat(token-view): wip update authorization and permission shapes
* feat(auth): wip refactor auth permissions
* fix(auth): generate permissions via functions
* fix(auth): make Id ID
* chore(types): update generated client
* feat(auth): wip add user and org names to auth
* fix(user): didnt save rebase
* feat(auth): WIP refactor auth
* feat(auth): check for user existence during auth creation
* feat(auth): org must exist during auth creation
* fix(auth): pluralize telegrafs resource type
* docs(http): update swagger definition for the Authorization
* test(auth): fix broken tests
* docs(swagger): update cur_swagger Authrorizations
* fix(api): remove trace from cur_swag
* test(ui/token): update components with new generated type definitions
* feat(http): add lookup service adding names for permissions
* fix(http): remove debugging panics
* chore: go tidy
* fix: unsaved rebase
* test(idpe): add ids to Authorizations for log tests
2018-12-28 15:02:19 -08:00
Chris Goller
4f38c8cad9
feat(http): add accept parsing for telegraf
2018-12-26 12:23:59 -06:00
Kelvin Wang
003561148d
fix(platform): remove creator and time
2018-12-21 11:05:55 -05:00
Michael Desa
158be4b599
Merge pull request #1993 from zhulongcheng/fix-user-service
...
fix(http): pass user service to handler New function
2018-12-21 09:37:42 -05:00
Michael Desa
b0f13f2857
Merge pull request #2073 from influxdata/fix/issue#1904
...
remove multiple calls to w.WriteHeader in http handlers
2018-12-20 14:53:04 -05:00