Commit Graph

94 Commits (09b0258ab45cd5a505d4a5b6c575ad10e04e3194)

Author SHA1 Message Date
Stuart Carnie dee8977d2c
chore: move v2/v1/tsdb → v2/tsdb 2020-08-26 10:46:47 -07:00
Stuart Carnie 7c972387e2
chore(task): Flux compatibility fixes
This commit temporarily pulls in code from the flux/ast/edit
package ensure builds continue. Once Flux is upgraded to the
latest, the pkg/flux package will be removed.
2020-08-20 11:25:51 -07:00
Stuart Carnie 3d913da53c
fix(pkger): Add temporary Flux helpers for pkger build 2020-08-11 10:36:13 -07:00
Stuart Carnie f86fcd24d5
fix(launcher): Fix unit tests after rebase 2020-08-03 09:20:51 -07:00
Stuart Carnie 89532f0c29
refactor: move v2/v1/models to v2/models 2020-08-03 09:20:51 -07:00
Stuart Carnie 26c18ac0a5
chore: Converging on 1.x tsdb 2020-08-03 09:20:48 -07:00
Edd Robinson 2b175291be
refactor: WIP removing tsbd 2020-08-03 09:18:34 -07:00
Stuart Carnie 92efddbfbe
chore(tsdb): Initial commit of tsdb package
* pulls in 1.x tsdb, compiles and passes test
2020-08-03 09:17:23 -07:00
George d1025b4962
feat(httpc): add error return argument to auth func (#19085) 2020-07-28 14:59:01 +01:00
Ben Johnson 3cc2638bbf feat(tsi1): Add optional mincore limiter to TSI 2020-07-22 10:17:42 -06:00
Ben Johnson c28eb70856 feat(mincore): Add page fault limiter
This commit adds `mincore.Limiter` which throttles page faults caused
by mmap() data. It works by periodically calling `mincore()` to determine
which pages are not resident in memory and using `rate.Limiter` to
throttle accessing using a token bucket algorithm.
2020-07-17 09:37:31 -06:00
Jonathan A. Sternberg 5aeca082c8
chore: update staticcheck and fix newly identified lint checks (#18737) 2020-06-26 18:54:09 -05:00
Stuart Carnie aea54d2ead
fix(http): Use shared http.Transport
This is following precedent established in `net/http`, by using a
shared `http.Transport`. This is necessary to ensure connections which
utilize HTTP keep-alive are reused, along with other benefits of
pooling.
2020-06-05 09:52:45 -07:00
Johnny Steenbergen dccae684fd chore(httpc): extend httpc reqs with tracing 2020-06-04 15:25:19 -07:00
Johnny Steenbergen e80f3068ce feat(httpc): extend request with Auth beahvior 2020-06-04 12:02:31 -07:00
Johnny Steenbergen fd289883fe feat(influx): add User-Agent header to the CLI http calls
closes: #18336
2020-06-02 16:09:11 -07:00
Pavel Zavora 7af307d76a chore(pkg/csv2lp): repair doc 2020-05-12 21:32:29 +02:00
Pavel Zavora 9699352e1a chore(pkg/csv2lp): clarify README.md 2020-05-12 21:32:29 +02:00
Pavel Zavora d12d6deae9 chore(pkg/csv2lp): rename CsvToProtocolLines to CsvToLineProtocol 2020-05-12 21:32:29 +02:00
Pavel Zavora 010f23f82f feat(pkg/csv2lp): support quoted new lines in SkipHeaderLinesReader 2020-05-12 21:32:29 +02:00
Pavel Zavora 584ade526d feat(pkg/csv2lp): improve README.md 2020-05-12 21:32:29 +02:00
Pavel Zavora 8dcbd15df2 feat(pkg/csv2lp): add SkipHeaderLinesReader 2020-05-12 21:32:29 +02:00
Pavel Zavora bfba3480fb feat(pkg/csv2lp): add MultiCloser 2020-05-12 21:32:29 +02:00
Pavel Zavora 94da00598a chore: improve doc 2020-05-12 21:32:29 +02:00
Pavel Zavora 8cdde7ac17 chore(pkg/csv2lp): apply code-review comments 2020-05-12 21:32:29 +02:00
Pavel Zavora 6e5aca1d8c chore(pkg/csv2lp): document tests 2020-05-12 21:32:29 +02:00
Pavel Zavora 476acc496a chore(pkg/csv2lp): use snake_case 2020-05-12 21:32:29 +02:00
Pavel Zavora 786f06b453 chore(pkg/csv2lp): add README.md 2020-05-12 21:32:29 +02:00
Pavel Zavora 234eac85eb feat(pkg/csv2lp): add csv to line protocol conversion library 2020-05-12 21:32:29 +02:00
Johnny Steenbergen 35ed5734bb chore(httpc): refactor inputs to eliminate required path
the base address should be enough to make a request. All requests
are now valid without a path provided. This will be true as long
as the address is valid.
2020-05-01 17:47:37 -07:00
Johnny Steenbergen 9495ec1c4e chore(testtp): extend testtp request with SetFormValue 2020-04-16 14:39:07 -07:00
Jonathan A. Sternberg 6e4cf7ffef
refactor: fix imports from go template files (#17615) 2020-04-03 17:40:36 -05:00
Jonathan A. Sternberg 0ae8bebd75
refactor: rewrite imports to include the /v2 suffix for version 2 2020-04-03 12:39:20 -05:00
Edd Robinson 4e9fdf862c feat: buffered io.WriteCloser 2020-03-13 11:00:28 +00:00
Jacob Marble 26ca766459
refactor(tsdb): move series file to its own package (#17224)
* refactor(storage): move type ByTagKey to the only package that uses it

* refactor(tsdb): use types in tsdb/cursors

* refactor(tsdb): remove unused type SeriesIDElems

* refactor(tsdb): inline only use of tsdb.ReadAllSeriesIDIterator

* refactor(tsdb): move series file to its own package

* refactor(storage): remove platform->influxdb aliases
2020-03-12 11:32:52 -07:00
Jacob Marble b91e3f36ab
refactor(hll): remove unused Sketch interface (#17218) 2020-03-12 08:59:05 -07:00
Johnny Steenbergen e650c941c7 fix: remove duplicate content types from httpc requests
2 issues from investigating this error. First is the status check func
did not identify it was a media unsupported issue adn tries to unmarshal
the empty response body. The 2nd, was the double content type headers were
causing an error. Locally this error does not surface, cannot repoduce on
macos, but in cloud it is persistent.

closes: #16819
2020-02-11 11:14:44 -08:00
Chris Goller 0746533b55
feat(pkg/httpc): add cookie based authorization (#16802)
This will begin work to mimic the browser via the client API.

Signed-off-by: Chris Goller <goller@gmail.com>
2020-02-10 12:37:13 -06:00
David McKay 8e51fe0aad fix(CORS): accept OPTIONS preflight request with Origin header 2020-02-06 20:28:29 +01:00
tmgordeeva 61adfe95fe
fix(storage): simple8b passes checkptr (#15512) (#16719)
Cherry-pick of 8f665ec from 1.8.

* fix(simple8b): disable checkptr on batch decodes

* perf: improve performance of simple8b encoding

```
name                      old time/op    new time/op    delta
EncodeAll/1_bit-24          35.8µs ± 2%    35.8µs ± 2%     ~     (p=0.887 n=10+7)
EncodeAll/2_bits-24         35.7µs ± 4%    35.6µs ± 3%     ~     (p=0.684 n=10+10)
EncodeAll/3_bits-24         36.5µs ± 3%    36.4µs ± 4%     ~     (p=0.780 n=10+9)
EncodeAll/4_bits-24         36.4µs ± 3%    37.8µs ± 2%   +3.71%  (p=0.000 n=10+10)
EncodeAll/5_bits-24         38.0µs ± 3%    38.3µs ± 2%     ~     (p=0.280 n=10+10)
EncodeAll/6_bits-24         39.4µs ± 1%    38.5µs ± 2%   -2.43%  (p=0.001 n=10+9)
EncodeAll/7_bits-24         39.6µs ± 3%    38.9µs ± 3%   -1.83%  (p=0.029 n=10+10)
EncodeAll/8_bits-24         40.3µs ± 3%    40.5µs ± 4%     ~     (p=0.278 n=10+9)
EncodeAll/10_bits-24        42.6µs ± 3%    41.9µs ± 2%     ~     (p=0.075 n=10+10)
EncodeAll/12_bits-24        44.2µs ± 2%    42.8µs ± 2%   -3.11%  (p=0.000 n=10+10)
EncodeAll/15_bits-24        46.0µs ± 1%    46.1µs ± 3%     ~     (p=0.447 n=9+10)
EncodeAll/20_bits-24        51.4µs ± 2%    50.0µs ± 2%   -2.86%  (p=0.000 n=10+10)
EncodeAll/30_bits-24        60.6µs ± 1%    58.1µs ± 2%   -4.02%  (p=0.000 n=10+10)
EncodeAll/60_bits-24        90.2µs ± 2%    85.2µs ± 1%   -5.50%  (p=0.000 n=10+10)
EncodeAll/combination-24     782µs ± 3%     762µs ± 5%     ~     (p=0.063 n=10+10)
Encode-24                   3.08µs ± 2%    3.09µs ± 1%     ~     (p=0.656 n=9+8)
Encoder-24                  4.58µs ± 0%    4.40µs ± 1%   -4.04%  (p=0.000 n=8+8)

```

Co-authored-by: Jacob Marble <jacobmarble@gmail.com>
2020-02-04 10:57:43 -08:00
Johnny Steenbergen 63fd1e2e9a feat(pkger): make pkger packages CRD compliant 2020-01-14 13:20:00 -08:00
Johnny Steenbergen fe12fd051e feat(pkger): add jsonnet support for package files 2020-01-13 09:55:08 -08:00
Johnny Steenbergen a6e768dc7c chore: refactor notication endpoints to make a service out of notification endpoints
this is a blocker for anyone who hits the endpoint services internally. They
had to know that they need to also know of hte secret service then do all that
put/delete alongside the operation. This makes that unified inside the store tx.

one other thing this does is make obvious the dependencies that
notification services has. In this case it is the secrets service it
depends on.
2019-12-17 10:49:06 -08:00
Johnny Steenbergen 88468822e2 feat(testttp): extend testttp with new JSON methods and refactors test to use it 2019-12-13 14:07:11 -08: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 5cc02de988 feat(httpc): add httpc pkg to resuse code for http client type 2019-12-09 12:17:22 -08:00
Stuart Carnie 36b0dc7da3
chore(vendor): Add jsonparser dependency for filter predicates
* Added jsonparser helper package to decode influxdb.ID
2019-11-22 10:34:20 -07:00
Johnny Steenbergen f6dbfec346 feat: import jsteenb2/testttp directly into pkg 2019-11-12 14:14:40 -08:00
Jacob Marble 7f1d2be486
fix(storage): guard against compaction burst throughput limit (#14985) (#15101) 2019-09-11 07:46:33 -07:00
Stuart Carnie 0054562014
feat(gen): Add Copy(tsdb.<type>Array) method to Values
This allows data generators to produce tsdb arrays, which are
useful for testing
2019-08-16 10:33:41 -07:00