2016-08-29 16:48:20 +00:00
|
|
|
## Generic Remote Storage Example
|
|
|
|
|
|
|
|
This is a simple example of how to write a server to
|
|
|
|
receive samples from the remote storage output.
|
|
|
|
|
|
|
|
To use it:
|
|
|
|
|
|
|
|
```
|
|
|
|
go build
|
2016-10-05 15:46:51 +00:00
|
|
|
./remote_storage
|
2016-08-29 16:48:20 +00:00
|
|
|
```
|
|
|
|
|
2016-10-05 15:46:51 +00:00
|
|
|
...and then add the following to your `prometheus.yml`:
|
2016-08-29 16:48:20 +00:00
|
|
|
|
2016-10-05 15:46:51 +00:00
|
|
|
```yaml
|
|
|
|
remote_write:
|
|
|
|
url: "http://localhost:1234/receive"
|
2016-08-29 16:48:20 +00:00
|
|
|
```
|
2016-10-05 15:46:51 +00:00
|
|
|
|
|
|
|
Then start Prometheus:
|
|
|
|
|
|
|
|
```
|
|
|
|
./prometheus
|
2016-08-29 16:48:20 +00:00
|
|
|
```
|