Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions doc/Monitoring.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ Vitess also includes support for push-based metrics systems via plug-ins. Each V

By default, the stats_emit_period is 60s, so each component will push stats to the the selected backend every minute. This is configurable via the `--stats_emit_period` flag.

Vitess has preliminary plug-ins to support InfluxDB and OpenTSDB as push-based metrics backends. However, there is very limited support at this time, as InfluxDB itself is going through various API breaking changes.
Vitess has preliminary plug-ins to support OpenTSDB as a push-based metrics backend.

It should be fairly straightforward to write your own plug-in, if you want to support a different backend. The plug-in package simply needs to implement the `PushBackend` interface of the `stats` package. For an example, you can see the [InfluxDB plugin](https://github.com/vitessio/vitess/blob/master/go/stats/influxdbbackend/influxdb_backend.go).
It should be fairly straightforward to write your own plug-in, if you want to support a different backend. The plug-in package simply needs to implement the `PushBackend` interface of the `stats` package. For an example, you can see the [OpenTSDB plugin](https://github.com/vitessio/vitess/blob/master/go/stats/opentsdb/opentsdb.go).

Once you’ve written the backend plug-in, you also need to register the plug-in from within all the relevant Vitess binaries. An example of how to do this can be seen in [this pull request](https://github.com/vitessio/vitess/pull/469).

Expand All @@ -36,7 +36,7 @@ Connecting Vitess to a push-based metrics system can be useful if you’re alrea

## Monitoring with Kubernetes

The existing methods for integrating metrics are not supported in a Kubernetes environment by the Vitess team yet, but are on the roadmap for the future. However, it should be possible to get the InfluxDB backend working with Kubernetes, similar to how [Heapster for Kubernetes works](https://github.com/GoogleCloudPlatform/kubernetes/tree/master/cluster/addons/cluster-monitoring).
The existing methods for integrating metrics are not supported in a Kubernetes environment by the Vitess team yet, but are on the roadmap for the future. However, it should be possible to get the Prometheus backend working with Kubernetes, similar to how [Heapster for Kubernetes works](https://github.com/kubernetes/kubernetes/tree/master/cluster/addons/prometheus).

In the meantime, if you run into issues or have questions, please post on our [forum](https://groups.google.com/forum/#!forum/vitess).

Expand Down
2 changes: 1 addition & 1 deletion doc/ScalingMySQL.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Setting up these components directly -- for example, writing your own topology s
* *Recommended*. Vitess has basic support for identifying or changing a master, but it doesn't aim to fully address this feature. As such, we recommend using another program, like [Orchestrator](https://github.com/github/orchestrator), to monitor the health of your servers and to change your master database when necessary. (In a sharded database, each shard has a master.)


* *Recommended*. You should have a way to monitor your database topology and set up alerts as needed. Vitess components facilitate this monitoring by exporting a lot of runtime variables, like QPS over the last few minutes, error rates, and query latency. The variables are exported in JSON format, and Vitess also supports an InfluxDB plug-in.
* *Recommended*. You should have a way to monitor your database topology and set up alerts as needed. Vitess components facilitate this monitoring by exporting a lot of runtime variables, like QPS over the last few minutes, error rates, and query latency. The variables are exported in JSON format, and Vitess also supports a Prometheus plug-in.


* *Optional*. Using the Kubernetes scripts as a base, you could run Vitess components with other configuration management systems (like Puppet) or frameworks (like Mesos or AWS images).
Expand Down
23 changes: 0 additions & 23 deletions go/cmd/mysqlctl/plugin_influxdbbackend.go

This file was deleted.

23 changes: 0 additions & 23 deletions go/cmd/mysqlctld/plugin_influxdbbackend.go

This file was deleted.

23 changes: 0 additions & 23 deletions go/cmd/vtctl/plugin_influxdbbackend.go

This file was deleted.

23 changes: 0 additions & 23 deletions go/cmd/vtctld/plugin_influxdbbackend.go

This file was deleted.

23 changes: 0 additions & 23 deletions go/cmd/vtgate/plugin_influxdbbackend.go

This file was deleted.

23 changes: 0 additions & 23 deletions go/cmd/vttablet/plugin_influxdbbackend.go

This file was deleted.

23 changes: 0 additions & 23 deletions go/cmd/vtworker/plugin_influxdbbackend.go

This file was deleted.

23 changes: 0 additions & 23 deletions go/cmd/zkctld/plugin_influxdbbackend.go

This file was deleted.

2 changes: 1 addition & 1 deletion go/stats/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ import (

var emitStats = flag.Bool("emit_stats", false, "true iff we should emit stats to push-based monitoring/stats backends")
var statsEmitPeriod = flag.Duration("stats_emit_period", time.Duration(60*time.Second), "Interval between emitting stats to all registered backends")
var statsBackend = flag.String("stats_backend", "influxdb", "The name of the registered push-based monitoring/stats backend to use")
var statsBackend = flag.String("stats_backend", "", "The name of the registered push-based monitoring/stats backend to use")

// NewVarHook is the type of a hook to export variables in a different way
type NewVarHook func(name string, v expvar.Var)
Expand Down
104 changes: 0 additions & 104 deletions go/stats/influxdbbackend/influxdb_backend.go

This file was deleted.

8 changes: 0 additions & 8 deletions vendor/vendor.json
Original file line number Diff line number Diff line change
Expand Up @@ -618,14 +618,6 @@
"revision": "d3a67ab21bc8a4643fa53a3633f2d951dd50c6ca",
"revisionTime": "2016-12-07T01:17:43Z"
},
{
"checksumSHA1": "fe0NspvyJjx6DhmTjIpO0zmR+kg=",
"path": "github.com/influxdb/influxdb/client",
"revision": "afde71eb1740fd763ab9450e1f700ba0e53c36d0",
"revisionTime": "2014-12-28T19:15:54Z",
"version": "=v0.8.8",
"versionExact": "v0.8.8"
},
{
"checksumSHA1": "0ZrwvB6KoGPj2PoDNSEJwxQ6Mog=",
"path": "github.com/jmespath/go-jmespath",
Expand Down