Commit Graph

33 Commits (master)

Author SHA1 Message Date
Pavel Zavora 9157a376c5 chore: update inline docs 2022-04-05 14:10:54 +02:00
Pavel Zavora 57c601d9e3 fix(server): read chronograf version from UI dist by default 2022-03-17 09:35:56 +01:00
Pavel Zavora af97b3a453 chore(chronoctl): repair staticcheck errors 2022-01-23 09:56:49 +01:00
Pavel Zavora e38083d5b4 chore: repair staticcheck errors 2022-01-23 09:53:01 +01:00
Pavel Zavora b9b62c76bd feat(migrate): allow etcds URL, improve help 2021-03-04 07:36:42 +01:00
Pavel Zavora 2ac989d91a feat(migrate): configure etcd client with URL 2021-03-04 07:36:42 +01:00
Pavel Zavora a11dc5b173 chore: fix error string 2021-03-04 07:36:42 +01:00
greg linton d563ddd2ec fix(chronoctl): migrate users also 2020-09-14 11:53:50 -06:00
greg linton 7fb545e8e9 fix: token option issue 2020-04-20 18:36:41 -06:00
greg linton 6d6f36cfbc fix(chronoctl): allow token generation against self-signed api 2020-03-13 17:36:00 -06:00
Greg 26458417c7
feat: add ability to authenticate single superadmin user (#5400)
* feat: add ability to authenticate single superadmin user

This short-circuits any configured authentication, allowing a user
with the correctly signed message to act against the api.

* Present an expiring message to be signed/verified

* Add chronoctl command to ouput token for use in auth header

* Add command to generate and store RSA keypair

* Test new superadmin token checks
2020-02-28 14:14:46 -07:00
Greg 013d594fe5
fix: fail if migrating from non-existant boltdb (#5379) 2020-02-10 15:35:36 -07:00
greg linton a325de2c19 feat: add note to migrate command about id generation 2020-02-10 12:59:06 -07:00
greg linton 6e4ff341a2 fix: remove default 'to' assignment 2020-02-03 20:43:44 -07:00
greg linton 1a612ffa22 feat: add migrate command to chronoctl
adds a command to migrate a db from bolt to etcd and visa versa. there
is no promise that the options/functionality will not change, hence the
'beta' note. obviously there is also no guarantee that there will never
be any data loss.
after several manual tests, i do have a high level of confidence in the
functionality presented.
2020-02-03 20:43:44 -07:00
greg linton 69cf16a41d feat: add '/ping' route for simple health checksi
update makefile version
add note about dashboards api compatibility
2020-01-31 14:35:39 -07: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
ischolten eb5febf8af
Merge pull request #2699 from influxdata/feature/mappings
Add Mappings to organizations
2018-02-12 15:29:01 -08:00
Michael Desa 8e54c8c883 Change oauth to oauth2 in scheme flag 2018-02-12 16:24:54 -05:00
Michael Desa e1b87bdf4d Add organization flag to chronoctl for orgs
This flag allows users to have a comma delimited list of organization
IDs that the user should given a role in.
2018-02-12 16:03:27 -05:00
Luke Morris ed706cfbde add user to Default org in add-superadmin cmd 2018-02-09 14:29:43 -08:00
Michael Desa 323c7df5c3 Add chronoctl to Makefile
All usage information when no commands supplied
2018-02-09 10:30:02 -05:00
Michael Desa ec180613fb Add commands to users & create superadmin
This PR introduces two new commands:

1. `list-users` which lists all users in boltdb
2. `add-superadmin` which can be user to promote existing users to
superadmins, or creates new users that are superadmins

Currently this work was done as a separate binary, but the intention is
to make it a part of the `chronograf` binary.

Connect https://github.com/influxdata/chronograf/issues/2744
2018-02-08 10:44:49 -05:00
Luke Morris 5a59d72b06 WIP 2017-12-16 01:01:14 -08:00
Jared Scheib 959b387f61 Introduce ability to edit a dashboard cell
* Correct documentation for dashboards

* Exclude .git and use 'make run-dev' in 'make continuous'

* Fix dashboard deletion bug where id serialization was wrong

* Commence creation of overlay technology, add autoRefresh props to DashboardPage

* Enhance overlay magnitude of overlay technology

* Add confirm buttons to overlay technology

* Refactor ResizeContainer to accommodate arbitrary containers

* Refactor ResizeContainer to require explicit ResizeTop and ResizeBottom for clarity

* Add markup and styles for OverlayControls

* CellEditorOverlay needs a larger minimum bottom height to accommodate more things

* Revert Visualization to not use ResizeTop or flex-box

* Remove TODO and move to issue

* Refactor CellEditorOverlay to allow selection of graph type

* Style Overlay controls, move confirm buttons to own stylesheet

* Fix toggle buttons in overlay so active is actually active

* Block user-select on a few UI items

* Update cell query shape to support Visualization and LayoutRenderer

* Code cleanup

* Repair fixture schema; update props for affected components

* Wired up selectedGraphType and activeQueryID in CellEditorOverlay

* Wire up chooseMeasurements in QueryBuilder

Pass queryActions into QueryBuilder so that DataExplorer can provide
actionCreators and CellEditorOverlay can provide functions that
modify its component state

* semicolon cleanup

* Bind all queryModifier actions to component state with a stateReducer

* Overlay Technologies™ can add and delete a query from a cell

* Semicolon cleanup

* Add conversion of InfluxQL to QueryConfig for dashboards

* Update go deps to add influxdb at af72d9b0e4ebe95be30e89b160f43eabaf0529ed

* Updated docs for dashboard query config

* Update CHANGELOG to mention InfluxQL to QueryConfig

* Make reducer’s name more specific for clarity

* Remove 'table' as graphType

* Make graph renaming prettier

* Remove duplicate DashboardQuery in swagger.json

* Fix swagger to include name and links for Cell

* Refactor CellEditorOverlay to enable graph type selection

* Add link.self to all Dashboard cells; add bolt migrations

* Make dash graph names only hover on contents

* Consolidate timeRange format patterns, clean up

* Add cell endpoints to dashboards

* Include Line + Stat in Visualization Type list

* Add cell link to dashboards

* Enable step plot and stacked graph in Visualization

* Overlay Technologies are summonable and dismissable

* OverlayTechnologies saves changes to a cell

* Convert NameableGraph to createClass for state

This was converted from a pure function to encapsulate the state of the
buttons. An attempt was made previously to store this state in Redux,
but it proved too convoluted with the current state of the reducers for
cells and dashboards. Another effort must take place to separate a cell
reducer to manage the state of an individual cell in Redux in order for
this state to be sanely kept in Redux as well.

For the time being, this state is being kept in the component for the
sake of expeditiousness, since this is needed for Dashboards to be
released. A refactor of this will occur later.

* Cells should contain a links key in server response

* Clean up console logs

* Use live data instead of a cellQuery fixture

* Update docs for dashboard creation

* DB and RP are already present in the Command field

* Fix LayoutRenderer’s understanding of query schema

* Return a new object, rather that mutate in place

* Visualization doesn’t use activeQueryID

* Selected is an object, not a string

* QueryBuilder refactored to use query index instead of query id

* CellEditorOverlay refactored to use query index instead of query id

* ConfirmButtons doesn’t need to act on an item

* Rename functions to follow convention

* Queries are no longer guaranteed to have ids

* Omit WHERE and GROUP BY clauses when saving query

* Select new query on add in OverlayTechnologies

* Add click outside to dash graph menu, style menu also

* Change context menu from ... to a caret

More consistent with the rest of the UI, better affordance

* Hide graph context menu in presentation mode

Don’t want people editing a dashboard from presentation mode

* Move graph refreshing spinner so it does not overlap with context menu

* Wire up Cell Menu to Overlay Technologies

* Correct empty dashboard type

* Refactor dashboard spec fixtures

* Test syncDashboardCell reducer

* Remove Delete button from graph dropdown menu (for now)

* Update changelog
2017-03-23 17:12:33 -07:00
Tim Raymond bbe7c31470 Fix missing version
Previously, using the version switch (`chronograf --version`) would
yield no version or commit information. This was because those two
package vars were exported, when the build script expects them to be
package private. To keep the build script as consistent as possible
across repos, the solution was to just make those package vars private

Connect #679
2016-12-13 15:09:12 -05:00
gunnaraasen 8d57cc92ec Add version option 2016-11-09 13:25:07 -08:00
gunnaraasen 7e94012bf5 WIP 2016-11-03 15:50:34 -05:00
gunnaraasen 39d21014dc Add usage stats reporting 2016-10-28 14:34:55 -07:00
Chris Goller d1359c09b3 Refactor to remove autogenerated code. 2016-10-26 22:10:52 -05:00
Chris Goller 91eec23099 Update name to chronograf 2016-10-20 09:39:40 -05:00
Tim Raymond 912acdd1e6 Auto-generate backend with stubbed ops
This was generated using go-swagger's `swagger` command. The specific
command used was:

`swagger generate server -f swagger.yaml  --with-context`

Fixes #6
2016-09-12 15:12:30 -04:00