Commit Graph

732 Commits (811f2e6117718478b402d5076244862f2b7e3d65)

Author SHA1 Message Date
Tim Raymond b0860ca903 Make argument order of setRandomDefault consistent
Most of the other private CRUD methods have a consistent argument order
of a context, a source, then a transaction. setRandomDefault had two of
these args transposed, so this swaps them to be consistent with the rest
of the methods.
2016-11-08 12:29:29 -05:00
Tim Raymond d4f2434399 Make context.Context the first argument
This is the convention.
2016-11-08 12:14:06 -05:00
Tim Raymond b8e335fbee Prevent deadlocks with source default enforcement
Previously, the logic to enforce on default source relied on the
public-facing CRUD methods already provided by SourcesStore. This was
prone to deadlocks due to the possibility of acquiring a transaction
within a transaction.  This extracts the logic that was performed within
the transactions of each CRUD action and makes the private methods that
receive a *bolt.Tx.  This allows the convenience methods that enforce
default source to use this private API and provide the transaction from
its caller. This ensures that there is only ever one transaction
acquired by each expored
CRUD method.
2016-11-08 12:09:35 -05:00
Jade McGough 31b1ba5ca7 group by must appear after where clause 2016-11-08 08:14:25 -08:00
Jade McGough d99abaa04a groupBy needs to be joined by a comma 2016-11-08 08:11:54 -08:00
Chris Goller 1a2b6bf7aa Merge pull request #404 from influxdata/feature/package-updates
Package tweaks
2016-11-08 09:51:27 -06:00
Ross McDonald f36e1da982 Minor changes to packaging:
* Change default host from localhost to 0.0.0.0.

* Modify default database name to `chronograf-v1.db`.

* Change default port from 10000 to 8888.
2016-11-08 08:34:03 -06:00
Jade McGough 1ffa00dc16 add group by statement to queries if provided by layout 2016-11-07 22:51:29 -08:00
Chris Goller 7b389265a7 Add windows cpu, memory and net 2016-11-07 22:22:51 -06:00
Chris Goller edd0ea7dbb Update netstat layout cell grid 2016-11-07 22:08:45 -06:00
Chris Goller 0741fb3cde Update layouts with jq formatting 2016-11-07 21:57:18 -06:00
Chris Goller 512d2f574e Add Windows IIS rates 2016-11-07 21:56:09 -06:00
Chris Goller 41232f9279 Add layout for total number of processes 2016-11-07 21:38:05 -06:00
Chris Goller 4f3a0ede56 Add netstat layout including # of sockets and rate of chnage of # of sockets 2016-11-07 21:32:01 -06:00
Andrew Watkins 173b5792f1 Merge pull request #392 from influxdata/remove-more-than
Remove more than and less than
2016-11-07 19:29:06 -08:00
Tim Raymond d63cc6b670 Add ability to focus apps for a host
This adds the ability for a user to drill into a particular app running
on a host. It adds a query parameter to the HostPage to indicate the
focused app.
2016-11-07 22:22:29 -05:00
Chris Goller 7bb5b1e5a1 Add disk usage_percent layout 2016-11-07 21:00:07 -06:00
Chris Goller 9706edb1d0 Merge pull request #413 from influxdata/default-cli-options
Update default cli options to be 0.0.0.0 and 8888
2016-11-07 20:52:38 -06:00
Chris Goller 96ad89a773 Update default cli options to be 0.0.0.0 and 8888 2016-11-07 20:50:06 -06:00
Chris Goller 8c279412f0 Merge pull request #412 from influxdata/layouts-wheres
Add wheres to layouts
2016-11-07 20:44:15 -06:00
Chris Goller 8d97980aad Add wheres to layouts 2016-11-07 20:35:46 -06:00
Regan Kuchan b9a5257dd2 Edit getting started 2016-11-07 18:20:49 -08:00
Chris Goller 126068c81f Merge pull request #407 from influxdata/eslint-halp
Pin eslint packages and fix syntax errors
2016-11-07 20:15:42 -06:00
Nathan Haugo ae4c700f33 Merge pull request #409 from influxdata/k8s-layouts
Add kubernetes layouts based on deis grafana dashboards
2016-11-07 17:10:50 -08:00
Chris Goller ec8da9a949 Update circle to not cache 2016-11-07 18:53:19 -06:00
Chris Goller c4cce0fd16 Add kubernetes layouts based on deis grafana dashboards 2016-11-07 18:23:09 -06:00
Will Piers 530631905d Merge pull request #402 from influxdata/kap-test
Switch order of save and test buttons for slack
2016-11-07 16:03:32 -08:00
Andrew Watkins 6b773f0896 Fix linting errors 2016-11-07 15:51:27 -08:00
Will Piers 3d30e281dd Pin eslint packages and fix syntax errors 2016-11-07 15:51:26 -08:00
Andrew Watkins ba3a8b0d45 Implement renaming of rule 2016-11-07 15:47:13 -08:00
Jade McGough fc774f4e5a #382 - hide percent sign for non-percentile rules 2016-11-07 15:37:42 -08:00
Chris Goller 0e042f6b33 Merge pull request #405 from influxdata/layout-groupbys
Add groupby options to layouts
2016-11-07 17:33:55 -06:00
Tim Raymond 493befbdc7 Enforce default constraints on first/last source
Whenver sources are present, there should be exactly one default source.
Prior to this commit, it was possible to add the first source as a
non-default source and circumvent this invariant. This unfortunately
requires a bit of special-casing logic in s.Add and requires a query to
fetch the number of sources currently persisted.

Tests have been added to cover this as well as deleting the final
source, to ensure that there aren't any odd indexing panics that might
result from trying to find another candidate default source when
deleting.
2016-11-07 18:13:23 -05:00
Tim Raymond d03d47b9ad Extract Default source enforcement logic
Enforcing the constraint that there be exactly one default source
whenever there are sources present isn't really a concern of the
traditional CRUD methods that are provided by SourcesStore. This makes
this separation a little more explicit and provides a place to glue some
documentation onto what would otherwise be a confusing bit of business
logic in the write path of SourcesStore.
2016-11-07 18:13:23 -05:00
Tim Raymond 193765ead2 Auto-set default source on Add and Delete
Previously, when adding a new default source, it was possible to create
more than one default source, since the previous default would not be unset.

Implementing this revealed another issue where deleting the default
source would leave no default set. If the default source is deleted now,
another source is chosen to be the new default.
2016-11-07 18:13:23 -05:00
Tim Raymond 4a02ad7525 Enforce single default source on update
This ensures that there will only be on default source upon setting a
new default by unsetting the default flag on all other sources. This
only happens when the source to be updated has Default set to true to
avoid a performance hit when updating other attributes.
2016-11-07 18:13:23 -05:00
Will Piers 352a39539d Switch order of save and test buttons for slack 2016-11-07 14:48:20 -08:00
nathan haugo fd17d09478 First rev of getting started 2016-11-07 14:45:04 -08:00
Will Piers b4b9752601 Merge pull request #398 from influxdata/syntax-errors
Fix syntax errors
2016-11-07 14:38:42 -08:00
Chris Goller b274363149 Add groupby options to layouts 2016-11-07 16:31:48 -06:00
Kevin Fitzpatrick ddd80b8754 Show missing alerts
It was key collision.
2016-11-07 14:30:10 -08:00
Chris Goller 61ca5f4efd Merge pull request #393 from influxdata/fix/390-change-alert-name
change name to alertName in alerts query
2016-11-07 15:58:47 -06:00
Jade McGough 57cfb0dae4 change name to alertName in alerts query 2016-11-07 13:50:14 -08:00
Sean Beckett fa370be042 Update README.md 2016-11-07 14:26:51 -07:00
Will Piers 299d91bc90 Fix syntax errors 2016-11-07 13:22:56 -08:00
Andrew Watkins 122bd75b64 Change all 1d to 24h 2016-11-07 13:08:04 -08:00
Andrew Watkins 4c1ae216a6 Remove more than and less than 2016-11-07 13:03:58 -08:00
Kevin Fitzpatrick ea12c46225 Merge branch 'feature/handle-empty-alert-set' 2016-11-07 12:02:14 -08:00
Jade McGough fe16ba68d9 Merge branch 'fix/horizontal-graphs' 2016-11-07 11:40:37 -08:00
Kevin Fitzpatrick 55a6bfcdda Stop displaying 'loading' when empty set of alerts 2016-11-07 11:06:23 -08:00