# rpi-telegraf [![Build Status](https://travis-ci.org/swestcott/rpi-telegraf.svg?branch=master)](https://travis-ci.org/swestcott/rpi-telegraf)

[Telegraf 1.3.1](https://github.com/influxdata/telegraf) docker image for use with the Raspberry Pi.

### Usage

_Note - no Telegraf configuration is supplied, this must be mounted into the container._

First generate a configuration file. This example collects CPU/memory stats and exposes them for Prometheus to collect.

```
docker run --rm swestcott/rpi-telegraf telegraf --input-filter cpu:mem: --output-filter prometheus_client config > telegraf.conf
```

Then mount `telegraf.conf` into the container

```
docker run --rm --publish 9126:9126 --volume telegraf.conf:/etc/telegraf/telegraf.conf swestcott/pi3-telegraf:latest
```

### Verify

```
curl -s http://localhost:9126/metrics
```

# rpi-telegraf [![Build Status](https://travis-ci.org/swestcott/rpi-telegraf.svg?branch=master)](https://travis-ci.org/swestcott/rpi-telegraf)

[Telegraf](https://github.com/influxdata/telegraf) docker image for use with the Raspberry Pi.

### Usage

_Note - no Telegraf configuration is supplied, this must be mounted into the container._

First generate a configuration file. This example collects CPU/memory stats and exposes them for Prometheus to collect.

```
docker run --rm swestcott/rpi-telegraf telegraf --input-filter cpu:mem: --output-filter prometheus_client config > telegraf.conf
```

Then mount `telegraf.conf` into the container

```
docker run --rm --publish 9126:9126 --volume telegraf.conf:/etc/telegraf/telegraf.conf swestcott/pi3-telegraf:latest
```

### Verify

```
curl -s http://localhost:9126/metrics
```

Remove Telegraf version number from readme
Remove Telegraf version number from readme
