Commit Graph

1091 Commits (98e8dc9ad8c54f96336d64ab80e3b944ecb00c5d)

Author SHA1 Message Date
Kelvin Wang f75f27c0bd feat(http): add audit log 2019-05-16 10:57:28 -04:00
Iris Scholten 2e26f23f9e
feat(authentication): Add cli args for specifying session length and renewal (#13924)
Co-authored-by: Jade McGough <jade@influxdata.com>

* Add session renew option to launcher and use in middlewhere
* pass session options to services
* Update SessionAutoRenew to SessionRenewDisabled
* Add test for service constructor defaults
* Update changelog
2019-05-15 10:16:47 -07:00
zhulongcheng 3c1e9ee5f3 fix(influxdb): use influxdb.Error in ID.Decode 2019-05-15 22:53:31 +08:00
Robert-André Mauchin 5079314ab5 chore(dep): update kin-openapi to v0.2.0
The API slightly changed: LoadSwaggerFromYAMLData is now replaced
by LoadSwaggerFromData.
See: https://github.com/getkin/kin-openapi/pull/67

Signed-off-by: Robert-André Mauchin <zebob.m@gmail.com>
2019-05-15 00:23:32 +02:00
Jade McGough 29d2387752
chore(http): update error handling example in readme (#13874) 2019-05-13 12:50:25 -07:00
kelwang 8687cb8039
Merge pull request #13448 from influxdata/create_view_issue
fix(http): create view
2019-05-13 13:33:34 -04:00
Jonathan A. Sternberg 01e3317b02
fix(http): do not discard non-json encoded errors when using `CheckError` (#13844)
If the error returned was normal text instead of JSON, the JSON parsing
would fail and the JSON error would be returned instead of the actual
error.

This has been modified so that when it fails to parse the text as JSON,
it will construct an error with the actual text and then wrap it using
the JSON error.
2019-05-13 12:02:05 -05:00
Jade McGough c6a0bf93a7
Merge pull request #13661 from influxdata/no_filter_parameters_provided
fix(influxdb): invalid filter error
2019-05-09 15:14:54 -07:00
Adam ae25f0c448 Merge remote-tracking branch 'origin/master' into flux-staging 2019-05-09 15:29:00 -04:00
Christopher M. Wolff c35c15f54d
refactor(http): move queryd http interface to idpe (#13862) 2019-05-09 10:41:14 -07:00
Alirie Gray 77934b01c6 feat(tasks): add description field to tasks 2019-05-08 13:39:09 -07:00
Jade McGough c27a96da9a
chore(http): surface unmarshaling failures in tests (#13855) 2019-05-08 12:51:03 -07:00
Jade McGough 291ac06372
fix(http): return correct response code when dashboard creation fails (#13803) 2019-05-06 16:19:42 -07:00
Mark Rushakoff 46a0a8160b fix(http): use influxdb.Error in FluxHandler 2019-05-05 11:05:00 -07:00
Alirie Gray 6a562757ad test(http): add test coverage for handler.go 2019-05-02 14:04:40 -07:00
Alirie Gray 763fe0a6e5 feat(http): add user-agent metrics to all http endpoints 2019-05-02 11:58:13 -07:00
Jade McGough 7855147241
Merge pull request #13636 from influxdata/delete_invalid_org_id
fix(http): fix delete bad org id
2019-04-29 10:15:36 -07:00
Leo Di Donato 4373392d54
feat(http): Default http transport uses the actual default values (#13437) 2019-04-29 16:57:30 +02:00
Jade McGough e02c859992
Merge pull request #13677 from influxdata/org_name_not_empty
fix(kv): fix empty org name
2019-04-26 15:57:19 -07:00
Kelvin Wang ea54e2c2c8 fix(kv): fix empty org name 2019-04-26 18:16:28 -04:00
Jonathan A. Sternberg 38d9fb8c79
feat(http): pretty stack trace for the http panic recovery handler (#13509)
When printing out a stacktrace with a logged error message, it is better
to set the `Stack` property on the entry than to include it as a string
within the context fields. It is also better than using `zap.Stack()`
too.

This is because certain encoders will perform a pretty print of the
stacktrace. The default zap-logfmt will read this property and include
it as a field so this code is identical when using that encoder, but the
console encoder, which is commonly used in local development because it
is automatically used with a TTY available, will print out a newline and
pretty print the stacktrace if it is included on the entry itself.
2019-04-26 15:06:41 -05:00
Jade McGough 6438999508
Merge pull request #13656 from zhulongcheng/fix-document-panic
fix document service panic
2019-04-26 12:30:27 -07:00
Kelvin Wang 2021321186 fix(influxdb): invalid filter error 2019-04-26 12:22:42 -04:00
Mark Rushakoff 9a8426c3f0 fix(http): use influxdb.Error in ProxyQueryHandler
In our internal use of this handler, some of these errors weren't
wrapped in the expected influxdb.Error type.
2019-04-26 08:19:00 -07:00
zhulongcheng f7635f0552 fix document service panic 2019-04-26 14:46:37 +08:00
Jade McGough e2cac953f5 fix(http): make org param optional in document get request 2019-04-25 14:45:01 -07:00
Kelvin Wang 9fa35961fd fix(http): fix delete bad org id 2019-04-25 15:20:28 -04:00
Kelvin Wang 717fcc44b3 feat(influxdb): add scraper filter 2019-04-25 11:33:34 -04:00
zhulongcheng 382e49b59b fix(http): make org & orgID optional 2019-04-25 11:13:49 +08:00
Jade McGough 8428c3630c fix(http): update bucket swagger to reflect recent changes 2019-04-24 14:11:38 -07:00
kelwang 49230619e6
Merge pull request #12754 from influxdata/swagger_telegraf_default_get
fix(http): fix telegraf get default swagger
2019-04-24 14:12:00 -04:00
kelwang 54fd1f81ce
Merge pull request #12802 from influxdata/swagger_basic_auth
fix(http): swagger define security schemes
2019-04-24 14:11:45 -04:00
kelwang 6261c274aa
Merge pull request #13444 from influxdata/swagger_orgID_not_required
fix(http): make getting labels orgID optional
2019-04-24 14:11:22 -04:00
kelwang 4acad08ea5
Merge pull request #13519 from influxdata/doc_desc
feat(influxdb): add doc description
2019-04-24 14:11:03 -04:00
kelwang 6ef624142b
Merge pull request #13556 from influxdata/org_desc
feat(influxdb): add org desc
2019-04-24 14:10:20 -04:00
Ben Johnson 01bfcf822b
Merge point parse & explode (#12377)
Merge point parse & explode
2019-04-24 10:30:16 -06:00
Ben Johnson 272f340c30
Merge point parse & explode. 2019-04-24 10:12:15 -06:00
kelwang 3bc1c49e91
Merge pull request #13557 from influxdata/bucket_desc
feat(influxdb): add bucket desc
2019-04-24 11:56:52 -04:00
Kelvin Wang 76cc27751b feat(influxdb): add bucket desc 2019-04-24 11:20:05 -04:00
kelwang e23824e32d
Merge pull request #13357 from zhulongcheng/docs-oplog-user
docs(http): add oplog user
2019-04-24 11:18:39 -04:00
kelwang d6001bf8e1
Merge pull request #13356 from zhulongcheng/docs-trace-span
docs(http): add missing Zap-Trace-Span header
2019-04-24 11:18:07 -04:00
Jade McGough 0d81a1ebdd fix(http): don't include nil values when auth responses are skipped 2019-04-23 14:34:04 -07:00
Jade McGough 0124a0c669 fix(http): don't 400 when auth GET decoration fails 2019-04-23 14:12:07 -07:00
Kelvin Wang 4c9f34122c feat(influxdb): add org desc 2019-04-22 22:40:07 -04:00
Kelvin Wang 7a72c363f2 remove org from bucket 2019-04-22 18:39:05 -04:00
Kelvin Wang 3868149a6c fix(http): scraper resp org 2019-04-22 18:39:03 -04:00
Kelvin Wang 9d44ac3635 rename bucket organization to org 2019-04-22 18:39:01 -04:00
Jade McGough b4851d4ecb fix(http): remove incorrect param from labels post 2019-04-19 14:01:24 -07:00
Kelvin Wang 53d95ecf52 feat(influxdb): add doc description 2019-04-19 12:47:31 -04:00
Kelvin Wang 5d195b63e0 fix(http): fix the swagger for cell update 2019-04-19 11:49:39 -04:00
Nathaniel Cook 4c77e3598b Merge branch 'master' into flux-staging 2019-04-18 11:01:22 -06:00
Michael Desa cabb8cbf98
Merge pull request #13490 from influxdata/fix/http-query-metric-org-id
fix(http): set org ID on event metric
2019-04-18 09:23:57 -04:00
Lorenzo Fontana da042eb418
docs(http): default http transport commentary
Signed-off-by: Lorenzo Fontana <lo@linux.com>
Co-authored-by: Leonardo Di Donato <leodidonato@gmail.com>
2019-04-18 11:27:35 +02:00
Lorenzo Fontana 54a15cfe43
feat(http): Default http transport uses the actual default values
Signed-off-by: Lorenzo Fontana <lo@linux.com>
Co-authored-by: Leonardo Di Donato <leodidonato@gmail.com>
2019-04-18 11:27:35 +02:00
Jade McGough 1b50785fb6
Merge pull request #13449 from influxdata/error-429
chore(http): add 429 response to errors
2019-04-17 22:12:34 -07:00
Mark Rushakoff f4937f1884 fix(http): set org ID on event metric
Looks like this field was just mistakenly overlooked when it was
introduced.
2019-04-17 16:08:32 -07:00
Todd Persen cd64ec8718 Fix typos in miscellaneous packages 2019-04-17 13:30:22 -07:00
Nathaniel Cook 8b918539db Merge branch 'master' into flux-staging 2019-04-17 12:26:10 -06:00
Michael Desa e00c071c2c
feat(influxdb): add query/write http event recorders
feat(http): add prometheus counters for tracking write/query usage

feat(http/metric): add metric recoder for recording http metrics

feat(prometheus): implement metric.Recorder for prometheus metrics

fix(prometheus): remove erroneous fmt.Printlns

feat(http): add prometheus registry to API backend

This was done as exposing prometheus metrics to a higher level was quite
difficult. It was much simple to simply pass the registry down to
anything that needs it.

feat(cmd/influxd/launcher): pass prom registry in on api backend

feat(http): collect metrics for write and query endpoints

This was much messier than I would have preferred. Future work is
outlined in TODOs.

review(influxdb): rename metric.Metric to metric.Event
2019-04-17 08:33:31 -04:00
Jade McGough 64ca8b6f08 chore(http): add 429 response to errors 2019-04-16 16:50:35 -07:00
Kelvin Wang bff7b90829 fix(http): create view 2019-04-16 18:06:39 -04:00
Kelvin Wang cbe26c04b7 fix(http): make getting labels orgID optional 2019-04-16 14:04:29 -04:00
kelwang 57ae0857de
Merge pull request #13412 from influxdata/doc_meta_type
feat(influxdb): add doc meta type
2019-04-16 10:59:36 -04:00
Jade McGough e4018fad81 Revert "docs(http): remove view id"
This reverts commit 78063a747d.
2019-04-15 15:00:52 -07:00
Jade McGough 5a1ae7c704 Revert "fix(http): remove view ID"
This reverts commit 1c6bdb6c3e.
2019-04-15 15:00:40 -07:00
Kelvin Wang 75b19dc1ec feat(influxdb): add doc meta type 2019-04-15 15:48:54 -04:00
zhulongcheng 78063a747d docs(http): remove view id 2019-04-15 23:14:06 +08:00
zhulongcheng d5917878d0 feat(http): find auths by org 2019-04-14 18:06:19 +08:00
zhulongcheng 1c6bdb6c3e fix(http): remove view ID 2019-04-14 12:31:35 +08:00
zhulongcheng 4e54bbf21c docs(http): add oplog user 2019-04-13 00:51:12 +08:00
Kelvin Wang a5f53e48c4 fix(http): fix go vet issue 2019-04-12 12:46:26 -04:00
zhulongcheng 7c5755556e docs(http): add missing Zap-Trace-Span header 2019-04-13 00:14:34 +08:00
jlapacik 816bd74af8 refactor(http): change all instances of spec compiler to repl compiler (#13268) 2019-04-12 07:15:27 -07:00
jlapacik fb47b8cd42 fix(http): use lang.Compile 2019-04-12 07:15:27 -07:00
jlapacik fbd7596aaa refactor(http): remove /query/spec from swagger file
Closes #12882.
2019-04-12 07:15:27 -07:00
jlapacik 5cf5806880 refactor(http): remove api/v2/query/spec endpoint and handler 2019-04-12 07:15:27 -07:00
Jonathan A. Sternberg b68b5053db refactor: replace usages of the spec compiler with the ast compiler (#13222)
This replaces usages of the spec compiler with the ast compiler and it
removes the error message referencing the spec compiler as an available
input.

It does not remove any of the code using the spec compiler that is
involved for proxying requests and it does not remove it from the API.
2019-04-12 07:15:27 -07:00
Jade McGough b5f6effda4
Merge pull request #13315 from influxdata/filter-label-org
feat(http): filter label response by organization
2019-04-12 02:07:33 -07:00
Jade McGough cfd521b47a fix label tests 2019-04-12 01:29:49 -07:00
Jade McGough 7914a04f0b organizationID -> orgID 2019-04-12 01:29:42 -07:00
Jade McGough 81e6a7116b feat(http): filter label response by organization 2019-04-12 01:29:32 -07:00
Nathaniel Cook f37e65f26c fix(query): change logging bridge to be a service instead
It is no longer necessary for the query logging to be a bridge as the
stats are available for consumption from the ProxyQueryService.
This change changes the logging bridge to directly implement the proxy
query service instead of implementing a bridge.
2019-04-11 14:46:45 -06:00
Kelvin Wang 92e82884a6 feat(http): accept label id for template post 2019-04-11 13:16:39 -04:00
kelwang 5958192788
Merge pull request #12795 from influxdata/swagger_scaraper_get_by_id
fix(http): swagger add get target by id
2019-04-11 11:24:54 -04:00
kelwang 67bf2f54ac
Merge pull request #13052 from influxdata/auth_update_interface
fix(influxdb): updated auth shall return
2019-04-11 11:24:02 -04:00
Jacob Marble f56c42794b
chore(tracing): Cleanup (#13296)
* chore(tracing): Cleanup

* broken test

* fix unused var

* fix test
2019-04-10 19:28:21 -07:00
Kelvin Wang ec6895531d feat(http): add document labe handler 2019-04-10 15:08:03 -04:00
kelwang be674622c6
Revert "fix(inmem): remove the old inmem implementation" 2019-04-09 14:24:40 -04:00
kelwang d0022dfd5c
Merge pull request #13039 from zhulongcheng/rm-inmem-impl
fix(inmem): remove the old inmem implementation
2019-04-09 13:06:50 -04:00
kelwang bfcf82d7b5
Merge pull request #13152 from zhulongcheng/docs-rm-view
docs(http): remove unused Views schema
2019-04-08 16:11:55 -04:00
kelwang c7d043a3b4
Merge pull request #13154 from zhulongcheng/doc-rm-view-link
docs(http): remove view link from api links
2019-04-08 16:11:26 -04:00
kelwang 34d631a9fc
Merge pull request #13156 from zhulongcheng/docs-rm-FluxLinks
docs(http): remove FluxLinks schema
2019-04-08 16:11:13 -04:00
zhulongcheng cacd6a8223 fix(inmem): replace inmem.Service with kv.Service 2019-04-08 15:18:38 +08:00
Kelvin Wang 8a825a8f9f feat(influxdb): get docs by org id 2019-04-04 12:51:30 -04:00
zhulongcheng 53412e3e6a docs(http): remove FluxLinks schema 2019-04-05 00:16:59 +08:00
zhulongcheng 153ef54d0f docs(http): remove view link from api links 2019-04-04 23:58:13 +08:00
zhulongcheng c745a8dfd9 docs(http): remove unused Views schema 2019-04-04 23:38:11 +08:00
Brandon Farmer 8fc86ba17e Update swagger endpoints to include orgID parameters 2019-04-03 16:44:16 -07:00
kelwang dd55308b77
Merge pull request #13071 from influxdata/bucket_not_found
fix(kv): fix bucket not found by name
2019-04-03 17:16:12 -04:00
Alirie Gray f04de15144
Merge pull request #13109 from influxdata/chore/add-description-to-variables
chore(variables): add description property to Variable struct
2019-04-03 14:00:43 -07:00