Commit Graph

544 Commits (027d29dd30f7860f54cd1677cc43100f463eee7b)

Author SHA1 Message Date
Jacob Marble 047afcfc10
fix(tests): make sure NATS port is open for unit tests (#16310)
* fix(tests): make sure NATS port is open for unit tests

Fixes #10628 again

* chore: add comment re possible race
2020-01-02 11:05:56 -08:00
Kelvin Wang f8c0ea032c fix(cmd/influx): show see help, instead of usage 2019-12-31 14:52:55 -05:00
Greg b2531c1f97
fix: improve date in `version` command (#16365)
set date in go like a sane person
2019-12-30 17:56:58 -07:00
Greg 56973b8dc5
fix: add 'version' command to match github bug report template (#15629) 2019-12-30 12:53:52 -07:00
Johnny Steenbergen f1b5e19776 feat(influx): add hide headers flag to influx cli task cmd 2019-12-27 14:41:55 -08:00
Johnny Steenbergen cce279a80e feat(pkger): add ability to provide secrets alongside package when applying
this provides the ability to add secret refs at runtime instead of adding
them to the pkg.
2019-12-27 12:41:42 -08:00
Johnny Steenbergen 935389912a chore(pkger): reorder print statements to be alphabetical 2019-12-26 11:34:48 -08:00
Johnny Steenbergen 1c2421cb9c feat(pkger): add export support for tasks 2019-12-23 15:41:14 -08:00
Johnny Steenbergen c9431bceb8 feat(pkger): add apply functionality for task resource 2019-12-23 13:56:42 -08:00
Johnny Steenbergen 8e87498317 feat(pkger): add dry run functionality for task resource 2019-12-23 11:40:28 -08:00
Johnny Steenbergen af5b7fd7d3 feat(pkger): add export support for notification rules 2019-12-21 14:58:02 -08:00
Greg abd8ce0089
feat(http): add functionality to retrieve/store telegraf config as toml (#16132) 2019-12-20 14:20:13 -07:00
Johnny Steenbergen 61dceaa727 feat(pkger): add application functionality for the notification rules resource 2019-12-20 12:48:46 -08:00
Johnny Steenbergen 02aec6ed29 feat(pkger): add dry run functionality for notification rules 2019-12-19 16:31:22 -08:00
Jade McGough cc0943ceeb
chore(cli): improve walk function documentation (#16176) 2019-12-19 03:22:56 -08:00
Johnny Steenbergen a8a4d3d0b2 feat(pkger): add export functionality to checks resource 2019-12-18 17:52:28 -08:00
Johnny Steenbergen 677e836bf4 feat(pkger): add apply functionality for checks
this work is to support pkger, but was able to add back in the
skipped tests. seeing failures upstream, and didn't catch it in
influxdb b/c the tests were being skipped.

closes: #14799
2019-12-18 15:02:03 -08:00
Johnny Steenbergen 1db3256980 feat(pkger): add check dry run functionality 2019-12-18 12:15:08 -08:00
Johnny Steenbergen f527636fe0 chore(http): refactor user http service to use the httpc.Client 2019-12-17 12:49:14 -08:00
Johnny Steenbergen 1c2b900687 chore(http): refactor auth service http client to use httpc.Client
normalizing the auth service http client to follow suit with other services.
2019-12-17 12:18:16 -08:00
Deary Hudson III d5f8a5fc9f
feat(cmd): apply env vars consistently across cmd (#16225) 2019-12-17 13:55:35 -06:00
Johnny Steenbergen d42bbb3c64 feat(pkger): add support for exporting notification endpoints 2019-12-17 11:33:34 -08:00
Johnny Steenbergen b8652ee178 feat(pkger): add support for secret references to notification endpoints parsing 2019-12-17 11:33:34 -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 39e89eafdf chore(pkger): utilize http client for integration tests for pkger 2019-12-13 09:46:01 -08:00
Deary Hudson III 48e854776e
fix(cmd): adds org svc dep to pkg (#16206) 2019-12-12 11:33:15 -06:00
Johnny Steenbergen 3daaa4d307 feat(pkger): add apply functionality for notification endpoints kind 2019-12-11 15:13:42 -08:00
Johnny Steenbergen 69d7eb4455 feat(pkger): add notification endpoint dry run functionality 2019-12-11 15:13:42 -08:00
Alirie Gray b5ccad3c07
feat(metrics): add run latency to executor metrics (#16190) 2019-12-11 14:50:32 -08:00
Deary Hudson III 336961c757
feat(cmd): bucket create to accept org name as flag (#16187)
* enables the user to specify an organization name when creating a bucket.
2019-12-10 17:46:36 -06: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 648a14d148 chore(influx): refactor orgnization cmd
death to unneccessary inits
2019-12-09 11:39:28 -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 521ce543eb fix(pkger): fix flaky test in pkger service tests
tests failign from a data race caused in the tests setup. an incrementing
const needs something to serialzie it (atmoic in this case) to remove that
data race. This touches that up.
2019-12-09 08:59:44 -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 51f1b73738 feat(pkger): speed up application of pkg with a touch of concurrency
governs the concurrency with a simple semaphore. Defaults to 5
concurrent reqs, anything greater, could put a lot of pressure
on the system as a whole (especially OSS/bolt store).
2019-12-06 18:15:35 -08:00
Johnny Steenbergen ed974ba50a fix(pkger): add telegraf to launcher for public api support 2019-12-06 09:05:51 -08:00
Johnny Steenbergen ea67663ab7 fix(pkger): cleanup leftover bits from telegraf and label mapping misses
telegraf was not being mapped correctly for applying the label mapppings
and touched up a bunch of other issues that came up along the way.
2019-12-06 08:51:32 -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
Nathaniel Cook fd63ff17f3
feat(cmd/influx): add command to manually transpile InfluxQL to Flux (#16119) 2019-12-04 13:31:20 -07:00
Johnny Steenbergen 988fd0ae80 chore(pkger): refactor diff into common types for easier access 2019-11-22 16:09:23 -08:00
Johnny Steenbergen 251651cc97 feat(influx): add pkg summary cmd to influx cli 2019-11-21 16:26:24 -08:00
Johnny Steenbergen c533f8495d chore(influx): add tests for pkg validate cmd 2019-11-21 16:26:24 -08:00
Johnny Steenbergen d98ce676fb chore(pkger): refactor pkger cli into a builder for better reuability and testability 2019-11-21 16:26:24 -08:00
Johnny Steenbergen 9149b6af6f feat(influx): add pkg validate command to validate existing packages
also renames a the commands to start with cmd followed by the args. this
is an attempt to order the commands in a slightly more autocomplete friendly
way.
2019-11-21 16:26:24 -08:00
pierwill 9fd97d1b28
Merge pull request #15976 from pierwill/repl-cmd-description
Edit `influx repl` command description
2019-11-21 11:31:13 -08:00
Johnny Steenbergen 77ddcab2b5 feat(influx): add nix pipe support to influx pkg cmd 2019-11-21 10:55:12 -08:00
Johnny Steenbergen 9c525ad413 feat(pkger): add ability to export all and defined list of resources via influx cli to a package
refers: #15921
2019-11-21 10:55:12 -08:00
Johnny Steenbergen a92b632e05 feat(influx): add ability to drop headers from bucket find cli cmd 2019-11-21 10:55:12 -08:00
Chris Goller da2edb88bb fix(cmd/influxd): add mutex for open/close of temp engine 2019-11-20 16:39:47 -06:00
Chris Goller 0f5df301ca refactor(storage/readservice): rename View interface to Viewer 2019-11-20 16:10:37 -06:00
Chris Goller 354b58005f fix(cmd/influxd): prefix temporary engine dir with e2e 2019-11-20 16:04:27 -06:00
Chris Goller f9c5021782 feat(influxd/launcher): add tmp filesystem backed engine for e2e 2019-11-20 15:54:32 -06:00
Johnny Steenbergen 4036e6c426 feat(pkger): add authentication to service dependencies for pkger
closes: #15897
2019-11-20 11:12:14 -08:00
Johnny Steenbergen dc2d931f00 feat: add support for setting password and org for a new user in the cli
one thing to note here is that new endpoint was created. there was no
endpoint for setting an initial password that worked. The existin endpoint
was a bit messy and coupled across multiple routes. Having multiple auth
schemes proved incredibly taxing to write against.
2019-11-20 09:16:31 -08:00
Johnny Steenbergen 4d5ac08fff chore(influx): refactor auth cli cmd 2019-11-19 12:36:52 -08:00
pierwill 8196d280cd Edit `influx repl` command description 2019-11-19 11:27:26 -08:00
Johnny Steenbergen a875a6a7ea chore(pkger): add tests to pkg new cli command 2019-11-18 12:19:15 -08:00
Jade McGough 1606b089b4
fix(cli): add organization back to bucket response (#15947) 2019-11-18 09:45:03 -08:00
Johnny Steenbergen e88fa7d90a fix(influx): bad shorthand var for pkg command 2019-11-15 11:36:33 -08:00
Johnny Steenbergen 626b719769 feat(pkger): add pkg new operation to cli to create packages 2019-11-15 10:08:41 -08:00
Johnny Steenbergen ab50e18695 feat: add support for insecure skip verify on cli http clients 2019-11-14 16:48:13 -08:00
Johnny Steenbergen 1c6d499711 feat(pkger): extend integration tests to include rollback functionality 2019-11-13 10:45:02 -08:00
Johnny Steenbergen e26b21e261 chore(pkger): add integration tests for pkger service
these tests supply coverage for the happy path of the pkger service
behavior.
2019-11-12 14:05:07 -08:00
Johnny Steenbergen 5eb29e9ed9 feat(pkger): add label associations to variables 2019-11-07 12:33:20 -08:00
Johnny Steenbergen 2090afa5fd chore(pkger): move pkger http server to http pkg 2019-11-07 09:44:24 -08:00
Johnny Steenbergen 2902638c8a feat(pkger): add pgker http server to the api handler 2019-11-07 09:44:24 -08:00
Lyon Hill bb6aa1df3b
feat(task): Add a latestScheduled field for tasks (#15785)
Previously we overwrote the tasks existing latestCompleted to be used for latestCompleted as well as latestScheduled.
For obvious reasons this is confusing and missleading. I believe by seperating the two fields we can have a clear seperation
of concerns.
2019-11-06 15:10:52 -07:00
Faith Chikwekwe 0664dbc47d fix(cmd/influx): fix bug that causes long startup when running 'influx help' or related commands 2019-11-06 10:25:14 -08:00
Johnny Steenbergen c47bad5981 feat(pkger): add single stat chart to pkger dashboards 2019-11-01 14:36:18 -07:00
Johnny Steenbergen eea44f6c72 feat(pkger): add dashboard support to pkger
included is the base for dashboards and association of labels with
dashboards.
2019-11-01 12:20:54 -07:00
Johnny Steenbergen 37decdfa24 chore(pkger): fixup loose ends from PR review 2019-11-01 11:59:09 -07: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 c7545f8951 feat(pkger): add label -> bucket mappings to pkger 2019-11-01 11:59:09 -07:00
Johnny Steenbergen c0849acb9f feat(pkger): add pkg label support to the influx cli 2019-11-01 11:59:09 -07:00
Johnny Steenbergen 2c9f0f2d66 feat(pkger): add pkg cmd to influx CLI
extends the influx CLI to include the pkg cmd for buckets. Included is
the user interface for confirmation and printing of summaries before and
after the package is applied.
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
Kelvin Wang f8dee71516 fix(cmd/influx): remove dup usage 2019-10-31 12:35:11 -04:00
kelwang 5403e8aaa6
Merge pull request #15607 from influxdata/cli_delete_predicate
feat(cmd/influx): add cli delete predicate
2019-10-29 12:10:20 -04:00
docmerlin (j. Emrys Landivar) 6feae8f3ce feat(tasks): fixes for changeover 2019-10-29 10:36:47 -05:00
docmerlin (j. Emrys Landivar) aa5b094c8d refactor(task): feature flag for nw scheduler 2019-10-29 10:36:47 -05:00
Julius Volz e4558257e3 test(query): add PromQL end-to-end tests in go submodule
Signed-off-by: Lorenzo Affetti <lorenzo.affetti@gmail.com>
Signed-off-by: Julius Volz <julius.volz@gmail.com>

move to internal

update flux to v0.50

Revert "move to internal"

This reverts commit bcd4caffbd44135f1dbeac4163cb2a22a751f45a.

promtests/internal --> internal/promtests
2019-10-28 18:59:50 +01:00
Kelvin Wang 27d15deadb feat(cmd/influx): add cli delete predicate 2019-10-28 11:46:01 -04:00
Johnny Steenbergen 1e69c517b4
Merge pull request #15526 from influxdata/4447/fix_vault_flag_names
fix(vault): rename flags to match env vars and add missing token flag
2019-10-21 16:15:57 -07:00
Brandon Farmer ea82dc3470 fix(tasks): tasks look up system bucket id 2019-10-21 14:48:47 -07:00
Johnny Steenbergen 1bacb62b3a fix(vault): rename flags to match env vars and add missing token flag
the flags have to match the flags with the exception of beign lower case and
all `_` be changed to `-` in the flag. This is a result of using the cobra
flag to env var mapping with the `-` replaced to `_`.
2019-10-21 13:23:54 -07:00
Kelvin Wang 449bbd3fb0 feat(cmd/influxd): add deleteservice to launcher 2019-10-18 12:02:52 -04:00
Alirie Gray 552168d3ae
refactor(tasks): use Go time objects for timestamps on task Runs (#15406) 2019-10-17 17:23:45 -07:00
David McKay 647e179453 feat(tls): add options to run HTTP over TLS 2019-10-17 23:35:04 +01:00
Johnny Steenbergen cf2f785803 feat(vault): add flags to influxd for vault configuration 2019-10-16 09:41:51 -07:00
kelwang 072270d7d8
Merge pull request #15372 from influxdata/cli_list_org_members
fix(cmd/influx): fix list org members
2019-10-10 12:10:25 -04:00
Kelvin Wang c96fe7ed6e fix(cmd/influx): fix list org members 2019-10-10 11:57:03 -04:00
Johnny Steenbergen dbe0103d92 fix(logging): blacklist endpoints with sensitive data from logging body 2019-10-09 13:17:24 -07:00
Johnny Steenbergen 5a546d5827
Merge pull request #15335 from influxdata/2939/add_logging_to_gateway
2939/add logging to gateway
2019-10-07 14:49:36 -07:00
Johnny Steenbergen 9d5392cfd9 fix(logging): add debug logging for all http requests 2019-10-07 14:19:21 -07:00
Lyon Hill 5e1d7f6c69
feat(task): remove preauth (#15286)
* feat(task): remove preauth

* fix(task): remove e2e test that verified preauth
2019-09-26 10:52:24 -06:00
Kelvin Wang 4aa6df1c34 fix(cmd/influx): org add/remove members 2019-09-24 13:26:18 -04:00