Commit Graph

544 Commits (027d29dd30f7860f54cd1677cc43100f463eee7b)

Author SHA1 Message Date
Johnny Steenbergen fca4e13255 fix(pkger): fix issue with imports causing option task to be injected at wrong point
closes: #17069
2020-03-02 15:19:54 -08:00
Jacob Marble 83818e9592
fix(storage): incremental improvments (#17011)
* fix(storage): simplify storage/seriesCursor

storage/seriesCursor releases series file and TSI references sooner.

Remove unhelpful request object, inherited from 1.x

* chore(storage): replace SeriesCursor interface with sole implementation
2020-02-28 11:12:43 -08:00
Kelvin Wang 0ba38e712f chore(cmd/influx): typo 2020-02-28 10:45:13 -05:00
Johnny Steenbergen 46758e3370 fix(pkger): correct the export of tasks to include system type tasks
wrong assumption in original design. The system tasks are actually
the CRUD tasks. Name is a bit confusing for user generated tasks.

closes: #17038
2020-02-27 17:16:12 -08:00
Kelvin Wang 48490cdc9b fix(cmd/influx): ui change for secret 2020-02-27 16:34:51 -05:00
Alirie Gray 3120b4c47e
refactor(tasks): add Client to http TaskService (#16912) 2020-02-24 11:41:21 -08:00
Johnny Steenbergen 80751314bc chore(influx): refactor influx cmd to use builder
refators test to use full call paths where possible
2020-02-20 11:27:44 -08:00
tmgordeeva 890c943643
fix(backup): handle backup with no credentials file (#16877)
* fix(backup): handle backup with no credentials file

Backups and restores should work whether or not the original installation uses
a credentials file and whether or not the backup contains a credentials file.
2020-02-14 09:19:58 -08:00
Johnny Steenbergen a632025eb6 fix(influx): fix token env var and default assignment 2020-02-13 13:25:50 -08:00
Johnny Steenbergen 505ce2372c fix(influx): fix issue with locla state overriding env vars for token
closes: #16874
2020-02-13 11:55:41 -08:00
Nathaniel Cook 03f65cf045
fix(influxql): add explicit routing to influxql service (#16832)
Prior to this change influxql requests were sent to the same back end as Flux queries.
This MAY not always be the case. Now InfluxQL queries are specifically routed to the InfluxQLService.
In the case of this OSS build the FluxService and InfluxQLService are the same.
2020-02-12 10:07:29 -07:00
Stephanie Engel 1d0afefc4e
refactor: update restore cli flag descriptions (#16799) 2020-02-10 12:07:55 -06:00
Kelvin Wang 670d2b7113 feat(cmd/influx): add secret cli 2020-02-10 11:40:06 -05:00
Johnny Steenbergen af6fac9fdf chore(pkg): remove ambiguity in wrong cmd calls within influx pkg cmd
there was an issue where you could call, `influx pkg summarize`
and the influx cli would actually prescribe that to `influx pkg` cmd
and pass summarize as an arg. This removes that ambiguity
2020-02-06 18:06:17 -08:00
Johnny Steenbergen bf0cc56d7f feat(influx): add ability to provide multiple urls to influx pkg command
also provides an interface to mix and match everything together. you can
now provide `-f` flags for file or directories, `-u` flags for urls, and
use the | to pipe in a pkg. all of which can be done at the same time.
2020-02-06 17:16:47 -08:00
Johnny Steenbergen 2d2fb4056b feat(influx): add support for providing directories of pkgs to pkg command
closes: #16657
2020-02-06 15:57:03 -08:00
Johnny Steenbergen e472b013d9 feat(influx): add support for mulitple pkg files to be submitted together 2020-02-06 13:02:35 -08:00
Johnny Steenbergen 7cf6167356 feat(influx): extend pkg command with providing env ref entries
this also extend dry run to provide env refs to it. the refactoring was
to enable that bit. Having the ability to dry run with the env ref entries
means we can dry run the pkg with the env ref values to see the impact before
the application takes place.
2020-02-06 08:48:05 -08:00
Johnny Steenbergen bbdd6bf7fc feat(pkger): add env refs for associations 2020-02-05 09:48:50 -08:00
Johnny Steenbergen 036ba49e12 feat(pkger): add env ref fields for remaining resources 2020-02-05 07:47:12 -08:00
Johnny Steenbergen 64c8707594 feat(pkger): add support for env references for buckets 2020-02-04 17:00:11 -08:00
Johnny Steenbergen 9ee07b097c chore(pkger): refactor http server to use new http.API type 2020-02-04 10:42:54 -08:00
Johnny Steenbergen 343c9b166b chore(pkger): consolidate pkger http server into pkger
this is the last step for pkger to follow the service definition pattern
that is in the works. Some bits from http were moved into kit/transport/http
for reusability. End result is to hopefully axe http pkg for resuable types in
kit. Long ways off still...
2020-02-03 12:39:47 -08:00
Johnny Steenbergen 2b0b32abe8 chore(http): pull out eror handler into kit pkg for portability 2020-02-03 12:39:47 -08:00
Johnny Steenbergen f9ed0ccb82 feat(pkger): add metrics svc middleware 2020-02-03 11:07:46 -08:00
Johnny Steenbergen 12052a942c chore(influx): fixup flag setting in influx tests to use args
this is inspired by: https://github.com/kubernetes/kubernetes/blob/master/pkg/kubectl/cmd/cmd_test.go#L73
2020-02-01 09:08:09 -08:00
Johnny Steenbergen 592e9369a7 feat(pkger): add support for inspecting url paths to grab extension for pkger decoding 2020-01-23 14:14:28 -08:00
Jacob Marble b836ab9c17
feat(storage): implement backup and restore (#16504)
* feat(backup): `influx backup` creates data backup

* feat(backup): initial restore work

* feat(restore): initial restore impl

Adds a restore tool which does offline restore of data and metadata.

* fix(restore): pr cleanup

* fix(restore): fix data dir creation

* fix(restore): pr cleanup

* chore: amend CHANGELOG

* fix: restore to empty dir fails differently

* feat(backup): backup and restore credentials

Saves the credentials file to backups and restores it from backups.

Additionally adds some logging for errors when fetching backup files.

* fix(restore): add missed commit

* fix(restore): pr cleanup

* fix(restore): fix default credentials restore path

* fix(backup): actually copy the credentials file for the backup

* fix: dirs get 0777, files get 0666

* fix: small review feedback

Co-authored-by: tmgordeeva <tanya@influxdata.com>
2020-01-21 14:22:45 -08:00
Johnny Steenbergen 9eb72d4cf9 chore(influx): use disable- for color/table borders in pkg cmd
closes: #16582
2020-01-17 09:51:20 -08:00
Jade McGough 3f7a32f739
fix(pkg): normalize cli arg format (#16580) 2020-01-17 09:31:07 -08:00
Johnny Steenbergen 22c0f787db fix(influx): fix description for reuable org/ord id type
closes: #16579
2020-01-17 09:15:10 -08:00
Johnny Steenbergen 19d2e5580a feat(influx): trim space on credentials file 2020-01-16 07:22:56 -08:00
Johnny Steenbergen 93c8a2a104 feat(pkger): add service logging and tracing middlewares 2020-01-15 12:00:59 -08:00
Kelvin Wang cf5daee66b chore(cmd/influx): refactor user.go
feat(cmd/influx): add user tests
fix(cmd/influx): make golint happier
2020-01-15 13:45:26 -05:00
Kelvin Wang f62d3a25f1 feat(cmd/influx): update password in cli 2020-01-15 13:30:23 -05:00
Johnny Steenbergen 41beaf0bd5 fix(pkger): fixes issue where pkger can't discern the mime/content type of a package
also makes the yaml decoder the default. To foten we end up in application/octet-stream
which is the default for many different mime types. This provides a mechanism
around that so that when the automagical detection fails it can allow the user
to provide it via the CLI.
2020-01-14 15:44:48 -08:00
Johnny Steenbergen 234c458fa0 fix(pkger): fix missing API version in export of existing resources 2020-01-14 14:36:37 -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 3b62340b31 chore(influx): refactor org cmd with buidler pattern 2020-01-13 07:49:16 -08:00
Johnny Steenbergen fdc3e7658c feat(pkger): add ability to supply a pkg from a url
the following is now possible from the CLI(same in REST API):
  influx pkg -u 1717709ffa/bucket_pkg_json
2020-01-12 07:53:58 -08:00
Johnny Steenbergen 3f56658418 fix(influx): drop persistent pre run func taht double prints help cmd 2020-01-10 17:22:05 -08:00
Johnny Steenbergen 9338a0be97 chore(influx): refactor bucket cmd into builder pattern 2020-01-10 15:20:15 -08:00
Johnny Steenbergen 89939dea4e fix(influx): add env vars to cli usage and normalize usage and flag/env var priority
also rids us of the cobra tutorial code and encapsulates things into funcs
2020-01-10 15:20:15 -08:00
Michael Desa 26e8ee879c
feat: add tool to migrate 1.x chronograf dashboards and variables
feat(pkger): export dashboard and variable *ToResource methods

fix(pkger): add empty selected _measurement to builder config

feat(chronograf): add note & note visibility to dashboard cell

The 1.x DashboardCell struct had migrated since we brought the code into
the InfluxDB codebase. This allows us to migrate cells that were created
since then.

feat(cmd/chronograf-migrator): add 1.x chronograf migrator tool

feat(chronograf-migrator): add function to transpile queries

fix: update spelling of todo comment pkger/models.go

Co-Authored-By: Deniz Kusefoglu <deniz@influxdata.com>

fix(chronograf): add type to DashboardQuery

The type has evolved since this code was moved over from chronograf.
Previously, we did not have access to flux as a type of query.

feat(chonograf-migrator): transpile influxql query to flux if possible

fix(chronograf): omit fields when empty on old chronograf structs

fix: make linter not mad at me

feat(chronograf-migrator): lowercase variable names

fix(pkger): add empty selected measurement to builder config

chore(chronograf-migrator): add basic readme

chore(pkger): export Variable and Dashboard ToResource methods

fix(chronograf-migrator): move flags out of init call
2020-01-10 09:05:19 -08:00
Johnny Steenbergen ba7502aaf5 fix(influx): update influx pkg cmd flag secrets delimter to match vaults using an `=` 2020-01-09 14:22:38 -08:00
Johnny Steenbergen c8aabaf515 chore(http): fixup middleware stack and normalize metrics into same buckets for id fields 2020-01-08 15:05:34 -08:00
Yiqun Zhang 74ba877cb9
feat: opentracing in query execution runtime 2020-01-08 11:16:13 -05:00
Jade McGough 79ab5e5e59
fix(pkger): don't swallow errors when failing to get organization (#16397) 2020-01-03 01:22:54 -08:00
Alirie Gray 6c6bd39ffc
refactor(tasks): remove dead scheduler code (#16252) 2020-01-02 11:41:21 -08:00