Skip to content

Commit a390d2e

Browse files
Xander Grzywinskidashpole
Xander Grzywinski
authored andcommitted
statsd docs (Issue google#2002) (google#2005)
* statsd documentation
1 parent 6147978 commit a390d2e

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

docs/storage/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ cAdvisor supports exporting stats to various storage driver plugins. To enable a
1010
- [Kafka](http://kafka.apache.org/). See the [documentation](kafka.md) for usage.
1111
- [Prometheus](https://prometheus.io). See the [documentation](prometheus.md) for usage and examples.
1212
- [Redis](http://redis.io/)
13-
- [StatsD](https://github.com/etsy/statsd)
13+
- [StatsD](https://github.com/etsy/statsd). See the [documentation](statsd.md) for usage and examples.
1414
- `stdout` - write stats to standard output.

docs/storage/statsd.md

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Exporting cAdvisor Stats to statsd
2+
3+
cAdvisor supports exporting stats to [statsd](https://github.com/etsy/statsd). To use statsd, you need to pass some additional flags to cAdvisor telling it where to find statsd:
4+
5+
Set the storage driver as statsd.
6+
7+
```
8+
-storage_driver=statsd
9+
```
10+
11+
Specify what statsd instance to push data to:
12+
13+
```
14+
# The *ip:port* of the instance. Default is 'localhost:8086'
15+
-storage_driver_host=ip:port
16+
```
17+
18+
# Examples
19+
20+
The easiest way to get up an running is to start the cadvisor binary with the `--storage_driver` and `--storage_driver_host` flags.
21+
22+
```
23+
cadvisor --storage_driver="statsd" --storage_driver_host="localhost:8125"
24+
```
25+
26+
The default port for statsd is 8125, so this wil start pumping metrics directly to it.

0 commit comments

Comments
 (0)