Commit Graph

428 Commits (355d32b0cf7370fb361c882dd9a92a797c68d449)

Author SHA1 Message Date
Jonathan A. Sternberg 8c6cf672e2
build(flux): update Flux to v0.59.6 (#16856) 2020-02-13 16:09:23 -06:00
Christopher Wolff 2e073fd955 chore: update to latest flux@feat/use-algo-w 2020-02-11 10:18:44 -08:00
Christopher Wolff 337595c3d2 chore: update to latest flux@feat/use-algo-w 2020-02-10 09:49:01 -08:00
Christopher Wolff 2bc8d49bcb chore(go.mod): update go.mod to point at latest flux@feat/use-algo-w 2020-01-31 10:44:08 -08:00
Christopher M. Wolff 0f3aabc954
refactor(query): let influxdb build against algo-w branch (#16673) 2020-01-24 14:36:09 -08:00
Jonathan A. Sternberg b8079278eb
build(flux): update Flux to v0.59.5 (#16669) 2020-01-24 15:17:16 -06:00
Johnny Steenbergen f22201f5a8 fix(pkger): update yaml dep and trim space for all queries exported by pkger
attempt at fixing an issue that is hard to reproduce. the dep library says it
is fixed but we are still seeing issues.

closes: #16632
2020-01-22 17:44:56 -08:00
Jonathan A. Sternberg 0ec9a8b6b8
build(flux): update Flux to v0.59.4 2020-01-21 11:27:06 -06:00
Faith Chikwekwe 2f6c6791b9
build(flux): update Flux to v0.59.3 2020-01-21 11:26:46 -06:00
Johnny Steenbergen fe12fd051e feat(pkger): add jsonnet support for package files 2020-01-13 09:55:08 -08:00
j. Emrys Landivar (docmerlin) 026cff4bf9 chore: update to go 1.13 2020-01-07 16:42:06 -06:00
j. Emrys Landivar (docmerlin) fb2080f223 feat(tasks): enable full flux durations for every and offset options 2020-01-06 15:42:01 -06:00
Jonathan A. Sternberg 6d22f81904
build(flux): update Flux to v0.58.0 2020-01-06 14:09:16 -06:00
Jonathan A. Sternberg 9194d89bbc
feat(query/stdlib): prevent a filter push down if the filter needs to keep empty tables (#16295)
The storage engine isn't capable of sending back empty tables when a
series is empty. Because of this, we disable the push down and let flux
do the filtering in the case where there is a filter and it is specified
to keep the empty tables.
2020-01-06 12:23:31 -06:00
Kelvin Wang f8c0ea032c fix(cmd/influx): show see help, instead of usage 2019-12-31 14:52:55 -05:00
Jonathan A. Sternberg 791cf15cd3
build(flux): update Flux to v0.57.0 2019-12-10 13:26:10 -06:00
Chris Goller 632b93ac6b
refactor(http): normalize user-agent names
User-Agent cardinality is unbounded; this attempts to
decrease the number quite a bit.
2019-12-04 15:02:00 -06:00
Jonathan A. Sternberg 2d46f427ad
build(flux): update Flux to v0.55.1 (#16069) 2019-12-02 14:32:16 -06: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
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
docmerlin (j. Emrys Landivar) 56d406afe8 fix(tasks): fix every parsing 2019-11-12 14:46:19 -06:00
Christopher M. Wolff 291f7b3e19
build(flux): update Flux to v0.54.0 (#15851) 2019-11-12 08:38:57 -08:00
Johnny Steenbergen 2902638c8a feat(pkger): add pgker http server to the api handler 2019-11-07 09:44:24 -08:00
Johnny Steenbergen 515b3f542a feat(pkger): add support for the dry run and apply pkger http endpoints
not included is the pretty error handling for the pkger.ParseErr handling
2019-11-07 09:44:24 -08:00
Johnny Steenbergen 848875e64b feat(pkger): add create service and http functionality for a package
supports as of this just the basic metadata being setup on the initial post
2019-11-07 09:44:24 -08:00
jlapacik 1d4c7e811d
build(flux): update Flux to v0.53.0 (#15754) 2019-11-04 16:52:17 -08:00
Johnny Steenbergen a03c497015 feat(pkger): add dry run functionality
does not apply to mappings, will apply mappings no matter what. we need to
remedy the uniqueness of resources from the API side. Applies to labels,
label mappings,
2019-11-01 11:59:09 -07:00
Johnny Steenbergen 52647af79e feat(pkger): add groundwork for manifest to support bucket resource 2019-11-01 11:59:09 -07:00
Lorenzo Affetti b8dfd5a2f3 build(flux): update Flux to v0.52.0 2019-10-30 16:47:03 +01:00
Yiqun Zhang 2be19560a9 build(flux): update Flux to v0.51.0 2019-10-28 11:24:12 -04:00
Jonathan A. Sternberg 06f7418ab6
build(flux): update Flux to v0.50.2 (#15566) 2019-10-24 14:35:31 -07:00
Jonathan A. Sternberg 10247e7849
build(flux): update Flux to v0.50.0 2019-10-15 09:18:39 -05:00
Jonathan A. Sternberg 74829b025c
refactor(query/stdlib): update flux end to end tests for package subtests (#15392) 2019-10-15 09:18:21 -05:00
Jonathan A. Sternberg 8ac8ecdb31
feat(query/control): include variable memory limits for the controller (#15300)
The controller now supports setting an initial memory limit and setting
a maximum amount of memory that the controller may use separately from
the memory quota per query and the concurrency quota.

This allows the controller to increase the concurrency quota to a larger
number while setting the maximum amount of memory to a lower amount than
would be required for all queries to use 100% of their allowable memory.

Functionally, this means that a query will have a soft limit for an
initial memory byte quota that a query is guaranteed to have, a shared
pool that it is allowed access to in the case it uses more, and a hard
limit that no query may exceed to prevent runaway queries from taking
over the entire pool.

This change is completely backwards compatible with older configurations
as the new options will default to values that mimic the old behavior
where a query is allocated the full amount of its memory quota and the
maximum amount of memory is based on the concurrency quota and this
maximum memory quota.

In addition to the above, this also fixes a bug in the controller that
allowed it to run more than its concurrency as executing queries. This
happened when the results had finished being sent by the executor, but
the query had not yet been read and/or serialized. The executor would be
freed up and would take the next query even though the previous query
hadn't yet been finalized with `Done()`.
2019-10-15 09:18:00 -05:00
docmerlin (j. Emrys Landivar) 4b732acb3b feat(tasks): switch the new scheduler to use clock instead of custom time mocker 2019-10-14 14:02:25 -05:00
j. Emrys Landivar (docmerlin) 3fd94cbb69 feat(task): new scheduler now with more tests 2019-10-14 14:02:25 -05:00
Jonathan A. Sternberg 7f5a72539f
build(flux): update Flux to v0.49.0 2019-09-24 09:54:54 -05:00
Lorenzo Affetti df9e20eb28 build(flux): update to Flux v0.48.0 2019-09-20 17:43:46 +02:00
Lorenzo Affetti 2a6cfe3c78 fix(query): inject dependencies in context for BucketAccessed 2019-09-19 17:31:13 +02:00
Lorenzo Affetti ab835c8e0e
refactor(dependencies): use new dependency injection framework (#15174)
refactor(dependencies): use new dependency injection framework
2019-09-19 17:01:17 +02:00
Edd Robinson 5040dc7036
Merge pull request #15144 from influxdata/er-nats
fix(tests): ensure NATS server port free
2019-09-13 21:10:40 +01:00
Edd Robinson 080943a9f5 fix(tests): ensure NATS server port free 2019-09-13 19:33:19 +01:00
Lorenzo Affetti 7cca079c5a build(flux): update Flux to v0.47.0 2019-09-13 18:18:48 +02:00
Lorenzo Affetti 8788636229 build(flux): update Flux to v0.46.2 2019-09-12 17:52:24 +02:00
jlapacik 669439d08a build(flux): update Flux to v0.46.1 2019-09-12 07:22:16 -07:00
Christopher M. Wolff b0b3121517
build(flux): update to Flux v0.45.1 (#15082) 2019-09-10 09:03:33 -07:00
Nathaniel Cook 83cb7fce3b build(flux): update to Flux v0.44.1 2019-09-06 11:37:32 -06:00
Nathaniel Cook cd2d9cb031 build(flux): update to Flux v0.44.0 2019-09-05 16:51:33 -06:00
Nathaniel Cook ed01f5a16f build(flux): update to Flux v0.43.1 2019-09-05 14:22:56 -06:00
Mark Rushakoff 91864a3afa chore: upgrade editorconfig-checker
This avoids a module error in Go 1.13 from a poorly tagged transitive
test dependency that looks like:

gopkg.in/stretchr/testify.v1/assert: go.mod has non-....v1 module path
"github.com/stretchr/testify" at revision v1.4.0
2019-09-05 08:55:49 -07:00
Mark Rushakoff c2f847299c ci: use latest staticcheck
We were still referring to megacheck in tools.go; this confused
dependent projects also using staticcheck.
2019-09-04 16:34:45 -07:00
Nathaniel Cook 4cd136721c build(flux): update to Flux v0.43.0 2019-09-04 13:01:08 -06:00
Nathaniel Cook 454003841a build(flux): upgrade to Flux v0.42.0
Skips a test that requires special dependencies to pass.
2019-08-30 13:02:30 -06:00
Nathaniel Cook 3e16be7c14 build(flux): update to Flux v0.41.0 2019-08-26 16:46:17 -06:00
Nathaniel Cook dfc28335ea refactor(query/dependencies): update to new Flux dependencies defaults 2019-08-26 16:46:17 -06:00
Jonathan A. Sternberg c7bbfbe293 refactor(notification): rename alerts package to monitor in flux (#14788) 2019-08-26 16:46:17 -06:00
Adam fcfdd2b1ef build(flux): update to latest flux master 2019-08-26 16:46:17 -06:00
Adam 945b68b8fd fix(query): finish refactoring the repl and inject the secret service as a dependency 2019-08-26 16:46:17 -06:00
Adam a91a8df501 build(flux): get latest flux 2019-08-26 16:46:17 -06:00
Nathaniel Cook 3c314a999c build(flux): update to Flux v0.40.2 2019-08-22 13:11:13 -06:00
docmerlin (j. Emrys Landivar) 19fe098888 chore(ci): update go-tools 2019-08-22 10:55:05 -05:00
Nathaniel Cook cfebb3b5a0 build(flux): update to Flux v0.40.1 2019-08-21 09:59:01 -06:00
Nathaniel Cook 402068cdac build(flux): update to Flux v0.40.0 2019-08-21 09:59:01 -06:00
Nathaniel Cook 1b8ab3c2f2 fix(query): remove http.to and update test cases that used it 2019-08-21 09:59:01 -06:00
Christopher M. Wolff c61646d0f4 feat(query/stdlib): add an experimental "to" function (#14664) 2019-08-21 09:59:01 -06:00
Nathaniel Cook cd2bfb9b22 refactor(query/stdlib): update tests for new Flux test name conventions (#14669) 2019-08-21 09:59:01 -06:00
Christopher Wolff 92bb511982 chore: update to latest Flux 2019-08-21 09:59:01 -06:00
Nathaniel Cook 25d6de0ba8 build(flux): update Flux to v0.39.0 2019-08-13 13:54:34 -06:00
Lorenzo Affetti bf4cddac15 chore: update Flux to v0.38.0 2019-08-06 12:48:04 +02:00
Christopher Wolff 3855ad9f33 chore: update Flux to v0.37.2 2019-07-24 12:57:37 -07:00
Christopher Wolff 63c0f40548 fix(query): use auth-wrapped org and bucket services for query 2019-07-19 20:02:53 -06:00
Nathaniel Cook 54ea9d94dd chore(flux): update flux to v0.36.2 2019-07-12 11:15:58 -06:00
Nathaniel Cook e59c72b245 fix(tests): update e2e tests for new flux executetest methods 2019-07-12 11:15:58 -06:00
Nathaniel Cook c524953af1 chore: update flux to v0.36.1 2019-07-12 11:15:58 -06:00
Lorenzo Affetti fc21859f41 chore: update Flux to v0.35.1 2019-07-03 18:34:55 +02:00
Nathaniel Cook 11a4b911b0 fix(query/influxql): use explicit mergeKey parameter 2019-07-03 09:48:31 -06:00
Adam 4faf2a24de chore: update Flux to v0.34.2 2019-06-27 13:28:52 -04:00
Jonathan A. Sternberg 2c32826b72
deps: upgrade to flux v0.34.1 (#14206) 2019-06-26 11:31:45 -05:00
Jonathan A. Sternberg 9d91ac7a2c
deps: upgrade to flux v0.34.0 (#14205)
https://github.com/influxdata/flux/releases/tag/v0.34.0
2019-06-26 10:14:50 -05:00
Chris Goller 14e7daa6e4
fix client tracing propagation from doubly recording (#14204)
Closes #14203

* chore(vendor): update to opentracing 1.1.0

* fix(http): finish client span

* fix(http): remove extra span injection
2019-06-26 00:48:15 -05:00
Adam 1d84bf6516 fix(stdlib/testing): skip flaky test regexp_replaceAllString 2019-06-18 16:25:59 -04:00
Christopher Wolff 67236ea887 refactor(http): make http.Query use FluxCompiler when query is passed as text 2019-06-18 11:45:17 -07:00
Christopher Wolff 8800e40eef chore: update Flux to v0.32.1 2019-06-10 10:54:55 -07:00
Jonathan A. Sternberg c446421445
chore(flux): update to Flux v0.32.0 2019-06-06 11:26:44 -05:00
Jonathan A. Sternberg 65dabb0774
Merge branch 'master' into flux-staging 2019-06-06 11:22:04 -05:00
Giacomo Tirabassi fd4d593e21
updated vault dependencies to own module (#14045) 2019-06-03 15:41:02 +02:00
Christopher Wolff e19bcf235c chore: update go.mod to point at latest flux master 2019-05-30 16:29:31 -07:00
Jonathan A. Sternberg c560e27e1d
chore(flux): update to Flux v0.31.1 (#14015) 2019-05-29 15:48:23 -05:00
Mark Rushakoff f904c92b5a chore: add go directive to go.mod
As of golang/go#31960, go1.13 (or tip) will always add the go directive
to go.mod. Add it now as go 1.12 so that we don't have churn later as
people start using 1.13, before we're ready to officially switch to
building influxdb with 1.13.
2019-05-29 09:09:32 -07:00
Jonathan A. Sternberg ebdbc394fc
chore(flux): update to Flux v0.31.0 (#14002)
* refactor(storage/reads): update the table implementation for the interface change (#13994)

* chore(flux): update to Flux v0.31.0
2019-05-28 17:24:26 -05:00
Nathaniel Cook faa5fddf7b Merge branch 'master' into flux-staging 2019-05-15 10:12:14 -06:00
Nathaniel Cook bbf7a771c9 chore(flux): update to Flux v0.29.0 2019-05-15 10:03:48 -06: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
Adam ae25f0c448 Merge remote-tracking branch 'origin/master' into flux-staging 2019-05-09 15:29:00 -04:00
Jacob Marble aa5c77409d
backport: Fix open/close race in SeriesFile (#13837) 2019-05-08 11:39:24 -07:00
jlapacik ccdd83422d dep: update flux 2019-05-07 09:59:58 -07:00
Nathaniel Cook 7047172568 chore(dep): update to Flux v0.28.3 2019-05-01 09:45:53 -06:00
Jonathan A. Sternberg 9961969ff8
deps: update Flux to v0.28.2 2019-04-26 16:03:06 -05:00
Christopher Wolff 26f93b0886 chore: update Flux to v0.28.1 2019-04-25 11:23:35 -07:00
Nathaniel Cook 4c05b10cbe chore(dep): update Flux to v0.28.0 2019-04-24 13:09:06 -06:00
Nathaniel Cook 2ca8ebe34d chore(dep): update Flux to v0.27.0 2019-04-22 17:02:47 -06:00
Christopher M. Wolff c9f94d4ee8
refactor(query): add parameters to query controller config (#13554)
Recently added to controller config:
  ConcurrencyQuota
  MemoryBytesQuotaPerQuery
  QueueSize
2019-04-22 12:11:32 -07:00
Nathaniel Cook 63cb413971 chore(dep): update Flux to v0.26.0 2019-04-18 10:51:35 -06:00
Christopher Wolff a908d9e287 chore: update flux dependencies 2019-04-12 07:15:27 -07:00
Christopher M. Wolff dec149d22d refactor(query): update testing InfluxQL testing compiler to use new interface (#13107)
Fixes influxdata/flux#1099.
2019-04-12 07:15:27 -07:00
Ryan Betts 900edc4938 chore: update Flux to 0.25.0 2019-04-08 14:24:54 -04:00
Jeff Wendling 5dc3e52fd9 chore: bump gogo/protobuf and regenerate
It had been bumped previously from v1.1.1 to v1.2.0 and nothing was
regenerated. This bumps it to v1.2.1 and regenerates.
2019-04-03 15:42:33 -06:00
Jonathan A. Sternberg d1f7ae1af7
deps: upgrade to flux 0.24.0 2019-04-01 11:01:59 -05:00
Christopher M. Wolff f945b84642
refactor(stdlb): Change plan.PlanNode to plan.Node (#12906) 2019-03-27 14:19:04 -07:00
Nathaniel Cook ca6f2ad0c6 Merge branch 'master' into flux-staging 2019-03-27 09:42:48 -06:00
Lorenzo Affetti a49bb73c04 chore: update Flux to v0.23.0 2019-03-26 18:04:18 +01:00
Edd Robinson eff263694b
Merge pull request #12847 from influxdata/er-cache-snapshot-time
Snapshot cache based on age
2019-03-26 11:01:30 +00:00
Mark Rushakoff 7ecb7a23a4 chore: update staticcheck to latest
And fix newly discovered errors.
2019-03-25 10:20:59 -07:00
Edd Robinson aa4e652e43 Add reason to total compaction metric
This commit adds a reason label to the total compaction metric. For
snapshots, the reason will indicate why the cache was snapshotted. For
other compactions, the reason label will be blank.
2019-03-25 15:25:03 +00:00
Stuart Carnie 8abb76cb4e
Merge pull request #12710 from influxdata/sgc/data-gen
Add data generation subcommand to influxd
2019-03-20 11:08:49 -07:00
Stuart Carnie 8669e94904
feat(influxd): Add the generate subcommand 2019-03-19 21:52:26 -07:00
Stuart Carnie 15c8151c52
feat(gen): Add data/gen package from OSS 1.8
This version of the data/gen package adds support for custom schema.
An example of the schema for this version can be found in #11770
2019-03-19 20:35:02 -07:00
jlapacik 042c4eb09e chore: update Flux to v0.22.0 2019-03-19 15:46:37 -07:00
Jonathan A. Sternberg 862f168967
deps: update flux-staging to master of both influxdb and flux (#12698) 2019-03-18 16:13:02 -05:00
Nathaniel Cook 23b409209b chore(flux): update to Flux v0.21.4 2019-03-06 12:51:15 -07:00
Nathaniel Cook da17ba0a9e chore(flux): update to Flux v0.21.3 2019-03-05 14:52:52 -07:00
Jacob Marble b9c7ec439e
feat(influxd): Tracing refactor (#12318)
* feat(launcher): Tracing to log disabled by default

* remove traceLogger and use opentracing directly

* add Jaeger tracing

* go vet && go fmt
2019-03-04 11:48:11 -08:00
Nathaniel Cook d6c46b5721 chore(flux): update to Flux v0.21.2 2019-03-01 11:12:51 -07:00
Nathaniel Cook c143065298 chore(flux): update to Flux v0.21.1 2019-03-01 10:46:58 -07:00
jlapacik d08f5fe835
dep(http): switch Now property to time value on ASTCompiler (#12272)
Closes #12268.
2019-03-01 08:53:24 -08:00
Nathaniel Cook f83abfc81a chore(flux): update to Flux v0.21.0 2019-02-25 15:02:17 -07:00
Jonathan A. Sternberg 70507670c3
feat(storage/reads): add scanned values and bytes metadata to the query (#12156)
This updates influxdb to use the new arbitrary metadata that can be
attached by a source and adds metadata entries for the cursor
statistics.
2019-02-25 14:44:18 -06:00
Adam 4c0262befe
test(stdlib/testing): added new test driver to run builtin tests (#11916) 2019-02-21 22:03:29 -05:00
jlapacik af258e62e7
feat(http): define external preprocessing options via http api (#11939)
Closes #11702.
2019-02-21 13:11:50 -08:00
Nathaniel Cook 817e45d60d chore(flux): update Flux to v0.20.0 2019-02-20 12:53:09 -07:00
Mark Rushakoff ec1019b930 chore: add .editorconfig and enable in CI 2019-02-19 16:58:07 -08:00
Nathaniel Cook 020a11faa8 chore(flux): update to Flux v0.19.0 2019-02-11 13:53:53 -07:00
Christopher Wolff 698de51e67 refactor(query): update to reflect changes to windows 2019-02-08 08:39:52 -08:00
Christopher Wolff 3e8b0fe807 refactor(query): separate "from" into logical and physical procedures
Fixes influxdata/flux#270.
2019-02-07 12:59:54 -08:00
Jonathan A. Sternberg 31dff58d4d
deps: upgrade to Flux v0.18.0 2019-02-07 10:38:09 -06:00
Jonathan A. Sternberg 204d919a92
refactor(query/influxql): use ast compile function from flux (#11749) 2019-02-07 10:02:23 -06:00
Jonathan A. Sternberg 8b20b52f51
refactor(query/influxql): modify the transpiler interface to produce an AST (#11662)
This refactors everything to generate and use a flux AST when
transpiling an influxql query. This also updates the spectests so they
use flux instead of writing out the AST and compare the resulting
AST's.
2019-02-06 10:18:33 -06:00
Lorenzo Affetti ce00375298 refactor(query/stlib): move from implementation from Flux 2019-02-05 17:46:46 +01:00
Leonardo Di Donato bd3c9cc75c fix(vault): correct testcontainers-go dep
Fixes #11199

Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
2019-01-24 14:14:11 +01:00
Nathaniel Cook 9e9a98f9fd
Merge pull request #11421 from influxdata/flux-staging
upgrade to Flux v0.17.0
2019-01-22 15:28:51 -07:00
Nathaniel Cook 5c64332a63 chore(flux): update Flux to v0.17.0 2019-01-22 14:39:16 -07:00
Chris Goller af8f698490 feat(telemetry): add initial telemetry metrics 2019-01-21 13:05:58 -06:00
Nathaniel Cook 54d8ab91c2 chore: update to Flux v0.16.1 2019-01-17 12:55:06 -07:00
Nathaniel Cook cf7eb7834b chore: update Flux to v0.16.0 2019-01-17 09:23:53 -07:00
Nathaniel Cook 1f5ac8f2ce chore: update Flux to v0.15.0 2019-01-16 09:46:27 -07:00
AJ Bond 8b167185f6 chore(ci):Update goreleaser version
Update goreleaser to the latest release version which provides support for multiple binaries within a docker image
2019-01-15 20:36:18 -05:00
Nathaniel Cook 2ebf17645e chore: update Flux to v0.14.0 2019-01-15 08:47:31 -07:00
Nathaniel Cook d0603457b7 refactor(flux): make packages mirror Flux namespaces 2019-01-14 18:00:45 -07:00
Nathaniel Cook 622106caaa Merge branch 'master' into flux-staging 2019-01-14 17:03:57 -07:00
Jacob Marble dda9b8468f WIP fix: Docker image 'influx' gets 'influx' binary 2019-01-14 09:25:05 -08:00
Nathaniel Cook 3a2231be98 Merge branch 'master' into flux-staging 2019-01-11 13:47:49 -07:00
Nathaniel Cook 1708a41fa7 refactor: update query functions for Flux builtins 2019-01-11 13:11:57 -07:00
j. Emrys Landivar (docmerlin) a2674fa03d feat(tasks): update task options from api 2019-01-11 11:55:46 -06:00
jlapacik 5266cba346
deps: updates for packages and imports (#10962) 2019-01-10 14:33:25 -08:00
Mark Rushakoff cc389a3b51 chore: use upstream version of kin-openapi
We were using a fork, but the change introduced in that fork has since
been merged upstream.

Closes #10626.
2019-01-10 11:22:03 -08:00
Jonathan A. Sternberg a59e6b8d25 refactor: rename DoArrow to Do (#2372)
See influxdata/flux#783 for details.
2019-01-10 10:30:25 -07: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
Nathaniel Cook 4d0305574c chore: update Flux to v0.13.0 2019-01-07 16:44:34 -07:00
Adam fa35dea009 feat(query/functions/tests): end to end testing is configured to run against a live storage engine.
all tests use a unique bucket based on the test file name.  copied all tests over from flux repo

the tests are currently disabled due to engine consistency issues:  https://github.com/influxdata/flux/issues/613
2019-01-07 13:05:29 -05:00
Nathaniel Cook 4918b15f35 refactor(http/query): update http query logic for new parser API 2019-01-04 11:28:55 -07:00
Nathaniel Cook 2e2867217e chore: update Flux to v0.12.0 2019-01-03 09:49:24 -07:00
Adam 9a561f8b53 manually merged addition of secrets to launcher 2019-01-02 15:42:55 -05: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
Adam 6777b9676c
refactor(query/functions/outputs): refactor to.go to use arrow data … (#2131)
* refactor(query/functions/outputs): refactor to.go  to use arrow data structures

* update flux to latest master
2018-12-21 11:39:53 -05:00
Nathaniel Cook 89f4525841 build(Makefile): fix various bug with makefiles
Fixes subdir ordering.
Works around issue with stringer not working with Go modules.
Fixes issues with generated code being ignored.

Fixes #2044
2018-12-19 17:02:19 -07:00
Nathaniel Cook 5d31665ae8 chore(Makefile): fix broken nightly builds after Makefile updates
There were two issues.First the `chronograf` subdir was not listed.
Second the tmpl generate dependency was not listed in the tools.go list
of dependencies.

Fixes #2044
2018-12-19 13:52:33 -07:00
Nathaniel Cook d6c0a393b0 Merge branch 'master' into flux-staging 2018-12-19 11:30:55 -07:00
Michael Desa 28cea4d957 feat(platform): add generic kv store
Co-authored-by: Leonardo Di Donato <leodidonato@gmail.com>
Co-authored-by: Michael Desa <mjdesa@gmail.com>

feat(kv): add kv store interface for services

feat(bolt): add boltdb implementation of kv.Store

spike(platform): add kv backed user service

feat(kv): add static cursor

Note here that this operation cannot be transactionally done. This poses
a bit of issues that will need to be worked out.

fix(bolt): use error explicit error message

squash: play with interface a bit

fix(kv): remove commit and rollback from kv interface

feat(inmem): add inmem kv store

chore: add note for inmem transactions

fix(bolt): remove call to tx in kv store tests

feat(kv): add tests for static cursor

doc(kv): add comments to store and associated interfaces

doc(bolt): add comments to key value store

feat(testing): add kv store tests

test(testing): add conformance test for kv.Store

test(inmem): add kv.Store conformance tests

doc(inmem): add comments to key value store

feat(inmem): remove CreateBucketIfNotExists from Tx interface

feat(bolt): remove CreateBucketIfNotExists from Tx

feat(inmem): remove CreateBucketIfNotExists from Tx

doc(kv): add note to bucket interface about conditions methods can be called

feat(kv): add context methods to kv.Tx

feat(bolt): add context methods to bolt.Tx

feat(inmem): add context methods to inmem.Tx

test(kv): add contract tests for view/update transactions

feat(kv): ensure that static cursor is always valid

Co-authored-by: Leonardo Di Donato <leodidonato@gmail.com>
Co-authored-by: Michael Desa <mjdesa@gmail.com>

fix(kv): remove error from cursor methods

test(kv): remove want errors from cursor test

test(testing): add concurrent update test for kv.Store

feat(kv): make kv user service an example service

fix(testing): add concurrnent update test to the kv.Store contract tests

test(platform): fix example kv service tests

dep(platform): make platform tidy
2018-12-18 16:08:48 -05:00
Nathaniel Cook b0473fb3db build(flux): update to Flux v0.11.0 2018-12-18 12:49:34 -07:00
Nathaniel Cook 98a6a0351d Merge branch 'master' into flux-staging 2018-12-18 11:20:17 -07:00
Nathaniel Cook e3eff83aaa chore(Makefile): remove yq dependency to generate ts client 2018-12-18 11:19:56 -07:00
Jonathan A. Sternberg cc93531400 fix(storage): convert the storage table interface to use arrow buffers
The table interface was modified to expose the arrow buffers. The
storage table has now been converted to use this interface with the same
fixes so that it exposes arrow buffers.

The influxql package has also been updated to use the `DoArrow` method
from the `flux.Table` interface.
2018-12-18 09:47:53 -07:00
Nathaniel Cook 88425ced00 build(flux): update to Flux v0.10.0 2018-12-17 12:54:51 -07:00
Iris Scholten 6a2e507389
Merge pull request #1899 from influxdata/swagger-telegraf-config-schema
Update telegraf config schema to match cur swagger
2018-12-12 15:23:55 -08:00
Iris Scholten 50fbba9227 Update telegraf config schema to match cur swagger
chore(http): updated go validation library and fixed swagger test

Co-authored-by: Iris Scholten <ischolten.is@gmail.com>
2018-12-12 15:11:18 -08:00
Nathaniel Cook f5801c1aa9 chore: update Flux to v0.9.0 2018-12-12 11:42:35 -07:00
Jonathan A. Sternberg 23e6b59497
fix(http): update the query handler to use valid flux syntax
The test used `AND` instead of `and` which is not valid syntax. It also
did not include packages and imports in the generated JSON from parsing
the flux query.
2018-12-12 11:11:56 -06:00
Nathaniel Cook 982dd8fd79 chore: update Flux to v0.8.0 2018-12-11 11:27:23 -07:00
Nathaniel Cook 4546eb38d2 chore: update Flux to v0.7.2 2018-12-04 10:43:37 -07:00
Christopher M. Wolff f1d21b8132
refactor(query): update transpiler to reflect signature change to `group()` (#1689)
update other modules that used old syntax as well
2018-12-04 09:32:37 -08:00
Michael Desa 56de056085 feat(vault): add vault implementation of secret service
test(platform): run testcontainer integration tests for nightly release

Integration tests for the vault secret service using testcontiners
should not run along with unit tests, however, they should run on some
regular schedule. This commit introduces `make test-integration` which
runs integration tests for vault using testcontainers. The command introduced
relies on docker being available on the host it is executed on.

chore(platform): make go modules tidy

chore: try to fix go mod

chore(platform): remove explicit logrus dependency

chore(platform): run go mod tidy

chore(platform): replace github.com/Sirupsen/logrus with github.com/sirupsen/logrus

chore(platform): update docker dependency

feat(vault): add vault implementation of secret service

test(platform): run testcontainer integration tests for nightly release

Integration tests for the vault secret service using testcontiners
should not run along with unit tests, however, they should run on some
regular schedule. This commit introduces `make test-integration` which
runs integration tests for vault using testcontainers. The command introduced
relies on docker being available on the host it is executed on.

chore(platform): make go modules tidy

chore: try to fix go mod

chore(platform): run go mod tidy

feat(vault): add vault implementation of secret service

chore(platform): make go modules tidy

feat(platform): add Put/Patch/Delete methods on secret service

feat(vault): add Put/Patch/Delete methods on vault secret service

feat(http): add http handler methods for secret service

feat(bolt): add Put/Delete/Patch methods to bolt secret service

feat(testing): add tests for Put/Patch/Delete methods in secret service

feat(mock): add mock secret service

feat(http): add tests for secrets endpoints

feat(http): update swagger for secrets endpoints

chore: run go mod tidy
2018-11-30 13:07:32 -08:00
Nathaniel Cook 9ea008630f update to latest Flux 2018-11-30 09:06:49 -07:00
Edd Robinson 25074b4568 go mod tidy 2018-11-30 10:54:24 +00:00
Edd Robinson eaa4a4f49a Removes unused methods: U1000 2018-11-30 10:54:24 +00:00
Edd Robinson 2471024253 Use staticcheck on next branch 2018-11-30 10:53:53 +00:00
Ben Johnson 0084d4d824
Remove influxdb dependency. 2018-11-29 11:44:22 -07:00
Ben Johnson 1862b4421d
Integrate scanned values statistics tracking. 2018-11-28 15:32:06 -07:00
jlapacik 2b52224e84 update flux dependency - add missing Statistics() methods 2018-11-26 13:19:14 -08:00
Jonathan A. Sternberg 85d3953082
deps: update flux dependency
This includes a fix to the query returned by the controller so the
Statistics method doesn't panic.
2018-11-13 08:26:16 -06:00
Jonathan A. Sternberg fadf4f3e4f
deps: update flux dependency 2018-11-08 14:49:35 -06:00
Jonathan A. Sternberg 6dbc1d90a9
deps: update flux dependency 2018-11-06 14:07:22 -06:00
Nathaniel Cook 9fecaa0eb0 chore: Update for Flux renaming 2018-11-05 19:30:22 -07:00
Stuart Carnie 04733339cc
chor(deps): Update flux dependency with distinct push down support 2018-11-03 13:50:11 -07:00
Nathaniel Cook 89e6c6adbd chore: Update to Flux 0.7.0-rc1 2018-11-01 14:32:56 -06:00
Mark Rushakoff 68c0ad29e2 ci: add megacheck to tools.go 2018-11-01 13:25:22 -07:00
Mark Rushakoff dae3dc8a7e chore(bolt,http,mock,query,testing): fix megacheck errors 2018-11-01 12:54:46 -07:00
Adam 8a1fecd727
to() for influxdb (#1194)
* update to latest flux master incl. values interface refactor, type inference, planner.  

* add measurementColumn parameter, update function params spec
2018-11-01 14:44:56 -04:00
Nathaniel Cook 2a1d76eb2d chore: Update flux dependency for the type-inference changes 2018-10-31 17:11:11 -06:00
Christopher M. Wolff 4365ad3d60
Update to latest Flux (#1245) 2018-10-30 17:54:54 -07:00
jlapacik 78b7ee3bf9
update flux repl (#1231) 2018-10-30 11:24:48 -07:00
kelwang 5f1acc44c8
Merge pull request #1113 from influxdata/feat/telegraf_toml
add toml for telegraf
2018-10-29 11:03:55 -04:00
jlapacik cf46ff8f49 update flux version to master 2018-10-26 16:12:24 -07:00
Kelvin Wang 3890cf8c1a add toml for telegraf 2018-10-25 21:31:44 -04:00
Adam 98be8bcd32
moved to_http and to_kafka to flux and update to latest flux (#1175) 2018-10-24 12:33:43 -04:00
Chris Goller a6464d5010 test(swagger) add swagger validation test 2018-10-23 08:47:21 -05:00
Adam ea4c08b327
(feat/query): implement a buckets() source function that retrieves all buckets and retention policy information for the active organization. (#1045) 2018-10-17 10:21:39 -04:00
Kelvin Wang a7754d2322 fix some issues onboarding 2018-10-11 18:02:58 -04:00
Jonathan A. Sternberg 8dee884038
refactor(toml): copy the toml utility package from influxdb to platform 2018-10-11 12:08:43 -05:00
Jonathan A. Sternberg e7e17d6972
refactor: move the logger package from influxdb to platform
We are moving the necessary code for 2.0 from the influxdb 1.X
repository to the platform 2.0 repository. The logger is an unnecessary
dependency on the old influxdb that is making life more complicated.
2018-10-10 15:49:07 -05:00
Jeff Wendling 6bd79ab2fe Remove unused grpc reader
The pb package was only referenced in cmd/influx/query.go, but in
dead code, since it uses the same machinery as the repl, which goes
through the HTTP endpoints, rather than the gRPC endpoints.
2018-10-10 14:06:27 -06:00
Jonathan A. Sternberg cfdd3f85f0
fix: update goreleaser to a version that doesn't use a conflicting masterminds/semver import
The version of goreleaser we pinned used `masterminds/semver`, but the
project itself uses `Masterminds/semver`. This caused go modules to be
unable to resolve both of them.

The most recent goreleaser on master switched to using the official
casing.
2018-10-10 13:00:38 -05:00
Edd Robinson 116456534a Initial Retention Service 2018-10-10 15:39:27 +01:00
Adam 195eb04350
Chore/move from function to platform (#1013)
* moved execution code for from into query/functions/inputs

* rebase with master, disable buckets accessed test
2018-10-09 20:36:41 -04:00
Jeff Wendling 6408640836 fix: dont conflict on metrics namespace and mod tidy 2018-10-05 16:25:59 -06:00
Adam 58f4e9fc0b
Refactor Platform according to new organization in `flux` (#966)
We reorganized the functions in flux to have the structure:
/functions
/inputs
/transformations
/outputs
this PR catches up platform to work with the new package layout.

As a separate refactoring issue, we should discuss:

from(bucket: ) should migrate from flux --> platform
to_http and to_kafka should migrate from platform --> flux
2018-10-05 00:06:14 -04:00
Edd Robinson ed81da6600 Update roaring dependency 2018-10-01 12:08:37 +01:00
Edd Robinson 3385f389f7 Update tsdb package from OSS 2018-10-01 12:08:37 +01:00
Edd Robinson 1280f4ac5e Initial import of tsm1 package 2018-10-01 12:08:37 +01:00
Edd Robinson fb0db04bc1 Initial import pkg package 2018-10-01 12:03:20 +01:00
Jeff Wendling 992884ab6c initial import of tsdb package 2018-10-01 12:03:19 +01:00
Jonathan A. Sternberg 4edef4d235
Merge pull request #868 from influxdata/js-goreleaser-version-fix
fix: goreleaser fork needed to have its version updated
2018-09-25 18:13:15 -05:00
Michael Desa f7a3f22ef8 feat(platform): add basic auth service
feat(bolt): add boltdb implementation of basic auth service

test(bolt): replace context.TODO with context.Background

feat(bolt): make bcrypt hash function cost injectable
2018-09-25 14:58:02 -04:00
Jonathan A. Sternberg 9ba6724b37
fix: goreleaser fork needed to have its version updated 2018-09-25 12:13:17 -05:00
Nathaniel Cook a060b0bdc9 chore: Update flux dep 2018-09-20 11:00:12 -07:00
Jonathan A. Sternberg d21655ec71 fix: run go mod tidy 2018-09-20 10:15:40 -07:00
Jonathan A. Sternberg 46ed9bc4fb feat: switch to using go modules for building
This updates the dependency manager to use go modules instead of dep so
that we can remove dep as a dependency and we can begin using and giving
feedback on modules within this project. It should simplify dependency
management and make it faster to run the builds too.

The big change is updating the various Makefiles to stop relying on the
vendor directory because it no longer exists. This change creates a
`tools.go` file with the revisions of the tools we use that are currently
in the `required` section of `Gopkg.toml`. We are currently in other
discussions to modify how we handle tool dependency management, but this
change does not change that.
2018-09-20 08:33:15 -07:00