Commit Graph

69 Commits (3fd1fe2210d33287f0df3cf4798cf4557757e86b)

Author SHA1 Message Date
Cory LaNou 413f5d162c tests for collectd config 2015-01-09 10:44:11 -07:00
Cory LaNou bc047a475b first pass at config and wiring up collectd server. needs tests and testing 2015-01-08 17:09:28 -07:00
Philip O'Toole ea0d15e581 Re-add Auth block to config 2015-01-08 12:39:47 -08:00
Philip O'Toole 21d6d5738c GoDoc "LastEnabled" 2015-01-08 12:32:46 -08:00
Philip O'Toole c64624abff Merge branch 'master' into graphite_distinct_servers
Conflicts:
	cmd/influxd/config.go
2015-01-08 12:31:21 -08:00
Philip O'Toole 1c19ae61cf Move Graphite config to top-level of config 2015-01-08 12:28:10 -08:00
Philip O'Toole 50b494503d Tigthen up config of Graphite Parser 2015-01-08 12:23:48 -08:00
Philip O'Toole 8ea70fc650 Fix bug in Graphite ConnectionString() 2015-01-08 12:19:44 -08:00
Philip O'Toole 0633b80193 Fix up sample config and move Graphite config type 2015-01-08 12:07:09 -08:00
Philip O'Toole 5a4e2a15fb Move Graphite control into "input plugins" section 2015-01-08 11:25:43 -08:00
Philip O'Toole 8c2f894fab Integrate more code review feedback 2015-01-08 11:14:57 -08:00
Philip O'Toole 9e7f6ca3f0 Provide default NameSeparator for Graphite config 2015-01-07 16:15:39 -08:00
Philip O'Toole f57f28f575 Add GoDoc strings 2015-01-07 00:10:46 -08:00
Philip O'Toole 6683643dde Add comment re Graphite Server startup 2015-01-07 00:04:56 -08:00
Philip O'Toole 85b3408115 Integrate remaining review feedback 2015-01-07 00:02:58 -08:00
Philip O'Toole f3650b4797 Implement a distinct Graphite Parser
This encapsulates a few previously free-floating methods. This means
that params such as "separator" and "last-enabled" are not passed from
function to function, and also makes initialization of TCP and UDP
Servers somewhat clearer.

It also removes early use of "GraphiteProcessor".
2015-01-06 23:20:01 -08:00
Philip O'Toole 1f264b6c2d Refactor into distinct TCP and UDP servers 2015-01-06 15:17:29 -08:00
Cory LaNou 0334dc5b50 seperator -> separator 2015-01-06 09:57:44 -07:00
Cory LaNou a94254d1a3 Graphite endpoint updates from comments
Added ability to specifiy a seperator for a metric_path.
Default is "."

Added ability to specify position of name from metric_path
Options are "first" or "last".
Defaults to the first position.

Normalized the graphite.Metric struct to only have a Value.

 Changes to be committed:
	modified:   cmd/influxd/config.go
	modified:   cmd/influxd/config_test.go
	modified:   cmd/influxd/run.go
	modified:   graphite/graphite.go
	modified:   graphite/graphite_test.go
2015-01-05 20:14:43 -07:00
Philip O'Toole 6b7af89119 Add new wrapper handlers for User authentication 2015-01-05 16:03:05 -08:00
Philip O'Toole 2c6e2a8a76 Add config flag to control authentication 2015-01-05 16:03:05 -08:00
Cory LaNou 7239d08059 fixing some comments and extra line returns 2015-01-02 10:57:21 -06:00
Cory LaNou a7a22cc52d fixing bad merge 2015-01-02 10:09:11 -06:00
Cory LaNou 897e1c8969 merge conflict 2015-01-02 09:58:31 -06:00
Cory LaNou b52437f00a Initial incorporation of fixes from pull request #1276
Changes to be committed:
	modified:   cmd/influxd/config.go
	modified:   cmd/influxd/config_test.go
	modified:   cmd/influxd/run.go
	renamed:    graphite.go -> graphite/graphite.go
	renamed:    graphite_test.go -> graphite/graphite_test.go
2015-01-02 09:57:04 -06:00
Cory LaNou 5fbdd4b1cb Wiring graphite end point back up
Graphite server now understands how to use the WriteSeries

Added ability for series information to be passed in the graphite name.

Format is:

	key.value.key.value.metric 50 <timestamp>\n

Example:

	region.us-west.hostname.server01.cpu .09323432 1419958066\n

Added test coverage for the Graphite endpoint.  Need to figure out
how to test a successful listenAndServe.

Need to add tests around new configuration for default values
when not specified for graphite servers.

Changes to be committed:
modified:   cmd/influxd/config.go
modified:   cmd/influxd/config_test.go
modified:   cmd/influxd/run.go
modified:   graphite.go
new file:   graphite_test.go
2015-01-02 09:56:46 -06:00
Cory LaNou 7d339b302d making go vet pass for cmd/influxd/run.go 2015-01-02 09:56:25 -06:00
Cory LaNou 2303a0f014 merge conflict 2014-12-31 15:47:10 -06:00
Cory LaNou 84980c97d2 Initial incorporation of fixes from pull request #1276
Changes to be committed:
	modified:   cmd/influxd/config.go
	modified:   cmd/influxd/config_test.go
	modified:   cmd/influxd/run.go
	renamed:    graphite.go -> graphite/graphite.go
	renamed:    graphite_test.go -> graphite/graphite_test.go
2014-12-31 15:37:58 -06:00
Ben Johnson 7db96f795a Remove magic number. 2014-12-31 13:50:34 -07:00
Ben Johnson 9b1d9df868 Add --role to 'run'. 2014-12-31 12:55:27 -07:00
Ben Johnson dbb089488f Create cluster on initial run. 2014-12-31 12:42:53 -07:00
Ben Johnson 70d561aa6f Refactor main/run. 2014-12-30 15:46:50 -07:00
Cory LaNou 2905ebc864 Wiring graphite end point back up
Graphite server now understands how to use the WriteSeries

Added ability for series information to be passed in the graphite name.

Format is:

	key.value.key.value.metric 50 <timestamp>\n

Example:

	region.us-west.hostname.server01.cpu .09323432 1419958066\n

Added test coverage for the Graphite endpoint.  Need to figure out
how to test a successful listenAndServe.

Need to add tests around new configuration for default values
when not specified for graphite servers.

Changes to be committed:
modified:   cmd/influxd/config.go
modified:   cmd/influxd/config_test.go
modified:   cmd/influxd/run.go
modified:   graphite.go
new file:   graphite_test.go
2014-12-30 16:46:33 -06:00
Cory LaNou e19db2b89d making go vet pass for cmd/influxd/run.go 2014-12-30 09:04:39 -06:00
Ben Johnson 7a1de8a459 Use replica id instead of replica name. 2014-12-23 17:01:06 -07:00
Philip O'Toole e31c58d580 Add protocol to Raft connection string
Fixed at HTTP for now.
2014-12-19 16:18:48 -05:00
Philip O'Toole 021604a6de Add connection URL to Broker 2014-12-19 16:18:01 -05:00
Philip O'Toole e1ef61aafc Tell Broker to join during 'join-cluster' 2014-12-19 16:18:01 -05:00
Philip O'Toole 3ab0c5b270 Add logging of Raft initialization 2014-12-19 16:18:01 -05:00
Philip O'Toole bc6d951057 Launch HTTP handlers in goroutines 2014-12-19 11:34:32 -05:00
Philip O'Toole 2124ebb383 The flag is 'seed-servers' 2014-12-18 11:35:03 -08:00
Philip O'Toole ceeb1f6946 Store Messaging Client config in file
The presence of this file is also used to determine if a node should run
in local client mode, or should contact a Broker.
2014-12-16 19:57:20 -08:00
Philip O'Toole 20716a93e7 Support separate HTTP ports for Raft and API 2014-12-16 19:39:43 -08:00
Philip O'Toole 7eadaa75ca Add support for seed-servers during 'run' 2014-12-15 23:08:17 -08:00
Philip O'Toole 0fd2bc03a2 Set bool flag once storage dir created 2014-12-15 21:55:57 -08:00
Philip O'Toole e70f00723c Simplify 'run' control
This change refactors the existing 'run' command such that repeated code
is removed. It uses -- in a much clearer manner -- the existence of the
Broker and Storage directories to work out in which mode it should run.
The only extra piece of state required on a disk is an empty file,
whose simple existence indicates that a local (loopback) client is
needed.

With this change in place the 'join-cluster' and 'create-cluster'
commands are much closer to being fully functional, since they simply
don't create the empty file. Therefore it all just works.
2014-12-15 19:45:55 -08:00
Philip O'Toole a20e8ec7e0 Fix panic when just 'influxd' is run 2014-12-11 16:05:09 -08:00
Philip O'Toole 918c0562be Create storage dir for 'join-cluster' if needed 2014-12-11 15:52:21 -08:00
Philip O'Toole 71da5c4a4a Correct path of storage dir for 'create-cluster' 2014-12-11 15:52:21 -08:00