Commit Graph

157 Commits (7993ffcfdb49245eae943756bb5a1702a73dc8f4)

Author SHA1 Message Date
greg linton d61b03f27a fix: use auth settings when pinging source 2020-03-25 16:55:03 -06:00
Greg f0d5e5abef
chore: add a KV layer prior to adding an etcd implementation (#5349)
* Bolt to kv/bolt

* Remove unused code

* Remove unused roles code

* Remove unused duplicate Makefile

* Clean up bolt implementation and start layering in an interface for another store

* Layer in kv interface

* Continue layering in kv interface

* Remove circuitbreaker things

* Move cell stuff out

* Convert cell logic to kv interface

* Start adding config logic to kv interface, likely will remain bolt only

* Get to compile with bolt kv before moving too far forward

* Start removing dead dashboard code

* Add generic kv implementation for dashboards

* Convert layouts to kv interface

* Migrate mappings to kv layer

* Migrate org_config to kv layer

* Migrate organizations to kv layer

* Migrate servers to kv layer

* Migrate sources to kv layer

* Migrate users to kv layer

* Start removing unused migration logic

Since there is a migration path for users via updating to 1.7.x line then to 1.8, there isn't any real reason to continue supporting migrating from a version ~2 years old.

* Cleaning up bolt dead codes

* Re-add disabled code

* Migrate tests over to kv layer

* Migrate config to kv layer

* Create default organization

* Remove etcd for now

* Improve new client and new service implementations

* Uncomment bolt build tests

* Add layouts test

* Add more dashboard tests to kv
2020-01-21 09:26:23 -07:00
Greg 1806d6c298
chore: tidy prior to kv refactor (#5342)
* Start cleaning up/reviewing for kv refactor

* Remove dependency on graceful http layer

* Remove deprecated cli option --new-sources

* Run gofmt and remove dep related files

* Update non-influx deps

* Update kapacitor dep

* Compile regexp's once

* Remove un-needed struct members

* Remove unused integrations code
2020-01-09 08:49:42 -07:00
Michael Desa ab3f5c1d70
fix(influx): allow upperDashboardTime when generating query config (#5334)
Closes https://github.com/influxdata/chronograf/issues/5330
2019-12-18 10:08:57 -08:00
Christopher Henn f886d9f0f2 Add support for user-defined annotation tags 2018-08-06 08:47:19 -07:00
Andrew Watkins 3ff9eef934 Remove tempVars from backend queries response 2018-06-28 13:19:32 -07:00
Andrew Watkins aa06c280f1 Remove template variable replacement from the backend 2018-06-28 12:42:28 -07:00
Andrew Watkins 583791d807 Fix go test 2018-06-27 17:05:35 -07:00
Andrew Watkins 49d7998d08 Return query duration from /query endpoint 2018-06-27 17:05:35 -07:00
Christopher Henn 2a494b4f75
Support persisting "influxql" template variables 2018-06-19 16:24:40 -07:00
Christopher Henn ac7ebe1f48
Fix rendering of template variables within regexes 2018-06-11 15:12:55 -07:00
Brandon Farmer 982a086f9d Fixes issues with queries containing regexps
- \. was not being escaped properly
2018-04-05 16:44:05 -07:00
Jared Scheib 207fb0a49b
Merge branch 'master' into feature/rest-measurements 2018-04-04 16:21:16 -07:00
Jared Scheib 982fa38fc1 Rename database function arguments for consistency 2018-04-04 13:25:45 -07:00
Luke Morris 9eb7a8cdd4 Reintroduce :interval: work
This reverts commit 4b54081cf8.

:interval: represents a duration now

queryConfig must recognize both :interval: forms

Another case to consider

Fix broken links in CHANGELOG

Rudimentary migration system w/ :interval: migration

Only looking for :interval: now

Server can expect time(:interval:) from now on

Repair go specs
2018-04-03 16:52:34 -07:00
Jared Scheib 50ceafc900 Correct GetMeasurements comments to indicate default 100 limit 2018-04-03 16:04:16 -07:00
Jared Scheib eb4d07f4ae Change AllMeasurements to GetMeasurements to be precise & update comment 2018-04-03 16:04:16 -07:00
Chris Goller a5722da2a7 Add measurements with pagination 2018-04-03 16:04:16 -07:00
Luke Morris 4b54081cf8 Revert :interval: work
Squashed commit of the following:

commit 8b18f78098953c5aba744dd16a215b6ed4cd5143
Author: Luke Morris <lukevmorris@gmail.com>
Date:   Wed Feb 28 20:44:46 2018 -0800

    Revert "Merge pull request #2663 from influxdata/feature/migrate-time-interval"

    This reverts commit 935186984c, reversing
    changes made to e5b8889bc6.

commit 8f17059d24cc1a1bb4b8675be70fb9adb3f3a3e3
Author: Luke Morris <lukevmorris@gmail.com>
Date:   Wed Feb 28 20:44:23 2018 -0800

    Revert "Merge pull request #2890 from influxdata/fix/time-interval"

    This reverts commit bb01a569ca, reversing
    changes made to 3609bc7d3a.
2018-02-28 20:47:16 -08:00
Michael Desa 1c9ee296a0 Ensure backwards compat for old GROUP BY :interval: 2018-02-28 17:21:15 -05:00
Luke Morris 7354a75b79 Merge branch 'master' into feature/migrate-time-interval 2018-02-27 19:14:28 -08:00
Luke Morris 63b1848adb :interval: relies on others, and should always come last 2018-02-27 18:02:38 -08:00
Chris Goller c1043b1938 Update timeseries interface to write multiple points 2018-02-27 13:27:17 -06:00
Chris Goller a8b52523e9 Remove db and rp from annotation SELECT queries 2018-02-27 13:05:48 -06:00
Chris Goller 010f67dc77 Update variable name of the annotations db 2018-02-27 13:03:40 -06:00
Michael Desa c93d020190 Create new point template var template value
Previously users specify `resolution` and `pixelsPerPoint`. This has
been change and the front end will now need to specify `points` which is
the number of points it'd like to get back from the query.
2018-02-22 13:17:49 -05:00
Chris Goller cd88b5cecd Add tests for writing to influxdb 2018-02-17 14:01:18 -06:00
Chris Goller d7b7914241 Add tests for annotation store 2018-02-17 12:30:55 -06:00
Chris Goller b4f25255c8 Update annotations to be inclusive of start and end time 2018-02-16 09:17:47 -08:00
Chris Goller 9a748d7bd5 Fix annotation storage to influxdb 2018-02-16 09:17:47 -08:00
Chris Goller 8e542b5130 Update annotations to use time as endTime 2018-02-16 09:17:47 -08:00
Chris Goller 7555783638 Update influxdb annotation store to support update/delete 2018-01-18 21:50:46 -06:00
Chris Goller 243ccb1ffb Add basic REST routes for annotations 2018-01-12 17:17:14 -06:00
Chris Goller 986e9406f9 Add epoch to influx query 2018-01-12 17:17:01 -06:00
Chris Goller 18bf6aecba Add update/create/delete for influx annotation store 2018-01-11 20:49:10 -06:00
Chris Goller 38e57eb897 WIP Add annotation store to influxdb 2018-01-11 11:46:49 -06:00
Chris Goller 4d53010c02 Fix template rendering to ignore template if not in query 2017-12-11 09:49:24 -06:00
Jared Scheib 1323a062b7 Merge branch 'master' into multitenancy 2017-12-05 13:00:48 -08:00
Jared Scheib 93f11e1325 Merge remote-tracking branch 'origin/master' into multitenancy 2017-12-05 11:43:23 -08:00
Chris Goller 6db56147a8 Add basic auth or JWT tokens for meta queries 2017-12-04 18:07:08 -06:00
Michael Desa e27936ee69 Add Num to UsersStore interface 2017-11-30 12:55:59 -05:00
Chris Goller eb82ec4131 Refactor and simplify auto group by (:interval:) template variable 2017-11-08 11:27:35 -06:00
Jared Scheib 7fce5fe0fc Merge branch 'master' into multitenancy 2017-10-24 17:58:15 -07:00
Andrew Watkins 26e03d4fb2 Merge pull request #2128 from influxdata/feature/qc-v2-alias
FEATURE:  queryConfig v2 && custom field alias persistence
2017-10-20 20:32:33 -07:00
Michael Desa 0d235f646d Generalize chronograf.UsersStore Get method
The `Get` method on the UsersStore was generalize by changing the second
parameter to a struct. This allows the Store to retrieve users by more
than simply their name.

-Get(ctx context.Context, name string) (*User, error)
+Get(ctx context.Context, q UserQuery) (*User, error)
2017-10-18 14:17:42 -04:00
Chris Goller 4de1eb299d Update InfluxQL field parsing to return strings rather than numbers 2017-10-17 13:52:26 -05:00
Chris Goller c8b0f34534 Refactor fill statement parsing to be an idomatic switch 2017-10-17 13:52:01 -05:00
Chris Goller 1ee1fd9040 Add test of InfluxQL parsing with aggregates and aliases 2017-10-17 13:50:52 -05:00
Nathan Haugo fe62e9fdb4 Remove debugging lines and add case for less than 1 ms 2017-10-16 16:23:22 -05:00
Nathan Haugo 608d11e143 Made changes due to review 2017-10-16 16:15:12 -05:00