Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fullcontact/crankshaftd
Simple Go agent to ingest streaming data from Turbine via SSE and push it into StatsD as a gauge or to InfluxDB.
https://github.com/fullcontact/crankshaftd
Last synced: about 9 hours ago
JSON representation
Simple Go agent to ingest streaming data from Turbine via SSE and push it into StatsD as a gauge or to InfluxDB.
- Host: GitHub
- URL: https://github.com/fullcontact/crankshaftd
- Owner: fullcontact
- License: apache-2.0
- Created: 2014-05-09T23:16:18.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-04-20T16:38:56.000Z (over 7 years ago)
- Last Synced: 2024-11-02T16:35:42.607Z (6 days ago)
- Language: Go
- Homepage:
- Size: 23.4 KB
- Stars: 6
- Watchers: 3
- Forks: 7
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-influxdb - crankshaftd - Simple Go agent to ingest streaming data from [Turbine](https://github.com/Netflix/Turbine) via SSE and push it into StatsD as a gauge or to InfluxDB (Collecting data into InfluxDB / Projects)
README
crankshaftd
===========Simple Go agent to ingest streaming data from Turbine via SSE and push it into StatsD as a gauge or to InfluxDB as a series.
## Property Munging
All keys related to properties (such as max threadpool size, queue lengths, etc.) are stripped by default.
Properties of the following patterns are kept:
- current*
- rollingCount*
- latencyTotal_*
- isCircuitBreakerOpenNormal keys are pushed under `my-prefix.my-cluster.MyCommandImpl.rollingCountSuccess`
Latency histograms are pushed under `my-prefix.my-cluster.MyCommandImpl.latencyTotal.xx_pct`
isCircuitBreakerOpen will be either 0 or 1.
Additionally, all numeric metrics are divided by the number of reporting hosts. This is because Turbine simply
sums all metrics, including percentiles.## StatsD caveat
All metric values are cast from float64 -> int64.
## Running
Create a config.toml with your config
```toml
# Turbine connection information
host = "turbine.yourcompany.com"
port = 80
tls_enabled = false
clusters = ["cluster1", "cluster2"]# Backend to stream updates to, 'influxdb' or 'statsd'
backendtype = "influxdb"[statsd]
host = "127.0.0.1"
port = 8125
prefix = "hystrix"
```Build the project
go build
And deploy the resulting binary & config./crankshaftd
Or run with a different config./crankshaftd dev.toml
## License
Copyright 2017 FullContact Inc. & Michael Rose
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this work except in compliance with the License. You may obtain a copy of the License in the LICENSE file, or at:
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.