Commit Graph

62 Commits (5a61bdad704d99a2510119029d28c66b1f467471)

Author SHA1 Message Date
Mark Rushakoff 5a61bdad70 Move monitor.Diagnostics to its own package
I was trying to create a Diagnostics Client in the tsdb package, but
IIRC importing `monitor` caused an import cycle of:
tsdb -> monitor -> cluster -> tsdb.

Moving Diagnostics to its own package will allow further use of
diagnostics.Client without running into import cycles.
2016-02-13 14:56:15 -08:00
Ben Johnson d9a6a7340f add canonical paths 2016-02-10 11:30:52 -07:00
Ben Johnson 5a0d1ab7c1 rename influxdb/influxdb to influxdata/influxdb
This commit changes all the import and URL references from:

    github.com/influxdb/influxdb

to:

    github.com/influxdata/influxdb
2016-02-10 10:26:18 -07:00
Jason Wilder ef524b0539 Fix monitor tests 2016-01-21 15:28:34 -05:00
Paul Dix 7b71b66e31 Update meta service, meta client, and httpd handler
* Improve the ping endpoint so that it can optionally check for leader agreement across all meta servers
* Add Ping method to the meta client
* Fix ClusterID tests
* Remove WaitForLeader from meta client and remove unnecessary references to it
2016-01-21 15:28:33 -05:00
Paul Dix f385945058 Update Server to work with new metaservice/client 2016-01-21 15:28:33 -05:00
Cory LaNou 8d878fff91 buildable meta -> services/meta 2016-01-21 15:28:32 -05:00
Philip O'Toole ddb4039564 More precise error checking
This is due to currently brittle error "marshalling" in our system, so a
more precise compare is required.

Fixes issue #5037.
2015-12-08 06:47:52 -08:00
David Norton 657877dd94 make not found err messages more consistent 2015-12-03 08:04:09 -06:00
Edd Robinson 3e4d2a1fb0 golint monitor package. Supports #4098 2015-11-22 18:42:34 +00:00
Jason Wilder 0926b19e6b Prevent creating points with NaN float values
Float values are not supported in the existing engine and the tsm1
engines.  This changes NewPoint to return an error if a field value
contains a NaN field.  It also allows us to validate fields to prevent
other unsupported types from sneaking in through other input plugins.
2015-10-27 17:12:52 -06:00
Mark Bates 3cfe4e8da5 Added JSON tags to the Statistic struct 2015-10-20 11:40:42 -04:00
Philip O'Toole 90cc2cdce2 Export Statistic type 2015-10-19 14:06:14 -07:00
Charles Chan 456a9a8ab7 Fix typos.
* meaining --> meaning
* communcation --> communication
* deterimine --> determine
* mistmatch --> mistmatch
2015-10-17 07:50:45 -07:00
Jason Wilder 53cc8aaa31 Store monitor statistics with seconds precision
influx_inspect uncovered that the monitoring database was storing it's data with almost
no compression because it recorded points at nanosecond precision but spaced them 10s apart. This
still requires 8 bytes.

Instead, store the points at seconds precision which allows the timestamp data to be run-length
encoded.
2015-10-09 22:35:43 -06:00
Philip O'Toole dba286a2e8 Update CHANGELOG 2015-10-05 15:53:46 -07:00
Philip O'Toole 899e1cc070 Only attempt monitor storage creation on leader
Since only the leader can create it, the system might as well only
attempt creation on the leader.
2015-10-05 15:46:35 -07:00
Philip O'Toole 62fab49205 Create monitor storage every monitor cycle
This functionality is idempotent and is storage has been successfully
created, no attempt will be made to re-create it. This allows the system
to keep trying every cycle, but stop when successful.
2015-10-05 15:35:21 -07:00
Philip O'Toole 721e3fd5e1 Notes for developers on adding diags
[ci skip]
2015-10-04 15:58:39 -07:00
Philip O'Toole 3540619f6c More stats development notes
[ci skip]
2015-10-04 15:56:53 -07:00
Philip O'Toole 70c59431ec Notes for developers on adding stats
[ci skip]
2015-10-04 15:55:58 -07:00
Philip O'Toole 2db82ee584 Merge pull request #4222 from influxdb/graphite_tcp_blocking
Graphite TCP should not block system shutdown
2015-09-28 12:11:04 -07:00
Philip O'Toole 7cb8c2d2ec Add build timestamp to version data 2015-09-24 23:40:53 -07:00
Philip O'Toole 99989df2b5 Always display diags in name-sorted order 2015-09-24 19:00:05 -07:00
Philip O'Toole 9de3125f6b Graphite TCP should not block system shutdown
With this change Graphite TCP connections are tracked on a per-service
basis. This allows a closing Graphite service to first shutdown any
active connections, thereby unblocking the rest of shutdowm.

This work exposed small shortcomings with the existing Diagnostics
system and that code has alse been tweaked.

Fixes issue #4017
2015-09-24 14:08:38 -07:00
Philip O'Toole a71a5ffd36 Support module-selection for SHOW DIAGNOSTICS 2015-09-22 21:56:46 -07:00
Philip O'Toole 35d09cedfd Support SHOW STATS for specific module 2015-09-22 16:36:13 -07:00
Philip O'Toole 07bcd523f3 Tag Go memstats during writes to _internal 2015-09-18 14:16:39 -07:00
Cory LaNou ba830be3b9 actually move influxql.Row* -> models.Row* 2015-09-16 16:32:50 -05:00
Cory LaNou d19a510ad2 refactor Points and Rows to dedicated packages 2015-09-16 15:33:08 -05:00
Philip O'Toole 9fd95b80a2 Create and configure _internal retention policy 2015-09-15 14:05:00 -07:00
Philip O'Toole ca4e5a4b9a Fix typo in monitor README
[ci skip]
2015-09-14 12:39:38 -07:00
Philip O'Toole 8c3ab9c687 Update README.md 2015-09-14 12:38:49 -07:00
Philip O'Toole c378cbd37c Updates to stats and diags README 2015-09-14 12:34:46 -07:00
Philip O'Toole 106fe688c2 Fix compile error in monitor unit tests 2015-09-10 17:28:44 -07:00
Philip O'Toole 3cb29d9241 By default write stats to default retention policy
This reverts to a previous design for storing stats, whereby if a
non-default retention policy is configured as the destination retention
policy, it is up the user to explicitly create it, with the desired
replication factor and duration.
2015-09-10 15:08:09 -07:00
Philip O'Toole 0ea0a3a71b Add build info to diagnostics 2015-09-09 12:43:51 -07:00
Philip O'Toole 70607836e1 Set default monitor store interval to 10 seconds 2015-09-08 20:37:15 -07:00
Philip O'Toole 4934a59fd1 Merge pull request #4009 from influxdb/cluster_level_stats
Add cluster-level tags to all stats when stored
2015-09-08 12:33:57 -07:00
Philip O'Toole 214cfea53c Monitor retention policy is configurable 2015-09-04 22:53:04 -07:00
Philip O'Toole 03315bc9dd Add cluster-level tags to all stats when stored
This allows stats for all nodes in a given cluster, for example, to be
easily queried.
2015-09-04 18:36:14 -07:00
Philip O'Toole cfd0acdbc5 Merge pull request #4008 from influxdb/runtime_stats
Add Go memstats to statistics
2015-09-04 16:36:19 -07:00
Philip O'Toole 23df8663c3 Convert expvar values to the correct type int64
expvar only allows int increments and decrements, so use int64 when
converting.
2015-09-04 14:41:13 -07:00
Philip O'Toole f96ec228a4 Add Go memstats to statistics 2015-09-04 13:20:58 -07:00
Philip O'Toole 89bc392ec4 Access expvar directly from monitor
expvar map is already global so access it directly. This simplifies the
code and makes it much eaisier to use from other modules.
2015-09-04 09:45:24 -07:00
Philip O'Toole 6ad35e23e9 Integrate code review feedback 2015-09-03 20:50:54 -07:00
Philip O'Toole e07432c59f Implement diagnostics support
This change adds support for diagnostics by decomposing the existing
interface into two interfaces -- one for stats, and the other for
diags. It also adds some basic monitor of system, network, and the Go
runtime.
2015-09-03 20:50:54 -07:00
Philip O'Toole c0d61740a4 Ensure monitor database exists
This requires a leader in the cluster, so wait for that before
attempting the database creation.
2015-09-02 16:26:16 -07:00
Philip O'Toole 018b214d56 Initialize monitor done channel 2015-09-02 15:56:37 -07:00
Philip O'Toole 3a6cfcc528 Remove support for storing in external InfluxDB
Using telegraf will the official story for monitoring an InfluxDB system
and storing the results in a second InfluxDB system.
2015-09-02 15:55:59 -07:00